Bump required version of texinfo to 4.7
[platform/upstream/glibc.git] / ChangeLog
1 2014-12-15  Will Newton  <will.newton@linaro.org>
2
3         * manual/install.texi: Bump required version of texinfo
4         to 4.7 from 4.5.
5         * INSTALL: Regenerated.
6         * configure.ac: Check for makeinfo version 4.7 and above.
7         * configure: Regenerated.
8
9 2014-12-12  Roland McGrath  <roland@hack.frob.com>
10
11         * sysdeps/posix/shm-directory.h (SHM_GET_NAME): Take new argument
12         PREFIX, string constant to insert between directory and name.
13         * sysdeps/posix/shm_open.c: Update caller.
14         * sysdeps/posix/shm_unlink.c: Likewise.
15         * nptl/semaphoreP.h (struct mountpoint_info): Type removed.
16         (__where_is_shmfs, mountpoint, __namedsem_once): Declarations removed.
17         (SEM_SHM_PREFIX): New macro.
18         * sysdeps/posix/Makefile (librt-routines): Add shm-directory only if
19         [$(have-thread-library) = no].
20         * nptl/Makefile (libpthread-routines): Add shm-directory.
21         * nptl/Versions (GLIBC_PRIVATE): Add __shm_directory.
22         * sysdeps/nptl/shm-directory.h: New file.
23         * sysdeps/posix/shm-directory.c
24         [IS_IN (libpthread)] (__shm_directory): Add hidden_def.
25         * sysdeps/unix/sysv/linux/shm-directory.c: Likewise.
26         * nptl/sem_open.c (check_add_mapping): Use munmap function rather than
27         INTERNAL_SYSCALL.
28         (__where_is_shmfs): Function removed.
29         (mountpoint, defaultmount, defaultdir, __namedsem_once):
30         Variables removed.
31         (sem_open): Use __libc_close function rather than INTERNAL_SYSCALL.
32         Use SHM_GET_NAME.
33         * nptl/sem_unlink.c: Prototypify.  Use SHM_GET_NAME.
34
35         * sysdeps/nptl/bits/libc-lockP.h [IS_IN (libpthread)]
36         (PTFAVAIL, __libc_ptf_call, __libc_ptf_call_always): Define as
37         unconditional for use inside libpthread.
38         [IS_IN (libpthread)]: Include <nptl/pthreadP.h>.
39
40 2014-12-12  Roland McGrath  <roland@hack.frob.com>
41
42         * nptl/pthread_getaffinity.c: New file.
43         * nptl/pthread_setaffinity.c: New file.
44         * nptl/pthread_getname.c: New file.
45         * nptl/pthread_setname.c: New file.
46
47         * nptl/pthread_create.c (START_THREAD_DEFN)
48         [! __ASSUME_SET_ROBUST_LIST]: Add missing & in lll_futex_wake argument.
49
50 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
51             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
52
53         * resolv/res_send.c (send_vc): Disable warning resplen may
54         be used uninitialized.
55
56 2014-12-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
57
58         * nptl/tst-mutex6.c
59         (ATTR_NULL): New define checks ATTR against NULL.
60         (do_test): Use !ATTR_NULL instead of ATTR != NULL.
61         * nptl/tst-mutexpp6.c (ATTR_NULL): New define.
62
63 2014-12-11  James Lemke  <jwlemke@codesourcery.com>
64
65         [BZ #17581]
66         * malloc/hooks.c
67         (mem2mem_check): Revert my previous change.
68         (malloc_check_get_size): Revert my previous change.
69         (mem2chunk_check): Revert my previous change.
70
71 2014-12-11  Roland McGrath  <roland@hack.frob.com>
72
73         * sysdeps/posix/shm-directory.c: New file.
74         * sysdeps/posix/shm-directory.h: New file.
75         * sysdeps/posix/Makefile [($(subdir) = rt] (librt-routines): Add it.
76         * sysdeps/posix/shm_open.c: Use SHM_GET_NAME.
77         Use O_NOFOLLOW and O_CLOEXEC if available.  Transmute EISDIR to EINVAL.
78         * sysdeps/posix/shm_unlink.c: Use SHM_GET_NAME.
79         Transmute EPERM to EACCES.
80         * sysdeps/unix/sysv/linux/shm-directory.c: New file, most code taken
81         from ...
82         * sysdeps/unix/sysv/linux/shm_open.c: ... here.  File removed.
83         * sysdeps/unix/sysv/linux/shm_unlink.c: File removed.
84
85 2014-12-11  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
86
87         * sysdeps/sh/jmpbuf_unwind.h (_jmpbuf_sp): Declare SP as void
88         pointer and cast to uintptr_t.
89         * sysdeps/sh/nptl/tls.h (TLS_INIT_TP): Use NULL instead of 0.
90         * sysdeps/unix/sysv/linux/sh/lowlevellock.h (lll_futex_timed_wait):
91         Add cast to avoid warning.
92         * sysdeps/unix/sysv/linux/sh/register-dump.h: Use 0 instead of NULL.
93
94 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
95
96         * nptl/semaphore.h: Move to ...
97         * sysdeps/pthread/semaphore.h: ... here.
98         * Makefile (installed-headers): Change nptl/semaphore.h to
99         sysdeps/pthread/semaphore.h.
100
101 2014-12-11  Roland McGrath  <roland@hack.frob.com>
102
103         * misc/tst-error1.c (do_test): Ignore -Wformat-security for
104         generated error format strings.
105
106         * stdio-common/tstdiomisc.c (t2): Ignore -Wformat and
107         -Wformat-extra-args warnings for scanf formats.
108         * stdio-common/scanf4.c (main): Ignore -Wformat-zero-length around
109         test of zero-length format (duh).
110         * stdio-common/scanf7.c (main): Ignore -Wformat warnings for
111         corner-case scanf format test.
112         * stdio-common/test-vfprintf.c (do_test): Ignore -Wformat-security for
113         generated fprintf format string.
114         * stdio-common/tst-sprintf.c (do_test): Ignore -Wformat warnings for
115         corner-case sprintf format tests.
116         * stdio-common/tst-printf.c: Ignore -Wformat throughout.
117         * stdio-common/tst-printfsz.c (main): Ignore -Wformat and
118         -Wformat-extra-args warnings throughout.
119         * stdio-common/Makefile (CFLAGS-tstdiomisc.c): Variable removed.
120         (CFLAGS-scanf4.c): Likewise.
121         (CFLAGS-scanf7.c): Likewise.
122         (CFLAGS-tst-sprintf.c): Likewise.
123         (CFLAGS-tst-printf.c): Likewise.
124         (CFLAGS-tst-printfsz.c): Likewise.
125
126 2014-12-11  Joseph Myers  <joseph@codesourcery.com>
127
128         * include/cpio.h: New file.
129         * include/fmtmsg.h: Likewise.
130
131         * tst-mbswcs1.c (show): Use %zu format instead of %Zd.  Cast
132         corresponding format argument to size_t.
133         * tst-mbswcs2.c (show): Likewise.  Use %td format for ptrdiff_t
134         arguments.
135         * tst-mbswcs3.c (show): Use %zu format instead of %Zd.  Cast
136         corresponding format argument to size_t.
137         * tst-mbswcs4.c (show): Likewise.  Use %td format for ptrdiff_t
138         arguments.
139         * tst-mbswcs5.c (show): Use %zu format instead of %Zd.  Cast
140         corresponding format argument to size_t.
141         * tst-trans.c (do_test): Use %lc format for wint_t arguments.
142         * Makefile (CFLAGS-tst-mbswcs1.c): Remove variable.
143         (CFLAGS-tst-mbswcs2.c): Likewise.
144         (CFLAGS-tst-mbswcs3.c): Likewise.
145         (CFLAGS-tst-mbswcs4.c): Likewise.
146         (CFLAGS-tst-mbswcs5.c): Likewise.
147         (CFLAGS-tst-trans.c): Likewise
148
149 2014-12-11  Roland McGrath  <roland@hack.frob.com>
150
151         * posix/regexbug1.c (main): Use "%s" format with regerror results,
152         rather than assuming they won't contain any '%'s.
153
154 2014-12-11  Chris Metcalf  <cmetcalf@ezchip.com>
155
156         * sysdeps/tile/tilegx/memset.c (__memcpy): Add
157         inhibit_loop_to_libcall to avoid recursive calls.
158         * sysdeps/tile/tilegx/memcpy.c (__memcpy): Likewise.
159         * sysdeps/tile/tilepro/memcpy.c (__memcpy): Likewise.
160
161 2014-12-11  Adhemerval Zanella  <Azanella@linux.vnet.ibm.com>
162
163         * include/sys/socket.h (__sendmmsg): Add __USE_GNU guards on function
164         prototype.
165
166 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
167
168         * sysdeps/mips/dl-trampoline.c: Modify switch expression to have
169         integer value instead of boolean.
170
171 2014-12-11  Steve Ellcey  <sellcey@imgtec.com>
172
173         * malloc/malloc.c: Fix powerof2 check.
174
175 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
176
177         * locale/programs/locfile.h (maybe_swap_uint32):
178         Remove inline and add unused attribute.
179
180 2014-12-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
181
182         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
183         Truncating assembler expression to a .long expression.
184
185 2014-12-11  Andreas Schwab  <schwab@suse.de>
186
187         * elf/rtld.c (struct map_args): Constify str member.
188         (do_preload): Constify fname argument.
189
190 2014-12-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
191
192         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Remove overflow warnings for
193         constants definition.
194
195 2014-12-11  Andreas Schwab  <schwab@suse.de>
196
197         [BZ #16657]
198         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Use
199         FORCE_ELISION instead of DO_ELISION.
200         * sysdeps/unix/sysv/linux/x86/force-elision.h (DO_ELISION):
201         Remove.
202         * sysdeps/unix/sysv/linux/s390/force-elision.h (DO_ELISION):
203         Likewise.
204
205         * iconvdata/gconv-modules: Remove duplicate entry.
206
207 2014-12-11  Will Newton  <will.newton@linaro.org>
208
209         Merge gettext 0.19.3 into intl/.
210
211         This involves a number of cosmetic changes to comments
212         and ANSI function definitions and prototypes throughout
213         all the files. The gettext copyright header is used but
214         with the date ranges taken from the glibc copy.
215
216         * NEWS: Add gettext merge to 2.21.
217         * intl/bindtextdom.c: Switch to gettext copyright.
218         Use ANSI definitions and prototypes.
219         Use gl_* locking primitives rather than __libc_* ones.
220         Use __builtin_expect rather than __glibc_likely/unlikely.
221         * intl/dcgettext.c: Switch to gettext copyright.
222         Use ANSI definitions and prototypes.
223         * intl/dcigettext.c: Switch to gettext copyright.
224         Use ANSI definitions and prototypes.
225         (INTDIV0_RAISES_SIGFPE): New define.
226         Use gl_* locking primitives rather than __libc_* ones.
227         Include eval-plural.h instead of plural-eval.c.
228         Use __builtin_expect rather than __glibc_likely/unlikely.
229         * intl/dcngettext.c: Switch to gettext copyright.
230         Use ANSI definitions and prototypes.
231         * intl/dgettext.c: Likewise.
232         * intl/dngettext.c: Likewise.
233         * intl/plural-eval.c: Renamed to...
234         * intl/eval-plural.h: ...this.
235         * intl/explodename.c: Switch to gettext copyright.
236         Use ANSI definitions and prototypes.
237         (_nl_explode_name): Use strchr instead of __rawmemchr.
238         * intl/finddomain.c: Switch to gettext copyright.
239         Use ANSI definitions and prototypes.
240         Use gl_* locking primitives rather than __libc_* ones.
241         (_nl_find_domain): Use malloc rather than alloca for
242         allocation of temporary locale name.
243         * intl/gettext.c: Switch to gettext copyright.
244         Use ANSI definitions and prototypes.
245         * intl/gettextP.h: Switch to gettext copyright.
246         Use ANSI definitions and prototypes.
247         Use gl_* locking primitives rather than __libc_* ones.
248         * intl/gmo.h: Switch to gettext copyright.
249         (struct sysdep_string): Move struct segment_pair outside of
250         struct definition.
251         * intl/hash-string.c: Use ANSI definitions and prototypes.
252         * intl/hash-string.h: Switch to gettext copyright.
253         Use ANSI definitions and prototypes.
254         * intl/l10nflist.c: Switch to gettext copyright.
255         Use ANSI definitions and prototypes.
256         (_nl_normalize_codeset): Avoid integer overflow.
257         * intl/loadinfo.h: Switch to gettext copyright.
258         Use ANSI definitions and prototypes.
259         (LIBINTL_DLL_EXPORTED): New define.
260         (PATH_SEPARATOR): New define.
261         * intl/loadmsgcat.c: Switch to gettext copyright.
262         * intl/localealias.c: Switch to gettext copyright.
263         Use ANSI definitions and prototypes.
264         (_nl_expand_alias): Use PATH_SEPARATOR.
265         * intl/ngettext.c: Switch to gettext copyright.
266         Use ANSI definitions and prototypes.
267         * intl/plural-exp.c: Likewise.
268         * intl/plural-exp.h: Switch to gettext copyright.
269         Use ANSI definitions and prototypes.
270         (struct expression): Move definition of enum operator outside
271         of struct definition.
272         * intl/plural.c: Regenerate.
273         * intl/plural.y: Switch to gettext copyright.
274         Use ANSI definitions and prototypes.
275         Port to bison 3.0.
276         * intl/textdomain.c: Switch to gettext copyright.
277         Use ANSI definitions and prototypes.
278         Use gl_* locking primitives rather than __libc_* ones.
279
280 2014-12-10  Steve Ellcey  <sellcey@imgtec.com>
281
282         * debug/warning-nop.c: Add used atrribute.
283
284 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
285
286         * sysdeps/unix/sysv/linux/mips/mips32/waitid.c: New file.
287
288         * sysdeps/unix/sysv/linux/mips/mips64/Makefile
289         [$(subdir) == signal] (CFLAGS-sigaction.c): New variable.
290         [$(subdir) == nptl] (CFLAGS-sigaction.c): Likewise.
291
292 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
293             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
294
295         [BZ #17634]
296         * wcsmbs/wcschr.c [!WCSCHR] (wcschr): Define as __wcschr.
297         Undefine after defining function.  Define as weak alias of
298         __wcschr.  Use libc_hidden_weak.
299         * include/wchar.h (__wcschr): Declare.  Use libc_hidden_proto.
300         * sysdeps/i386/i686/multiarch/wcschr-c.c [IS_IN (libc) && SHARED]
301         (libc_hidden_def): Also define __GI___wcschr alias.
302         * sysdeps/i386/i686/multiarch/wcschr.S (wcschr): Rename to
303         __wcschr and define as weak alias of __wcschr.
304         * sysdeps/powerpc/power6/wcschr.c [!WCSCHR] (WCSCHR): Define as
305         __wcschr.
306         [!WCSCHR] (DEFAULT_WCSCHR): Define.
307         [DEFAULT_WCSCHR] (__wcschr): Use libc_hidden_def.
308         [DEFAULT_WCSCHR] (wcschr): Define as weak alias of __wcschr.  Use
309         libc_hidden_weak.  Do not use libc_hidden_def.
310         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c
311         [IS_IN (libc) && SHARED] (libc_hidden_def): Also define
312         __GI___wcschr alias.
313         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c
314         [IS_IN (libc)] (wcschr): Define as macro expanding to
315         __redirect_wcschr.
316         [IS_IN (libc)] (__wcschr_ppc): Use __redirect_wcschr in typeof.
317         [IS_IN (libc)] (__wcschr_power6): Likewise.
318         [IS_IN (libc)] (__wcschr_power7): Likewise.
319         [IS_IN (libc)] (__libc_wcschr): New.  Define with libc_ifunc
320         instead of wcschr.
321         [IS_IN (libc)] (wcschr): Undefine and define as weak alias of
322         __libc_wcschr.
323         [!IS_IN (libc)] (libc_hidden_def): Do not undefine and redefine.
324         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c (wcschr): Rename to
325         __wcschr and define as weak alias of __wcschr.  Use
326         libc_hidden_builtin_def.
327         * sysdeps/x86_64/wcschr.S (wcschr): Rename to __wcschr and define
328         as weak alias of __wcschr.  Use libc_hidden_weak.
329         * time/alt_digit.c (_nl_get_walt_digit): Use __wcschr instead of
330         wcschr.
331         * time/era.c (_nl_init_era_entries): Likewise.
332         * conform/Makefile (test-xfail-ISO/time.h/linknamespace): Remove
333         variable.
334         (test-xfail-XPG3/time.h/linknamespace): Likewise.
335         (test-xfail-XPG4/time.h/linknamespace): Likewise.
336
337 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
338
339         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Use %ld
340         format for long int variable.
341
342 2014-12-10  Anders Kaseorg  <andersk@MIT.EDU>
343
344         [BZ #10672]
345         * manual/search.texi: (Array Sort Function): Remove claim how to make
346         qsort stable.
347
348 2014-12-10  Andreas Schwab  <schwab@suse.de>
349
350         [BZ #12847]
351         * sysdeps/nptl/fork.c (fresetlockfiles): Skip files with
352         user-controlled locks.
353
354 2014-12-10  Richard Earnshaw  <rearnsha@arm.com>
355
356         * sysdeps/aarch64/strchrnul.S (vrepmask): Use a call-clobbered
357         register.
358
359 2014-12-10  Joseph Myers  <joseph@codesourcery.com>
360
361         * configure.ac (--disable-werror): New configure option.
362         (enable_werror): New AC_SUBST.
363         * configure: Regenerated.
364         * config.make.in (enable-werror): New variable.
365         * Makeconfig [$(enable-werror) = yes] (+gccwarn): Add -Werror
366         -Wno-error=undef.
367         (+gccwarn-c): Do not use -Werror=implicit-function-declaration.
368         * manual/install.texi (Configuring and compiling): Document
369         --disable-werror.
370         * INSTALL: Regenerated.
371         * debug/Makefile (CFLAGS-tst-chk1.c): Add -Wno-error.
372         (CFLAGS-tst-chk2.c): Likewise.
373         (CFLAGS-tst-chk3.c): Likewise.
374         (CFLAGS-tst-chk4.cc): Likewise.
375         (CFLAGS-tst-chk5.cc): Likewise.
376         (CFLAGS-tst-chk6.cc): Likewise.
377         (CFLAGS-tst-lfschk1.c): Likewise.
378         (CFLAGS-tst-lfschk2.c): Likewise.
379         (CFLAGS-tst-lfschk3.c): Likewise.
380         (CFLAGS-tst-lfschk4.cc): Likewise.
381         (CFLAGS-tst-lfschk5.cc): Likewise.
382         (CFLAGS-tst-lfschk6.cc): Likewise.
383
384         * stdio-common/tst-printfsz.c: Include <libc-internal.h>.
385         (main): Disable -Wdeprecated-declarations around calls to
386         register_printf_function.
387
388         * stdio-common/tst-unlockedio.c: Include <libc-internal.h>.
389         (do_test): Disable -Wdiv-by-zero around some calls to
390         fwrite_unlocked and fread_unlocked.
391
392         * include/libc-internal.h (DIAG_PUSH_NEEDS_COMMENT): New macro.
393         (DIAG_POP_NEEDS_COMMENT): Likewise.
394         (_DIAG_STR1): Likewise.
395         (_DIAG_STR): Likewise.
396         (DIAG_IGNORE_NEEDS_COMMENT): Likewise.
397         * stdio-common/bug21.c: Include <libc-internal.h>.
398         (do_test): Disable -Wformat around call to sscanf.
399         * stdio-common/scanf14.c: Include <libc-internal.h>.
400         (main): Disable -Wformat around some calls to scanf functions.
401
402 2014-12-09  Torvald Riegel  <triegel@redhat.com>
403
404         * sysdeps/unix/sysv/linux/sh/pthread_once.S: Remove file.
405
406 2014-12-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
407
408         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix wide-character
409         stack variable alignment.
410
411 2014-12-06  Joseph Myers  <joseph@codesourcery.com>
412
413         [BZ #17682]
414         * resource/Versions (libc): Add __getrlimit at GLIBC_PRIVATE.
415         * resource/getrlimit.c (__getrlimit): Use libc_hidden_def.
416         * sysdeps/mach/hurd/getrlimit.c (__getrlimit): Likewise.
417         * include/sys/resource.h (__getrlimit): Use libc_hidden_proto.
418         * nptl/nptl-init.c (__pthread_initialize_minimal_internal): Use
419         __getrlimit instead of getrlimit.
420         * nptl/pthread_cond_timedwait.c (__pthread_cond_timedwait): Use
421         __gettimeofday instead of gettimeofday.
422         * nptl/pthread_rwlock_timedrdlock.c (pthread_rwlock_timedrdlock):
423         Likewise.
424         * nptl/pthread_rwlock_timedwrlock.c (pthread_rwlock_timedwrlock):
425         Likewise.
426         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
427         * conform/Makefile (test-xfail-POSIX2008/aio.h/linknamespace):
428         Remove variable.
429         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
430         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
431
432 2014-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
433
434         * libio/tst-ftell-active-handler.c (do_ftell_test): Fix buffer overrun
435         for wide-character tests.
436
437 2014-12-04  Roland McGrath  <roland@hack.frob.com>
438
439         * io/openat64.c: #include <libc-internal.h>
440         (__openat64): Prototypify.  Use ignore_value on MODE.
441         * io/openat.c: Likewise.
442         * misc/reboot.c: #include <libc-internal.h>
443         (reboot): Prototypify.  Use ignore_value on HOWTO.
444         * misc/ptrace.c: #include <libc-internal.h>
445         (ptrace): Prototypify.  Use ignore_value for va_arg'd parameters.
446
447 2014-12-04  Joseph Myers  <joseph@codesourcery.com>
448
449         * conform/list-header-symbols.pl (%extra_syms): Add h_errno for
450         XPG4, UNIX98 and XOPEN2K.
451         * conform/Makefile (test-xfail-XOPEN2K/grp.h/linknamespace):
452         Remove variable.
453         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
454
455 2014-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
456
457         * libio/fileops.c: Use ISO C style for function definitions.
458         * libio/iofopen.c: Likewise.
459         * libio/wfileops.c: Likewise.
460
461         [BZ #17653]
462         * libio/fileops.c (_IO_new_file_underflow): Unset cached
463         offset on EOF.
464         * libio/wfileops.c (_IO_wfile_underflow): Likewise.
465         * libio/tst-ftell-active-handler.c (fgets_func_t): New type.
466         (fgets_func): Function pointer to fgets and fgetws.
467         (do_ftell_test): Add test to verify ftell value after read
468         EOF.
469         (do_test): Set fgets_func.
470
471         * libio/tst-ftell-active-handler.c (do_ftruncate_test): Add
472         O_TRUNC flag for w and w+ modes.
473         (do_rewind_test): Likewise.
474         (do_ftell_test): Likewise.
475         (do_write_test): Likewise.
476
477         [BZ #17647]
478         * libio/fileops.c (do_ftell): Seek only when there are
479         unflushed writes.
480         * libio/wfileops.c (do_ftell_wide): Likewise.
481         * libio/tst-ftell-active-handler.c (do_ftruncate_test): New
482         test case.
483         (do_one_test): Call it.
484
485 2014-12-03  Joseph Myers  <joseph@codesourcery.com>
486
487         * conform/list-header-symbols.pl (%extra_syms): Add getdate_err
488         for XPG4, UNIX98, XOPEN2K and XOPEN2K8.
489         * conform/Makefile (test-xfail-XOPEN2K/pthread.h/linknamespace):
490         Remove variable.
491         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
492         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
493         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
494
495 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
496
497         * conform/Makefile (test-xfail-XOPEN2K/aio.h/linknamespace):
498         Remove variable.
499         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
500
501         [BZ #17668]
502         * inet/ifaddrs.c (getifaddrs): Rename to __getifaddrs and define
503         as weak alias of __getifaddrs.  Use libc_hidden_weak.
504         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
505         __freeifaddrs.  Use libc_hidden_weak.
506         * sysdeps/gnu/ifaddrs.c (getifaddrs): Rename to __getifaddrs and
507         define as weak alias of __getifaddrs.  Use libc_hidden_weak.
508         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
509         __freeifaddrs.  Use libc_hidden_weak.
510         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs): Rename to
511         __getifaddrs and define as weak alias of __getifaddrs.  Use
512         libc_hidden_weak.
513         (freeifaddrs): Rename to __freeifaddrs and define as weak alias of
514         __freeifaddrs.  Use libc_hidden_weak.
515         * conform/Makefile (test-xfail-XOPEN2K/net/if.h/linknamespace):
516         Remove variable.
517         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
518         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
519
520 2014-12-02  Petar Jovanovic  <petar.jovanovic@rt-rk.com>
521
522         [BZ #17601]
523         * sysdeps/mips/start.S (__start): Use indirect jump to call
524         __libc_start_main.
525
526 2014-12-02  Joseph Myers  <joseph@codesourcery.com>
527
528         * nptl/tst-stack4.c (dso_process): Use int not uintptr_t for t.
529
530         * nptl/tst-mutex1.c: Include <stdbool.h>.
531         [!ATTR] (ATTR_NULL): New macro.
532         (do_test): Test !ATTR_NULL instead of ATTR != NULL.
533         * nptl/tst-mutexpi1.c (ATTR_NULL): New macro.
534         * nptl/tst-mutexpp1.c (ATTR_NULL): New macro.
535
536         * posix/tst-getopt_long1.c (do_test): Cast elements of argv array
537         to char *.
538
539         [BZ #17665]
540         * posix/unistd.h [__USE_MISC || (__USE_XOPEN && !__USE_UNIX98)]:
541         Change conditional to [__USE_MISC].
542
543         [BZ #17664]
544         * misc/mntent_r.c (__getmntent_r): Use __fgets_unlocked instead of
545         fgets_unlocked.
546         * resolv/res_hconf.c [IS_IN (libc)] (fgets_unlocked): Define to
547         __fgets_unlocked.
548         * resolv/res_init.c (__res_vinit): Use __fgets_unlocked instead of
549         fgets_unlocked.
550         * conform/Makefile (test-xfail-XPG4/sys/statvfs.h/linknamespace):
551         Remove variable.
552         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
553         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
554         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
555         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
556         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
557         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
558         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
559         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
560         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
561
562         * elf/tst-unique4lib.cc (b): Mark with __attribute__ ((used)).
563
564 2014-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
565
566         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
567         Remove strpbrk objects.
568         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
569         (__libc_ifunc_impl_list): Remove strpbrk implementation.
570         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: Remove file.
571         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Remove file.
572         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: Remove file.
573         * sysdeps/powerpc/powerpc64/strpbrk.S: New file.
574
575         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
576         Remove strcspn objects.
577         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
578         (__libc_ifunc_impl_list): Remove strcspn implementation.
579         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: Remove file.
580         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Remove file.
581         * sysdeps/powerpc/powerpc64/power7/strcspn.S: Remove file.
582         * sysdeps/powerpc/powerpc64/strcspn.S: New file.
583
584         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
585         Remove strspn objetcs.
586         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
587         (__libc_ifunc_impl_list): Remove strspn implementation.
588         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: Remove file.
589         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
590         * sysdeps/powerpc/powerpc64/power7/strspn.S: Remove file.
591         * sysdeps/powerpc/powerpc64/strspn.S: New file.
592
593 2014-12-01  James Lemke  <jwlemke@codesourcery.com>
594
595         [BZ #17581]
596         * malloc/hooks.c
597         (mem2mem_check): Add a terminator to the chain of checking blocks.
598         (malloc_check_get_size): Use it here.
599         (mem2chunk_check): Ditto.
600
601 2014-12-01  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
602
603         * sysdeps/powerpc/powerpc64/strtok.S: New file.
604         * sysdeps/powerpc/powerpc64/strtok_r.S: New file.
605
606 2014-11-29  Carlos O'Donell  <carlos@redhat.com>
607
608         * bits/ioctl-types.h: Indent preprocessor directives correctly.
609
610         * nptl/nptl-init.c: Include libc-internal.h.
611         (__pthread_initialize_minimal_internal): Use ROUND_UP.
612
613         * elf/ldconfig.c (search_dir): Expand comment.
614
615 2014-11-29  Joseph Myers  <joseph@codesourcery.com>
616
617         * conform/Makefile (linknamespace-symlist-stdlibs-base): New
618         variable.
619         (linknamespace-symlist-stdlibs-tests): Likewise.
620         (tests-special): Append $(linknamespace-symlist-stdlibs-tests)
621         instead of $(objpfx)symlist-stdlibs.
622         (linknamespace-libs-isoc): New variable.
623         (linknamespace-libs): Use $(linknamespace-libs-isoc).
624         (linknamespace-libs-ISO): New variable.
625         (linknamespace-libs-ISO99): Likewise.
626         (linknamespace-libs-ISO11): Likewise.
627         (linknamespace-libs-XPG3): Likewise.
628         (linknamespace-libs-XPG4): Likewise.
629         (linknamespace-libs-POSIX): Likewise.
630         (linknamespace-libs-UNIX98): Likewise.
631         (linknamespace-libs-XOPEN2K): Likewise.
632         (linknamespace-libs-POSIX2008): Likewise.
633         (linknamespace-libs-XOPEN2K8): Likewise.
634         ($(objpfx)symlist-stdlibs): Replace by
635         $(linknamespace-symlist-stdlibs-tests).  Use
636         $(linknamespace-libs-$*) as set of libraries.
637         ($(linknamespace-header-tests)): Update dependencies.  Use
638         $(objpfx)symlist-stdlibs-$$std for --libsyms argument.
639         (test-xfail-XPG4/sys/mman.h/linknamespace): Remove.
640         * conform/linknamespace.pl: Remove comment about considering
641         definitions of symbols from irrelevant libraries.
642
643 2014-11-28  H.J. Lu  <hongjiu.lu@intel.com>
644
645         [BZ #13862]
646         * elf/dl-tls.c: Include <atomic.h>.
647         (oom): Remove #ifdef SHARED/#endif.
648         (_dl_static_dtv, _dl_initial_dtv): Moved before ...
649         (_dl_resize_dtv): This.  Extracted from _dl_update_slotinfo.
650         (_dl_allocate_tls_init): Resize DTV if the current DTV isn't
651         big enough.
652         (_dl_update_slotinfo): Call _dl_resize_dtv to resize DTV.
653         * nptl/Makefile (tests): Add tst-stack4.
654         (modules-names): Add tst-stack4mod.
655         ($(objpfx)tst-stack4): New.
656         (tst-stack4mod.sos): Likewise.
657         ($(objpfx)tst-stack4.out): Likewise.
658         ($(tst-stack4mod.sos)): Likewise.
659         (clean): Likewise.
660         * nptl/tst-stack4.c: New file.
661         * nptl/tst-stack4mod.c: Likewise.
662
663 2014-11-27  J. Brown  <jb999@gmx.de>
664
665         * sysdeps/x86/bits/string.h: Add recent CPUs.
666
667 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
668
669         * misc/tst-pselect.c (do_test): Use sigprocmask instead of
670         sigblock.
671
672         * libio/bug-ungetwc1.c (do_test): Verify results of getwc and
673         feof.
674
675         * dlfcn/failtestmod.c (constr): Do not store result of dlsym in a
676         variable.
677
678 2014-11-27  Stefan Liebler  <stli@linux.vnet.ibm.com>
679
680         * nscd/connections.c: Include libc-internal.h because of macro
681         usage ignore_value.
682
683 2014-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
684
685         * string/bits/string3.h (__warn_memset_zero_len): Don't
686         declare for gcc newer than 5.0.
687         (memset): Don't test for zero-length __LEN for gcc newer than
688         5.0.
689
690 2014-11-27  Joseph Myers  <joseph@codesourcery.com>
691
692         * stdio-common/tst-fmemopen.c (do_test): Cast st_size values to
693         size_t for %zu format.
694
695         * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
696         difference, not %ju.
697
698 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
699
700         * include/libc-internal.h (ignore_value): New macro.
701         * nscd/connections.c (restart): Wrap calls to setuid and setgid
702         with ignore_value.
703
704         * sysdeps/mips/__longjmp.c (____longjmp): Use prototype
705         definition.
706
707         * nptl/tst-cancel-self-cancelstate.c (do_test): Cast argument of
708         pthread_cleanup_push to void *.
709
710         * sysdeps/unix/sysv/linux/arm/libc-do-syscall.S (_FORTIFY_SOURCE):
711         Undefine.
712
713         [BZ #16619]
714         [BZ #16740]
715         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Use 1LL << 52
716         instead of 1L << 52.
717
718         * libio/bug-rewind.c (do_test): Check fwscanf return values.
719         * libio/bug-rewind2.c (do_test): Likewise.
720
721         * debug/test-stpcpy_chk-ifunc.c: Remove file.
722         * debug/test-strcpy_chk-ifunc.c: Likewise.
723         * wcsmbs/test-wcschr-ifunc.c: Likewise.
724         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
725         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
726         * wcsmbs/test-wcslen-ifunc.c: Likewise.
727         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
728         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
729         * Rules [$(multi-arch) = no] (tests): Do not filter out
730         $(tests-ifunc).
731         [$(multi-arch) = no] (xtests): Do not filter out $(xtests-ifunc).
732         * debug/Makefile (tests-ifunc): Remove variable.
733         (tests): Do not add $(tests-ifunc).
734         * wcsmbs/Makefile (tests-ifunc): Remove variable.
735         (tests): Do not add $(tests-ifunc).
736         * benchtests/bench-string.h (TEST_IFUNC): Remove macro.
737         [TEST_IFUNC]: Remove conditionals.
738         * string/test-string.h (TEST_IFUNC): Remove macro.
739         [TEST_IFUNC]: Remove conditionals.
740
741         * string/test-strchr.c [!WIDE] (L): New macro.
742         [WIDE] (L): Likewise.
743         (check1): Use CHAR instead of char.  Use L on string and character
744         constants.
745
746 2014-11-26  Adhemerval Zanella  <azanella@linux.ibm.com>
747
748         * csu/tst-atomic.c (do_test): Add atomic_exchange_and_add_{acq,rel}
749         tests.
750         * sysdeps/powerpc/bits/atomic.h
751         (__arch_atomic_exchange_and_add_32_acq): Add definition.
752         (__arch_atomic_exchange_and_add_32_rel): Likewise.
753         (atomic_exchange_and_add_acq): Likewise.
754         (atomic_exchange_and_add_rel): Likewise.
755         * sysdeps/powerpc/powerpc32/bits/atomic.h
756         (__arch_atomic_exchange_and_add_64_acq): Add definition.
757         (__arch_atomic_exchange_and_add_64_rel): Likewise.
758         * sysdeps/powerpc/powerpc64/bits/atomic.h
759         (__arch_atomic_exchange_and_add_64_acq): Add definition.
760         (__arch_atomic_exchange_and_add_64_rel): Likewise.
761
762 2014-11-26  Torvald Riegel  <triegel@redhat.com>
763
764         * nptl/tpp.c (__init_sched_fifo_prio, __pthread_tpp_change_priority):
765         Change synchronization of __sched_fifo_min_prio and
766         __sched_fifo_max_prio.
767         * nptl/pthread_mutexattr_getprioceiling.c
768         (pthread_mutexattr_getprioceiling): Likewise.
769         * nptl/pthread_mutexattr_setprioceiling.c
770         (pthread_mutexattr_setprioceiling): Likewise.
771         * nptl/pthread_mutex_init.c (__pthread_mutex_init): Likewise.
772         * nptl/pthread_mutex_setprioceiling.c (pthread_mutex_setprioceiling):
773         Likewise.
774
775 2014-11-26  Joseph Myers  <joseph@codesourcery.com>
776
777         * setjmp/jmpbug.c (test): Make foo volatile and cast it to
778         void.
779
780 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
781
782         * stdio-common/tst-printf-round.c (test_hex_in_one_mode): Make
783         third argument const.
784
785 2014-11-25  Paul Eggert  <eggert@cs.ucla.edu>
786
787         fnmatch: work around GCC compiler warning bug with uninit var
788         * posix/fnmatch_loop.c (FCT): Use a scalar not a one-item array.
789         This works around a bug with x86-64 GCC 4.9.2 and earlier
790         where 'gcc -O2 -Wmaybe-uninitialized' incorrectly complains
791         "../locale/weightwc.h:93:7: warning: '*((void *)&str+4)' may be
792         used uninitialized in this function [-Wmaybe-uninitialized]".
793
794 2014-11-25  Joseph Myers  <joseph@codesourcery.com>
795
796         * posix/bug-regex31.c (main): Return RES not 0.
797
798 2014-11-25  Anton Blanchard <anton@samba.org>
799
800         * sysdeps/powerpc/bits/atomic.h
801         (__arch_compare_and_exchange_bool_64_rel): Load from mem.
802
803 2014-11-24  Sterling Augustine  <saugustine@google.com>
804
805         * sysdeps/x86_64/start.S (_start): Use ENTRY and END macros.
806
807 2014-11-24  Ryan Cumming  <etaoins@gmail.com>
808
809         [BZ #17608]
810         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_TAI.
811
812 2014-11-24  Joseph Myers  <joseph@codesourcery.com>
813
814         [BZ #17633]
815         * stdio-common/perror.c (perror): Call __fileno instead of fileno.
816         * conform/Makefile (test-xfail-ISO/stdio.h/linknamespace): Remove
817         variable.
818         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
819         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
820
821 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
822
823         * string/strncpy.c (strncpy): Improve performance by using memset.
824
825 2014-11-24  Wilco Dijkstra  <wdijkstr@arm.com>
826
827         * string/strcpy.c (strcpy):
828         Improve performance by using strlen and memcpy.
829
830 2014-11-24  Leonhard Holz  <leonhard.holz@web.de>
831
832         * string/strcoll_l.c (get_next_seq): __always_inline.
833         * string/strcoll_l.c (do_compare): __always_inline.
834
835 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
836
837         * include/bits/stdlib-float.h: Use IS_IN only if _ISOMAC is
838         defined.
839         * include/mqueue.h: Likewise.
840         * include/stdlib.h: Likewise.
841
842         * stdlib/isomac.c (fmt): Replace NOT_IN_libc with IN_MODULE.
843         (get_null_defines): Adjust.
844         * sunrpc/Makefile: Adjust comment.
845         * Makerules (CPPFLAGS-nonlib): Remove NOT_IN_libc.
846         * elf/Makefile (CPPFLAGS-sotruss-lib): Likewise.
847         (CFLAGS-interp.c): Likewise.
848         (CFLAGS-ldconfig.c): Likewise.
849         (CPPFLAGS-.os): Likewise.
850         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
851         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
852         * extra-modules.mk (extra-modules.mk): Likewise.
853         * iconv/Makefile (CPPFLAGS-iconvprogs): Likewise.
854         * locale/Makefile (CPPFLAGS-locale_programs): Likewise.
855         * malloc/Makefile (CPPFLAGS-memusagestat): Likewise.
856         * nscd/Makefile (CPPFLAGS-nscd): Likewise.
857         * nss/Makefile (CPPFLAGS-nss_test1): Likewise.
858         * stdlib/Makefile (CFLAGS-tst-putenvmod.c): Likewise.
859         * sysdeps/gnu/Makefile ($(objpfx)errlist-compat.c): Likewise.
860         * sysdeps/unix/sysv/linux/Makefile (CPPFLAGS-lddlibc4): Likewise.
861         * iconvdata/Makefile (CPPFLAGS): Likewise.
862         (cpp-srcs-left): Add libof for all iconvdata routines.
863         * bits/stdio-lock.h: Replace NOT_IN_libc with IS_IN.
864         * include/assert.h: Likewise.
865         * include/ctype.h: Likewise.
866         * include/errno.h: Likewise.
867         * include/libc-symbols.h: Likewise.
868         * include/math.h: Likewise.
869         * include/netdb.h: Likewise.
870         * include/resolv.h: Likewise.
871         * include/stdio.h: Likewise.
872         * include/stdlib.h: Likewise.
873         * include/string.h: Likewise.
874         * include/sys/stat.h: Likewise.
875         * include/wctype.h: Likewise.
876         * intl/l10nflist.c: Likewise.
877         * libidn/idn-stub.c: Likewise.
878         * libio/libioP.h: Likewise.
879         * nptl/libc_multiple_threads.c: Likewise.
880         * nptl/pthreadP.h: Likewise.
881         * posix/regex_internal.h: Likewise.
882         * resolv/res_hconf.c: Likewise.
883         * sysdeps/arm/armv7/multiarch/memcpy.S: Likewise.
884         * sysdeps/arm/memmove.S: Likewise.
885         * sysdeps/arm/sysdep.h: Likewise.
886         * sysdeps/generic/_itoa.h: Likewise.
887         * sysdeps/generic/symbol-hacks.h: Likewise.
888         * sysdeps/gnu/errlist.awk: Likewise.
889         * sysdeps/gnu/errlist.c: Likewise.
890         * sysdeps/i386/i586/memcpy.S: Likewise.
891         * sysdeps/i386/i586/memset.S: Likewise.
892         * sysdeps/i386/i686/memcpy.S: Likewise.
893         * sysdeps/i386/i686/memmove.S: Likewise.
894         * sysdeps/i386/i686/mempcpy.S: Likewise.
895         * sysdeps/i386/i686/memset.S: Likewise.
896         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
897         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
898         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: Likewise.
899         * sysdeps/i386/i686/multiarch/memchr-sse2.S: Likewise.
900         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
901         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
902         * sysdeps/i386/i686/multiarch/memcmp-ssse3.S: Likewise.
903         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
904         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
905         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
906         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
907         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
908         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
909         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
910         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
911         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
912         * sysdeps/i386/i686/multiarch/memrchr-c.c: Likewise.
913         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: Likewise.
914         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: Likewise.
915         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
916         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
917         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
918         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
919         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
920         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
921         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
922         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: Likewise.
923         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
924         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Likewise.
925         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
926         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
927         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
928         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
929         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
930         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
931         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
932         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
933         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
934         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
935         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
936         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
937         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
938         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
939         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
940         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
941         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
942         * sysdeps/i386/i686/multiarch/wcschr-c.c: Likewise.
943         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: Likewise.
944         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
945         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
946         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
947         * sysdeps/i386/i686/multiarch/wcscpy-c.c: Likewise.
948         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Likewise.
949         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
950         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
951         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: Likewise.
952         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
953         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: Likewise.
954         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: Likewise.
955         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
956         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
957         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
958         * sysdeps/ia64/fpu/libm-symbols.h: Likewise.
959         * sysdeps/nptl/bits/libc-lock.h: Likewise.
960         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
961         * sysdeps/nptl/bits/stdio-lock.h: Likewise.
962         * sysdeps/posix/closedir.c: Likewise.
963         * sysdeps/posix/opendir.c: Likewise.
964         * sysdeps/posix/readdir.c: Likewise.
965         * sysdeps/posix/rewinddir.c: Likewise.
966         * sysdeps/powerpc/novmx-sigjmp.c: Likewise.
967         * sysdeps/powerpc/powerpc32/__longjmp.S: Likewise.
968         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
969         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
970         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
971         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Likewise.
972         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: Likewise.
973         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: Likewise.
974         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: Likewise.
975         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: Likewise.
976         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: Likewise.
977         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: Likewise.
978         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: Likewise.
979         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: Likewise.
980         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: Likewise.
981         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: Likewise.
982         * sysdeps/powerpc/powerpc32/power4/multiarch/memset.c: Likewise.
983         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: Likewise.
984         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: Likewise.
985         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: Likewise.
986         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr.c: Likewise.
987         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: Likewise.
988         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: Likewise.
989         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: Likewise.
990         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: Likewise.
991         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: Likewise.
992         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: Likewise.
993         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: Likewise.
994         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: Likewise.
995         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: Likewise.
996         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: Likewise.
997         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: Likewise.
998         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: Likewise.
999         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: Likewise.
1000         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: Likewise.
1001         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: Likewise.
1002         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
1003         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1004         * sysdeps/powerpc/powerpc64/__longjmp.S: Likewise.
1005         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: Likewise.
1006         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: Likewise.
1007         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: Likewise.
1008         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: Likewise.
1009         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: Likewise.
1010         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: Likewise.
1011         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Likewise.
1012         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: Likewise.
1013         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: Likewise.
1014         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: Likewise.
1015         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: Likewise.
1016         * sysdeps/powerpc/powerpc64/multiarch/memset.c: Likewise.
1017         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: Likewise.
1018         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.S: Likewise.
1019         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c: Likewise.
1020         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: Likewise.
1021         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: Likewise.
1022         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: Likewise.
1023         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: Likewise.
1024         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: Likewise.
1025         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: Likewise.
1026         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: Likewise.
1027         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: Likewise.
1028         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.S: Likewise.
1029         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c: Likewise.
1030         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: Likewise.
1031         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: Likewise.
1032         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: Likewise.
1033         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: Likewise.
1034         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: Likewise.
1035         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: Likewise.
1036         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: Likewise.
1037         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: Likewise.
1038         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: Likewise.
1039         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: Likewise.
1040         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: Likewise.
1041         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: Likewise.
1042         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: Likewise.
1043         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: Likewise.
1044         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: Likewise.
1045         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: Likewise.
1046         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c: Likewise.
1047         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
1048         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c: Likewise.
1049         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c: Likewise.
1050         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
1051         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Likewise.
1052         * sysdeps/s390/s390-32/multiarch/memcmp.S: Likewise.
1053         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
1054         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
1055         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
1056         * sysdeps/s390/s390-64/multiarch/memcmp.S: Likewise.
1057         * sysdeps/s390/s390-64/multiarch/memcpy.S: Likewise.
1058         * sysdeps/s390/s390-64/multiarch/memset.S: Likewise.
1059         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
1060         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
1061         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: Likewise.
1062         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
1063         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
1064         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Likewise.
1065         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: Likewise.
1066         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
1067         * sysdeps/unix/alpha/sysdep.S: Likewise.
1068         * sysdeps/unix/alpha/sysdep.h: Likewise.
1069         * sysdeps/unix/make-syscalls.sh: Likewise.
1070         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
1071         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
1072         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1073         * sysdeps/unix/sysv/linux/alpha/vfork.S: Likewise.
1074         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1075         * sysdeps/unix/sysv/linux/arm/sysdep.h: Likewise.
1076         * sysdeps/unix/sysv/linux/getpid.c: Likewise.
1077         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
1078         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
1079         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Likewise.
1080         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1081         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
1082         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1083         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1084         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1085         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
1086         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1087         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1088         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
1089         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
1090         * sysdeps/unix/sysv/linux/m68k/sysdep.h: Likewise.
1091         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
1092         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
1093         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
1094         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1095         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
1096         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
1097         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
1098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
1099         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: Likewise.
1100         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1101         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1102         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
1103         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
1104         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
1105         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1106         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
1107         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1108         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
1109         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: Likewise.
1110         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
1111         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1112         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
1113         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1114         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1115         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
1116         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
1117         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
1118         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
1119         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1120         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
1121         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
1122         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
1123         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
1124         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Likewise.
1125         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1126         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1127         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1128         * sysdeps/wordsize-32/symbol-hacks.h: Likewise.
1129         * sysdeps/x86_64/memcpy.S: Likewise.
1130         * sysdeps/x86_64/memmove.c: Likewise.
1131         * sysdeps/x86_64/memset.S: Likewise.
1132         * sysdeps/x86_64/multiarch/init-arch.h: Likewise.
1133         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1134         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1135         * sysdeps/x86_64/multiarch/memcmp.S: Likewise.
1136         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: Likewise.
1137         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
1138         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1139         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
1140         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
1141         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
1142         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
1143         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
1144         * sysdeps/x86_64/multiarch/memset-avx2.S: Likewise.
1145         * sysdeps/x86_64/multiarch/memset.S: Likewise.
1146         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
1147         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Likewise.
1148         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
1149         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
1150         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
1151         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
1152         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Likewise.
1153         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1154         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
1155         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
1156         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
1157         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
1158         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
1159         * sysdeps/x86_64/multiarch/wcscpy-c.c: Likewise.
1160         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
1161         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
1162         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Likewise.
1163         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
1164         * sysdeps/x86_64/strcmp.S: Likewise.
1165
1166         * extra-lib.mk (CPPFLAGS-$(lib)): Remove IS_IN_$(lib).
1167
1168         * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
1169         * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
1170         * elf/rtld-Rules: Likewise.
1171         * elf/setup-vdso.h: Likewise.
1172         * include/assert.h: Likewise.
1173         * include/bits/stdlib-float.h: Likewise.
1174         * include/errno.h: Likewise.
1175         * include/sys/stat.h: Likewise.
1176         * include/unistd.h: Likewise.
1177         * sysdeps/aarch64/setjmp.S: Likewise.
1178         * sysdeps/alpha/setjmp.S: Likewise.
1179         * sysdeps/arm/__longjmp.S: Likewise.
1180         * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
1181         * sysdeps/arm/setjmp.S: Likewise.
1182         * sysdeps/arm/sysdep.h: Likewise.
1183         * sysdeps/generic/_itoa.h: Likewise.
1184         * sysdeps/generic/dl-sysdep.h: Likewise.
1185         * sysdeps/generic/ldsodefs.h: Likewise.
1186         * sysdeps/i386/dl-tls.h: Likewise.
1187         * sysdeps/i386/setjmp.S: Likewise.
1188         * sysdeps/m68k/setjmp.c: Likewise.
1189         * sysdeps/mach/hurd/dl-execstack.c: Likewise.
1190         * sysdeps/mach/hurd/opendir.c: Likewise.
1191         * sysdeps/posix/getcwd.c: Likewise.
1192         * sysdeps/posix/opendir.c: Likewise.
1193         * sysdeps/posix/profil.c: Likewise.
1194         * sysdeps/powerpc/dl-procinfo.h: Likewise.
1195         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
1196         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
1197         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
1198         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
1199         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
1200         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
1201         * sysdeps/s390/dl-tls.h: Likewise.
1202         * sysdeps/s390/s390-32/setjmp.S: Likewise.
1203         * sysdeps/s390/s390-64/setjmp.S: Likewise.
1204         * sysdeps/sh/sh3/setjmp.S: Likewise.
1205         * sysdeps/sh/sh4/setjmp.S: Likewise.
1206         * sysdeps/unix/alpha/sysdep.h: Likewise.
1207         * sysdeps/unix/arm/sysdep.S: Likewise.
1208         * sysdeps/unix/i386/sysdep.S: Likewise.
1209         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
1210         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
1211         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
1212         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
1213         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1214         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
1215         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
1216         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1217         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
1218         * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
1219         * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
1220         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
1221         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
1222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
1223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
1224         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
1225         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
1226         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
1227         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
1228         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
1229         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
1230         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
1231         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
1232         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
1233         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
1234         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
1235         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
1236         * sysdeps/unix/x86_64/sysdep.S: Likewise.
1237         * sysdeps/x86_64/setjmp.S: Likewise.
1238
1239         * include/math.h: Use IS_IN instead of IS_IN_libm.
1240         * sysdeps/alpha/fpu/s_copysign.c: Likewise.
1241         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
1242         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
1243         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: Likewise.
1244         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
1245         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
1246         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
1247         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
1248         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
1249         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
1250         * sysdeps/ieee754/ldbl-64-128/s_copysignl.c: Likewise.
1251         * sysdeps/ieee754/ldbl-64-128/s_finitel.c: Likewise.
1252         * sysdeps/ieee754/ldbl-64-128/s_frexpl.c: Likewise.
1253         * sysdeps/ieee754/ldbl-64-128/s_isinfl.c: Likewise.
1254         * sysdeps/ieee754/ldbl-64-128/s_isnanl.c: Likewise.
1255         * sysdeps/ieee754/ldbl-64-128/s_modfl.c: Likewise.
1256         * sysdeps/ieee754/ldbl-64-128/s_scalbnl.c: Likewise.
1257         * sysdeps/ieee754/ldbl-64-128/s_signbitl.c: Likewise.
1258         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: Likewise.
1259         * sysdeps/ieee754/ldbl-opt/s_copysign.c: Likewise.
1260         * sysdeps/ieee754/ldbl-opt/s_finite.c: Likewise.
1261         * sysdeps/ieee754/ldbl-opt/s_frexp.c: Likewise.
1262         * sysdeps/ieee754/ldbl-opt/s_isinf.c: Likewise.
1263         * sysdeps/ieee754/ldbl-opt/s_isnan.c: Likewise.
1264         * sysdeps/ieee754/ldbl-opt/s_ldexp.c: Likewise.
1265         * sysdeps/ieee754/ldbl-opt/s_ldexpl.c: Likewise.
1266         * sysdeps/ieee754/ldbl-opt/s_modf.c: Likewise.
1267         * sysdeps/ieee754/ldbl-opt/s_scalbln.c: Likewise.
1268         * sysdeps/ieee754/ldbl-opt/s_scalbn.c: Likewise.
1269         * sysdeps/powerpc/power5+/fpu/s_modf.c: Likewise.
1270         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Likewise.
1271         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
1272         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
1273         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c:
1274         Likewise.
1275         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c:
1276         Likewise.
1277         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c:
1278         Likewise.
1279         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c:
1280         Likewise.
1281         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c:
1282         Likewise.
1283         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
1284         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Likewise.
1285         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
1286         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
1287         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
1288         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
1289         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: Likewise.
1290         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: Likewise.
1291         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: Likewise.
1292         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: Likewise.
1293         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: Likewise.
1294         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Likewise.
1295         * sysdeps/powerpc/powerpc64/fpu/s_copysignl.S: Likewise.
1296         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
1297         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
1298         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1299         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
1300         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
1301         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1302         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
1303         * sysdeps/powerpc/powerpc64/power7/fpu/s_isnan.S: Likewise.
1304         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: Likewise.
1305         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: Likewise.
1306         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: Likewise.
1307         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: Likewise.
1308         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
1309         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S: Likewise.
1310
1311         * nptl/lowlevellock.c: Use IS_IN instead of IS_IN_libpthread.
1312         * nptl/pthreadP.h: Likewise.
1313         * nptl_db/structs.def: Likewise.
1314         * sysdeps/arm/sysdep.h: Likewise.
1315         * sysdeps/nptl/bits/libc-lock.h: Likewise.
1316         * sysdeps/nptl/bits/libc-lockP.h: Likewise.
1317         * sysdeps/sparc/sparc32/lowlevellock.c: Likewise.
1318         * sysdeps/unix/alpha/sysdep.h: Likewise.
1319         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
1320         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
1321         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1322         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1323         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
1324         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
1325         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
1326         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1327         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1328         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
1329         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
1330         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
1331         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1332         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
1333         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: Likewise.
1334         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: Likewise.
1335         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1336         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1337         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1338         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
1339         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
1340         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
1341         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
1342         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
1343         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: Likewise.
1344         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1345
1346         * include/mqueue.h: Use IS_IN instead of IS_IN_librt.
1347         * nptl/pthreadP.h: Likewise.
1348         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: Likewise.
1349         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: Likewise.
1350         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: Likewise.
1351         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Likewise.
1352         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Likewise.
1353         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: Likewise.
1354         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
1355         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: Likewise.
1356         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: Likewise.
1357         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: Likewise.
1358         * sysdeps/unix/sysv/linux/mips/sysdep-cancel.h: Likewise.
1359         * sysdeps/unix/sysv/linux/not-cancel.h: Likewise.
1360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
1361         Likewise.
1362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
1363         Likewise.
1364         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Likewise.
1365         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Likewise.
1366         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Likewise.
1367         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Likewise.
1368         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Likewise.
1369         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: Likewise.
1370         * sysdeps/unix/sysv/linux/tile/waitpid.S: Likewise.
1371         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Likewise.
1372
1373         * dlfcn/dladdr.c: Use IS_IN.
1374         * dlfcn/dladdr1.c: Likewise.
1375         * dlfcn/dlclose.c: Likewise.
1376         * dlfcn/dlerror.c: Likewise.
1377         * dlfcn/dlinfo.c: Likewise.
1378         * dlfcn/dlmopen.c: Likewise.
1379         * dlfcn/dlopen.c: Likewise.
1380         * dlfcn/dlsym.c: Likewise.
1381         * dlfcn/dlvsym.c: Likewise.
1382
1383         * include/ifaddrs.h: Use IS_IN.
1384         * inet/check_pf.c: Likewise.
1385         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
1386         * nscd/Makefile (CPPFLAGS-nscd): Remove IS_IN_nscd.
1387
1388         * elf/Makefile (CFLAGS-ldconfig.c): Remove definition of
1389         IS_IN_ldconfig.
1390         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.c: Use IS_IN.
1391         * sysdeps/unix/sysv/linux/x86_64/dl-procinfo.h: Likewise.
1392
1393         * include/shlib-compat.h [!NOT_IN_libc]: Remove.
1394         * nss/nss_files/files-parse.c (IS_IN_libc): Replace with
1395         IS_IN (libc).
1396
1397         * elf/Makefile (libof-sotruss-lib): Set as extramodules.
1398
1399         * elf/Makefile (CPPFLAGS-.os): Remove IN_LIB.
1400         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
1401         * extra-lib.mk (CPPFLAGS-$(lib)): Likewise.
1402         * include/libc-symbols.h (IS_IN_LIB): New macro.
1403         * include/errno.h: Use IS_IN_LIB instead of IN_LIB.
1404         * include/netdb.h: Likewise.
1405         * include/stap-probe.h: Remove all uses of IN_LIB.
1406
1407         * Makeconfig (module-cppflags-real): Define MODULE_NAME
1408         instead of IN_MODULE.
1409         * include/libc-symbols.h (IN_MODULE): Define using
1410         MODULE_NAME.
1411         (PASTE_NAME, PASTE_NAME1): New macros.
1412         * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead
1413         of IN_LIB.
1414         (STAP_PROBE_ASM): Likewise.
1415
1416 2014-11-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1417
1418         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Call
1419         __mach_init in dlopened libc.
1420
1421 2014-11-22  Mike Frysinger  <vapier@gentoo.org>
1422
1423         * sysdeps/arm/preconfigure.ac: Delete EABI check.
1424         * sysdeps/arm/preconfigure: Regenerate.
1425
1426 2014-11-21  Roland McGrath  <roland@hack.frob.com>
1427
1428         * nptl/pthread_create.c (__pthread_create_2_1): Set
1429         ATTR_FLAG_POLICY_SET and/or ATTR_FLAG_SCHED_SET in PD->flags
1430         when copying values from IATTR into PD.
1431
1432 2014-11-21  Will Newton  <will.newton@linaro.org>
1433             Andrew Pinski  <andrew.pinski@caviumnetworks.com>
1434
1435         * sysdeps/aarch64/dl-machine.h (elf_machine_load_address):
1436         Refactor inline-asm.  Also add comment.
1437
1438         * sysdeps/aarch64/bits/link.h (la_aarch64_gnu_pltenter): Use
1439         ElfW macro instead of hardcoded Elf64 types.
1440         (la_aarch64_gnu_pltenter): Likewise.
1441         * sysdeps/aarch64/dl-machine.h
1442         (elf_machine_runtime_setup): Use ElfW(Addr).
1443
1444         * elf/elf.h (R_AARCH64_P32_ABS32, R_AARCH64_P32_COPY,
1445         R_AARCH64_P32_GLOB_DAT, R_AARCH64_P32_JUMP_SLOT,
1446         R_AARCH64_P32_RELATIVE, R_AARCH64_P32_TLS_DTPMOD,
1447         R_AARCH64_P32_TLS_DTPREL, R_AARCH64_P32_TLS_TPREL,
1448         R_AARCH64_P32_TLSDESC, R_AARCH64_P32_IRELATIVE): Define.
1449         (R_AARCH64_TLS_DTPMOD64): Rename to ..
1450         (R_AARCH64_TLS_DTPMOD): This.
1451         (R_AARCH64_TLS_DTPREL64): Rename to ...
1452         (R_AARCH64_TLS_DTPREL): This.
1453         (R_AARCH64_TLS_TPREL64): Rename to ...
1454         (R_AARCH64_TLS_TPREL): This.
1455         * sysdeps/aarch64/dl-machine.h (elf_machine_type_class): Update
1456         R_AARCH64_TLS_DTPMOD64, R_AARCH64_TLS_DTPREL64, and
1457         R_AARCH64_TLS_TPREL64.
1458         (elf_machine_rela): Likewise.
1459
1460 2014-11-21  Torvald Riegel  <triegel@redhat.com>
1461
1462         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS): Fix value
1463         by setting it to 0.  64b atomics are not supported currently.
1464
1465 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
1466
1467         [BZ #16469]
1468         * resolv/res_query.c (__libc_res_nsearch): Skip leading dot in
1469         search domain names.
1470
1471 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
1472
1473         [BZ #16469]
1474         * NEWS: Update.
1475         * resolv/res_query.c (__libc_res_nquerydomain): Retain
1476         trailing dot.
1477         * posix/tst-getaddrinfo5.c: New.
1478         * posix/Makefile (tests): Add it.
1479
1480 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
1481
1482         [BZ #14498]
1483         * NEWS: Fixed.
1484         * nss/nss_db/db-XXX.c (_nss_db_get##name##_r): Update hidx
1485         after parsing line but before break_if_match.
1486         * nss/nss_files/files-service (DB_LOOKUP): Don't "continue;"
1487         if there is a protocol mismatch.
1488
1489 2014-11-21  Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
1490
1491         * manual/sysinfo.texi (addmntent): It is actually MT-Safe,
1492         because the potential race is on the user-supplied stream.
1493
1494 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
1495
1496         * sysdeps/posix/ctermid.c (ctermid): Return a pointer to a
1497         string literal if not passed a buffer.
1498         * manual/job.texi (ctermid): Update reasoning, note deviation
1499         from posix, suggest mtasurace when not passed a buffer, for
1500         future non-preliminary safety notes.
1501
1502 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
1503
1504         * manual/users.texi (cuserid): Fix MT-Safety note for the case
1505         of not passing it a buffer.
1506         Reported by Peng Haitao.
1507
1508 2014-11-21  Alexandre Oliva <aoliva@redhat.com>
1509
1510         * manual/Makefile ($(objpfx)stamp-summary): Require
1511         check-safety.sh to pass.
1512         * manual/check-safety.sh: Wish for verification that every
1513         @deftypefn and @deftypefun is followed by a @safety remark.
1514
1515 2014-11-20  Roland McGrath  <roland@hack.frob.com>
1516
1517         * nptl/unwind.c (unwind_cleanup): Use __libc_fatal.
1518
1519         * nptl/pthread_setcanceltype.c [!SIGCANCEL]: Return ENOTSUP early for
1520         PTHREAD_CANCEL_ASYNCHRONOUS.
1521         * nptl/pthread_cancel.c [!SIGCANCEL]: Just abort rather than trying to
1522         send SIGCANCEL.
1523
1524         * nptl/default-sched.h: New file.
1525         * sysdeps/unix/sysv/linux/default-sched.h: New file.
1526         * nptl/pthread_create.c: Include it.
1527         (__pthread_create_2_1): Use collect_default_sched instead of making
1528         Linux syscalls here directly.
1529
1530 2014-11-20  Torvald Riegel  <triegel@redhat.com>
1531
1532         * nptl/pthread_once.c (clear_once_control, __pthread_once_slow,
1533         __pthread_once): Use C11 atomics.
1534
1535 2014-11-20  Torvald Riegel  <triegel@redhat.com>
1536
1537         * csu/tst-atomic.c (do_test): Add tests for C11-like atomics.
1538
1539 2014-11-20  Torvald Riegel  <triegel@redhat.com>
1540
1541         * include/atomic.h (__atomic_link_error, __atomic_check_size,
1542         atomic_thread_fence_acquire, atomic_thread_fence_release,
1543         atomic_thread_fence_seq_cst, atomic_load_relaxed,
1544         atomic_load_acquire, atomic_store_relaxed, atomic_store_release,
1545         atomic_compare_exchange_weak_relaxed,
1546         atomic_compare_exchange_weak_acquire,
1547         atomic_compare_exchange_weak_release,
1548         atomic_exchange_acquire, atomic_exchange_release,
1549         atomic_fetch_add_relaxed, atomic_fetch_add_acquire,
1550         atomic_fetch_add_release, atomic_fetch_add_acq_rel,
1551         atomic_fetch_and_acquire,
1552         atomic_fetch_or_relaxed, atomic_fetch_or_acquire): New.
1553
1554 2014-11-20  Torvald Riegel  <triegel@redhat.com>
1555
1556         * sysdeps/aarch64/bits/atomic.h (__HAVE_64B_ATOMICS,
1557         USE_ATOMIC_COMPILER_BUILTINS): Define.
1558         * sysdeps/alpha/bits/atomic.h (__HAVE_64B_ATOMICS,
1559         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1560         * sysdeps/arm/bits/atomic.h (__HAVE_64B_ATOMICS,
1561         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1562         * sysdeps/i386/i486/bits/atomic.h (__HAVE_64B_ATOMICS,
1563         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1564         * sysdeps/ia64/bits/atomic.h (__HAVE_64B_ATOMICS,
1565         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1566         * sysdeps/m68k/coldfire/bits/atomic.h (__HAVE_64B_ATOMICS,
1567         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1568         * sysdeps/m68k/m680x0/m68020/bits/atomic.h (__HAVE_64B_ATOMICS,
1569         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1570         * sysdeps/microblaze/bits/atomic.h (__HAVE_64B_ATOMICS,
1571         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1572         * sysdeps/mips/bits/atomic.h (__HAVE_64B_ATOMICS,
1573         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1574         * sysdeps/powerpc/powerpc32/bits/atomic.h (__HAVE_64B_ATOMICS,
1575         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1576         * sysdeps/powerpc/powerpc64/bits/atomic.h (__HAVE_64B_ATOMICS,
1577         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1578         * sysdeps/s390/bits/atomic.h (__HAVE_64B_ATOMICS,
1579         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1580         * sysdeps/sparc/sparc32/bits/atomic.h (__HAVE_64B_ATOMICS,
1581         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1582         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (__HAVE_64B_ATOMICS,
1583         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1584         * sysdeps/sparc/sparc64/bits/atomic.h (__HAVE_64B_ATOMICS,
1585         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1586         * sysdeps/tile/tilegx/bits/atomic.h (__HAVE_64B_ATOMICS,
1587         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1588         * sysdeps/tile/tilepro/bits/atomic.h (__HAVE_64B_ATOMICS,
1589         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1590         * sysdeps/unix/sysv/linux/hppa/bits/atomic.h (__HAVE_64B_ATOMICS,
1591         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1592         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h
1593         (__HAVE_64B_ATOMICS, USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1594         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (__HAVE_64B_ATOMICS,
1595         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1596         * sysdeps/x86_64/bits/atomic.h (__HAVE_64B_ATOMICS,
1597         USE_ATOMIC_COMPILER_BUILTINS): Likewise.
1598
1599 2014-11-19  Roland McGrath  <roland@hack.frob.com>
1600
1601         * nptl/pthread_create.c (__pthread_create_2_1): Don't try to validate
1602         the sched_priority value here.  It was already checked when the user
1603         called pthread_attr_setschedparam.
1604
1605         * nptl/tst-bad-schedattr.c: New file.
1606         * nptl/Makefile (tests): Add it.
1607
1608 2014-11-19  Carlos O'Donell  <carlos@redhat.com>
1609             Florian Weimer  <fweimer@redhat.com>
1610             Joseph Myers  <joseph@codesourcery.com>
1611             Adam Conrad  <adconrad@0c3.net>
1612             Andreas Schwab  <schwab@suse.de>
1613             Brooks  <bmoses@google.com>
1614
1615         [BZ #17625]
1616         * wordexp-test.c (__dso_handle): Add prototype.
1617         (__register_atfork): Likewise.
1618         (__app_register_atfork): New function.
1619         (registered_forks): New global.
1620         (register_fork): New function.
1621         (test_case): Add 3 new tests for WRDE_CMDSUB.
1622         (main): Call __app_register_atfork.
1623         (testit): If WRDE_NOCMD set registered_forks to zero, run test, and if
1624         fork count is non-zero fail the test.
1625         * posix/wordexp.c (exec_comm): Return WRDE_CMDSUB if WRDE_NOCMD flag
1626         is set.
1627         (parse_dollars): Remove check for WRDE_NOCMD.
1628         (parse_dquote): Likewise.
1629
1630 2014-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1631
1632         * Makeconfig (built-modules): List non-library modules to be
1633         built.
1634         (module-cppflags): Include libc-modules.h for
1635         everything except shlib-versions.v.i.
1636         (CPPFLAGS): Use it.
1637         (before-compile): Add libc-modules.h.
1638         ($(common-objpfx)libc-modules.h,
1639         $(common-objpfx)libc-modules.stmp): New targets.
1640         (common-generated): Add libc-modules.h and libc-modules.stmp.
1641         ($(common-objpfx)Versions.v.i): Depend on libc-modules.h.
1642         * include/libc-symbols.h: Don't include libc-modules.h.
1643         * include/libc-modules.h: Remove file.
1644         * scripts/gen-libc-modules.awk: New script to generate
1645         libc-modules.h.
1646         * sysdeps/unix/Makefile ($(common-objpfx)sysd-syscalls):
1647         Depend on libc-modules.stmp.
1648
1649         * include/shlib-compat.h (_SHLIB_COMPAT): Use IS_IN.
1650
1651         * Makeconfig (in-module): Get value of libof set for the
1652         translation unit.
1653         (CPPFLAGS): Use $(in-module).
1654         * Makerules: Don't suffix routine names for nonlib.
1655         * include/libc-modules.h: New file.
1656         * include/libc-symbols.h: Include libc-modules.h
1657         (IS_IN): New macro to replace IS_IN_* macros.
1658         * elf/Makefile: Set libof-* for each routine.
1659         * elf/rtld-Rules: Likewise.
1660         * extra-modules.mk: Likewise.
1661         * iconv/Makefile: Likewise.
1662         * iconvdata/Makefile: Likewise.
1663         * locale/Makefile: Likewise.
1664         * malloc/Makefile: Likewise.
1665         * nss/Makefile: Likewise.
1666         * sysdeps/gnu/Makefile: Likewise.
1667         * sysdeps/ieee754/ldbl-opt/Makefile: Likewise.
1668         * sysdeps/unix/sysv/linux/Makefile: Likewise.
1669         * sysdeps/s390/s390-64/Makefile: Likewise.
1670         * nscd/Makefile: Set libof-* for each routine.  Set CFLAGS and
1671         CPPFLAGS for nscd instead of nonlib.
1672
1673 2014-11-18  Roland McGrath  <roland@hack.frob.com>
1674
1675         * nptl/createthread.c: New file.
1676
1677         * nptl/createthread.c: Moved ...
1678         * sysdeps/unix/sysv/linux/createthread.c: ... here.
1679
1680         * nptl/createthread.c: Add proper top-line comment.
1681         (do_clone): Folded into ...
1682         (create_thread): ... here.  Take new arguments STOPPED_START and
1683         THREAD_RAN.  Always set PD->stopped_start to something here.  Don't
1684         increment __nptl_threads, do event-reporting logic, do
1685         CHECK_THREAD_SYSINFO, or set THREAD_SELF->header.multiple_threads
1686         here.  Set *THREAD_RAN after ARCH_CLONE call succeeds.  Don't do any
1687         resource cleanup if sched_setaffinity or sched_setscheduler fails,
1688         just send SIGCANCEL.
1689         * nptl/pthread_create.c: Forward-declare create_thread before
1690         including createthread.c.
1691         (start_thread): Use new macro START_THREAD_DEFN to replace defining
1692         declaration, and new macro START_THREAD_SELF to replace argument.
1693         Remove return statement.
1694         (report_thread_creation): New function.
1695         (__pthread_create_2_1): Use it.  Do TD_CREATE reporting,
1696         synchronization logic, and __nptl_nthreads increment here, around
1697         calling create_thread.  Do CHECK_THREAD_SYSINFO and initialize
1698         PD->parent_cancelhandling here, before create_thread.  When
1699         create_thread fails, do __nptl_nthreads decrement, setxid_futex wake,
1700         __deallocate_stack, and ENOMEM translation here.
1701
1702 2014-11-18  Joseph Myers  <joseph@codesourcery.com>
1703
1704         [BZ #17616]
1705         * sysdeps/ieee754/dbl-64/mpa.c (mpone): Rename to __mpone.
1706         (mptwo): Rename to __mptwo.
1707         (__inv): Use __mptwo instead of mptwo.
1708         * sysdeps/ieee754/dbl-64/mpa.h (mpone): Rename to __mpone.
1709         (mptwo): Rename to __mptwo.
1710         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __mpone instead
1711         of mpone and __mptwo instead of mptwo.
1712         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Use __mpone
1713         instead of mpone.
1714         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
1715         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Likewise.
1716         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use __mpone instead
1717         of mpone and __mptwo instead of mptwo.
1718         (__mpranred): Use __mpone instead of mpone.
1719         * conform/Makefile (test-xfail-ISO/math.h/linknamespace): Remove
1720         variable.
1721         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
1722         (test-xfail-ISO99/math.h/linknamespace): Likewise.
1723         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
1724         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
1725         (test-xfail-ISO11/math.h/linknamespace): Likewise.
1726         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
1727         (test-xfail-XPG3/math.h/linknamespace): Likewise.
1728         (test-xfail-XPG4/math.h/linknamespace): Likewise.
1729         (test-xfail-POSIX/math.h/linknamespace): Likewise.
1730         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
1731         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
1732         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
1733         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
1734         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
1735         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
1736         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
1737         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
1738         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
1739         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
1740
1741 2014-11-18  Tom de Vries  <tom@codesoucery.com>
1742
1743         * manual/signal.texi (Primitives Interrupted by Signals): In section,
1744         replace BSD Handler xref with BSD Signal Handling.
1745
1746 2014-11-17  Richard Henderson  <rth@redhat.com>
1747
1748         * sysdeps/alpha/soft-fp/local-soft-fp.h (_FP_UNPACK_RAW_2): Remove.
1749         (_FP_PACK_RAW_2): Remove.
1750         (AXP_DECL_RETURN_Q): Rename from FP_DECL_RETURN, use _FP_UNION_Q.
1751         (AXP_RETURN_Q): Rename from FP_RETURN, use _FP_UNION_Q.
1752         (AXP_UNPACK_RAW_Q, AXP_UNPACK_SEMIRAW_Q, AXP_UNPACK_Q): New.
1753         (AXP_PACK_RAW_Q, AXP_PACK_SEMIRAW_Q, AXP_PACK_Q): New.
1754         * sysdeps/alpha/soft-fp/ots_add.c (_OtsAddX): Update to match.
1755         * sysdeps/alpha/soft-fp/ots_cmp.c (internal_equality): Likewise.
1756         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Likewise.
1757         * sysdeps/alpha/soft-fp/ots_cvtqux.c (_OtsCvtQUX): Likewise.
1758         * sysdeps/alpha/soft-fp/ots_cvtqx.c (_OtsCvtQX): Likewise.
1759         * sysdeps/alpha/soft-fp/ots_cvttx.c (_OtsConvertFloatTX): Likewise.
1760         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Likewise.
1761         * sysdeps/alpha/soft-fp/ots_cvtxt.c (_OtsConvertFloatXT): Likewise.
1762         * sysdeps/alpha/soft-fp/ots_div.c (_OtsDivX): Likewise.
1763         * sysdeps/alpha/soft-fp/ots_mul.c (_OtsMulX): Likewise.
1764         * sysdeps/alpha/soft-fp/ots_nintxq.c (_OtsNintXQ): Likewise.
1765         * sysdeps/alpha/soft-fp/ots_sub.c (_OtsSubX): Likewise.
1766
1767 2014-11-14  Roland McGrath  <roland@hack.frob.com>
1768
1769         * signal/signal.h [__USE_MISC]
1770         (struct sigvec): Remove type.
1771         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): Remove macros.
1772         (sigvec): Remove declaration.
1773         * sysdeps/posix/sigvec.c: Moved ...
1774         * signal/sigvec.c: ... here, replacing old file.
1775         (struct sigvec): New type, copied from old signal.h definition.
1776         (SV_ONSTACK, SV_INTERRUPT, SV_RESETHAND): New macros, likewise copied.
1777         (__sigvec): Convert definition to prototype.
1778         (sigvec): Replace weak_alias with compat_symbol.
1779         * signal/Versions (libc: GLIBC_2.21): New version set.
1780         * include/signal.h: Remove __sigvec declaration.
1781         * sysdeps/unix/bsd/sigvec.c: Remove file.
1782         * sysdeps/unix/bsd/syscalls.list: Remove sigvec.
1783         * manual/signal.texi (BSD Handler): Remove subsection.
1784         Move siginterrupt up to ...
1785         (BSD Signal Handling): ... here.  Mark it as XPG rather than BSD.
1786         (Blocking in BSD): Fold subsection into its parent.
1787         * NEWS: Mention sigvec removal.
1788
1789 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
1790
1791         * sysdeps/x86_64/fpu/dla.h [__FMA4__ && __GNUC_PREREQ (4, 6)]
1792         (DLA_FMS): Make definition conditional only on [__FMA4__].
1793         [__FMA4__ && !__GNUC_PREREQ (4, 6)] (DLA_FMS): Remove conditional
1794         definition.
1795
1796         * sysdeps/arm/sysdep.h [PROF && __GNUC_PREREQ(4,4)] (CALL_MCOUNT):
1797         Make definition conditional only on [PROF].
1798         [PROF && !__GNUC_PREREQ(4,4)] (CALL_MCOUNT): Remove conditional
1799         definition.
1800         [__GNUC_PREREQ(4,4)] (mcount): Make definition unconditional.
1801         [!__GNUC_PREREQ(4,4)] (mcount): Remove conditional definition.
1802
1803         * signal/signal.h (__sigpause): Only declare if [__USE_XOPEN &&
1804         !__GNUC__].
1805         * include/signal.h (__sigpause): Move declaration above call to
1806         libc_hidden_proto.
1807         * conform/Makefile (test-xfail-ISO/signal.h/linknamespace): Remove
1808         variable.
1809         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
1810         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
1811
1812 2014-11-14  David S. Miller  <davem@davemloft.net>
1813
1814         * sysdeps/sparc/sparc64/rtld-memcpy.c (NO_MEMPCPY_STPCPY_REDIRECT):
1815         Define before including <string/memcpy.c> and <string/mempcpy.c>.
1816
1817 2014-11-14  Joseph Myers  <joseph@codesourcery.com>
1818
1819         * configure.ac (libc_cv_compiler_ok): Require GCC 4.6 or later.
1820         * configure: Regenerated.
1821         * manual/install.texi (Tools for Compilation): Document a
1822         requirement of GCC 4.6 or later and that GCC 4.9 is the newest
1823         compiler verified to work.
1824         * INSTALL: Regenerated.
1825
1826         * include/string.h [NO_MEMPCPY_STPCPY_REDIRECT] (mempcpy): Do not
1827         redeclare with asm name.
1828         [NO_MEMPCPY_STPCPY_REDIRECT] (stpcpy): Likewise.
1829         * string/mempcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Define before
1830         including <string.h>.
1831         * string/stpcpy.c (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
1832         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c
1833         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
1834         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c
1835         [!NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
1836         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c
1837         [SHARED && !NOT_IN_libc] (NO_MEMPCPY_STPCPY_REDIRECT): Likewise.
1838
1839 2014-11-13  Joseph Myers  <joseph@codesourcery.com>
1840
1841         * stdlib/strtol.c (__strtol): Use prototype definition.
1842
1843         [BZ #17594]
1844         * stdlib/strtol.c (SYM__): New macro.
1845         (SYM__1): Likewise.
1846         (__strtol): Likewise.
1847         (strtol): Rename to __strtol and define as weak alias of
1848         __strtol.  Use libc_hidden_weak.
1849
1850 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1851
1852         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START):
1853         Use numbered labels in inline assembly.
1854
1855 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1856
1857         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp):
1858         Add setjmp LIBC_PROBE.
1859         * sysdeps/s390/s390-64/setjmp.S (__sigsetjmp):
1860         Likewise.
1861         * sysdeps/s390/s390-32/__longjmp.c (__longjmp):
1862         Add longjmp, longjmp_target LIBC_PROBE.
1863         * sysdeps/s390/s390-64/__longjmp.c (__longjmp):
1864         Likewise.
1865
1866 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1867
1868         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
1869         Gate the definition of refsym additionally with !RTLD_BOOTSTRAP
1870         to get rid of unused variable warning.
1871
1872 2014-11-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
1873
1874         * sysdeps/s390/s390-32/backtrace.c (__backtrace):
1875         Check for unwind_backtrace ==  NULL only in SHARED case.
1876         (__backchain_backtrace): Compile only in SHARED case.
1877         * sysdeps/s390/s390-64/backtrace.c (__backtrace):
1878         Likewise.
1879         (__backchain_backtrace): Declare as static.
1880
1881 2014-11-12  Roland McGrath  <roland@hack.frob.com>
1882
1883         * nptl/createthread.c [!TLS_MULTIPLE_THREADS_IN_TCB]
1884         (__libc_multiple_threads_ptr): Variable moved ...
1885         * nptl/nptl-init.c [!TLS_MULTIPLE_THREADS_IN_TCB]: ... here.
1886
1887 2014-11-12  Joseph Myers  <joseph@codesourcery.com>
1888
1889         * conform/GlibcConform.pm: New file.
1890         * conform/conformtest.pl: Use GlibcConform module.
1891         * conform/linknamespace.pl: New file.
1892         * conform/list-header-symbols.pl: Likewise.
1893         * conform/Makefile (linknamespace-symlists-base): New variable.
1894         (linknamespace-symlists-tests): Likewise.
1895         (linknamespace-header-base): Likewise.
1896         (linknamespace-header-tests): Likewise.
1897         (tests-special): Add new tests.
1898         ($(linknamespace-symlists-tests)): New rule.
1899         (linknamespace-libs): New variable.
1900         ($(objpfx)symlist-stdlibs): New rule.
1901         ($(linknamespace-header-tests)): Likewise.
1902         (test-xfail-XPG3/varargs.h/linknamespace): New variable.
1903         (test-xfail-XPG4/varargs.h/linknamespace): Likewise.
1904         (test-xfail-UNIX98/varargs.h/linknamespace): Likewise.
1905         (test-xfail-XPG4/ndbm.h/linknamespace): Likewise.
1906         (test-xfail-UNIX98/ndbm.h/linknamespace): Likewise.
1907         (test-xfail-XOPEN2K/ndbm.h/linknamespace): Likewise.
1908         (test-xfail-XOPEN2K8/ndbm.h/linknamespace): Likewise.
1909         (test-xfail-ISO/math.h/linknamespace): Likewise.
1910         (test-xfail-ISO/signal.h/linknamespace): Likewise.
1911         (test-xfail-ISO/stdio.h/linknamespace): Likewise.
1912         (test-xfail-ISO/time.h/linknamespace): Likewise.
1913         (test-xfail-ISO99/complex.h/linknamespace): Likewise.
1914         (test-xfail-ISO99/ctype.h/linknamespace): Likewise.
1915         (test-xfail-ISO99/math.h/linknamespace): Likewise.
1916         (test-xfail-ISO99/signal.h/linknamespace): Likewise.
1917         (test-xfail-ISO99/stdio.h/linknamespace): Likewise.
1918         (test-xfail-ISO99/tgmath.h/linknamespace): Likewise.
1919         (test-xfail-ISO11/complex.h/linknamespace): Likewise.
1920         (test-xfail-ISO11/ctype.h/linknamespace): Likewise.
1921         (test-xfail-ISO11/math.h/linknamespace): Likewise.
1922         (test-xfail-ISO11/signal.h/linknamespace): Likewise.
1923         (test-xfail-ISO11/stdio.h/linknamespace): Likewise.
1924         (test-xfail-ISO11/tgmath.h/linknamespace): Likewise.
1925         (test-xfail-XPG3/ctype.h/linknamespace): Likewise.
1926         (test-xfail-XPG3/fnmatch.h/linknamespace): Likewise.
1927         (test-xfail-XPG3/glob.h/linknamespace): Likewise.
1928         (test-xfail-XPG3/math.h/linknamespace): Likewise.
1929         (test-xfail-XPG3/regex.h/linknamespace): Likewise.
1930         (test-xfail-XPG3/search.h/linknamespace): Likewise.
1931         (test-xfail-XPG3/stdio.h/linknamespace): Likewise.
1932         (test-xfail-XPG3/time.h/linknamespace): Likewise.
1933         (test-xfail-XPG3/unistd.h/linknamespace): Likewise.
1934         (test-xfail-XPG3/wordexp.h/linknamespace): Likewise.
1935         (test-xfail-XPG4/ctype.h/linknamespace): Likewise.
1936         (test-xfail-XPG4/fmtmsg.h/linknamespace): Likewise.
1937         (test-xfail-XPG4/fnmatch.h/linknamespace): Likewise.
1938         (test-xfail-XPG4/glob.h/linknamespace): Likewise.
1939         (test-xfail-XPG4/grp.h/linknamespace): Likewise.
1940         (test-xfail-XPG4/libgen.h/linknamespace): Likewise.
1941         (test-xfail-XPG4/math.h/linknamespace): Likewise.
1942         (test-xfail-XPG4/netdb.h/linknamespace): Likewise.
1943         (test-xfail-XPG4/pwd.h/linknamespace): Likewise.
1944         (test-xfail-XPG4/regex.h/linknamespace): Likewise.
1945         (test-xfail-XPG4/search.h/linknamespace): Likewise.
1946         (test-xfail-XPG4/stdio.h/linknamespace): Likewise.
1947         (test-xfail-XPG4/stdlib.h/linknamespace): Likewise.
1948         (test-xfail-XPG4/sys/mman.h/linknamespace): Likewise.
1949         (test-xfail-XPG4/sys/statvfs.h/linknamespace): Likewise.
1950         (test-xfail-XPG4/syslog.h/linknamespace): Likewise.
1951         (test-xfail-XPG4/time.h/linknamespace): Likewise.
1952         (test-xfail-XPG4/unistd.h/linknamespace): Likewise.
1953         (test-xfail-XPG4/wordexp.h/linknamespace): Likewise.
1954         (test-xfail-POSIX/aio.h/linknamespace): Likewise.
1955         (test-xfail-POSIX/fnmatch.h/linknamespace): Likewise.
1956         (test-xfail-POSIX/glob.h/linknamespace): Likewise.
1957         (test-xfail-POSIX/math.h/linknamespace): Likewise.
1958         (test-xfail-POSIX/mqueue.h/linknamespace): Likewise.
1959         (test-xfail-POSIX/pthread.h/linknamespace): Likewise.
1960         (test-xfail-POSIX/regex.h/linknamespace): Likewise.
1961         (test-xfail-POSIX/sched.h/linknamespace): Likewise.
1962         (test-xfail-POSIX/semaphore.h/linknamespace): Likewise.
1963         (test-xfail-POSIX/sys/mman.h/linknamespace): Likewise.
1964         (test-xfail-POSIX/time.h/linknamespace): Likewise.
1965         (test-xfail-POSIX/unistd.h/linknamespace): Likewise.
1966         (test-xfail-POSIX/wordexp.h/linknamespace): Likewise.
1967         (test-xfail-UNIX98/aio.h/linknamespace): Likewise.
1968         (test-xfail-UNIX98/ctype.h/linknamespace): Likewise.
1969         (test-xfail-UNIX98/fmtmsg.h/linknamespace): Likewise.
1970         (test-xfail-UNIX98/fnmatch.h/linknamespace): Likewise.
1971         (test-xfail-UNIX98/glob.h/linknamespace): Likewise.
1972         (test-xfail-UNIX98/grp.h/linknamespace): Likewise.
1973         (test-xfail-UNIX98/libgen.h/linknamespace): Likewise.
1974         (test-xfail-UNIX98/math.h/linknamespace): Likewise.
1975         (test-xfail-UNIX98/mqueue.h/linknamespace): Likewise.
1976         (test-xfail-UNIX98/netdb.h/linknamespace): Likewise.
1977         (test-xfail-UNIX98/pthread.h/linknamespace): Likewise.
1978         (test-xfail-UNIX98/pwd.h/linknamespace): Likewise.
1979         (test-xfail-UNIX98/regex.h/linknamespace): Likewise.
1980         (test-xfail-UNIX98/sched.h/linknamespace): Likewise.
1981         (test-xfail-UNIX98/search.h/linknamespace): Likewise.
1982         (test-xfail-UNIX98/semaphore.h/linknamespace): Likewise.
1983         (test-xfail-UNIX98/stdio.h/linknamespace): Likewise.
1984         (test-xfail-UNIX98/stdlib.h/linknamespace): Likewise.
1985         (test-xfail-UNIX98/sys/mman.h/linknamespace): Likewise.
1986         (test-xfail-UNIX98/sys/statvfs.h/linknamespace): Likewise.
1987         (test-xfail-UNIX98/syslog.h/linknamespace): Likewise.
1988         (test-xfail-UNIX98/time.h/linknamespace): Likewise.
1989         (test-xfail-UNIX98/unistd.h/linknamespace): Likewise.
1990         (test-xfail-UNIX98/wchar.h/linknamespace): Likewise.
1991         (test-xfail-UNIX98/wordexp.h/linknamespace): Likewise.
1992         (test-xfail-XOPEN2K/aio.h/linknamespace): Likewise.
1993         (test-xfail-XOPEN2K/complex.h/linknamespace): Likewise.
1994         (test-xfail-XOPEN2K/fcntl.h/linknamespace): Likewise.
1995         (test-xfail-XOPEN2K/fmtmsg.h/linknamespace): Likewise.
1996         (test-xfail-XOPEN2K/fnmatch.h/linknamespace): Likewise.
1997         (test-xfail-XOPEN2K/glob.h/linknamespace): Likewise.
1998         (test-xfail-XOPEN2K/grp.h/linknamespace): Likewise.
1999         (test-xfail-XOPEN2K/libgen.h/linknamespace): Likewise.
2000         (test-xfail-XOPEN2K/math.h/linknamespace): Likewise.
2001         (test-xfail-XOPEN2K/mqueue.h/linknamespace): Likewise.
2002         (test-xfail-XOPEN2K/net/if.h/linknamespace): Likewise.
2003         (test-xfail-XOPEN2K/netdb.h/linknamespace): Likewise.
2004         (test-xfail-XOPEN2K/pthread.h/linknamespace): Likewise.
2005         (test-xfail-XOPEN2K/pwd.h/linknamespace): Likewise.
2006         (test-xfail-XOPEN2K/regex.h/linknamespace): Likewise.
2007         (test-xfail-XOPEN2K/search.h/linknamespace): Likewise.
2008         (test-xfail-XOPEN2K/semaphore.h/linknamespace): Likewise.
2009         (test-xfail-XOPEN2K/signal.h/linknamespace): Likewise.
2010         (test-xfail-XOPEN2K/spawn.h/linknamespace): Likewise.
2011         (test-xfail-XOPEN2K/stdlib.h/linknamespace): Likewise.
2012         (test-xfail-XOPEN2K/sys/mman.h/linknamespace): Likewise.
2013         (test-xfail-XOPEN2K/sys/statvfs.h/linknamespace): Likewise.
2014         (test-xfail-XOPEN2K/sys/wait.h/linknamespace): Likewise.
2015         (test-xfail-XOPEN2K/syslog.h/linknamespace): Likewise.
2016         (test-xfail-XOPEN2K/tgmath.h/linknamespace): Likewise.
2017         (test-xfail-XOPEN2K/time.h/linknamespace): Likewise.
2018         (test-xfail-XOPEN2K/ucontext.h/linknamespace): Likewise.
2019         (test-xfail-XOPEN2K/unistd.h/linknamespace): Likewise.
2020         (test-xfail-XOPEN2K/wordexp.h/linknamespace): Likewise.
2021         (test-xfail-POSIX2008/aio.h/linknamespace): Likewise.
2022         (test-xfail-POSIX2008/complex.h/linknamespace): Likewise.
2023         (test-xfail-POSIX2008/ctype.h/linknamespace): Likewise.
2024         (test-xfail-POSIX2008/dirent.h/linknamespace): Likewise.
2025         (test-xfail-POSIX2008/fcntl.h/linknamespace): Likewise.
2026         (test-xfail-POSIX2008/grp.h/linknamespace): Likewise.
2027         (test-xfail-POSIX2008/math.h/linknamespace): Likewise.
2028         (test-xfail-POSIX2008/mqueue.h/linknamespace): Likewise.
2029         (test-xfail-POSIX2008/net/if.h/linknamespace): Likewise.
2030         (test-xfail-POSIX2008/netdb.h/linknamespace): Likewise.
2031         (test-xfail-POSIX2008/pthread.h/linknamespace): Likewise.
2032         (test-xfail-POSIX2008/regex.h/linknamespace): Likewise.
2033         (test-xfail-POSIX2008/semaphore.h/linknamespace): Likewise.
2034         (test-xfail-POSIX2008/spawn.h/linknamespace): Likewise.
2035         (test-xfail-POSIX2008/sys/mman.h/linknamespace): Likewise.
2036         (test-xfail-POSIX2008/sys/statvfs.h/linknamespace): Likewise.
2037         (test-xfail-POSIX2008/tgmath.h/linknamespace): Likewise.
2038         (test-xfail-POSIX2008/time.h/linknamespace): Likewise.
2039         (test-xfail-POSIX2008/unistd.h/linknamespace): Likewise.
2040         (test-xfail-XOPEN2K8/aio.h/linknamespace): Likewise.
2041         (test-xfail-XOPEN2K8/complex.h/linknamespace): Likewise.
2042         (test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
2043         (test-xfail-XOPEN2K8/fcntl.h/linknamespace): Likewise.
2044         (test-xfail-XOPEN2K8/fmtmsg.h/linknamespace): Likewise.
2045         (test-xfail-XOPEN2K8/grp.h/linknamespace): Likewise.
2046         (test-xfail-XOPEN2K8/libgen.h/linknamespace): Likewise.
2047         (test-xfail-XOPEN2K8/math.h/linknamespace): Likewise.
2048         (test-xfail-XOPEN2K8/mqueue.h/linknamespace): Likewise.
2049         (test-xfail-XOPEN2K8/net/if.h/linknamespace): Likewise.
2050         (test-xfail-XOPEN2K8/netdb.h/linknamespace): Likewise.
2051         (test-xfail-XOPEN2K8/pthread.h/linknamespace): Likewise.
2052         (test-xfail-XOPEN2K8/pwd.h/linknamespace): Likewise.
2053         (test-xfail-XOPEN2K8/regex.h/linknamespace): Likewise.
2054         (test-xfail-XOPEN2K8/search.h/linknamespace): Likewise.
2055         (test-xfail-XOPEN2K8/semaphore.h/linknamespace): Likewise.
2056         (test-xfail-XOPEN2K8/spawn.h/linknamespace): Likewise.
2057         (test-xfail-XOPEN2K8/sys/mman.h/linknamespace): Likewise.
2058         (test-xfail-XOPEN2K8/sys/statvfs.h/linknamespace): Likewise.
2059         (test-xfail-XOPEN2K8/syslog.h/linknamespace): Likewise.
2060         (test-xfail-XOPEN2K8/tgmath.h/linknamespace): Likewise.
2061         (test-xfail-XOPEN2K8/time.h/linknamespace): Likewise.
2062         (test-xfail-XOPEN2K8/unistd.h/linknamespace): Likewise.
2063
2064         [BZ #17589]
2065         * intl/localealias.c [_LIBC] (FGETS): Use __fgets_unlocked instead
2066         of fgets_unlocked.
2067
2068         [BZ #17585]
2069         * string/memmem.c [!_LIBC] (__memmem): Define to memmem.
2070         (memmem): Rename to __memmem and define as weak alias of
2071         __memmem.  Use libc_hidden_weak.
2072         (__memmem): Use libc_hidden_def.
2073         * include/string.h (__memmem): Declare.  Use libc_hidden_proto.
2074         * locale/findlocale.c (valid_locale_name): Use __memmem instead of
2075         memmem.
2076
2077         [BZ #17582]
2078         * libio/iofgets.c [weak_alias && !_IO_MTSAFE_IO]
2079         (__fgets_unlocked): Add alias of _IO_fgets.  Use libc_hidden_def.
2080         * libio/iofgets_u.c (fgets_unlocked): Rename to __fgets_unlocked
2081         and define as weak alias of __fgets_unlocked.  Use
2082         libc_hidden_weak.
2083         (__fgets_unlocked): Use libc_hidden_def.
2084         * include/stdio.h (__fgets_unlocked): Declare.  Use
2085         libc_hidden_proto.
2086         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Use
2087         __fgets_unlocked instead of fgets_unlocked.
2088         * sysdeps/unix/sysv/linux/alpha/getsysstats.c
2089         (GET_NPROCS_CONF_PARSER): Likewise.
2090         * sysdeps/unix/sysv/linux/sparc/getsysstats.c
2091         (GET_NPROCS_CONF_PARSER): Likewise.
2092
2093         [BZ #17574]
2094         * wcsmbs/wmemset.c (wmemset): Rename to __wmemset and define as
2095         weak alias of __wmemset.  Use libc_hidden_weak.
2096         (__wmemset): Use libc_hidden_def.
2097         * include/wchar.h (__wmemset): Declare.  Use libc_hidden_proto.
2098         * stdio-common/printf_fp.c (___printf_fp): Call __wmemset instead
2099         of wmemset.
2100
2101         [BZ #17573]
2102         * include/string.h [NOT_IN_libc || !SHARED] (mempcpy): Declare
2103         with asm name __mempcpy.
2104         [NOT_IN_libc || !SHARED] (stpcpy): Declare with asm name __stpcpy.
2105
2106         [BZ #17572]
2107         * sysdeps/x86_64/rawmemchr.S (rawmemchr): Rename to __rawmemchr
2108         and define as weak alias of __rawmemchr.
2109         (__rawmemchr): Do not define as strong alias of rawmemchr.
2110
2111         [BZ #17571]
2112         * stdlib/msort.c (qsort_r): Rename to __qsort_r and define as weak
2113         alias of __qsort_r.
2114         (qsort): Call __qsort_r instead of qsort_r.
2115         * include/stdlib.h (qsort_r): Do not call libc_hidden_proto.
2116         (__qsort_r): Declare.  Call libc_hidden_proto.
2117         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Call __qsort_r
2118         instead of qsort_r.
2119         * nscd/gai.c (__qsort_r): Define to qsort_r.
2120         * posix/tst-rfc3484.c (__qsort_r): Likewise.
2121         * posix/tst-rfc3484-2.c (__qsort_r): Likewise.
2122         * posix/tst-rfc3484-3.c (__qsort_r): Likewise.
2123
2124         [BZ #17570]
2125         * malloc/malloc.c (malloc_info): Rename to __malloc_info and
2126         define as weak alias of __malloc_info.
2127
2128         [BZ #17584]
2129         * dirent/rewinddir.c (rewinddir): Rename to __rewinddir and define
2130         as weak alias of __rewinddir.  Don't use libc_hidden_def.
2131         (__rewinddir): Use libc_hidden_def.
2132         * sysdeps/mach/hurd/rewinddir.c: Rename to __rewinddir and define
2133         as weak alias of __rewinddir.  Don't use libc_hidden_def.
2134         (__rewinddir): Use libc_hidden_def.
2135         * sysdeps/posix/rewinddir.c: Rename to __rewinddir and define as
2136         weak alias of __rewinddir.  Don't use libc_hidden_def.
2137         (__rewinddir): Use libc_hidden_def.
2138         * include/dirent.h (rewinddir): Don't use libc_hidden_proto.
2139         (__rewinddir): Use libc_hidden_proto.
2140         * sysdeps/posix/getcwd.c [!_LIBC] (__rewinddir): Define to
2141         rewinddir.
2142         (__getcwd): Use __rewinddir instead of rewinddir.
2143
2144         [BZ #17583]
2145         * libio/fileno.c (fileno): Rename to __fileno and define as weak
2146         alias of __fileno.  Use libc_hidden_weak.
2147         (__fileno): Use libc_hidden_def.
2148         [weak_alias] (fileno_unlocked): Define as weak alias of __fileno.
2149         * libio/ftello.c (ftello): Rename to __ftello and define as weak
2150         alias of __ftello.
2151         [__OFF_T_MATCHES_OFF64_T] (ftello64): Define as weak alias of
2152         __ftello.
2153         * libio/iofread.c [weak_alias && !_IO_MTSAFE_IO]
2154         (__fread_unlocked): Define as strong alias of _IO_fread.  Use
2155         libc_hidden_def.
2156         (fread_unlocked): Don't use libc_hidden_ver.
2157         * libio/iofread_u.c (fread_unlocked): Rename to __fread_unlocked
2158         and define as weak alias of __fread_unlocked.  Don't use
2159         libc_hidden_def.
2160         (__fread_unlocked): Use libc_hidden_def.
2161         * include/stdio.h (__fileno): Declare.  Use libc_hidden_proto.
2162         (ftello): Don't use libc_hidden_proto.
2163         (__ftello): Declare.  Use libc_hidden_proto.
2164         (fread_unlocked): Don't use libc_hidden_proto.
2165         (__fread_unlocked): Declare.  Use libc_hidden_proto.
2166         * time/tzfile.c (__tzfile_read): Use __fileno, __fread_unlocked
2167         and __ftello instead of fileno, fread_unlocked and ftello.
2168
2169 2012-11-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
2170
2171         * sysdeps/s390/s390-32/bcopy.S (__bcopy): Use GOT instead of
2172         GOT12.
2173         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_load_address):
2174         Likewise.
2175         (_dl_start_user): Likewise.
2176         * sysdeps/s390/s390-32/setjmp.S (__sigsetjmp): Likewise.
2177
2178 2014-11-12  Carlos O'Donell  <carlos@redhat.com>
2179             Siddhesh Poyarekar  <siddhesh@redhat.com>
2180
2181         * sysdeps/s390/s390-32/dl-machine.h (_dl_start_user):
2182         Move argv and envp down instead of moving argc up.
2183         * sysdeps/s390/s390-32/dl-sysdep.h: New file.
2184
2185 2014-11-12  Leonhard Holz  <leonhard.holz@web.de>
2186
2187         [BZ #17506]
2188         * test-skeleton.c (main): Return successful if one of
2189         EXPECTED_SIGNAL or EXPECTED_STATUS is met when both given.
2190         * string/tst-strcoll-overflow.c: Define expected status.
2191
2192 2014-11-12  Tatiana Udalova  <t.udalova@samsung.com>
2193
2194         [BZ #17475]
2195         * locale/iso-639.def: Define Bhili and Tulu language codes.
2196
2197 2014-11-11  Alan Hayward  <alan.hayward@arm.com>
2198
2199         * sysdeps/unix/sysv/linux/aarch64/bits/ipc.h: New file.
2200
2201 2014-11-10  Renlin Li  <Renlin.Li@arm.com>
2202
2203         [BZ #17555]
2204         * sysdeps/aarch64/start.S (_start): Delete x29 overwritten assignment.
2205
2206 2014-11-10  Andrew Senkevich  <andrew.n.senkevich@gmail.com>
2207
2208         * configure.ac: Updated check of minimal required version to
2209         2.22.
2210         * manual/install.texi (Tools for Compilation): Updated version
2211         number.
2212         * configure: Regenerated.
2213         * INSTALL: Likewise.
2214
2215 2014-11-07  Andreas Schwab  <schwab@linux-m68k.org>
2216
2217         * sysdeps/unix/sysv/linux/m68k/localplt.data (ld.so): Remove
2218         __tls_get_addr.
2219
2220 2014-11-07  Joseph Myers  <joseph@codesourcery.com>
2221
2222         * include/sys/wait.h (__libc_waitpid): Remove declaration.
2223         * posix/waitpid.c (__libc_waitpid): Rename to __waitpid.
2224         (__waitpid): Don't define as alias.  Use libc_hidden_def not
2225         libc_hidden_weak.
2226         (waitpid): Define as alias of __waitpid.
2227         * sysdeps/unix/bsd/waitpid.c (__libc_waitpid): Rename to
2228         __waitpid.
2229         (__waitpid): Don't define as alias.  Use libc_hidden_def not
2230         libc_hidden_weak.
2231         (waitpid): Define as alias of __waitpid.
2232         * sysdeps/unix/sysv/linux/i386/syscalls.list (waitpid): Remove
2233         __libc_waitpid alias.
2234         * sysdeps/unix/sysv/linux/m68k/syscalls.list (waitpid): Likewise.
2235         * sysdeps/unix/sysv/linux/powerpc/syscalls.list (waitpid):
2236         Likewise.
2237         * sysdeps/unix/sysv/linux/sh/syscalls.list (waitpid): Likewise.
2238         * sysdeps/unix/sysv/linux/sparc/syscalls.list (waitpid): Likewise.
2239         * sysdeps/unix/sysv/linux/tile/waitpid.S (__libc_waitpid): Remove
2240         alias.
2241         * sysdeps/unix/sysv/linux/waitpid.c (__libc_waitpid): Rename to
2242         __waitpid.
2243         (__waitpid): Don't define as alias.  Use libc_hidden_def not
2244         libc_hidden_weak.
2245         (waitpid): Define as alias of __waitpid.
2246
2247 2014-11-06  Carlos O'Donell  <carlos@redhat.com>
2248
2249         * manual/llio.texi: Add comment that write safety has been
2250         fixed in Linux.
2251
2252         * elf/Makefile (all-built-dso): Add $(common-objpfx)elf/ld.so.
2253         (localplt-build-dso): Add elf/ld.so.
2254         * sysdeps/unix/sysv/linux/i386/localplt.data: Add ___tls_get_addr
2255         i.e. 3 underscore version, __libc_memalign, malloc, calloc, realloc,
2256         and free for ld.so.
2257         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: Add
2258         __libc_memalign, malloc, calloc, realloc, and free for ld.so.
2259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data:
2260         Likewise.
2261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
2262         Likewise.
2263         * sysdeps/unix/sysv/linux/s390/localplt.data: Likewise.
2264         * sysdeps/generic/localplt.data: Add __tls_get_addr i.e. 2 underscore
2265         version, __libc_memalign, malloc, calloc, realloc and free for ld.so.
2266         * sysdeps/unix/sysv/linux/aarch64/localplt.data: Likewise.
2267         * sysdeps/unix/sysv/linux/arm/localplt.data: Likewise.
2268         * sysdeps/unix/sysv/linux/alpha/localplt.data: Likewise.
2269         * sysdeps/unix/sysv/linux/ia64/localplt.data: Likewise.
2270         * sysdeps/unix/sysv/linux/m68k/localplt.data: Likewise.
2271         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Likewise.
2272         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: Likewise.
2273         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: Likewise.
2274
2275 2014-11-05  Joseph Myers  <joseph@codesourcery.com>
2276
2277         [BZ #14132]
2278         * include/libc-symbols.h (INTUSE): Remove macro.
2279         (INTDEF): Likewise.
2280         (INTVARDEF): Likewise.
2281         (_INTVARDEF): Likewise.
2282         (INTDEF2): Likewise.
2283         (INTVARDEF2): Likewise.
2284         * elf/rtld.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Use
2285         rtld_hidden_def instead of INTVARDEF.
2286         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]
2287         (_dl_starting_up_internal): Remove declaration.
2288         (_dl_starting_up): Use rtld_hidden_proto.
2289         * elf/dl-init.c [!HAVE_INLINED_SYSCALLS] (_dl_starting_up): Remove
2290         declaration.
2291         [!HAVE_INLINED_SYSCALLS] (_dl_starting_up_internal): Likewise.
2292         (_dl_init) [!HAVE_INLINED_SYSCALLS]: Don't use INTUSE with
2293         _dl_starting_up.
2294         * elf/dl-writev.h (_dl_writev): Likewise.
2295         * sysdeps/powerpc/powerpc64/dl-machine.h [!HAVE_INLINED_SYSCALLS]
2296         (DL_STARTING_UP_DEF): Use __GI__dl_starting_up instead of
2297         _dl_starting_up_internal.
2298
2299 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2300
2301         * stdio-common/tst-fmemopen.c (do_test): Refactor to use
2302         test-skeleton.c.
2303
2304 2014-11-05  Will Newton  <will.newton@linaro.org>
2305
2306         * benchtests/Makefile: (bench-malloc): Add malloc thread
2307         scalability benchmark.
2308         * benchtests/bench-malloc-threads.c: New file.
2309
2310 2014-11-05  Richard Earnshaw  <rearnsha@arm.com>
2311
2312         * sysdeps/aarch64/strchrnul.S: New file.
2313
2314 2014-11-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2315
2316         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Simplify
2317         definition.
2318         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
2319         Likwise.
2320         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
2321         Likewise.
2322         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
2323         Likewise.
2324         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
2325         Likewise.
2326         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
2327         Likewise.
2328
2329 2014-11-05  Arjun Shankar  <arjun.is@lostca.se>
2330
2331         * catgets/test-gencat.c: Use test-skeleton.c.
2332         * catgets/tst-catgets.c: Likewise.
2333         * csu/tst-empty.c: Likewise.
2334         * elf/tst-audit2.c: Likewise.
2335         * elf/tst-global1.c: Likewise.
2336         * elf/tst-pathopt.c: Likewise.
2337         * elf/tst-piemod1.c: Likewise.
2338         * elf/tst-tls10.c: Likewise.
2339         * elf/tst-tls11.c: Likewise.
2340         * elf/tst-tls12.c: Likewise.
2341         * gnulib/tst-gcc.c: Likewise.
2342         * iconvdata/tst-e2big.c: Likewise.
2343         * iconvdata/tst-loading.c: Likewise.
2344         * iconv/tst-iconv1.c: Likewise.
2345         * iconv/tst-iconv2.c: Likewise.
2346         * inet/test-inet6_opt.c: Likewise.
2347         * inet/tst-gethnm.c: Likewise.
2348         * inet/tst-network.c: Likewise.
2349         * inet/tst-ntoa.c: Likewise.
2350         * intl/tst-codeset.c: Likewise.
2351         * intl/tst-gettext2.c: Likewise.
2352         * intl/tst-gettext3.c: Likewise.
2353         * intl/tst-ngettext.c: Likewise.
2354         * intl/tst-translit.c: Likewise.
2355         * io/test-stat.c: Likewise.
2356         * libio/test-fmemopen.c: Likewise.
2357         * libio/tst-freopen.c: Likewise.
2358         * libio/tst-sscanf.c: Likewise.
2359         * libio/tst-ungetwc1.c: Likewise.
2360         * libio/tst-ungetwc2.c: Likewise.
2361         * libio/tst-widetext.c: Likewise.
2362         * localedata/tst-ctype.c: Likewise.
2363         * localedata/tst-digits.c: Likewise.
2364         * localedata/tst-leaks.c: Likewise.
2365         * localedata/tst-mbswcs1.c: Likewise.
2366         * localedata/tst-mbswcs2.c: Likewise.
2367         * localedata/tst-mbswcs3.c: Likewise.
2368         * localedata/tst-mbswcs4.c: Likewise.
2369         * localedata/tst-mbswcs5.c: Likewise.
2370         * localedata/tst-setlocale.c: Likewise.
2371         * localedata/tst-trans.c: Likewise.
2372         * localedata/tst-wctype.c: Likewise.
2373         * localedata/tst-xlocale1.c: Likewise.
2374         * login/tst-grantpt.c: Likewise.
2375         * malloc/tst-calloc.c: Likewise.
2376         * malloc/tst-malloc.c: Likewise.
2377         * malloc/tst-mallocstate.c: Likewise.
2378         * malloc/tst-mcheck.c: Likewise.
2379         * malloc/tst-mtrace.c: Likewise.
2380         * malloc/tst-obstack.c: Likewise.
2381         * math/atest-exp2.c: Likewise.
2382         * math/atest-exp.c: Likewise.
2383         * math/atest-sincos.c: Likewise.
2384         * math/test-matherr.c: Likewise.
2385         * math/test-misc.c: Likewise.
2386         * math/test-powl.c: Likewise.
2387         * math/tst-definitions.c: Likewise.
2388         * misc/tst-dirname.c: Likewise.
2389         * misc/tst-efgcvt.c: Likewise.
2390         * misc/tst-fdset.c: Likewise.
2391         * misc/tst-hsearch.c: Likewise.
2392         * misc/tst-mntent2.c: Likewise.
2393         * nptl/tst-sem7.c: Likewise.
2394         * nptl/tst-sem8.c: Likewise.
2395         * nptl/tst-sem9.c: Likewise.
2396         * nss/test-netdb.c: Likewise.
2397         * posix/tst-fnmatch.c: Likewise.
2398         * posix/tst-getlogin.c: Likewise.
2399         * posix/tst-gnuglob.c: Likewise.
2400         * posix/tst-mmap.c: Likewise.
2401         * pwd/tst-getpw.c: Likewise.
2402         * resolv/tst-inet_ntop.c: Likewise.
2403         * rt/tst-timer.c: Likewise.
2404         * stdio-common/test-fseek.c: Likewise.
2405         * stdio-common/test-popen.c: Likewise.
2406         * stdio-common/test-vfprintf.c: Likewise.
2407         * stdio-common/tst-cookie.c: Likewise.
2408         * stdio-common/tst-fileno.c: Likewise.
2409         * stdio-common/tst-gets.c: Likewise.
2410         * stdio-common/tst-obprintf.c: Likewise.
2411         * stdio-common/tst-perror.c: Likewise.
2412         * stdio-common/tst-sprintf2.c: Likewise.
2413         * stdio-common/tst-sprintf3.c: Likewise.
2414         * stdio-common/tst-sprintf.c: Likewise.
2415         * stdio-common/tst-swprintf.c: Likewise.
2416         * stdio-common/tst-tmpnam.c: Likewise.
2417         * stdio-common/tst-unbputc.c: Likewise.
2418         * stdio-common/tst-wc-printf.c: Likewise.
2419         * stdlib/tst-environ.c: Likewise.
2420         * stdlib/tst-fmtmsg.c: Likewise.
2421         * stdlib/tst-limits.c: Likewise.
2422         * stdlib/tst-rand48-2.c: Likewise.
2423         * stdlib/tst-rand48.c: Likewise.
2424         * stdlib/tst-random2.c: Likewise.
2425         * stdlib/tst-random.c: Likewise.
2426         * stdlib/tst-strtol.c: Likewise.
2427         * stdlib/tst-strtoll.c: Likewise.
2428         * stdlib/tst-tls-atexit.c: Likewise.
2429         * stdlib/tst-xpg-basename.c: Likewise.
2430         * string/test-ffs.c: Likewise.
2431         * string/tst-bswap.c: Likewise.
2432         * string/tst-inlcall.c: Likewise.
2433         * string/tst-strtok.c: Likewise.
2434         * string/tst-strxfrm.c: Likewise.
2435         * sysdeps/x86_64/tst-audit10.c: Likewise.
2436         * sysdeps/x86_64/tst-audit3.c: Likewise.
2437         * sysdeps/x86_64/tst-audit4.c: Likewise.
2438         * sysdeps/x86_64/tst-audit5.c: Likewise.
2439         * time/tst-ftime_l.c: Likewise.
2440         * time/tst-getdate.c: Likewise.
2441         * time/tst-mktime3.c: Likewise.
2442         * time/tst-mktime.c: Likewise.
2443         * time/tst-posixtz.c: Likewise.
2444         * time/tst-strptime2.c: Likewise.
2445         * time/tst-strptime3.c: Likewise.
2446         * wcsmbs/tst-btowc.c: Likewise.
2447         * wcsmbs/tst-mbrtowc.c: Likewise.
2448         * wcsmbs/tst-mbsrtowcs.c: Likewise.
2449         * wcsmbs/tst-wchar-h.c: Likewise.
2450         * wcsmbs/tst-wcpncpy.c: Likewise.
2451         * wcsmbs/tst-wcrtomb.c: Likewise.
2452         * wcsmbs/tst-wcsnlen.c: Likewise.
2453         * wcsmbs/tst-wcstof.c: Likewise.
2454
2455 2014-11-04  Joseph Myers  <joseph@codesourcery.com>
2456
2457         [BZ #14132]
2458         * elf/dl-profile.c (_dl_mcount): Use rtld_hidden_def instead of
2459         INTDEF.
2460         * sysdeps/generic/ldsodefs.h (_dl_mcount_internal): Remove
2461         declaration.
2462         (_dl_mcount): Use rtld_hidden_proto.
2463         * elf/dl-runtime.c (_dl_profile_fixup): Don't use INTUSE with
2464         _dl_mcount.
2465         * elf/rtld.c (_rtld_global_ro): Likewise.
2466
2467         [BZ #14132]
2468         * elf/dl-init.c (_dl_init): Don't use INTDEF.
2469         * sysdeps/aarch64/dl-machine.h (RTLD_START): Use _dl_init instead
2470         of _dl_init_internal.
2471         * sysdeps/alpha/dl-machine.h (RTLD_START): Likewise.
2472         * sysdeps/arm/dl-machine.h (RTLD_START): Likewise.
2473         * sysdeps/hppa/dl-machine.h (RTLD_START): Likewise.
2474         * sysdeps/i386/dl-machine.h (RTLD_START): Likewise.
2475         * sysdeps/ia64/dl-machine.h (RTLD_START): Likewise.
2476         * sysdeps/m68k/dl-machine.h (RTLD_START): Likewise.
2477         * sysdeps/microblaze/dl-machine.h (RTLD_START): Likewise.
2478         * sysdeps/mips/dl-machine.h (RTLD_START): Likewise.
2479         * sysdeps/powerpc/powerpc32/dl-start.S (_start): Likewise.
2480         * sysdeps/s390/s390-32/dl-machine.h (RTLD_START): Likewise.
2481         * sysdeps/s390/s390-64/dl-machine.h (RTLD_START): Likewise.
2482         * sysdeps/sh/dl-machine.h (RTLD_START): Likewise.
2483         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
2484         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
2485         * sysdeps/tile/dl-start.S (_start): Likewise.
2486         * sysdeps/x86_64/dl-machine.h (RTLD_START): Likewise.
2487         * sysdeps/x86_64/x32/dl-machine.h (RTLD_START): Likewise.
2488
2489         [BZ #14132]
2490         * sysdeps/generic/ldsodefs.h (_dl_argv): Use rtld_hidden_proto.
2491         [IS_IN_rtld] (_dl_argv_internal): Do not declare.
2492         (rtld_progname): Make macro definition unconditional.
2493         * elf/rtld.c (_dl_argv): Use rtld_hidden_data_def instead of
2494         INTDEF.
2495         (dlmopen_doit): Do not use INTUSE with _dl_argv.
2496         (dl_main): Likewise.
2497         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
2498         * sysdeps/alpha/dl-machine.h (RTLD_START): Use __GI__dl_argv
2499         instead of _dl_argv_internal.
2500         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
2501         __GI__dl_argv instead of INTUSE(_dl_argv).
2502         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Use
2503         __GI__dl_argv instead of _dl_argv_internal.
2504
2505         * soft-fp/op-common.h (_FP_TO_INT_ROUND): New macro.
2506         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_D): New
2507         macro.
2508         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_D): Likewise.
2509         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_E):
2510         New macro.
2511         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_E): Likewise.
2512         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_ROUND_Q): New
2513         macro.
2514         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_ROUND_Q): Likewise.
2515         * soft-fp/single.h (FP_TO_INT_ROUND_S): New macro.
2516
2517 2014-11-04  Andreas Schwab  <schwab@suse.de>
2518
2519         * posix/regex_internal.h: Don't include <locale/elem-hash.h>.
2520
2521 2014-11-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2522
2523         * sysdeps/powerpc/powerpc64/power8/memset.S (MTVSRD_V1_R4): Encode
2524         mtvsrd instruction in binary form.
2525
2526 2014-11-03  Andreas Schwab  <schwab@suse.de>
2527
2528         [BZ #17522]
2529         * libio/wfileops.c (_IO_wdo_write): If the file buffer has room
2530         for less than MB_LEN_MAX use a local buffer of that size.
2531         * libio/tst-fputws.c: New file.
2532         * libio/Makefile (tests): Add tst-fputws.
2533
2534 2014-11-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
2535
2536         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu): fix
2537         the size of the fpu_fr.fpu_dregs[] array.
2538
2539 2014-11-01  Joseph Myers  <joseph@codesourcery.com>
2540
2541         * posix/nanosleep.c (__libc_nanosleep): Rename to __nanosleep.
2542         (__nanosleep): Do not define as alias.
2543         (nanosleep): Define as alias of __nanosleep.
2544         * sysdeps/unix/sysv/linux/syscalls.list (nanosleep): Remove
2545         __libc_nanosleep name.
2546
2547 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
2548
2549         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): Mention need to update
2550         install.texi in comment.
2551
2552 2014-10-31  Torvald Riegel  <triegel@redhat.com>
2553
2554         * sysdeps/powerpc/bits/atomic.h (atomic_write_barrier): Remove and...
2555         * sysdeps/powerpc/powerpc32/bits/atomic.h (atomic_write_barrier):
2556         ... add here and use lwsync or sync ...
2557         * sysdeps/powerpc/powerpc64/bits/atomic.h (atomic_write_barrier):
2558         ... and add here using lwsync.
2559
2560 2014-10-31  Matthew Fortune  <matthew.fortune@imgtec.com>
2561
2562         * elf/dl-machine-reject-phdr.h: New file.
2563         * elf/dl-load.c: #include that.
2564         (open_verify): Call elf_machine_reject_phdr_p and ignore the file
2565         if that returned true.
2566
2567 2014-10-31  Roland McGrath  <roland@hack.frob.com>
2568
2569         [BZ #17496]
2570         * Makerules: Move gnu/lib-names.h generation chunk up, to right after
2571         gen-as-const-headers chunk.  Add a big scare comment after the last
2572         safe place to touch before-compile.
2573
2574 2014-10-31  Joseph Myers  <joseph@codesourcery.com>
2575
2576         * manual/install.texi (Tools for Compilation): Update autoconf
2577         version requirements.
2578         * INSTALL: Regenerated.
2579
2580         * misc/pselect.c [!__pselect] (__libc_pselect): Remove alias.
2581         * sysdeps/unix/sysv/linux/pselect.c [__NR_pselect6]
2582         (__libc_pselect): Likewise.
2583
2584         [BZ #14138]
2585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Remove file.
2586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
2587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
2588         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
2589
2590 2014-10-31  Torvald Riegel  <triegel@redhat.com>
2591
2592         * sysdeps/sparc/sparc32/bits/atomic.h (atomic_write_barrier): Use
2593         correct barrier instruction.
2594         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h (atomic_write_barrier):
2595         Likewise.
2596         * sysdeps/sparc/sparc64/bits/atomic.h (atomic_write_barrier):
2597         Likewise.
2598
2599 2014-10-30  Roland McGrath  <roland@hack.frob.com>
2600
2601         * include/ctype.h: Include <ctype/ctype.h> first thing rather than
2602         after defining inlines.  Instead, just use parens to defeat macro
2603         expansion of __isctype in its declaration.
2604
2605 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
2606
2607         * include/sys/uio.h (__libc_readv): Remove declaration.
2608         (__libc_writev): Likewise.
2609         * misc/readv.c (__libc_readv): Rename to __readv.
2610         (__readv): Do not define as alias.
2611         (readv): Define as alias of __readv.
2612         * misc/writev.c (__libc_writev): Rename to __writev.
2613         (__writev): Do not define as alias.
2614         (writev): Define as alias of __writev.
2615         * sysdeps/posix/readv.c (__libc_readv): Rename to __readv.
2616         (__readv): Do not define as alias.
2617         (readv): Define unconditionally as alias of __readv.
2618         * sysdeps/posix/writev.c (__libc_writev): Rename to __writev.
2619         (__writev): Do not define as alias.
2620         (writev): Define unconditionally as alias of __writev.
2621         * sysdeps/unix/syscalls.list (readv): Do not define __libc_readv
2622         name.
2623         (writev): Do not define __libc_writev name.
2624
2625 2014-10-30  Roland McGrath  <roland@hack.frob.com>
2626
2627         * iconv/iconv_charmap.c (add_bytes): Make IN argument pointer to const.
2628         (convert_charseq): New function, broken out of ...
2629         (use_from_charmap): ... here.  Call it.
2630         (use_to_charmap): Use convert_charseq and free instead of duplicating
2631         its code with a variable-length stack struct.
2632
2633 2014-10-30  Joseph Myers  <joseph@codesourcery.com>
2634
2635         * include/fcntl.h (__libc_creat): Remove declaration.
2636         * io/creat.c (__libc_creat): Rename to creat.
2637         (creat): Do not define as alias.
2638         * sysdeps/unix/sysv/linux/alpha/creat.c (creat64): Define as alias
2639         of creat instead of __libc_creat.
2640         * sysdeps/unix/sysv/linux/generic/creat.c (__libc_creat): Rename
2641         to creat.
2642         (creat): Do not define as alias.
2643         [__WORDSIZE == 64] (creat64): Define as alias of creat instead of
2644         __libc_creat.
2645         * sysdeps/unix/sysv/linux/syscalls.list (creat): Do not define
2646         __libc_creat name.
2647         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list (creat):
2648         Likewise.
2649
2650 2014-10-29  Carlos O'Donell  <carlos@redhat.com>
2651
2652         * manual/llio.texi: Add comments discussing why write() may be
2653         considered MT-unsafe on Linux.
2654
2655 2014-10-28  Carlos O'Donell  <carlos@redhat.com>
2656
2657         * dl-load.c (local_strdup): Remove.
2658         (expand_dynamic_string_token): Use __strdup.
2659         (decompose_rpath): Likewise.
2660         (_dl_map_object): Likewise.
2661
2662 2014-10-28  Joseph Myers  <joseph@codesourcery.com>
2663
2664         [BZ #14132]
2665         * sysdeps/generic/unwind-dw2-fde.c
2666         (__register_frame_info_bases_internal): Do not declare.
2667         (__register_frame_info_table_bases_internal): Likewise.
2668         (__deregister_frame_info_bases_internal): Likewise.
2669         (__register_frame_info_bases): Declare and use hidden_proto before
2670         definition.  Use hidden_def instead of INTDEF.
2671         (__register_frame_info_table_bases): Likewise.
2672         (__deregister_frame_info_bases): Likewise.
2673         (__register_frame_info): Do not use INTUSE.
2674         (__register_frame): Likewise.
2675         (__register_frame_info_table): Likewise.
2676         (__register_frame_table): Likewise.
2677         (__deregister_frame_info): Likewise.
2678         (__deregister_frame): Likewise.
2679
2680 2014-10-27  Gratian Crisan  <gratian.crisan@ni.com>
2681
2682         * sysdeps/unix/sysv/linux/arm/kernel-features.h
2683         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_FUTEX_LOCK_PI): Do
2684         not undefine.
2685         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_REQUEUE_PI):
2686         Likewise.
2687         [__LINUX_KERNEL_VERSION >= 0x030E03] (__ASSUME_SET_ROBUST_LIST):
2688         Likewise.
2689
2690 2014-10-27  Joseph Myers  <joseph@codesourcery.com>
2691
2692         [BZ #14138]
2693         * sysdeps/unix/sysv/linux/arm/setfsgid.c: Remove file.
2694         * sysdeps/unix/sysv/linux/arm/setfsuid.c: Likewise.
2695         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Likewise.
2696         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Likewise.
2697         * sysdeps/unix/sysv/linux/m68k/setfsgid.c: Likewise.
2698         * sysdeps/unix/sysv/linux/m68k/setfsuid.c: Likewise.
2699         * sysdeps/unix/sysv/linux/s390/s390-32/setfsgid.c: Likewise.
2700         * sysdeps/unix/sysv/linux/s390/s390-32/setfsuid.c: Likewise.
2701         * sysdeps/unix/sysv/linux/sh/setfsgid.c: Likewise.
2702         * sysdeps/unix/sysv/linux/sh/setfsuid.c: Likewise.
2703         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsgid.c: Likewise.
2704         * sysdeps/unix/sysv/linux/sparc/sparc32/setfsuid.c: Likewise.
2705         * sysdeps/unix/sysv/linux/arm/syscalls.list (setfsgid): Add
2706         syscall.
2707         (setfsuid): Likewise.
2708         * sysdeps/unix/sysv/linux/i386/syscalls.list (setfsgid): Likewise.
2709         (setfsuid): Likewise.
2710         * sysdeps/unix/sysv/linux/m68k/syscalls.list (setfsgid): Likewise.
2711         (setfsuid): Likewise.
2712         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setfsgid):
2713         Likewise.
2714         (setfsuid): Likewise.
2715         * sysdeps/unix/sysv/linux/sh/syscalls.list (setfsgid): Likewise.
2716         (setfsuid): Likewise.
2717         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (setfsgid):
2718         Likewise.
2719         (setfsuid): Likewise.
2720
2721 2014-10-27  Andreas Schwab  <schwab@suse.de>
2722
2723         [BZ #17501]
2724         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Fix
2725         check for Slow_SSE4_2 feature bit.
2726         * sysdeps/i386/i686/multiarch/strcmp.S (STRCMP): Likewise.
2727         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
2728         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP, __strcascmp):
2729         Likewise.  Fix check for Fast_Unaligned_Load feature bit.
2730
2731 2014-10-24  Roland McGrath  <roland@hack.frob.com>
2732
2733         * configure.ac: Validate compiler version with a empirical test of
2734         __GNUC__ and __GNUC_MINOR__ predefined values, rather than by grepping
2735         $CC -v output.
2736         * configure: Regenerated.
2737
2738         * inet/htons.c (htons): Prototypify.
2739         * inet/htonl.c (htonl): Likewise.
2740
2741 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
2742
2743         * string/strncat.c (strncat): Improve performance by using strlen.
2744
2745 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
2746
2747         * string/strcat.c (strcat): Improve performance by using strlen/strcpy.
2748
2749 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
2750
2751         * sysdeps/aarch64/fpu/fgetexcptflg.c (fegetexceptflag):
2752         Call libc_fetestexcept_aarch64.
2753
2754 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
2755
2756         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept):
2757         Call libc_feholdexcept_aarch64.
2758
2759 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
2760
2761         * sysdeps/aarch64/fpu/fegetround.c (fegetround):
2762         Call get_rounding_mode.
2763
2764 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
2765
2766         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept):
2767         Simplify logic.
2768
2769 2014-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
2770
2771         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept):
2772         Simplify logic.
2773
2774 2014-10-24  Joseph Myers  <joseph@codesourcery.com>
2775
2776         [BZ #14138]
2777         * sysdeps/unix/sysv/linux/arm/getegid.c: Remove file.
2778         * sysdeps/unix/sysv/linux/arm/geteuid.c: Likewise.
2779         * sysdeps/unix/sysv/linux/arm/getgid.c: Likewise.
2780         * sysdeps/unix/sysv/linux/arm/getgroups.c: Likewise.
2781         * sysdeps/unix/sysv/linux/arm/getresgid.c: Likewise.
2782         * sysdeps/unix/sysv/linux/arm/getresuid.c: Likewise.
2783         * sysdeps/unix/sysv/linux/arm/getuid.c: Likewise.
2784         * sysdeps/unix/sysv/linux/i386/getegid.c: Likewise.
2785         * sysdeps/unix/sysv/linux/i386/geteuid.c: Likewise.
2786         * sysdeps/unix/sysv/linux/i386/getgid.c: Likewise.
2787         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
2788         * sysdeps/unix/sysv/linux/i386/getresgid.c: Likewise.
2789         * sysdeps/unix/sysv/linux/i386/getresuid.c: Likewise.
2790         * sysdeps/unix/sysv/linux/i386/getuid.c: Likewise.
2791         * sysdeps/unix/sysv/linux/m68k/getegid.c: Likewise.
2792         * sysdeps/unix/sysv/linux/m68k/geteuid.c: Likewise.
2793         * sysdeps/unix/sysv/linux/m68k/getgid.c: Likewise.
2794         * sysdeps/unix/sysv/linux/m68k/getgroups.c: Likewise.
2795         * sysdeps/unix/sysv/linux/m68k/getresgid.c: Likewise.
2796         * sysdeps/unix/sysv/linux/m68k/getresuid.c: Likewise.
2797         * sysdeps/unix/sysv/linux/m68k/getuid.c: Likewise.
2798         * sysdeps/unix/sysv/linux/s390/s390-32/getegid.c: Likewise.
2799         * sysdeps/unix/sysv/linux/s390/s390-32/geteuid.c: Likewise.
2800         * sysdeps/unix/sysv/linux/s390/s390-32/getgid.c: Likewise.
2801         * sysdeps/unix/sysv/linux/s390/s390-32/getgroups.c: Likewise.
2802         * sysdeps/unix/sysv/linux/s390/s390-32/getresgid.c: Likewise.
2803         * sysdeps/unix/sysv/linux/s390/s390-32/getresuid.c: Likewise.
2804         * sysdeps/unix/sysv/linux/s390/s390-32/getuid.c: Likewise.
2805         * sysdeps/unix/sysv/linux/sh/getegid.c: Likewise.
2806         * sysdeps/unix/sysv/linux/sh/geteuid.c: Likewise.
2807         * sysdeps/unix/sysv/linux/sh/getgid.c: Likewise.
2808         * sysdeps/unix/sysv/linux/sh/getgroups.c: Likewise.
2809         * sysdeps/unix/sysv/linux/sh/getresgid.c: Likewise.
2810         * sysdeps/unix/sysv/linux/sh/getresuid.c: Likewise.
2811         * sysdeps/unix/sysv/linux/sh/getuid.c: Likewise.
2812         * sysdeps/unix/sysv/linux/sparc/sparc32/getegid.c: Likewise.
2813         * sysdeps/unix/sysv/linux/sparc/sparc32/geteuid.c: Likewise.
2814         * sysdeps/unix/sysv/linux/sparc/sparc32/getgid.c: Likewise.
2815         * sysdeps/unix/sysv/linux/sparc/sparc32/getgroups.c: Likewise.
2816         * sysdeps/unix/sysv/linux/sparc/sparc32/getuid.c: Likewise.
2817         * sysdeps/unix/sysv/linux/arm/syscalls.list (getegid): Add
2818         syscall.
2819         (geteuid): Likewise.
2820         (getgid): Likewise.
2821         (getuid): Likewise.
2822         (getresgid): Likewise.
2823         (getresuid): Likewise.
2824         (getgroups): Likewise.
2825         * sysdeps/unix/sysv/linux/i386/syscalls.list (getegid): Likewise.
2826         (geteuid): Likewise.
2827         (getgid): Likewise.
2828         (getuid): Likewise.
2829         (getresgid): Likewise.
2830         (getresuid): Likewise.
2831         (getgroups): Likewise.
2832         * sysdeps/unix/sysv/linux/m68k/syscalls.list (getegid): Likewise.
2833         (geteuid): Likewise.
2834         (getgid): Likewise.
2835         (getuid): Likewise.
2836         (getresgid): Likewise.
2837         (getresuid): Likewise.
2838         (getgroups): Likewise.
2839         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (getegid):
2840         Likewise.
2841         (geteuid): Likewise.
2842         (getgid): Likewise.
2843         (getuid): Likewise.
2844         (getresgid): Likewise.
2845         (getresuid): Likewise.
2846         (getgroups): Likewise.
2847         * sysdeps/unix/sysv/linux/sh/syscalls.list (getegid): Likewise.
2848         (geteuid): Likewise.
2849         (getgid): Likewise.
2850         (getuid): Likewise.
2851         (getresgid): Likewise.
2852         (getresuid): Likewise.
2853         (getgroups): Likewise.
2854         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (getegid):
2855         Likewise.
2856         (geteuid): Likewise.
2857         (getgid): Likewise.
2858         (getuid): Likewise.
2859         (getgroups): Likewise.
2860
2861         [BZ #14138]
2862         * sysdeps/unix/sysv/linux/i386/chown.c: Remove file.
2863         * sysdeps/unix/sysv/linux/i386/fchown.c: Likewise.
2864         * sysdeps/unix/sysv/linux/i386/lchown.c: Likewise.
2865         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
2866         * sysdeps/unix/sysv/linux/s390/s390-32/fchown.c: Remove file.
2867         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Likewise.
2868         * sysdeps/unix/sysv/linux/sh/chown.c: Likewise.
2869         * sysdeps/unix/sysv/linux/sh/fchown.c: Likewise.
2870         * sysdeps/unix/sysv/linux/sh/lchown.c: Likewise.
2871         * sysdeps/unix/sysv/linux/sparc/sparc32/chown.c: Likewise.
2872         * sysdeps/unix/sysv/linux/sparc/sparc32/fchown.c: Likewise.
2873         * sysdeps/unix/sysv/linux/sparc/sparc32/lchown.c: Likewise.
2874         * sysdeps/unix/sysv/linux/s390/s390-32/Versions (GLIBC_2.1): Add
2875         __chown.
2876         * sysdeps/unix/sysv/linux/i386/syscalls.list (chown): Add syscall.
2877         (lchown): Likewise.
2878         (fchown): Likewise.
2879         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (chown):
2880         Likewise.
2881         (lchown): Likewise.
2882         (fchown): Likewise.
2883         * sysdeps/unix/sysv/linux/sh/syscalls.list (chown): Likewise.
2884         (lchown): Likewise.
2885         (fchown): Likewise.
2886         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list (chown):
2887         Likewise.
2888         (lchown): Likewise.
2889         (fchown): Likewise.
2890
2891 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2892
2893         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept):
2894         Simplify logic.
2895
2896 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2897
2898         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
2899         Cleanup logic.
2900
2901 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2902
2903         * sysdeps/aarch64/fpu/fsetexcptflg.c (fsetexceptflag):
2904         Remove unused include.
2905
2906 2014-10-23  Wilco Dijkstra  <wdijkstr@arm.com>
2907
2908         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Remove spaces.
2909         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Remove spaces.
2910         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Remove spaces.
2911         * sysdeps/aarch64/fpu/fraiseexcpt.c (feraiseexcept): Remove spaces.
2912
2913 2014-10-23  Carlos O'Donell  <carlos@systemhalted.org>
2914             Helge Deller <deller@gmx.de>
2915
2916         [BZ #17508]
2917         * sysdeps/unix/sysv/linux/hppa/bits/signum.h: Remove SIGEMT.
2918         Define SIGSTKFLT as 7. Define SIGSYS as 31. Define SIGXCPU as 12.
2919         Remove SIGLOST. Define SIGXFSZ as 30. Define __SIGRTMIN as 32.
2920
2921 2014-10-23  Joseph Myers  <joseph@codesourcery.com>
2922
2923         [BZ #14132]
2924         * sysdeps/powerpc/powerpc32/libgcc-compat.S (__ashldi3_v_glibc20):
2925         Remove macro definition.
2926         (__ashrdi3_v_glibc20): Likewise.
2927         (__lshrdi3_v_glibc20): Likewise.
2928         (__cmpdi2_v_glibc20): Likewise.
2929         (__ucmpdi2_v_glibc20): Likewise.
2930         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixdfdi_v_glibc20): Likewise.
2931         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
2932         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
2933         [!_SOFT_FLOAT && !__NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
2934         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
2935         [!_SOFT_FLOAT && !__NO_FPRS__] (__floatdisf_v_glibc20): Likewise.
2936
2937 2014-10-22  Roland McGrath  <roland@hack.frob.com>
2938
2939         * inet/netgroup.h (struct name_list): Use C99 [] syntax rather than
2940         old GNU extension [0] syntax.
2941         * nscd/nscd_helper.c (open_socket): Use a flexible array member and
2942         alloca rather than an array member with variable length.
2943         * nscd/netgroupcache.c (addgetnetgrentX): Likewise.
2944         * nscd/nscd.c (invalidate_db): New function, broken out of ...
2945         (parse_opt): ... here.  Likewise use alloca there.
2946         Validate the -i argument before checking for rootness.
2947         (send_shutdown): New function, broken out of ...
2948         (parse_opt): ... here.
2949
2950 2014-10-22  Roland McGrath  <roland@hack.frob.com>
2951
2952         * sysdeps/arm/__longjmp.S [NEED_HWCAP] [IS_IN_rtld]: Use LDST_PCREL
2953         macro to get at the _rt_local_ro field.
2954         [NEED_HWCAP] [!IS_IN_rtld]: Use LDR_GLOBAL to get at _rtld_global_ro
2955         ([PIC] case) or _dl_hwcap ([!PIC] case).
2956         * sysdeps/arm/setjmp.S: Likewise.
2957
2958         * config.h.in (ARM_PCREL_MOVW_OK): New macro.
2959         * sysdeps/arm/configure.ac: New check to define it.
2960         * sysdeps/arm/configure: Regenerated.
2961         * sysdeps/arm/sysdep.h [__ASSEMBLER__]: Include <arm-features.h>.
2962         (LDST_INDEXED_NOINDEX, LDST_INDEXED_INDEX): New macros.
2963         (LDST_INDEXED, LDST_PC_INDEXED): New macros, differing definitions
2964         depending on [ARM_NO_INDEX_REGISTER] and [__thumb2__].
2965         (LDST_PCREL) [!__thumb2__ && ARCH_HAS_T2 && ARM_PCREL_MOVW_OK]:
2966         Use move/movt pair instead of a load.
2967         (LDST_GLOBAL): Macro removed.
2968         (LDR_GLOBAL): New macro replaces it.
2969         (LDR_HIDDEN): New macro.
2970         (PTR_MANGLE_LOAD): Use LDR_GLOBAL rather than LDST_GLOBAL.
2971         Use LDR_HIDDEN instead for __pointer_chk_guard_local.
2972
2973         * setjmp/tst-setjmp-static.c: New file.
2974         * setjmp/Makefile (tests): Add it.
2975         (tests-static): New variable.
2976
2977 2014-10-22  Maciej W. Rozycki  <macro@codesourcery.com>
2978
2979         [BZ #17485]
2980         * sysdeps/unix/sysv/linux/mips/vfork.S (__libc_vfork): Define.
2981
2982 2014-10-21  Joseph Myers  <joseph@codesourcery.com>
2983
2984         [BZ #14132]
2985         * math/s_ldexpf.c (__ldexpf): Do not use INTDEF.
2986
2987 2014-10-21  Roland McGrath  <roland@hack.frob.com>
2988
2989         * nptl/version.c (__nptl_main): Call __libc_write, not __write.
2990
2991 2014-10-20  Roland McGrath  <roland@hack.frob.com>
2992
2993         * io/fts.c (dirent_not_directory): New function.
2994         (fts_build): Call it.
2995
2996 2014-10-20  Roland McGrath  <roland@hack.frob.com>
2997
2998         * nptl/version.c (__nptl_main): Use normal __write rather than
2999         INTERNAL_SYSCALL.
3000         (banner): Update copyright years.
3001
3002         * nptl/pthread_rwlock_timedrdlock.c: #include <sys/time.h> before using
3003         gettimeofday.
3004         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
3005         * nptl/pthread_cond_timedwait.c: Likewise.
3006         * nptl/pthread_mutex_timedlock.c: Likewise.
3007         * nptl/sem_timedwait.c: Likewise.
3008
3009         * sysdeps/nptl/bits/libc-lock.h
3010         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
3011         (__libc_lock_init_recursive): Return void, not 0.
3012         * sysdeps/nptl/bits/libc-lockP.h (__libc_lock_init): Likewise.
3013         (__libc_rwlock_init): Likewise.
3014         * sysdeps/nptl/bits/stdio-lock.h (_IO_lock_init): Likewise.
3015
3016 2014-10-20  Torvald Riegel  <triegel@redhat.com>
3017
3018         [BZ #15215]
3019         * nptl/pthread_once.c (__pthread_once): Split out fast path to ...
3020         (__pthread_once_slow): ... here.
3021         * sysdeps/unix/sysv/linux/i386/pthread_once.S: Remove file.
3022         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Remove file.
3023
3024 2014-10-20  Torvald Riegel  <triegel@redhat.com>
3025
3026         [BZ #15215]
3027         * nptl/pthreadP.h (__PTHREAD_ONCE_INPROGRESS, __PTHREAD_ONCE_DONE,
3028         __PTHREAD_ONCE_FORK_GEN_INCR): New.
3029         * sysdeps/nptl/fork.c (__libc_fork): Use them.
3030         * nptl/pthread_once.c (__pthread_once): Likewise.
3031         Update comments.
3032
3033 2014-10-20  Joseph Myers  <joseph@codesourcery.com>
3034
3035         [BZ #14138]
3036         * sysdeps/unix/syscalls.list (readv): Use __libc_readv as strong
3037         name.
3038         (writev): Use __libc_writev as strong name.
3039         * sysdeps/unix/sysv/linux/readv.c: Remove file.
3040         * sysdeps/unix/sysv/linux/writev.c: Likewise.
3041
3042 2014-10-17  Roland McGrath  <roland@hack.frob.com>
3043
3044         * nptl/createthread.c (TLS_DEFINE_INIT_TP, TLS_VALUE): Macros removed.
3045
3046         * sysdeps/i386/nptl/tls.h
3047         (THREAD_SELF_SYSINFO, THREAD_SYSINFO): Macros removed.
3048         [NEED_DL_SYSINFO] (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO):
3049         New macros.
3050         * sysdeps/ia64/nptl/tls.h [NEED_DL_SYSINFO]
3051         (SETUP_THREAD_SYSINFO, CHECK_THREAD_SYSINFO): New macros.
3052         * nptl/allocatestack.c (allocate_stack) [NEED_DL_SYSINFO]:
3053         Call SETUP_THREAD_SYSINFO instead of doing an assignment.
3054         * nptl/createthread.c (create_thread) [NEED_DL_SYSINFO]:
3055         Call CHECK_THREAD_SYSINFO instead of doing an assert.
3056
3057         * nptl/nptl-init.c (__pthread_initialize_minimal_internal):
3058         Conditionalize FUTEX_PRIVATE_FLAG and FUTEX_CLOCK_REALTIME probes
3059         on [__NR_futex].
3060         * nptl/pthread_mutex_init.c (prio_inherit_missing): New function,
3061         broken out of ...
3062         (__pthread_mutex_init): ... here.  Call it.
3063         * nptl/pthread_mutex_lock.c (__pthread_mutex_lock_full):
3064         Conditionalize PI cases on [__NR_futex].
3065         * nptl/pthread_mutex_timedlock.c (pthread_mutex_timedlock): Likewise.
3066         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock): Likewise.
3067         * nptl/pthread_mutex_unlock.c (__pthread_mutex_unlock_full): Likewise.
3068
3069         * nptl/nptl-init.c (sighandler_setxid, __xidcmd): Make definitions
3070         conditional on [SIGSETXID].
3071         (sigcancel_handler): Make definition conditional on [SIGCANCEL].
3072         (__pthread_initialize_minimal_internal): Set up SIGCANCEL only if it
3073         is defined.  Likewise for SIGSETXID.
3074         * nptl/allocatestack.c (setxid_mark_thread, setxid_unmark_thread):
3075         Conditionalize definitions on [SIGSETXID].
3076         (setxid_signal_thread, __nptl_setxid_error, __nptl_setxid): Likewise.
3077         * nptl/pthread_create.c (start_thread): Conditionalize SIGCANCEL
3078         unblocking on [SIGCANCEL].
3079
3080         * nptl/nptl-init.c (__nptl_set_robust): Conditionalize body on
3081         [__NR_set_robust_list].
3082
3083 2014-10-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3084
3085         * string/strcoll_l.c (get_next_seq): Fix up formatting.
3086         (do_compare): Likewise.
3087
3088 2014-10-17  Leonhard Holz  <leonhard.holz@web.de>
3089
3090         [BZ #15884]
3091         * string/strcoll_l.c: Don't include stdio.h.
3092         (coll_seq): Remove members idxarr and rulearr.
3093         (get_next_seq_cached): Remove function.
3094         (get_next_seq): Likewise.
3095         (get_next_seq_nocache): Rename to get_next_seq.
3096         (do_compare): Remove function.
3097         (do_compare_nocache): Rename to do_compare.
3098         (STRCOLL): Remove weight and rules cache.
3099
3100 2014-10-16  Roland McGrath  <roland@hack.frob.com>
3101
3102         * sysdeps/arm/soft-fp/sfp-machine.h: Filed moved ...
3103         * sysdeps/arm/sfp-machine.h: ... to here.
3104         * sysdeps/arm/Implies: Remove arm/soft-fp.
3105
3106 2014-10-14  Joseph Myers  <joseph@codesourcery.com>
3107
3108         * conform/data/sys/utsname.h-data (*_t): Allow.
3109         * conform/data/sys/wait.h-data [POSIX] (uid_t): Do not define.
3110         [POSIX] (WEXITED): Do not expect constant.
3111         [POSIX] (WSTOPPED): Likewise.
3112         [POSIX] (WNOHANG): Likewise.
3113         [POSIX] (WNOWAIT): Likewise.
3114         [POSIX] (siginfo_t): Do not expect type or elements.
3115         [POSIX] (pid_t): Do not expect type.
3116         [POSIX] (signal.h): Do not allow header.
3117         [POSIX] (sys/resource.h): Likewise.
3118         [POSIX] (si_*): Do not allow pattern.
3119         [POSIX] (W*): Likewise.
3120         [POSIX] (P_*): Likewise.
3121         [POSIX] (BUS_*): Likewise.
3122         [POSIX] (CLD_*): Likewise.
3123         [POSIX] (FPE_*): Likewise.
3124         [POSIX] (ILL_*): Likewise.
3125         [POSIX] (POLL_*): Likewise.
3126         [POSIX] (SEGV_*): Likewise.
3127         [POSIX] (SI_*): Likewise.
3128         [POSIX] (TRAP_*): Likewise.
3129         * conform/Makefile (test-xfail-POSIX/sys/wait.h/conform): New
3130         variable.
3131
3132 2014-10-14  Paul Pluzhnikov  <ppluzhnikov@google.com>
3133
3134         [BZ #12926]
3135         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Avoid
3136         infinite loop when __recvmsg returns 0.
3137
3138 2014-10-10  Joseph Myers  <joseph@codesourcery.com>
3139
3140         * CANCEL-FCT-WAIVE: Remove file.
3141         * CANCEL-FILE-WAIVE: Likewise.
3142
3143         [BZ #14132]
3144         * elf/dl-sysdep.c (__libc_enable_secure): Use rtld_hidden_data_def
3145         instead of INTVARDEF.
3146         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
3147         * sysdeps/mach/hurd/dl-sysdep.c (__libc_enable_secure): Use
3148         rtld_hidden_data_def instead of INTVARDEF.
3149         (_dl_sysdep_start): Do not use INTUSE with __libc_enable_secure.
3150         * elf/dl-deps.c (expand_dst): Likewise.
3151         * elf/dl-load.c (_dl_dst_count): Likewise.
3152         (_dl_dst_substitute): Likewise.
3153         (decompose_rpath): Likewise.
3154         (_dl_init_paths): Likewise.
3155         (open_path): Likewise.
3156         (_dl_map_object): Likewise.
3157         * elf/rtld.c (dl_main): Likewise.
3158         (process_dl_audit): Likewise.
3159         (process_envvars): Likewise.
3160         * include/unistd.h [IS_IN_rtld] (__libc_enable_secure_internal):
3161         Remove declaration.
3162         (__libc_enable_secure): Use rtld_hidden_proto.
3163
3164 2014-10-09  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3165
3166         * elf/dl-load.c
3167         (add_path): New function broken out of _dl_rtld_di_serinfo.
3168         (_dl_rtld_di_serinfo): Remove that nested function.  Update call sites.
3169
3170 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
3171
3172         * soft-fp/double.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_D): Use
3173         parentheses around macro arguments.
3174         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_DP): Likewise.
3175         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_D): Likewise.
3176         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_DP): Likewise.
3177         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_D): Likewise.
3178         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_DP): Likewise.
3179         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_D): Likewise.
3180         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
3181         [_FP_W_TYPE_SIZE < 64] (FP_PACK_D): Likewise.
3182         [_FP_W_TYPE_SIZE < 64] (FP_PACK_DP): Likewise.
3183         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_D): Likewise.
3184         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_DP): Likewise.
3185         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_D): Likewise.
3186         [_FP_W_TYPE_SIZE < 64] (FP_CMP_D): Likewise.
3187         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_D): Likewise.
3188         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_D): Likewise.
3189         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_D): Likewise.
3190         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_D): Likewise.
3191         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_D): Likewise.
3192         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_DP): Likewise.
3193         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_D): Likewise.
3194         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_DP): Likewise.
3195         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_D): Likewise.
3196         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_DP): Likewise.
3197         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_D): Likewise.
3198         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_DP): Likewise.
3199         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_D): Likewise.
3200         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_DP): Likewise.
3201         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_D): Likewise.
3202         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_DP): Likewise.
3203         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_D): Likewise.
3204         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_D): Likewise.
3205         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_D): Likewise.
3206         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_D): Likewise.
3207         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_D): Likewise.
3208         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_D): Likewise.
3209         * soft-fp/extended.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_E):
3210         Likewise.
3211         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_EP): Likewise.
3212         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_E): Likewise.
3213         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
3214         [_FP_W_TYPE_SIZE < 64] (FP_PACK_E): Likewise.
3215         [_FP_W_TYPE_SIZE < 64] (FP_PACK_EP): Likewise.
3216         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_E): Likewise.
3217         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_EP): Likewise.
3218         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_E): Likewise.
3219         [_FP_W_TYPE_SIZE < 64] (FP_CMP_E): Likewise.
3220         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_E): Likewise.
3221         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_E): Likewise.
3222         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_E): Likewise.
3223         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_E): Likewise.
3224         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_E): Likewise.
3225         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_EP): Likewise.
3226         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_E): Likewise.
3227         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_EP): Likewise.
3228         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_E): Likewise.
3229         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_EP): Likewise.
3230         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_E): Likewise.
3231         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_EP): Likewise.
3232         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_E): Likewise.
3233         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_E): Likewise.
3234         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_E): Likewise.
3235         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_E): Likewise.
3236         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_E): Likewise.
3237         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_E): Likewise.
3238         * soft-fp/op-1.h (_FP_FRAC_SRST_1): Likewise.
3239         (_FP_FRAC_SRS_1): Likewise.
3240         (_FP_FRAC_CLZ_1): Likewise.
3241         (_FP_MUL_MEAT_1_imm): Likewise.
3242         (_FP_MUL_MEAT_1_wide): Likewise.
3243         (_FP_MUL_MEAT_1_hard): Likewise.
3244         (_FP_SQRT_MEAT_1): Likewise.
3245         (_FP_FRAC_ASSEMBLE_1): Likewise.
3246         (_FP_FRAC_DISASSEMBLE_1): Likewise.
3247         * soft-fp/op-2.h (_FP_FRAC_CLZ_2): Likewise.
3248         (__FP_CLZ_2): Likewise.
3249         (_FP_MUL_MEAT_2_wide): Likewise.
3250         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
3251         (_FP_MUL_MEAT_2_gmp): Likewise.
3252         (_FP_MUL_MEAT_2_120_240_double): Likewise.
3253         (_FP_SQRT_MEAT_2): Likewise.
3254         (_FP_FRAC_ASSEMBLE_2): Likewise.
3255         (_FP_FRAC_DISASSEMBLE_2): Likewise.
3256         * soft-fp/op-4.h (_FP_FRAC_SRS_4): Likewise.
3257         (_FP_FRAC_CLZ_4): Likewise.
3258         (_FP_MUL_MEAT_4_wide): Likewise.
3259         (_FP_MUL_MEAT_4_gmp): Likewise.
3260         (_FP_SQRT_MEAT_4): Likewise.
3261         (_FP_FRAC_ASSEMBLE_4): Likewise.
3262         (_FP_FRAC_DISASSEMBLE_4): Likewise.
3263         * soft-fp/op-common.h (_FP_CMP): Likewise.
3264         (_FP_CMP_EQ): Likewise.
3265         (_FP_CMP_UNORD): Likewise.
3266         (_FP_TO_INT): Likewise.
3267         (_FP_FROM_INT): Likewise.
3268         [!__FP_CLZ] (__FP_CLZ): Likewise.
3269         (_FP_DIV_HELP_imm): Likewise.
3270         * soft-fp/quad.h [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_Q):
3271         Likewise.
3272         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_RAW_QP): Likewise.
3273         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_Q): Likewise.
3274         [_FP_W_TYPE_SIZE < 64] (FP_PACK_RAW_QP): Likewise.
3275         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_Q): Likewise.
3276         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_QP): Likewise.
3277         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
3278         [_FP_W_TYPE_SIZE < 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
3279         [_FP_W_TYPE_SIZE < 64] (FP_PACK_Q): Likewise.
3280         [_FP_W_TYPE_SIZE < 64] (FP_PACK_QP): Likewise.
3281         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_Q): Likewise.
3282         [_FP_W_TYPE_SIZE < 64] (FP_PACK_SEMIRAW_QP): Likewise.
3283         [_FP_W_TYPE_SIZE < 64] (_FP_SQRT_MEAT_Q): Likewise.
3284         [_FP_W_TYPE_SIZE < 64] (FP_CMP_Q): Likewise.
3285         [_FP_W_TYPE_SIZE < 64] (FP_CMP_EQ_Q): Likewise.
3286         [_FP_W_TYPE_SIZE < 64] (FP_CMP_UNORD_Q): Likewise.
3287         [_FP_W_TYPE_SIZE < 64] (FP_TO_INT_Q): Likewise.
3288         [_FP_W_TYPE_SIZE < 64] (FP_FROM_INT_Q): Likewise.
3289         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_Q): Likewise.
3290         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_RAW_QP): Likewise.
3291         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_Q): Likewise.
3292         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_RAW_QP): Likewise.
3293         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_Q): Likewise.
3294         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_QP): Likewise.
3295         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_Q): Likewise.
3296         [_FP_W_TYPE_SIZE >= 64] (FP_UNPACK_SEMIRAW_QP): Likewise.
3297         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_Q): Likewise.
3298         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_QP): Likewise.
3299         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_Q): Likewise.
3300         [_FP_W_TYPE_SIZE >= 64] (FP_PACK_SEMIRAW_QP): Likewise.
3301         [_FP_W_TYPE_SIZE >= 64] (_FP_SQRT_MEAT_Q): Likewise.
3302         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_Q): Likewise.
3303         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_EQ_Q): Likewise.
3304         [_FP_W_TYPE_SIZE >= 64] (FP_CMP_UNORD_Q): Likewise.
3305         [_FP_W_TYPE_SIZE >= 64] (FP_TO_INT_Q): Likewise.
3306         [_FP_W_TYPE_SIZE >= 64] (FP_FROM_INT_Q): Likewise.
3307         * soft-fp/single.h (FP_UNPACK_RAW_S): Likewise.
3308         (FP_UNPACK_RAW_SP): Likewise.
3309         (FP_PACK_RAW_S): Likewise.
3310         (FP_PACK_RAW_SP): Likewise.
3311         (FP_UNPACK_S): Likewise.
3312         (FP_UNPACK_SP): Likewise.
3313         (FP_UNPACK_SEMIRAW_S): Likewise.
3314         (FP_UNPACK_SEMIRAW_SP): Likewise.
3315         (FP_PACK_S): Likewise.
3316         (FP_PACK_SP): Likewise.
3317         (FP_PACK_SEMIRAW_S): Likewise.
3318         (FP_PACK_SEMIRAW_SP): Likewise.
3319         (_FP_SQRT_MEAT_S): Likewise.
3320         (FP_CMP_S): Likewise.
3321         (FP_CMP_EQ_S): Likewise.
3322         (FP_CMP_UNORD_S): Likewise.
3323         (FP_TO_INT_S): Likewise.
3324         (FP_FROM_INT_S): Likewise.
3325
3326         * soft-fp/op-common.h (_FP_TO_INT): Handle rsigned == 2.
3327
3328         * soft-fp/soft-fp.h (FP_EX_INVALID_SNAN): New macro.
3329         (FP_EX_INVALID_IMZ): Likewise.
3330         (FP_EX_INVALID_IMZ_FMA): Likewise.
3331         (FP_EX_INVALID_ISI): Likewise.
3332         (FP_EX_INVALID_ZDZ): Likewise.
3333         (FP_EX_INVALID_IDI): Likewise.
3334         (FP_EX_INVALID_SQRT): Likewise.
3335         (FP_EX_INVALID_CVI): Likewise.
3336         (FP_EX_INVALID_VC): Likewise.
3337         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Specify more precise
3338         "invalid" exceptions.
3339         (_FP_CHECK_SIGNAN_SEMIRAW): Likewise.
3340         (_FP_ADD_INTERNAL): Likewise.
3341         (_FP_MUL): Likewise.
3342         (_FP_FMA): Likewise.
3343         (_FP_DIV): Likewise.
3344         (_FP_CMP_CHECK_NAN): Likewise.
3345         (_FP_SQRT): Likewise.
3346         (_FP_TO_INT): Likewise.
3347         (FP_EXTEND): Likewise.
3348
3349 2014-10-09  Allan McRae  <allan@archlinux.org>
3350
3351         * po/fr.po: Update French translation from translation project.
3352
3353 2014-10-09  Joseph Myers  <joseph@codesourcery.com>
3354
3355         [BZ #14132]
3356         * stdlib/cxa_atexit.c (__cxa_atexit): Use libc_hidden_def instead
3357         of INTDEF.
3358         * include/stdlib.h (__cxa_atexit_internal): Remove declaration.
3359         (__cxa_atexit): Use libc_hidden_proto.
3360         [!NOT_IN_libc] (__cxa_atexit): Remove macro definition.
3361
3362         [BZ #14132]
3363         * include/wctype.h [!_ISOMAC] (__iswalpha_l_internal): Remove
3364         declaration.
3365         [!_ISOMAC] (__iswdigit_l_internal): Likewise.
3366         [!_ISOMAC] (__iswspace_l_internal): Likewise.
3367         [!_ISOMAC] (__iswxdigit_l_internal): Likewise.
3368         [!_ISOMAC] (__iswctype_internal): Likewise.
3369         * stdio-common/siglist.c (_sys_siglist_internal): Remove alias.
3370         * sysdeps/unix/syscalls.list (chown): Remove __chown_internal
3371         alias.
3372         (fcntl): Remove __fcntl_internal alias.
3373         * sysdeps/unix/sysv/linux/hppa/syscalls.list (connect): Remove
3374         __connect_internal alias.
3375         * sysdeps/unix/sysv/linux/sparc/sparc64/syscalls.list (connect):
3376         Likewise.
3377
3378         * soft-fp/soft-fp.h (FP_DENORM_ZERO): New macro.
3379         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Check
3380         FP_DENORM_ZERO.
3381         (_FP_CHECK_FLUSH_ZERO): New macro.
3382         (_FP_ADD_INTERNAL): Call _FP_CHECK_FLUSH_ZERO.
3383         (_FP_CMP): Likewise.
3384         (_FP_CMP_EQ): Likewise.
3385         (_FP_TO_INT): Do not set inexact for subnormal arguments if
3386         FP_DENORM_ZERO.
3387         (FP_EXTEND): Call _FP_CHECK_FLUSH_ZERO.
3388         (FP_TRUNC): Likewise.
3389
3390         * soft-fp/op-common.h (_FP_TO_INT): Ensure maximum exponent is
3391         treated as invalid conversion, not as normal exponent.
3392
3393         * soft-fp/op-common.h (_FP_CMP_CHECK_NAN): New macro.
3394         (_FP_CMP): Add extra argument EX.  Call _FP_CMP_CHECK_NAN.
3395         (_FP_CMP_EQ): Likewise.
3396         (_FP_CMP_UNORD): Likewise.
3397         * soft-fp/double.h (FP_CMP_D): Add extra argument EX.
3398         (FP_CMP_EQ_D): Likewise.
3399         (FP_CMP_UNORD_D): Likewise.
3400         * soft-fp/extended.h (FP_CMP_E): Likewise.
3401         (FP_CMP_EQ_E): Likewise.
3402         (FP_CMP_UNORD_E): Likewise.
3403         * soft-fp/quad.h (FP_CMP_Q): Likewise.
3404         (FP_CMP_EQ_Q): Likewise.
3405         (FP_CMP_UNORD_Q): Likewise.
3406         * soft-fp/single.h (FP_CMP_S): Likewise.
3407         (FP_CMP_EQ_S): Likewise.
3408         (FP_CMP_UNORD_S): Likewise.
3409         * soft-fp/eqdf2.c (__eqdf2): Update call to FP_CMP_EQ_D.
3410         * soft-fp/eqsf2.c (__eqsf2): Update call to FP_CMP_EQ_S.
3411         * soft-fp/eqtf2.c (__eqtf2): Update call to FP_CMP_EQ_Q.
3412         * soft-fp/gedf2.c (__gedf2): Update call to FP_CMP_D.
3413         * soft-fp/gesf2.c (__gesf2): Update call to FP_CMP_S.
3414         * soft-fp/getf2.c (__getf2): Update call to FP_CMP_Q.
3415         * soft-fp/ledf2.c (__ledf2): Update call to FP_CMP_D.
3416         * soft-fp/lesf2.c (__lesf2): Update call to FP_CMP_S.
3417         * soft-fp/letf2.c (__letf2): Update call to FP_CMP_Q.
3418         * soft-fp/unorddf2.c (__unorddf2): Update call to FP_CMP_UNORD_D.
3419         * soft-fp/unordsf2.c (__unordsf2): Update call to FP_CMP_UNORD_S.
3420         * soft-fp/unordtf2.c (__unordtf2): Update call to FP_CMP_UNORD_Q.
3421         * sysdeps/alpha/soft-fp/ots_cmpe.c (internal_compare): Update call
3422         to FP_CMP_Q.
3423         * sysdeps/sparc/sparc32/soft-fp/q_cmp.c (_Q_cmp): Update call to
3424         FP_CMP_Q.
3425         * sysdeps/sparc/sparc32/soft-fp/q_cmpe.c (_Q_cmpe): Likewise.
3426         * sysdeps/sparc/sparc32/soft-fp/q_feq.c (_Q_feq): Update call to
3427         FP_CMP_EQ_Q.
3428         * sysdeps/sparc/sparc32/soft-fp/q_fge.c (_Q_fge): Update call to
3429         FP_CMP_Q.
3430         * sysdeps/sparc/sparc32/soft-fp/q_fgt.c (_Q_fgt): Likewise.
3431         * sysdeps/sparc/sparc32/soft-fp/q_fle.c (_Q_fle): Likewise.
3432         * sysdeps/sparc/sparc32/soft-fp/q_flt.c (_Q_flt): Likewise.
3433         * sysdeps/sparc/sparc32/soft-fp/q_fne.c (_Q_fne): Update call to
3434         FP_CMP_EQ_Q.
3435         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c (_Qp_cmp): Update call to
3436         FP_CMP_Q.
3437         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c (_Qp_cmpe): Likewise.
3438         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c (_Qp_feq): Update call to
3439         FP_CMP_EQ_Q.
3440         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c (_Qp_fge): Update call to
3441         FP_CMP_Q.
3442         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c (_Qp_fgt): Likewise.
3443         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c (_Qp_fle): Likewise.
3444         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c (_Qp_flt): Likewise.
3445         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c (_Qp_fne): Update call to
3446         FP_CMP_EQ_Q.
3447
3448         * soft-fp/op-common.h (FP_EXTEND): When a subnormal input produces
3449         a subnormal result, set the underflow exception if trapping on
3450         underflow is enabled.
3451         * soft-fp/soft-fp.h (FP_INIT_TRAPPING_EXCEPTIONS): New macro.
3452         (FP_INIT_EXCEPTIONS): Default to FP_INIT_TRAPPING_EXCEPTIONS.
3453         [FP_NO_EXACT_UNDERFLOW] (FP_TRAPPING_EXCEPTIONS): Undefine and
3454         redefine to 0.
3455         * soft-fp/extenddftf2.c (FP_NO_EXACT_UNDERFLOW): Define.
3456         * soft-fp/extendsfdf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
3457         * soft-fp/extendsftf2.c (FP_NO_EXACT_UNDERFLOW): Likewise.
3458         * soft-fp/extendxftf2.c (__extendxftf2): Use
3459         FP_INIT_TRAPPING_EXCEPTIONS instead of FP_INIT_ROUNDMODE.
3460
3461         * soft-fp/soft-fp.h (FP_CLEAR_EXCEPTIONS): Remove macro.
3462         * sysdeps/sparc/sparc32/soft-fp/q_itoq.c: Define FP_NO_EXCEPTIONS.
3463         (_Q_itoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
3464         FP_HANDLE_EXCEPTIONS.
3465         * sysdeps/sparc/sparc32/soft-fp/q_lltoq.c: Define FP_NO_EXCEPTIONS.
3466         (_Q_lltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
3467         FP_HANDLE_EXCEPTIONS.
3468         * sysdeps/sparc/sparc32/soft-fp/q_ulltoq.c: Define FP_NO_EXCEPTIONS.
3469         (_Q_ulltoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
3470         FP_HANDLE_EXCEPTIONS.
3471         * sysdeps/sparc/sparc32/soft-fp/q_utoq.c: Define FP_NO_EXCEPTIONS.
3472         (_Q_utoq): Do not use FP_DECL_EX, FP_CLEAR_EXCEPTIONS or
3473         FP_HANDLE_EXCEPTIONS.
3474
3475 2014-10-08  Joseph Myers  <joseph@codesourcery.com>
3476
3477         [BZ #14132]
3478         * sysdeps/unix/sysv/linux/include/sys/timex.h: New file.
3479         * sysdeps/unix/sysv/linux/adjtime.c [!ADJTIMEX] (ADJTIMEX): Do not
3480         use INTUSE.
3481         [!ADJTIMEX] (INTUSE(__adjtimex)): Remove declaration.
3482         * sysdeps/unix/sysv/linux/alpha/adjtime.c (__adjtimex_internal):
3483         Remove alias.
3484         (__adjtimex): Define using libc_hidden_ver.
3485         * sysdeps/unix/sysv/linux/ntp_gettime.c (INTUSE(__adjtimex)):
3486         Remove declaration.
3487         (ntp_gettime): Call __adjtimex directly.
3488         * sysdeps/unix/sysv/linux/ntp_gettimex.c (INTUSE(__adjtimex)):
3489         Remove declaration.
3490         (ntp_gettimex): Call __adjtimex directly.
3491         * sysdeps/unix/sysv/linux/syscalls.list (adjtimex): Remove
3492         __adjtimex_internal alias.
3493
3494 2014-10-08  Roland McGrath  <roland@hack.frob.com>
3495
3496         [BZ #17460]
3497         * nscd/nscd.c (more_help): Rewrite list of tables collection
3498         using xstrdup and asprintf.
3499
3500         * nscd/nscd_conf.c: Remove local xstrdup declaration.
3501
3502 2014-10-08  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3503             Roland McGrath  <roland@hack.frob.com>
3504
3505         * elf/dl-lookup.c (enter_unique_sym): New function, broken out of ...
3506         (do_lookup_unique): ... local function 'enter' here; update callers.
3507
3508 2014-10-06  Joseph Myers  <joseph@codesourcery.com>
3509
3510         * sysdeps/unix/make-syscalls.sh (emit_weak_aliases): Condition
3511         compat_symbol calls on [SHARED].
3512         * sysdeps/unix/sysv/linux/powerpc/lchown.S: Remove file.
3513         * sysdeps/unix/sysv/linux/i386/syscalls.list (oldsetrlimit):
3514         Remove.
3515         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
3516         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list
3517         (oldsetrlimit): Remove.
3518         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
3519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3520         (lchown): New syscall entry.
3521         (oldsetrlimit): Remove.
3522         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
3523         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list
3524         (oldsetrlimit): Remove.
3525         (setrlimit): Add setrlimit@GLIBC_2.0 alias.
3526
3527         [BZ #14138]
3528         * sysdeps/unix/sysv/linux/arm/fchown.c: Remove file.
3529         * sysdeps/unix/sysv/linux/arm/lchown.c: Likewise.
3530         * sysdeps/unix/sysv/linux/m68k/fchown.c: Likewise.
3531         * sysdeps/unix/sysv/linux/m68k/lchown.c: Likewise.
3532         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
3533         * sysdeps/unix/sysv/linux/arm/syscalls.list (lchown): Add syscall.
3534         (fchown): Likewise.
3535         * sysdeps/unix/sysv/linux/m68k/syscalls.list (lchown): Likewise.
3536         (fchown): Likewise.
3537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list (chown):
3538         Likewise.
3539
3540 2014-10-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3541
3542         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Remove file.
3543         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c
3544         (pthread_spin_unlock): Use __ARCH_REL_INSTR instead of
3545         __lll_rel_instr and __ARCH_ACQ_INSTR instead of __lll_acq_instr.
3546         * sysdeps/unix/sysv/linux/powerpc/sem_post.c (__new_sem_post):
3547         Likewise.
3548         (__old_sem_post): Likewise.
3549
3550 2014-10-06  Chris Metcalf  <cmetcalf@tilera.com>
3551
3552         * sysdeps/unix/sysv/linux/tile/sysdep.h (INLINE_VSYSCALL): Define
3553         INLINE_VSYSCALL, INTERNAL_VSYSCALL, and
3554         HAVE_CLOCK_GETTIME_VSYSCALL macros.
3555         * sysdeps/unix/sysv/linux/tile/gettimeofday.c (__gettimeofday):
3556         Use INLINE_VSYSCALL macro.
3557         * sysdeps/unix/sysv/linux/tile/bits/libc-vdso: Add declaration of
3558         __vdso_clock_gettime.
3559         * sysdeps/unix/sysv/linux/tile/init-first.c
3560         (_libc_vdso_platform_setup): Set new __vdso_clock_gettime global.
3561         * sysdeps/unix/sysv/linux/tile/Versions (GLIBC_PRIVATE): Add
3562         __vdso_clock_gettime.
3563
3564         * sysdeps/unix/sysv/linux/tile/clone.S (__clone): Fix code
3565         to set up frame more cleanly.
3566
3567         * sysdeps/tile/memcmp.c: New file.
3568
3569         * sysdeps/unix/sysv/linux/tile/sysconf.c: New file.
3570
3571         * sysdeps/tile/tilegx/string-endian.h (STRSHIFT): New macro.
3572         * sysdeps/tile/tilegx/strcasestr.c: New file.
3573         * sysdeps/tile/tilegx/strnlen.c: New file.
3574         * sysdeps/tile/tilegx/strstr.c: New file.
3575
3576         * sysdeps/tile/tilegx/string-endian.h (copy_byte): Optimize.
3577
3578 2014-10-06  Arjun Shankar  <arjun.is@lostca.se>
3579
3580         * nptl/tst-setuid3.c: Write errors to stdout.
3581
3582 2014-10-01  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3583
3584         * elf/dl-deps.c
3585         (preload): New functions broken out of _dl_map_object_deps.
3586         (_dl_map_object_deps):  Remove a nested function. Update call sites.
3587
3588 2014-10-01  Joseph Myers  <joseph@codesourcery.com>
3589
3590         [BZ #14138]
3591         * sysdeps/unix/sysv/linux/execve.c: Remove file.
3592         * sysdeps/unix/sysv/linux/syscalls.list (execve): Add syscall.
3593
3594 2014-10-01  Steve Ellcey  <sellcey@mips.com>
3595
3596         * sysdeps/mips/strcmp.S: New.
3597
3598 2014-09-30  Joseph Myers  <joseph@codesourcery.com>
3599
3600         [BZ #14138]
3601         * sysdeps/unix/sysv/linux/syscalls.list (fchownat): New syscall.
3602         (linkat): Likewise.
3603         (mkdirat): Likewise.
3604         (readlinkat): Likewise.
3605         (renameat): Likewise.
3606         (symlinkat): Likewise.
3607         (unlinkat): Likewise.
3608         * sysdeps/unix/sysv/linux/fchownat.c: Remove file.
3609         * sysdeps/unix/sysv/linux/linkat.c: Likewise.
3610         * sysdeps/unix/sysv/linux/mkdirat.c: Likewise.
3611         * sysdeps/unix/sysv/linux/readlinkat.c: Likewise.
3612         * sysdeps/unix/sysv/linux/renameat.c: Likewise.
3613         * sysdeps/unix/sysv/linux/symlinkat.c: Likewise.
3614         * sysdeps/unix/sysv/linux/unlinkat.c: Likewise.
3615
3616 2014-09-30  Will Newton  <will.newton@linaro.org>
3617
3618         * math/math.h: Define long double math functions if
3619         _LIBC_TEST is defined.
3620         * stdlib/tst-strtod-round.c: Define _LIBC_TEST.
3621
3622         * localedata/Makefile: Move assignment to tests-special
3623         into an ifdef testing run-built-tests.
3624         * timezone/Makefile: Likewise.
3625
3626 2014-09-29  Joseph Myers  <joseph@codesourcery.com>
3627
3628         * sysdeps/x86/Makefile ($(objpfx)tst-ld-sse-use.out): Run script
3629         with $(BASH) not $(SHELL).
3630
3631 2014-09-29  Carlos O'Donell  <carlos@redhat.com>
3632             Matthew LeGendre  <legendre1@llnl.gov>
3633
3634         [BZ #17411]
3635         * elf/dl-reloc.c (_dl_relocate_object): Allocate correct amount for
3636         l_reloc_result.
3637
3638 2014-09-29  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3639
3640         * stdio-common/printf_fp.c
3641         (hack_digit): New function, broken out of ...
3642         (__printf_fp): ... local function here.  Update call sites.
3643         hack_digit now takes an additional parameter that is a pointer
3644         to a struct of the referenced locals.  Those locals moved inside
3645         the struct and references updated.
3646
3647 2014-09-29  H.J. Lu  <hongjiu.lu@intel.com>
3648
3649         * aclocal.m4: Require autoconf 2.69.
3650         * configure: Regenerated.
3651         * sysdeps/aarch64/configure: Likewise.
3652         * sysdeps/alpha/configure: Likewise.
3653         * sysdeps/arm/armv7/configure: Likewise.
3654         * sysdeps/arm/configure: Likewise.
3655         * sysdeps/ia64/configure: Likewise.
3656         * sysdeps/mach/configure: Likewise.
3657         * sysdeps/mips/configure: Likewise.
3658         * sysdeps/s390/configure: Likewise.
3659         * sysdeps/unix/sysv/linux/mips/configure: Likewise.
3660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Likewise.
3661
3662         * sysdeps/alpha/configure.ac: Avoid empty lines at the end of
3663         file.
3664         * sysdeps/ia64/configure.ac: Likewise.
3665
3666 2014-09-26  Joseph Myers  <joseph@codesourcery.com>
3667
3668         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Do not
3669         specify symbol version for ld.so.  Do not include entry for
3670         libpthread.
3671         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
3672         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
3673         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
3674
3675         [BZ #14171]
3676         * Makeconfig [$(build-shared) = yes]
3677         ($(common-objpfx)soversions.mk): Don't handle SONAMEs specified in
3678         makefiles.
3679         [$(build-shared) = yes && $(soversions.mk-done) = t]
3680         ($(common-objpfx)gnu/lib-names.h): Remove rule.
3681         [$(build-shared) = yes && $(soversions.mk-done) = t]
3682         ($(common-objpfx)gnu/lib-names.stmp): Likewise.  Split and moved
3683         to Makerules.
3684         [$(build-shared) = yes && $(soversions.mk-done) = t]
3685         (before-compile): Don't append $(common-objpfx)gnu/lib-names.h
3686         here.
3687         [$(build-shared) = yes && $(soversions.mk-done) = t]
3688         (common-generated): Don't append gnu/lib-names.h and
3689         gnu/lib-names.stmp here.
3690         * Makerules [$(build-shared) = yes && $(soversions.mk-done) = t]
3691         (lib-names-h-abi): New variable.
3692         [$(build-shared) = yes && $(soversions.mk-done) = t]
3693         (lib-names-stmp-abi): Likewise.
3694         [$(build-shared) = yes && $(soversions.mk-done) = t &&
3695         abi-variants] (before-compile): Append
3696         $(common-objpfx)$(lib-names-h-abi).
3697         [$(build-shared) = yes && $(soversions.mk-done) = t &&
3698         abi-variants] (common-generated): Append gnu/lib-names.h.
3699         [$(build-shared) = yes && $(soversions.mk-done) = t &&
3700         abi-variants] (install-others-nosubdir): Depend on
3701         $(inst_includedir)/$(lib-names-h-abi).
3702         [$(build-shared) = yes && $(soversions.mk-done) = t &&
3703         abi-variants] ($(common-objpfx)gnu/lib-names.h): New rule.
3704         [$(build-shared) = yes && $(soversions.mk-done) = t]
3705         ($(common-objpfx)$(lib-names-h-abi)): New rule.
3706         [$(build-shared) = yes && $(soversions.mk-done) = t]
3707         ($(common-objpfx)$(lib-names-stmp-abi)): Likewise.
3708         [$(build-shared) = yes && $(soversions.mk-done) = t]
3709         (common-generated): Append $(lib-names-h-abi) and
3710         $(lib-names-stmp-abi).
3711         * scripts/lib-names.awk: Do not handle multi being set.
3712         * sysdeps/unix/sysv/linux/aarch64/Makefile (abi-lp64-ld-soname):
3713         Remove variable.
3714         (abi-lp64_be-ld-soname): Likewise.
3715         * sysdeps/unix/sysv/linux/arm/Makefile (abi-soft-ld-soname):
3716         Likewise.
3717         (abi-hard-ld-soname): Likewise.
3718         * sysdeps/unix/sysv/linux/i386/shlib-versions: New file.
3719         * sysdeps/unix/sysv/linux/mips/Makefile (abi-o32_soft-ld-soname):
3720         Remove variable.
3721         (abi-o32_hard-ld-soname): Likewise.
3722         (abi-o32_soft_2008-ld-soname): Likewise.
3723         (abi-o32_hard_2008-ld-soname): Likewise.
3724         (abi-n32_soft-ld-soname): Likewise.
3725         (abi-n32_hard-ld-soname): Likewise.
3726         (abi-n32_soft_2008-ld-soname): Likewise.
3727         (abi-n32_hard_2008-ld-soname): Likewise.
3728         (abi-n64_soft-ld-soname): Likewise.
3729         (abi-n64_hard-ld-soname): Likewise.
3730         (abi-n64_soft_2008-ld-soname): Likewise.
3731         (abi-n64_hard_2008-ld-soname): Likewise.
3732         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-64-v1-ld-soname):
3733         Likewise.
3734         (abi-64-v2-ld-soname): Likewise.
3735         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: Add
3736         ld.so entries.
3737         * sysdeps/unix/sysv/linux/s390/Makefile (abi-64-ld-soname): Remove
3738         variable.
3739         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Add ld.so
3740         entry.
3741         * sysdeps/unix/sysv/linux/x86/Makefile (abi-32-ld-soname): Remove
3742         variable.
3743         (abi-64-ld-soname): Likewise.
3744         (abi-x32-ld-soname): Likewise.
3745         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Add ld.so
3746         entry.
3747         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
3748
3749 2014-09-23  Joseph Myers  <joseph@codesourcery.com>
3750
3751         [BZ #14138]
3752         * sysdeps/unix/sysv/linux/arm/setrlimit.c: Remove file.
3753         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Likewise.
3754         * sysdeps/unix/sysv/linux/m68k/setrlimit.c: Likewise.
3755         * sysdeps/unix/sysv/linux/powerpc/setrlimit.c: Likewise.
3756         * sysdeps/unix/sysv/linux/s390/s390-32/setrlimit.c: Likewise.
3757         * sysdeps/unix/sysv/linux/sh/setrlimit.c: Likewise.
3758         * sysdeps/unix/sysv/linux/i386/syscalls.list (setrlimit): Add
3759         syscall entry for GLIBC_2.2 symbol version.
3760         * sysdeps/unix/sysv/linux/m68k/m680x0/syscalls.list (setrlimit):
3761         Likewise.
3762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list
3763         (setrlimit): Likewise.
3764         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list (setrlimit):
3765         Likewise.
3766
3767 2014-09-23  Will Newton  <will.newton@linaro.org>
3768
3769         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h: Check for
3770         _LINUX_ARM_SYSDEP_H include guard too.
3771         * sysdeps/unix/sysv/linux/arm/sysdep.h (_SYS_AUXV_H): Remove
3772         define.
3773
3774 2014-09-20  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
3775
3776         * sysdeps/unix/sysv/linux/eventfd.c:
3777         Make first argument unsigned.
3778         * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Likewise.
3779         * sysdeps/unix/sysv/linux/sys/eventfd.h: Likewise.
3780
3781 2014-09-20  Ondřej Bílka  <neleai@seznam.cz>
3782
3783         * socket/recvmmsg.c (recvmmsg): Drop const argument.
3784         * socket/sys/socket.h: Likewise
3785         * sysdeps/unix/sysv/linux/recvmmsg.c: Likewise.
3786
3787 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3788
3789         * stdlib/longlong.h: Add __udiv_w_sdiv prototype.
3790
3791 2014-09-17  Arjun Shankar  <arjun.is@lostca.se>
3792
3793         * time/tst-ftime.c: New test.
3794         * time/Makefile (tests): Add tst-ftime.
3795
3796 2014-09-17  Joseph Myers  <joseph@codesourcery.com>
3797
3798         * soft-fp/extended.h: Fix comment formatting.
3799         * soft-fp/op-1.h: Likewise.
3800         * soft-fp/op-2.h: Likewise.
3801         * soft-fp/op-4.h: Likewise.
3802         * soft-fp/op-8.h: Likewise.
3803         * soft-fp/op-common.h: Likewise.
3804         * soft-fp/soft-fp.h: Likewise.
3805
3806         * soft-fp/op-common.h (_FP_TO_INT): Correct formatting.
3807
3808 2014-09-16  Joseph Myers  <joseph@codesourcery.com>
3809
3810         [BZ #6652]
3811         * Makeconfig (soversions-default-setname): Remove variable.
3812         ($(common-objpfx)soversions.i): Don't pass default_setname to
3813         soversions.awk.
3814         * Makerules ($(common-objpfx)abi-versions.h): Don't pass
3815         oldest_abi to abi-versions.awk.
3816         * config.h.in (GLIBC_OLDEST_ABI): Remove macro undefine.
3817         * config.make.in (oldest-abi): Remove variable.
3818         * configure.ac (--enable-oldest-abi): Remove configure option.
3819         * configure: Regenerated.
3820         * csu/version.c (banner) [GLIBC_OLDEST_ABI]: Remove conditional
3821         text.
3822         * scripts/abi-versions.awk: Do not handle oldest_abi variable.
3823         * scripts/soversions.awk: Do not handle default_setname variable.
3824         * sysdeps/mach/hurd/configure.ac: Do not handle oldest_abi
3825         variable.
3826         * sysdeps/mach/hurd/configure: Regenerated.
3827         * sysdeps/unix/sysv/linux/configure.ac: Do not handle oldest_abi
3828         variable.
3829         * sysdeps/unix/sysv/linux/configure: Regenerated.
3830
3831 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3832
3833         * elf/Makefile (CFLAGS-interp.c): Remove.
3834         ($(elf-objpfx)runtime-linker.h): Generate header with linker
3835         path string.
3836         * elf/interp.c: Include generated runtime-linker.h
3837
3838         * Makerules (lib%.so): Don't include $(+interp) in
3839         prerequisites.
3840         * elf/Makefile (CFLAGS-interp.c): Don't define NOT_IN_libc.
3841         * dlfcn/eval.c: Remove file.
3842
3843         * posix/getconf.c (vars): Don't check for _[SP]C_* and _CS
3844         macros.
3845
3846         [BZ #17266]
3847         * misc/sys/cdefs.h: Define __extern_always_inline for clang
3848         4.2 and newer.
3849
3850         [BZ #17370]
3851         * libio/wfileops.c (do_ftell_wide): Free OUT on error path.
3852
3853 2014-09-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
3854             Jakub Jelinek  <jakub@redhat.com>
3855
3856         [BZ #17266]
3857         * libio/stdio.h: Check definition of __fortify_function
3858         instead of __extern_always_inline to include bits/stdio2.h.
3859         * math/bits/math-finite.h [__USE_XOPEN || __USE_ISOC99]: Also
3860         check if __extern_always_inline is defined.
3861         [__USE_MISC || __USE_XOPEN]: Likewise.
3862         [__USE_ISOC99] Likewise.
3863         * misc/sys/cdefs.h (__fortify_function): Define only if
3864         __extern_always_inline is defined.
3865         [!__cplusplus || __GNUC_PREREQ (4,3)]: Revert to defining
3866         __extern_always_inline and __extern_inline only for g++-4.3
3867         and newer or a compatible gcc.
3868
3869 2014-09-15  Andreas Schwab  <schwab@linux-m68k.org>
3870
3871         [BZ #17371]
3872         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
3873         last change to handle zero prefix length.
3874
3875 2014-09-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3876
3877         * sysdeps/posix/sysconf.c (__sysconf): Return -1 for
3878         _SC_REGEX_VERSION.
3879
3880         * posix/getconf.c (vars): Add _POSIX_IPV6 and
3881         _POSIX_RAW_SOCKETS.
3882
3883 2014-09-13  Allan McRae  <allan@archlinux.org>
3884
3885         * po/ru.po: Update Russian translation from translation project.
3886
3887 2014-09-12  Roland McGrath  <roland@hack.frob.com>
3888
3889         * locale/programs/locale.c (show_locale_vars): Inline local function
3890         into its sole call site.  Clean up some style nits.
3891         (print_item): New function, broken out of ...
3892         (show_info): ... local function here.  Clean up style nits.
3893
3894         * locale/programs/ld-ctype.c (set_one_default): New function, broken
3895         out of ...
3896         (set_class_defaults): ... local function set_default here.
3897         Define set_default as a macro locally to pass constant parameters.
3898         (allocate_arrays, set_class_defaults): Use C99 for scope for each CNT,
3899         rather than a shared local.
3900
3901         * stdlib/rpmatch.c (try): New function, broken out of ...
3902         (rpmatch): ... local function here.  Also, prototypify definition.
3903
3904 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
3905
3906         * scripts/soversions.awk: Do not handle configuration names.
3907         * Makeconfig ($(common-objpfx)soversions.i): Do not pass cpu,
3908         vendor and os variables to soversions.awk.
3909         * configure.ac: Do not modify gnu-* host_os.
3910         * configure: Regenerated
3911         * shlib-versions: Remove first column with configuration names.
3912         * nptl/shlib-versions: Likewise.
3913         * nptl_db/shlib-versions: Likewise.
3914         * sysdeps/hppa/shlib-versions: Likewise.
3915         * sysdeps/m68k/shlib-versions: Likewise.
3916         * sysdeps/mach/hurd/shlib-versions: Likewise.
3917         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: Likewise.
3918         * sysdeps/unix/sysv/linux/alpha/shlib-versions: Likewise.
3919         * sysdeps/unix/sysv/linux/arm/shlib-versions: Likewise.
3920         * sysdeps/unix/sysv/linux/hppa/shlib-versions: Likewise.
3921         * sysdeps/unix/sysv/linux/ia64/shlib-versions: Likewise.
3922         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: Likewise.
3923         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: Likewise.
3924         * sysdeps/unix/sysv/linux/mips/shlib-versions: Likewise.
3925         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
3926         Likewise.
3927         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
3928         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
3929         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
3930         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
3931         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
3932         * sysdeps/unix/sysv/linux/tile/shlib-versions: Likewise.
3933         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Likewise.
3934         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Likewise.
3935
3936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
3937         (HAVE_ELFV2_ABI): AC_DEFINE in ELFv2 case.
3938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
3939         Regenerated.
3940         * config.h.in (HAVE_ELFV2_ABI): New macro undefine.
3941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions:
3942         Condition symbol version definitions on [HAVE_ELFV2_ABI].
3943
3944         * shlib-versions: Remove OS-specific entries.  Moved to files in
3945         sysdeps.
3946         * sysdeps/mach/hurd/shlib-versions: New file.
3947         * sysdeps/unix/sysv/linux/shlib-versions: Likewise.
3948
3949         * nptl/shlib-versions: Remove architecture-specific entries.
3950         Moved to files in sysdeps.
3951         * shlib-versions: Likewise.
3952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/shlib-versions: New
3953         file.
3954         * sysdeps/unix/sysv/linux/s390/s390-64/shlib-versions: Likewise.
3955         * sysdeps/unix/sysv/linux/sh/shlib-versions: Likewise.
3956         * sysdeps/unix/sysv/linux/sparc/sparc32/shlib-versions: Likewise.
3957         * sysdeps/unix/sysv/linux/sparc/sparc64/shlib-versions: Likewise.
3958
3959         * sysdeps/gnu/netinet/udp.h (UDP_NO_CHECK6_TX): New macro.
3960         (UDP_NO_CHECK6_RX): Likewise.
3961
3962 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
3963
3964         * sysdeps/posix/sysconf.c (__sysconf): Spell
3965         _POSIX_DEVICE_SPECIFIC and _POSIX_DEVICE_SPECIFIC_R correctly.
3966
3967 2014-08-12  Florian Weimer  <fweimer@redhat.com>
3968
3969         * iconv/gconv_open.c (__gconv_open): Remove transliteration module
3970         loading.
3971         * iconv/Versions (__gconv_transliterate): Export for use from
3972         gconv modules.
3973         * iconv/gconv.h (__GCONV_TRANSLIT): New flag.
3974         (struct __gconv_trans_data, __gconv_trans_fct,
3975         __gconv_trans_context_fct, __gconv_trans_query_fct,
3976         __gconv_trans_init_fct, __gconv_trans_end_fct): Remove type
3977         definitions.
3978         (struct __gconv_step_data): Remove __trans member.
3979         (__gconv_transliterate): Declaration moved from gconv_int.h.  No
3980         longer hidden.  Remove unused trans_data argument.
3981         * iconv/gconv_int.h (struct trans_struct): Remove definition.
3982         (__gconv_translit_find): Remove declaration.
3983         (__gconv_transliterate): Declaration moved to gconv.h.  Add hidden
3984         prototype.
3985         * iconv/gconv_close.c (__gconv_close): Remove __trans cleanup.
3986         * iconv/gconv_trans.c (__gconv_transliterate): Remove unused
3987         trans_data argument.  Add hidden definition.
3988         (__gconv_translit_find): Remove.
3989         * iconv/loop.c (STANDARD_TO_LOOP_ERR_HANDLER): Call
3990         __gconv_transliterate directly if __GCONV_TRANSLIT is set.
3991         * iconv/skeleton.c: Remove transliteration initialization.
3992         * libio/fileops.c (_IO_new_file_fopen): Adjust struct
3993         __gconv_step_data initialization.
3994         * libio/iofwide.c (__libio_translit_): Remove.
3995         (_IO_fwide): Adjust struct __gconv_step_data initialization.
3996         * wcsmbs/btowc.c (__btowc): Likewise.
3997         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
3998         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
3999         * wcsmbs/mbsnrtowcs.c (__mbsnrtowcs): Likewise.
4000         * wcsmbs/mbsrtowcs_l.c (__mbsrtowcs_l): Likewise.
4001         * wcsmbs/wcrtomb.c (__wcrtomb): Likewise.
4002         * wcsmbs/wcsnrtombs.c (__wcsnrtombs): Likewise.
4003         * wcsmbs/wcsrtombs.c (__wcsrtombs): Likewise.
4004         * wcsmbs/wctob.c (wctob): Likewise.
4005
4006 2014-09-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
4007
4008         [BZ #16194]
4009         * sysdeps/x86/tst-xmmymm.sh: Rename file to...
4010         * sysdeps/x86/tst-ld-sse-use.sh: ... this.  Check for zmm
4011         register usage.
4012         * sysdeps/x86/Makefile: Adjust.
4013
4014 2014-09-11  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
4015             Roland McGrath  <roland@hack.frob.com>
4016
4017         * locale/weight.h: Add include guard.
4018         (findidx): Make static rather than auto; take new parameters
4019         TABLE, INDIRECT, and EXTRA instead of getting them as outer locals.
4020         * locale/weightwc.h: Likewise.
4021         * posix/fnmatch_loop.c
4022         (FCT): Change type of EXTRA from int32_t to wint_t.
4023         Don't include either header inside the function.
4024         Call FINDIDX rather than findidx, and pass new arguments.
4025         #undef FINDIDX at the end of the file.
4026         * posix/fnmatch.c [_LIBC]: #include <locale/weight.h> and define
4027         FINDIDX before including fnmatch_loop.c for the non-wide version.
4028         [_LIBC] [HANDLE_MULTIBYTE]: #define findidx to findidxwc around
4029         #include <locale/weightwc.h>, and define FINDIDX to findidxwc
4030         for the wide version.
4031         * posix/regcomp.c [_LIBC]: #include <locale/weight.h>.
4032         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
4033         Pass new arguments to findidx.
4034         * posix/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
4035         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
4036         Don't #include it inside the function.  Pass new arguments to findidx.
4037         * posix/regex_internal.h
4038         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
4039         (re_string_elem_size_at): Don't #include it inside the function.
4040         Pass new arguments to findidx.
4041         * string/strcoll_l.c: #include WEIGHT_H at top level.
4042         (get_next_seq): Don't #include it inside the function.
4043         Pass new arguments to findidx.
4044         (get_next_seq_nocache): Likewise.
4045         * string/strxfrm_l.c: #include WEIGHT_H at top level.
4046         (STRXFRM): Don't #include it inside the function.
4047         Pass new arguments to findidx.
4048
4049 2014-09-11  Florian Weimer  <fweimer@redhat.com>
4050
4051         [BZ #17344]
4052         * malloc/malloc.c (unlink): Turn asserts into a call to
4053         malloc_printerr.
4054
4055 2014-09-11  Tim Lammens  <tim.lammens@gmail.com>
4056
4057         [BZ #17370]
4058         * libio/wfileops (do_ftell_wide): Free OUT.
4059
4060 2014-09-10  Chris Metcalf  <cmetcalf@tilera.com>
4061
4062         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Remove file.
4063
4064 2014-09-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4065
4066         [BZ #17363]
4067         * inet/getnetgrent_r.c (__internal_getnetgrent_r): Try next
4068         group if the current group is empty.
4069
4070 2014-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4071
4072         * benchtests/bench-memset.c (test_main): Add more test from size
4073         from 32 to 512 bytes.
4074         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
4075         Add POWER8 memset object.
4076         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
4077         (__libc_ifunc_impl_list): Add POWER8 memset and bzero implementations.
4078         * sysdeps/powerpc/powerpc64/multiarch/bzero.c (__bzero): Add POWER8
4079         implementation.
4080         * sysdeps/powerpc/powerpc64/multiarch/memset.c (__libc_memset):
4081         Likewise.
4082         * sysdeps/powerpc/powerpc64/multiarch/memset-power8.S: New file:
4083         multiarch POWER8 memset optimization.
4084         * sysdeps/powerpc/powerpc64/power8/memset.S: New file: optimized
4085         POWER8 memset optimization.
4086
4087         * sysdeps/powerpc/powerpc64/multiarch/Makefile [sysdep_routines]:
4088         Remove bzero multiarch objects.
4089         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: Remove file.
4090         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: Likewise.
4091         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: Likewise.
4092         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S [NO_BZERO_IMPL]:
4093         Remove define.
4094         [__bzero]: Redefine to specific name.
4095         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: Likewise.
4096         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: Likewise.
4097         * sysdeps/powerpc/powerpc64/power4/memset.S [NO_BZERO_IMPL]: Remove
4098         define.
4099         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
4100         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
4101
4102 2014-09-10  Florian Weimer  <fweimer@redhat.com>
4103
4104         * Makeconfig (gccwarn-c): Turn implicit-function-declaration
4105         warnings into errors.
4106
4107         * stdlib/tst-tls-atexit-lib.c: Include <stdlib.h>, for the
4108         __cxa_thread_atexit_impl prototype.
4109
4110 2014-09-09  Steve Ellcey  <sellcey@mips.com>
4111
4112         * sysdeps/mips/preconfigure: Put code inside mips* case statement.
4113         Fix capitalization of error message.
4114
4115 2014-09-09  Steve Ellcey  <sellcey@mips.com>
4116
4117         * sysdeps/mips/preconfigure: Modify ABI tests.
4118
4119 2014-09-07  Carlos O'Donell  <carlos@systemhalted.org>
4120
4121         * sysdeps/unix/sysv/linux/hppa/c++-types.data: New file.
4122
4123 2014-09-07  Roland McGrath  <roland@hack.frob.com>
4124             Carlos O'Donell  <carlos@systemhalted.org>
4125
4126         * sysdeps/unix/sysv/linux/hppa/nptl/libc-lowlevellock.c: File removed.
4127         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Moved ...
4128         * sysdeps/unix/sysv/linux/hppa/lowlevellock.h: ... here.
4129         * sysdeps/unix/sysv/linux/hppa/nptl/pt-vfork.S: Moved ...
4130         * sysdeps/unix/sysv/linux/hppa/pt-vfork.S: ... here.
4131         * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Moved ...
4132         * sysdeps/unix/sysv/linux/hppa/pthread.h: ... here.
4133         * sysdeps/unix/sysv/linux/hppa/nptl/pthreadP.h: Moved ...
4134         * sysdeps/unix/sysv/linux/hppa/pthreadP.h: ... here.
4135         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_broadcast.c: Moved ...
4136         * sysdeps/unix/sysv/linux/hppa/pthread_cond_broadcast.c: ... here.
4137         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_destroy.c: Moved ...
4138         * sysdeps/unix/sysv/linux/hppa/pthread_cond_destroy.c: ... here.
4139         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_init.c: Moved ...
4140         * sysdeps/unix/sysv/linux/hppa/pthread_cond_init.c: ... here.
4141         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_signal.c: Moved ...
4142         * sysdeps/unix/sysv/linux/hppa/pthread_cond_signal.c: ... here.
4143         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_timedwait.c: Moved ...
4144         * sysdeps/unix/sysv/linux/hppa/pthread_cond_timedwait.c: ... here.
4145         * sysdeps/unix/sysv/linux/hppa/nptl/pthread_cond_wait.c: Moved ...
4146         * sysdeps/unix/sysv/linux/hppa/pthread_cond_wait.c: ... here.
4147         * sysdeps/unix/sysv/linux/hppa/nptl/sysdep-cancel.h: Moved ...
4148         * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: ... here.
4149         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h: Moved ...
4150         * sysdeps/hppa/nptl/bits/pthreadtypes.h: ... here.
4151         * sysdeps/unix/sysv/linux/hppa/nptl/bits/semaphore.h: Moved ...
4152         * sysdeps/hppa/nptl/bits/semaphore.h: ... here.
4153         * sysdeps/unix/sysv/linux/hppa/clone.S: Include <tcb-offsets.h>.
4154         Deconditionalize the code that was previously under [RESET_PID].
4155         * sysdeps/unix/sysv/linux/hppa/nptl/clone.S: File removed.
4156         * sysdeps/unix/sysv/linux/hppa/arch-fork.h: New file.
4157         * sysdeps/unix/sysv/linux/hppa/nptl/fork.c: File removed.
4158         * sysdeps/hppa/nptl/tcb-offsets.sym: Include pthread.h and don't
4159         include sysdep.h.
4160
4161 2014-09-08  Allan McRae  <allan@archlinux.org>
4162
4163         * version.h (RELEASE): Set to "development".
4164         (VERSION): Set to "2.20.90"
4165
4166 2014-09-07  Allan McRae  <allan@archlinux.org
4167
4168         * version.h (RELEASE): Set to "stable".
4169         (VERSION): Set to "2.20"
4170         * include/features.h (__GLIBC_MINOR__): Set to 20.
4171
4172         * manual/contrib.texi: Add entries for Wilco Dijkstra and Stefan
4173         Liebler.
4174
4175         * po/ko.po: Update Korean translation from translation project.
4176
4177 2014-09-06  Chris Metcalf  <cmetcalf@tilera.com>
4178
4179         [BZ #17354]
4180         * sysdeps/tile/dl-machine.h (elf_machine_rela): Add a MUNGE_SIGNED
4181         macro for handling signed relocations.
4182
4183 2014-09-03  Florian Weimer  <fweimer@redhat.com>
4184
4185         [BZ #17325]
4186         * iconvdata/ibm1364.c (BODY): Fix check for sentinel.
4187         * iconvdata/ibm932.c (BODY): Replace invalid sentinel check with
4188         assert.
4189         * iconvdata/ibm933.c (BODY): Fix check for sentinel.
4190         * iconvdata/ibm935.c (BODY): Likewise.
4191         * iconvdata/ibm937.c (BODY): Likewise.
4192         * iconvdata/ibm939.c (BODY): Likewise.
4193         * iconvdata/ibm943.c (BODY): Replace invalid sentinel check with
4194         assert.
4195         * iconvdata/Makefile (iconv-test.out): Pass module list to test
4196         script.
4197         * iconvdata/run-iconv-test.sh: New test loop for checking for
4198         decoder crashers.
4199
4200 2014-09-02  Khem Raj  <raj.khem@gmail.com>
4201
4202         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c (fegetenv): Add
4203         libm_hidden_ver.
4204
4205 2014-09-01  Allan McRae  <allan@archlinux.org>
4206
4207         * po/eo.po: Update Esperanto translation from translation project.
4208
4209         * po/ca.po: Update Catalan translation from translation project.
4210
4211 2014-08-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4212
4213         * sysdeps/mach/hurd/fork.c (__fork): Lock SS->lock around
4214         __proc_dostop call.
4215
4216 2014-08-27  Mark Wielaard  <mjw@redhat.com>
4217
4218         [BZ #17319]
4219         * sysdeps/i386/nptl/tls.h (TLS_INIT_TP): Use INTERNAL_SYSCALL
4220         to call set_thread_area instead of hand written asm.
4221         (__NR_set_thread_area): Removed define.
4222         (TLS_FLAG_WRITABLE): Likewise.
4223         (__ASSUME_SET_THREAD_AREA): Remove check.
4224         (TLS_EBX_ARG): Remove define.
4225         (TLS_LOAD_EBX): Likewise.
4226
4227 2014-08-27  Samuel Thibault  <samuel.thibault@ens-lyon.org>
4228
4229         Simplify atomicity of socket creation in bind.
4230
4231         * sysdeps/mach/hurd/bind.c (__bind): Use dir_lookup(node, "") instead of
4232         looking up the name after linking the file.
4233
4234 2014-08-27  Allan McRae  <allan@archlinux.org>
4235
4236         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
4237
4238 2014-08-26  Florian Weimer  <fweimer@redhat.com>
4239
4240         [BZ #17187]
4241         * iconv/gconv_trans.c (struct known_trans, search_tree, lock,
4242         trans_compare, open_translit, __gconv_translit_find):
4243         Remove module loading code.
4244
4245 2014-08-26  Allan McRae  <allan@archlinux.org>
4246
4247         * po/vi.po: Update Vietnamese translation from translation project.
4248
4249         * po/uk.po: Update Ukrainian translation from translation project.
4250
4251         * po/fr.po: Update French translation from translation project.
4252
4253         * po/ru.po: Update Russian translation from translation project.
4254
4255         * po/pl.po: Update Polish translation from translation project.
4256
4257         * po/cs.po: Update Czech translation from translation project.
4258
4259         * po/de.po: Update German translation from translation project.
4260
4261         * po/bg.po: Update Bulgarian translation from translation project.
4262
4263         * po/sv.po: Update Sweedish translation from translation project.
4264
4265         * po/nl.po: Update Dutch translation from translation project.
4266
4267         * po/es.po: Update Spanish translation from translation project.
4268
4269 2014-08-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4270
4271         * nptl/Makefile (CFLAGS-pthread_atfork.c): Remove.
4272
4273         * catgets/Makefile (CPPFLAGS-gencat): Remove.
4274         * iconv/Makefile (CPPFLAGS-iconv_prog): Likewise.
4275         (CPPFLAGS-iconvconfig): Likewise.
4276         * timezone/Makefile (CPPFLAGS-zic): Likewise.
4277
4278         * include/libc-symbols.h: Remove unnecessary check for
4279         NOT_IN_libc.
4280         * nptl/pthreadP.h: Likewise.
4281         * sysdeps/aarch64/setjmp.S: Likewise.
4282         * sysdeps/alpha/setjmp.S: Likewise.
4283         * sysdeps/arm/sysdep.h: Likewise.
4284         * sysdeps/i386/setjmp.S: Likewise.
4285         * sysdeps/m68k/setjmp.c: Likewise.
4286         * sysdeps/posix/getcwd.c: Likewise.
4287         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
4288         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
4289         * sysdeps/s390/s390-32/setjmp.S: Likewise.
4290         * sysdeps/s390/s390-64/setjmp.S: Likewise.
4291         * sysdeps/sh/sh3/setjmp.S: Likewise.
4292         * sysdeps/sh/sh4/setjmp.S: Likewise.
4293         * sysdeps/unix/alpha/sysdep.h: Likewise.
4294         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
4295         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
4296         * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
4297         * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
4298         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
4299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
4300         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
4301         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
4302         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
4303         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
4304         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4305         * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
4306         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
4307         * sysdeps/x86_64/setjmp.S: Likewise.
4308
4309 2014-08-13  Joseph Myers  <joseph@codesourcery.com>
4310
4311         [BZ #17263]
4312         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Include
4313         <stdint.h>.
4314         (__get_clockfreq): Use uint64_t instead of hp_timing_t in
4315         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK call.
4316
4317 2014-08-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
4318
4319         * sysdeps/x86/fpu/bits/mathinline.h: Fix typo in comment.
4320
4321         [BZ #17262]
4322         * sysdeps/x86/fpu/bits/mathinline.h: Check both __SSE2_MATH__
4323         and __x86_64__ when disabling x87 inline functions.
4324
4325 2014-08-12  H.J. Lu  <hongjiu.lu@intel.com>
4326
4327         [BZ #17259]
4328         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
4329         asm statement with __cpuid_count.
4330
4331 2014-08-12  Mike Frysinger  <vapier@gentoo.org>
4332
4333         * configure.ac: Change __ehdr_start code to dereference the struct.
4334         Run readelf on the output to look for relocations.
4335         * configure: Regenerated.
4336
4337 2014-08-12  Joseph Myers  <joseph@codesourcery.com>
4338
4339         [BZ #17261]
4340         * sysdeps/powerpc/nofpu/fenv_const.c (__fe_enabled_env): Change
4341         value to 0.
4342         (__fe_nonieee_env): Define as an alias for __fe_dfl_env.
4343
4344 2014-08-12  Roland McGrath  <roland@hack.frob.com>
4345
4346         * NEWS: Mention x86-64 ld.so use of Intel MPX instructions.
4347
4348 2014-08-12  Bernard Ogden  <bernie.ogden@linaro.org>
4349
4350         [BZ #16892]
4351         * sysdeps/nptl/lowlevellock.h (__lll_timedlock): Use
4352         atomic_compare_and_exchange_bool_acq rather than atomic_exchange_acq.
4353
4354 2014-08-12  Sean Anderson  <seanga2@gmail.com>
4355
4356         * malloc/malloc.c: Fix typo in comment.
4357
4358 2014-08-09  Allan McRae  <allan@archlinux.org>
4359
4360         * Regenerate libc.po.
4361
4362 2014-08-08  Mike Frysinger  <vapier@gentoo.org>
4363
4364         * intl/tst-gettext2.sh: Check every lang file for creation.
4365
4366 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
4367
4368         * sysdeps/aarch64/fpu/math_private.h
4369         (libc_feholdsetround_noex_aarch64_ctx): New function.
4370
4371 2014-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
4372
4373         * sysdeps/arm/armv6/strcpy.S (strcpy):
4374         Fix performance issue in misaligned cases.
4375
4376 2014-08-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4377
4378         * sysdeps/unix/sysv/linux/powerpc/bits/ioctl-types.h (struct winsize):
4379         Move definition from termios.h.
4380         (struct termio): Likewise.
4381         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
4382         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
4383         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
4384         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
4385         Likewise.
4386         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (struct winsize):
4387         Move definition to ioctl-types.h
4388         (struct termio): Likewise.
4389         (NCC, TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
4390         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI, N_TTY, N_SLIP,
4391         N_MOUSE, N_PPP, N_STRIP, N_AX25, N_X25, N_6PACK, N_MASC, N_R3964,
4392         N_PROFIBUS_FDL, N_IRDA, N_SMSBLOCK, N_HDLC, N_SYNC_PPP, N_HCI):
4393         Likewise.
4394
4395 2014-08-05  Richard Henderson  <rth@redhat.com>
4396
4397         * sysdeps/alpha/soft-fp/ots_cvtxq.c (_OtsCvtXQ): Always raise
4398         exceptions.
4399         * sysdeps/alpha/soft-fp/Makefile [soft-fp] (sysdep_routines):
4400         Add fraiseexcpt.
4401         * sysdeps/alpha/soft-fp/sfp-machine.h (FP_HANDLE_EXCEPTIONS):
4402         Use __feraiseexcept.
4403         * sysdeps/unix/sysv/linux/alpha/fraiseexcpt.S (feraiseexcept):
4404         Protect libm symbols with IS_IN_libm.
4405
4406         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Remove file.
4407
4408 2014-08-04  Bernard Ogden  <bernie.ogden@linaro.org>
4409
4410         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Remove file.
4411
4412 2014-08-04  Will Newton  <will.newton@linaro.org>
4413
4414         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Remove
4415         file.
4416
4417 2014-08-04  Mike Frysinger  <vapier@gentoo.org>
4418
4419         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h (PSEUDO): Add nocancel
4420         variants for each function.
4421
4422 2014-08-04  Roland McGrath  <roland@hack.frob.com>
4423
4424         * sysdeps/unix/sysv/linux/ia64/nptl/Makefile: File removed, contents
4425         appended ...
4426         * sysdeps/unix/sysv/linux/ia64/Makefile: ... here.
4427         * sysdeps/unix/sysv/linux/ia64/nptl/Versions: File removed, contents
4428         appended ...
4429         * sysdeps/unix/sysv/linux/ia64/Versions: ... here.
4430         * sysdeps/unix/sysv/linux/ia64/nptl/__ia64_longjmp.S: Moved ...
4431         * sysdeps/unix/sysv/linux/ia64/__ia64_longjmp.S: ... here.
4432         * sysdeps/unix/sysv/linux/ia64/nptl/__sigstack_longjmp.c: Moved ...
4433         * sysdeps/unix/sysv/linux/ia64/__sigstack_longjmp.c: ... here.
4434         * sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data: Moved ...
4435         * sysdeps/unix/sysv/linux/ia64/c++-types.data: ... here.
4436         * sysdeps/unix/sysv/linux/ia64/nptl/dl-sysdep.h: Moved ...
4437         * sysdeps/unix/sysv/linux/ia64/dl-sysdep.h: ... here.
4438         * sysdeps/unix/sysv/linux/ia64/nptl/ld.abilist: Moved ...
4439         * sysdeps/unix/sysv/linux/ia64/ld.abilist: ... here.
4440         * sysdeps/unix/sysv/linux/ia64/nptl/libBrokenLocale.abilist: Moved ...
4441         * sysdeps/unix/sysv/linux/ia64/libBrokenLocale.abilist: ... here.
4442         * sysdeps/unix/sysv/linux/ia64/nptl/libanl.abilist: Moved ...
4443         * sysdeps/unix/sysv/linux/ia64/libanl.abilist: ... here.
4444         * sysdeps/unix/sysv/linux/ia64/nptl/libc.abilist: Moved ...
4445         * sysdeps/unix/sysv/linux/ia64/libc.abilist: ... here.
4446         * sysdeps/unix/sysv/linux/ia64/nptl/libcrypt.abilist: Moved ...
4447         * sysdeps/unix/sysv/linux/ia64/libcrypt.abilist: ... here.
4448         * sysdeps/unix/sysv/linux/ia64/nptl/libdl.abilist: Moved ...
4449         * sysdeps/unix/sysv/linux/ia64/libdl.abilist: ... here.
4450         * sysdeps/unix/sysv/linux/ia64/nptl/libm.abilist: Moved ...
4451         * sysdeps/unix/sysv/linux/ia64/libm.abilist: ... here.
4452         * sysdeps/unix/sysv/linux/ia64/nptl/libnsl.abilist: Moved ...
4453         * sysdeps/unix/sysv/linux/ia64/libnsl.abilist: ... here.
4454         * sysdeps/unix/sysv/linux/ia64/nptl/libpthread.abilist: Moved ...
4455         * sysdeps/unix/sysv/linux/ia64/libpthread.abilist: ... here.
4456         * sysdeps/unix/sysv/linux/ia64/nptl/libresolv.abilist: Moved ...
4457         * sysdeps/unix/sysv/linux/ia64/libresolv.abilist: ... here.
4458         * sysdeps/unix/sysv/linux/ia64/nptl/librt.abilist: Moved ...
4459         * sysdeps/unix/sysv/linux/ia64/librt.abilist: ... here.
4460         * sysdeps/unix/sysv/linux/ia64/nptl/libthread_db.abilist: Moved ...
4461         * sysdeps/unix/sysv/linux/ia64/libthread_db.abilist: ... here.
4462         * sysdeps/unix/sysv/linux/ia64/nptl/libutil.abilist: Moved ...
4463         * sysdeps/unix/sysv/linux/ia64/libutil.abilist: ... here.
4464         * sysdeps/unix/sysv/linux/ia64/nptl/localplt.data: Moved ...
4465         * sysdeps/unix/sysv/linux/ia64/localplt.data: ... here.
4466         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Moved ...
4467         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: ... here.
4468         * sysdeps/unix/sysv/linux/ia64/nptl/sysdep-cancel.h: Moved ...
4469         * sysdeps/unix/sysv/linux/ia64/sysdep-cancel.h: ... here.
4470         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Moved ...
4471         * sysdeps/unix/sysv/linux/ia64/timer_create.c: ... here.
4472         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Moved ...
4473         * sysdeps/unix/sysv/linux/ia64/timer_delete.c: ... here.
4474         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Moved ...
4475         * sysdeps/unix/sysv/linux/ia64/timer_getoverr.c: ... here.
4476         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c: Moved ...
4477         * sysdeps/unix/sysv/linux/ia64/timer_gettime.c: ... here.
4478         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c: Moved ...
4479         * sysdeps/unix/sysv/linux/ia64/timer_settime.c: ... here.
4480         * sysdeps/unix/sysv/linux/ia64/nptl/unwind-forcedunwind.c: Moved ...
4481         * sysdeps/unix/sysv/linux/ia64/unwind-forcedunwind.c: ... here.
4482         Update #include.
4483         * sysdeps/unix/sysv/linux/ia64/nptl/unwind_longjmp.c: Moved ...
4484         * sysdeps/unix/sysv/linux/ia64/unwind_longjmp.c: ... here.
4485
4486 2014-08-04  Roland McGrath  <roland@hack.frob.com>
4487
4488         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h: Moved ...
4489         * sysdeps/ia64/nptl/bits/pthreadtypes.h: ... here.
4490         * sysdeps/unix/sysv/linux/ia64/nptl/bits/semaphore.h: Moved ...
4491         * sysdeps/ia64/nptl/bits/semaphore.h: ... here.
4492         * sysdeps/unix/sysv/linux/ia64/nptl/bits/local_lim.h: Moved ...
4493         * sysdeps/unix/sysv/linux/ia64/bits/local_lim.h: ... here.
4494
4495 2014-08-04  Roland McGrath  <roland@hack.frob.com>
4496
4497         * nptl/sysdeps/pthread/createthread.c: Include <arch-fork.h>.
4498         * sysdeps/unix/sysv/linux/ia64/arch-fork.h (ARCH_CLONE): New macro.
4499         * sysdeps/ia64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
4500         * sysdeps/unix/sysv/linux/ia64/nptl/createthread.c: File removed.
4501
4502 2014-08-04  Roland McGrath  <roland@hack.frob.com>
4503
4504         * sysdeps/unix/sysv/linux/ia64/nptl/vfork.S: Moved ...
4505         * sysdeps/unix/sysv/linux/ia64/vfork.S: ... here.
4506         (__libc_vfork): Define function under this name.
4507         (__vfork): Define as an alias.
4508         * sysdeps/unix/sysv/linux/ia64/pt-vfork.S: New file.
4509         * sysdeps/unix/sysv/linux/ia64/nptl/pt-vfork.S: File removed.
4510
4511 2014-08-04  Roland McGrath  <roland@hack.frob.com>
4512
4513         * sysdeps/unix/sysv/linux/ia64/clone2.S: Deconditionalize the code
4514         that was previously under [RESET_PID].
4515         * sysdeps/unix/sysv/linux/ia64/nptl/clone2.S: File removed.
4516
4517 2014-08-04  Andreas Schwab  <schwab@suse.de>
4518
4519         * sysdeps/ieee754/ldbl-96/s_fma.c: Include <math_private.h>.
4520
4521 2014-08-03  Mike Frysinger  <vapier@gentoo.org>
4522
4523         * stdlib/tst-setcontext.c (test_stack): Fix coding style.
4524         (main): Likewise.
4525
4526 2014-08-01  Roland McGrath  <roland@hack.frob.com>
4527
4528         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: File removed.
4529
4530 2014-08-01  Richard Henderon  <rth@redhat.com>
4531
4532         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use math_force_eval before
4533         feclearexcept; use math_opt_barrier instead of open-coded asm; fix
4534         typo in exact zero test.
4535         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
4536         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
4537         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
4538
4539 2014-08-01  Roland McGrath  <roland@hack.frob.com>
4540
4541         * sysdeps/unix/sysv/linux/arm/sysdep.h (PTR_MANGLE_LOAD, PTR_MANGLE)
4542         (PTR_MANGLE2, PTR_DEMANGLE, PTR_DEMANGLE2): Move these macros...
4543         * sysdeps/arm/sysdep.h: ... here.
4544         [!__ASSEMBLER__]: Include <stdint.h>.
4545
4546 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
4547
4548         * include/libc-symbols.h (HAVE_LIBINTL_H): Define macro.
4549         (HAVE_WCTYPE_H): Likewise.
4550         (HAVE_ISWCTYPE): Likewise.
4551         (ENABLE_NLS): Likewise.
4552         * posix/regex_internal.h [(defined MB_CUR_MAX && HAVE_WCTYPE_H
4553         && HAVE_ISWCTYPE) || _LIBC]: Sync up with gnulib.
4554
4555         * posix/regex_internal.c: Check if DEBUG is defined and is
4556         set.
4557
4558         * include/libc-symbols.h (HAVE_MBSTATE_T): Define macro.
4559         (HAVE_MBSRTOWCS): Likewise.
4560         * posix/fnmatch.c: Include string.h unconditionally.
4561
4562 2014-08-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
4563
4564         * NEWS: Explain the s390 jmp_buf / ucontext_t ABI change
4565         reversal.
4566
4567 2014-07-31  Roland McGrath  <roland@hack.frob.com>
4568
4569         * sysdeps/generic/safe-fatal.h: New file.
4570         * sysdeps/unix/sysv/linux/safe-fatal.h: New file.
4571         * nptl/forward.c: Include it.
4572         (__pthread_unwind): Use __safe_fatal as default action, rather
4573         than a bogus use of INTERNAL_SYSCALL that could never work.
4574
4575         * config.h.in (HAVE_BUILTIN_TRAP): New #define to 0.
4576         * configure.ac (libc_cv_builtin_trap): New test.
4577         * configure: Regenerated.
4578         * sysdeps/generic/abort-instr.h [HAVE_BUILTIN_TRAP]
4579         (ABORT_INSTRUCTION): Define using __builtin_trap.
4580
4581         * nptl/pthreadP.h (SIGCANCEL, SIGTIMER, SIGSETXID, __xidcmd): Moved ...
4582         * sysdeps/unix/sysv/linux/nptl-signals.h: ... to this new file.
4583         * sysdeps/nptl/nptl-signals.h: New file.
4584         * nptl/pthreadP.h: Include <nptl-signals.h>.
4585
4586 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4587
4588         * sysdeps/s390/s390-64/utf16-utf32-z9.c
4589         (ONE_DIRECTION): Define.
4590         * sysdeps/s390/s390-64/utf8-utf16-z9.c
4591         (ONE_DIRECTION): Define.
4592         * sysdeps/s390/s390-64/utf8-utf32-z9.c
4593         (ONE_DIRECTION): Define.
4594
4595 2014-07-31  Stefan Liebler  <stli@linux.vnet.ibm.com>
4596
4597         * sysdeps/s390/Makefile: Delete file.
4598         * sysdeps/s390/Versions (GLIBC_2.19): Remove __setjmp.
4599         * sysdeps/s390/__longjmp.c: Delete file.
4600         * sysdeps/s390/bits/setjmp.h (__s390_jmp_buf):
4601         Remove fields __flags and __reserved.
4602         * sysdeps/s390/longjmp.c: Include setjmp/longjmp.c
4603         and add versioning.
4604         * sysdeps/s390/rtld-__longjmp.c: Delete file.
4605         * sysdeps/s390/rtld-global-offsets.sym: Likewise.
4606         * sysdeps/s390/rtld-setjmp.S: Likewise.
4607         * sysdeps/s390/s390-32/__longjmp-common.c: Move to ...
4608         * sysdeps/s390/s390-32/__longjmp.c: ... here.
4609         * sysdeps/s390/s390-32/setjmp-common.S: Move to ...
4610         * sysdeps/s390/s390-32/setjmp.S: ... here.
4611         Add versioning.
4612         (__sigsetjmp): Remove setting __flags field.
4613         * sysdeps/s390/s390-64/__longjmp-common.c:Move to ...
4614         * sysdeps/s390/s390-64/__longjmp.c: ... here.
4615         * sysdeps/s390/s390-64/setjmp-common.S: Move to ...
4616         * sysdeps/s390/s390-64/setjmp.S: ... here.
4617         Add versioning.
4618         (__sigsetjmp): Remove setting __flags field.
4619         * sysdeps/s390/setjmp.S: Delete file.
4620         * sysdeps/s390/sigjmp.c: Likewise.
4621         * sysdeps/s390/v1-longjmp.c: Likewise.
4622         * sysdeps/s390/v1-setjmp.h: Likewise.
4623         * sysdeps/s390/v1-sigjmp.c: Likewise.
4624         * sysdeps/unix/sysv/linux/s390/Makefile (sysdep_routines):
4625         Remove v1-longjmp_chk.
4626         * sysdeps/unix/sysv/linux/s390/getcontext.S: Delete file.
4627         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c:
4628         Include debug/longjmp_chk.c and add versioning.
4629         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c:
4630         Include nptl/pt-longjmp.c and add versioning.
4631         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: Delete file.
4632         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c:
4633         Include __longjmp.c.
4634         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
4635         Move to ...
4636         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: ... here.
4637         (__getcontext): Remove setting __flags field.
4638         Add versioning.
4639         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
4640         Don't restore upper high grps.
4641         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S:
4642         Likewise.
4643         (__swapcontext): Remove setting uc_flags field.
4644         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym:
4645         Delete file.
4646         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
4647         Include __longjmp.c.
4648         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
4649         Move to ...
4650         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: ... here.
4651         (__getcontext): Remove setting __flags field.
4652         Add versioning.
4653         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S:
4654         (__swapcontext): Remove setting uc_flags field.
4655         * unix/sysv/linux/s390/s390-64/ucontext_i.sym: Delete file.
4656         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (ucontext):
4657         Remove fields uc_high_gprs and __reserved.
4658         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym:
4659         New file with reverted content.
4660         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: Delete file.
4661         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist:
4662         Regenerated.
4663         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist:
4664         Regenerated.
4665
4666 2014-07-31  Andreas Schwab  <schwab@suse.de>
4667
4668         * config.h.in (HAVE_IFUNC): Define to 0.
4669         * rt/clock-compat.c [HAVE_IFUNC]: Check for value, not
4670         definedness.
4671
4672 2014-07-30  Ling Ma  <ling.ml@alibaba-inc.com>
4673
4674         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4675         memmove-avx-unaligned, memcpy-avx-unaligned and
4676         mempcpy-avx-unaligned.
4677         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4678         Add tests for AVX memcpy functions.
4679         * sysdeps/x86_64/multiarch/memcpy.S: Add support for AVX memcpy.
4680         * sysdeps/x86_64/multiarch/memcpy_chk.S: Add support for AVX
4681         memcpy_chk.
4682         * sysdeps/x86_64/multiarch/memmove.c: Add support for AVX memmove.
4683         * sysdeps/x86_64/multiarch/memmove_chk.c: Add support for AVX
4684         memmove_chk.
4685         * sysdeps/x86_64/multiarch/mempcpy.S: Add support for AVX mempcpy.
4686         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Add support for AVX
4687         mempcpy_chk.
4688         * sysdeps/x86_64/multiarch/memcpy-avx-unaligned.S: New file.
4689         * sysdeps/x86_64/multiarch/mempcpy-avx-unaligned.S: New file.
4690         * sysdeps/x86_64/multiarch/memmove-avx-unaligned.S: New file.
4691
4692 2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4693
4694         [BZ #17213]
4695         * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
4696         powerpc64le.
4697
4698 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
4699
4700         [BZ #16839]
4701         * manual/llio.texi: Add section about open file description locks.
4702         * manual/examples/ofdlocks.c: Example of open file description
4703         lock usage.
4704         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Define F_OFD_GETLK,
4705         F_OFD_SETLK, and F_OFD_SETLKW.
4706
4707 2014-07-23  Allan McRae  <allan@archlinux.org>
4708
4709         * po/es.po: Update Spanish translation from translation project.
4710
4711 2014-07-18  Andreas Schwab  <schwab@linux-m68k.org>
4712
4713         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Removed.
4714
4715 2014-07-17  Maciej W. Rozycki  <macro@codesourcery.com>
4716
4717         [BZ #17078]
4718         * sysdeps/arm/dl-machine.h (elf_machine_rela)
4719         [RESOLVE_CONFLICT_FIND_MAP]: Handle R_ARM_TLS_DESC relocation.
4720         (elf_machine_lazy_rel): Handle prelinked R_ARM_TLS_DESC entries.
4721
4722 2014-07-17  Joseph Myers  <joseph@codesourcery.com>
4723
4724         [BZ #17088]
4725         * math/fesetenv.c (__fesetenv)
4726         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Return 1 for FE_NOMASK_ENV.
4727         * math/feupdateenv.c (__feupdateenv)
4728         [FE_NOMASK_ENV && FE_ALL_EXCEPT != 0]: Likewise.
4729
4730         * sysdeps/unix/sysv/linux/s390/kernel-features.h: New file.
4731         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
4732         (__ASSUME_SOCKETCALL): Do not define.
4733
4734         * sysdeps/unix/sysv/linux/sh/kernel-features.h: New file.
4735         * sysdeps/unix/sysv/linux/kernel-features.h [__sh__]
4736         (__ASSUME_SOCKETCALL): Do not define.
4737         (__ASSUME_ST_INO_64_BIT): Define unconditionally.
4738         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
4739         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4740         [__LINUX_KERNEL_VERSION >= 0x020625 && __sh__]
4741         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4742         [__LINUX_KERNEL_VERSION >= 0x030000 && __sh__]
4743         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4744         [__sh__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4745
4746         * sysdeps/unix/sysv/linux/powerpc/kernel-features.h: New file.
4747         * sysdeps/unix/sysv/linux/kernel-features.h [__powerpc__]
4748         (__ASSUME_SOCKETCALL): Do not define.
4749         (__ASSUME_IPC64): Define unconditionally.
4750         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
4751         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4752         [__LINUX_KERNEL_VERSION >= 0x020625 && __powerpc__]
4753         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4754         [__LINUX_KERNEL_VERSION >= 0x030000 && __powerpc__]
4755         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4756         [__powerpc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL):
4757         Likewise.
4758
4759         * sysdeps/unix/sysv/linux/sparc/kernel-features.h: New file.
4760         * sysdeps/unix/sysv/linux/kernel-features.h [__sparc__]
4761         (__ASSUME_SOCKETCALL): Do not define.
4762         (__ASSUME_SET_ROBUST_LIST): Define unconditionally.
4763         (__ASSUME_FUTEX_LOCK_PI): Likewise.
4764         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4765         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
4766         (__ASSUME_REQUEUE_PI): Define unconditionally.
4767         [__LINUX_KERNEL_VERSION >= 0x020621 && __sparc__]
4768         (__ASSUME_RECVMMSG_SYSCALL): Do not define.
4769         [__sparc__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4770         [__LINUX_KERNEL_VERSION >= 0x030000 && __sparc__]
4771         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4772         [__sparc__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4773
4774         * sysdeps/unix/sysv/linux/i386/kernel-features.h: New file.
4775         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__]
4776         (__ASSUME_SOCKETCALL): Do not define.
4777         [__LINUX_KERNEL_VERSION >= 0x020621 && __i386__]
4778         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4779         [__i386__] (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4780         [__LINUX_KERNEL_VERSION >= 0x030000 && __i386__]
4781         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4782         [__i386__] (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
4783
4784         * sysdeps/unix/sysv/linux/x86_64/kernel-features.h: New file.
4785         * sysdeps/unix/sysv/linux/kernel-features.h [__x86_64__]
4786         (__ASSUME_ACCEPT4_SYSCALL): Do not define.
4787         [__LINUX_KERNEL_VERSION >= 0x020621 && __x86_64__]
4788         (__ASSUME_RECVMMSG_SYSCALL): Likewise.
4789         [__LINUX_KERNEL_VERSION >= 0x030000 && __x86_64__]
4790         (__ASSUME_SENDMMSG_SYSCALL): Likewise.
4791         [__x86_64__ && __LINUX_KERNEL_VERSION >= 0x030100]
4792         (__ASSUME_GETCPU_SYSCALL): Likewise.
4793
4794         * aclocal.m4 (LIBC_SLIBDIR_RTLDDIR): New macro.
4795         * sysdeps/gnu/configure.ac: Use LIBC_SLIBDIR_RTLDDIR.  Remove
4796         cases for individual architectures.
4797         * sysdeps/gnu/configure: Regenerated.
4798         * sysdeps/unix/sysv/linux/aarch64/configure.ac: Use
4799         LIBC_SLIBDIR_RTLDDIR.
4800         * sysdeps/unix/sysv/linux/aarch64/configure: Regenerated.
4801         * sysdeps/unix/sysv/linux/mips/configure.ac: Use
4802         LIBC_SLIBDIR_RTLDDIR.
4803         * sysdeps/unix/sysv/linux/mips/configure: Regenerated.
4804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: Use
4805         LIBC_SLIBDIR_RTLDDIR.
4806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure:
4807         Regenerated.
4808         * sysdeps/unix/sysv/linux/s390/s390-64/configure.ac: New file.
4809         * sysdeps/unix/sysv/linux/s390/s390-64/configure: New generated
4810         file.
4811         * sysdeps/unix/sysv/linux/sparc/sparc64/configure.ac: New file.
4812         * sysdeps/unix/sysv/linux/sparc/sparc64/configure: New generated
4813         file.
4814         * sysdeps/unix/sysv/linux/x86_64/64/configure.ac: New file.
4815         * sysdeps/unix/sysv/linux/x86_64/64/configure: New generated file.
4816         * sysdeps/unix/sysv/linux/x86_64/x32/configure.ac: New file.
4817         * sysdeps/unix/sysv/linux/x86_64/x32/configure: Generate.
4818
4819         * sysdeps/aarch64/shlib-versions: Move to ...
4820         * sysdeps/unix/sysv/linux/aarch64/shlib-versions: ... here.
4821         * sysdeps/alpha/shlib-versions: Move to ...
4822         * sysdeps/unix/sysv/linux/alpha/shlib-versions: ... here.
4823         * sysdeps/arm/shlib-versions: Move to ...
4824         * sysdeps/unix/sysv/linux/arm/shlib-versions: ... here.
4825         * sysdeps/hppa/shlib-versions: Move all contents except for
4826         libgcc_s entry to ...
4827         * sysdeps/unix/sysv/linux/hppa/shlib-versions: ... here.  Merge in
4828         entry from ...
4829         * sysdeps/hppa/nptl/shlib-versions: ... here.  Remove file.
4830         * sysdeps/ia64/shlib-versions: Move to ...
4831         * sysdeps/unix/sysv/linux/ia64/shlib-versions: ... here.  Merge in
4832         entry from ...
4833         * sysdeps/ia64/nptl/shlib-versions: ... here.  Remove file.
4834         * sysdeps/m68k/coldfire/shlib-versions: Move to ...
4835         * sysdeps/unix/sysv/linux/m68k/coldfire/shlib-versions: ... here.
4836         * sysdeps/microblaze/shlib-versions: Move to ...
4837         * sysdeps/unix/sysv/linux/microblaze/shlib-versions: ... here.
4838         * sysdeps/mips/shlib-versions: Move to ...
4839         * sysdeps/unix/sysv/linux/mips/shlib-versions: ... here.  Merge in
4840         entry from ...
4841         * sysdeps/mips/nptl/shlib-versions: ... here.  Remove file.
4842         * sysdeps/tile/shlib-versions: Move to ...
4843         * sysdeps/unix/sysv/linux/tile/shlib-versions: ... here.
4844         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: Merge in entry
4845         from ...
4846         * sysdeps/x86_64/64/shlib-versions: ... here.  Remove file.
4847         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: Merge in
4848         entry from ...
4849         * sysdeps/x86_64/x32/shlib-versions: ... here.  Remove file.
4850
4851 2014-07-17  Will Newton  <will.newton@linaro.org>
4852
4853         * sysdeps/arm/bits/atomic.h
4854         (__arch_compare_and_exchange_bool_8_int): Evaluate to zero.
4855         (__arch_compare_and_exchange_bool_16_int): Likewise.
4856         (__arch_compare_and_exchange_bool_64_int): Likewise.
4857
4858         * iconv/loop.c: Move definition of LOOPFCT and gconv_btowc
4859         into an #else block.
4860
4861 2014-07-16  Roland McGrath  <roland@hack.frob.com>
4862
4863         * sysdeps/arm/preconfigure.ac: Apply EABI sanity check to arm*, not
4864         just Linux configurations.  Test empirically that the compiler sets
4865         __ARM_EABI__, rather than using the tuple to decide.
4866         * sysdeps/arm/preconfigure: Regenerated.
4867         * sysdeps/unix/sysv/linux/arm/configure: File removed.
4868         * sysdeps/unix/sysv/linux/arm/configure.ac: File removed,
4869         contents appended ...
4870         * sysdeps/arm/configure.ac: ... here.
4871         * sysdeps/arm/configure: Regenerated.
4872
4873 2014-07-15  Roland McGrath  <roland@hack.frob.com>
4874
4875         * nptl/pthread_kill.c: New file.
4876         * nptl/pthread_sigmask.c: New file.
4877         * nptl/pthread_sigqueue.c: New file.
4878
4879         * sysdeps/nptl/lowlevellock.h: New file.
4880         * sysdeps/unix/sysv/linux/lowlevellock-futex.h: New file.
4881         * sysdeps/nptl/lowlevellock-futex.h: New file.
4882
4883         * nptl/pthreadP.h (__current_sigrtmin, __current_sigrtmax):
4884         Remove dead declarations.
4885
4886 2014-07-14  H.J. Lu  <hongjiu.lu@intel.com>
4887
4888         * config.h.in (HAVE_AVX2_SUPPORT): New #undef.
4889         * sysdeps/i386/configure.ac: Set HAVE_AVX2_SUPPORT and
4890         config-cflags-avx2.
4891         * sysdeps/x86_64/configure.ac: Likewise.
4892         * sysdeps/i386/configure: Regenerated.
4893         * sysdeps/x86_64/configure: Likewise.
4894         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
4895         memset-avx2 only if config-cflags-avx2 is yes.
4896         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
4897         Tests for memset_chk and memset only if HAVE_AVX2_SUPPORT is
4898         defined.
4899         * sysdeps/x86_64/multiarch/memset.S: Define multiple versions
4900         only if HAVE_AVX2_SUPPORT is defined.
4901         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
4902
4903 2014-07-14  Alan Modra  <amodra@gmail.com>
4904
4905         [BZ #17153]
4906         * elf/elf.h (DT_PPC64_NUM): Correct value.
4907         * NEWS: Add to fixed bug list.
4908
4909 2014-07-13  Jim Meyering  <meyering@fb.com>
4910
4911         [BZ 17150]
4912         regex: don't deref NULL upon heap allocation failure
4913         * posix/regcomp.c: (parse_dup_op): Handle duplicate_tree
4914         failure in one more place.
4915         To trigger the segfault, configure grep -with-included-regex,
4916         build it, and run these commands:
4917         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
4918
4919 2014-07-13  Andreas Schwab  <schwab@linux-m68k.org>
4920
4921         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
4922
4923 2014-07-11  Richard Henderson  <rth@redhat.com>
4924
4925         * sysdeps/aarch64/libm-test-ulps: Update.
4926
4927 2014-07-10  Florian Weimer  <fweimer@redhat.com>
4928
4929         [BZ #17135]
4930         * nptl/pthreadP.h (__nptl_setxid_error): Declare function.
4931         * nptl/allocatestack.c (__nptl_setxid_error): New function.
4932         (__nptl_setxid): Initialize error member.  Call
4933         __nptl_setxid_error.
4934         * nptl/nptl-init.c (sighandler_setxid): Call __nptl_setxid_error.
4935         * nptl/descr.h (struct xid_command): Add error member.
4936         * nptl/tst-setuid3.c: New file.
4937         * nptl/Makefile (tests): Add it.
4938
4939 2014-07-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4940
4941         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h (__lll_base_trylock):
4942         New define.
4943         (__lll_trylock): Use __lll_base_trylock.
4944         (__lll_cond_trylock): Likewise.
4945
4946 2014-07-10  Roland McGrath  <roland@hack.frob.com>
4947
4948         * nptl/pthread_create.c (start_thread): Use atomic_or and
4949         lll_futex_wake directly rather than lll_robust_dead.
4950         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
4951         (lll_robust_dead): Macro removed.
4952         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: Likewise.
4953         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4954         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
4955         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
4956         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4957         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
4958         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
4959         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
4960         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
4961         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4962         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4963         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4964         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4965         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
4966         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4967
4968         * nptl/pthread_mutex_trylock.c (__pthread_mutex_trylock):
4969         Use atomic_compare_and_exchange_val_acq directly rather than
4970         lll_robust_trylock.
4971         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h
4972         (__lll_robust_trylock, lll_robust_trylock): Removed.
4973         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: Likewise.
4974         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: Likewise.
4975         * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
4976         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
4977         * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h: Likewise.
4978         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: Likewise.
4979         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
4980         * sysdeps/unix/sysv/linux/mips/lowlevellock.h: Likewise.
4981         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
4982         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
4983         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
4984         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
4985         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
4986         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
4987
4988 2014-07-02  Florian Weimer  <fweimer@redhat.com>
4989
4990         * manual/locale.texi (Locale Names): New section documenting
4991         locale name syntax.  Adjust menu and node chaining accordingly.
4992         (Choosing Locale): Reference Locale Names, Locale Categories.
4993         Mention setting LC_ALL=C.  Reflect that name syntax is now
4994         documented.
4995         (Locale Categories): New section title.  Reference Locale Names.
4996         LC_ALL is an environment variable, but not a category.
4997         (Setting the Locale): Remove "locale -a" invocation and LOCPATH
4998         description, now in Locale Name.  Reference that section.  Locale
4999         name syntax is now documented.
5000
5001 2014-07-02  Florian Weimer  <fweimer@redhat.com>
5002
5003         [BZ #17137]
5004         * locale/findlocale.c (name_present, valid_locale_name): New
5005         functions.
5006         (_nl_find_locale): Use the loc_name variable to store name
5007         candidates.  Call name_present and valid_locale_name to check and
5008         validate locale names.  Return an error if the locale is invalid.
5009
5010 2014-07-02  Florian Weimer  <fweimer@redhat.com>
5011
5012         * locale/setlocale.c (setlocale): Use strdup for allocating
5013         composite name copy.
5014
5015 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5016
5017         Sync up with gnulib.
5018         * misc/error.c: Use !_LIBC instead of HAVE_CONFIG_H.
5019         [!_LIBC && ENABLE_NLS]: Include gettext.h.
5020         [_LIBC]: Define USE_UNLOCKED_IO, _GL_ATTRIBUTE_FORMAT_PRINTF
5021         and _GL_ARG_NONNULL.
5022         [USE_UNLOCKED_IO]: Include unlocked-io.h.
5023         [!_LIBC]: Include code for Windows and Cygwin.
5024         [!_LIBC && !HAVE_DECL_STRERROR_R && !STRERROR_R_CHAR_P]:
5025         Include prototype for int strerror_r.
5026         [!_LIBC] (is_open): New function.
5027         (flush_stdout): New function.
5028         (print_errno_message): Use it.
5029         (error): Likewise.
5030         (error_at_line): Likewise.
5031         (error_tail) Add function attribute macros.  Use
5032         __builtin_expect.
5033
5034         * time/strptime_l.c [_LIBC]: Define HAVE_LOCALTIME_R.
5035
5036         * time/strftime_l.c [_LIBC]: Define HAVE_STRFTIME.
5037
5038         * io/ftw.c: Include sys/param.h unconditionally.
5039
5040         * locale/programs/simple-hash.c [!HAVE_OBSTACK]: Remove code.
5041
5042         [BZ #17125]
5043         * sysdeps/unix/sysv/linux/check_pf.c (cache): Don't use
5044         libc_freeres_ptr.
5045         (freecache): New function to free CACHE on exit.
5046
5047         * sunrpc/xdr.c (xdr_string): Add comment about SIZE
5048         initialization.
5049
5050 2014-07-09  David S. Miller  <davem@davemloft.net>
5051
5052         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5053
5054         * sysdeps/sparc/nptl/internaltypes.h: Delete.
5055         * sysdeps/sparc/nptl/sparc-nptl.h: New file.
5056         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: Include it.
5057         * sysdeps/sparc/nptl/pthread_barrier_init.c: Likewise.
5058         * sysdeps/sparc/nptl/pthread_barrier_wait.c: Likewise.
5059         * sysdeps/sparc/nptl/sem_init.c: Likewise.
5060         * sysdeps/sparc/nptl/sem_post.c: Likewise.
5061         * sysdeps/sparc/nptl/sem_timedwait.c: Likewise.
5062         * sysdeps/sparc/nptl/sem_wait.c: Likewise.
5063         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Likewise.
5064         * sysdeps/sparc/sparc32/nptl/sem_post.c: Likewise.
5065         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Likewise.
5066         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Likewise.
5067
5068 2014-07-09  Andreas Schwab  <schwab@suse.de>
5069
5070         * sysdeps/powerpc/test-gettimebase.c (do_test): Add newline to
5071         output.
5072         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c
5073         (do_test): Likewise.
5074
5075         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5076
5077 2014-07-09  Will Newton  <will.newton@linaro.org>
5078
5079         * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
5080         * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
5081         * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
5082         * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
5083         * sysdeps/hppa/start.S (_start): Likewise.
5084
5085 2014-07-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
5086
5087         * sunrpc/xdr.c (xdr_string): Initialize SIZE to 0.
5088
5089         * sysdeps/generic/unwind-pe.h: Only check if __cplusplus is
5090         defined.
5091
5092 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5093
5094         * resolv/res_query.c (__libc_res_nsearch): Dereference resplen2
5095         after checking that it is non-NULL.
5096
5097         * sysdeps/i386/dl-machine.h: Define ELF_MACHINE_NO_REL.
5098
5099 2014-07-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5100
5101         * sysdeps/powerpc/memmove.c: Remove file.
5102         * sysdeps/powerpc/powerpc32/power4/memcopy.h
5103         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Define it to 1.
5104         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c
5105         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Remove define.
5106         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c:
5107         [MEMCPY_OK_FOR_FWD_MEMMOVE]: Likewise.
5108         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: Include default
5109         string memmove instead of removed powerpc one.
5110
5111         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
5112         [weak_alias]: Fix compiler warning due trailing data.
5113         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S:
5114         [weak_alias]: Likewise.
5115         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: Fix compile
5116         warnigs due missing definition of __strcpy_power7 and __strlen_power7.
5117
5118         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
5119         (__libc_ifunc_impl_list): Add memmove functions.
5120
5121 2014-07-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5122
5123         * localedata/tests-mbwc/dat_iswalnum.c [SHOJI_IS_RIGHT]:
5124         Remove code.
5125         * localedata/tests-mbwc/dat_iswalpha.c [SHOJI_IS_RIGHT]:
5126         Likewise
5127         * localedata/tests-mbwc/dat_iswctype.c [SHOJI_IS_RIGHT]:
5128         Likewise
5129         * localedata/tests-mbwc/dat_iswgraph.c [SHOJI_IS_RIGHT]:
5130         Likewise
5131         * localedata/tests-mbwc/dat_iswprint.c [SHOJI_IS_RIGHT]:
5132         Likewise
5133         * localedata/tests-mbwc/dat_iswpunct.c [SHOJI_IS_RIGHT]:
5134         Likewise
5135         * localedata/tests-mbwc/dat_mbrlen.c [SHOJI_IS_RIGHT]:
5136         Likewise
5137         * localedata/tests-mbwc/dat_mbstowcs.c [SHOJI_IS_RIGHT]:
5138         Likewise
5139         * localedata/tests-mbwc/dat_mbtowc.c [SHOJI_IS_RIGHT]:
5140         Likewise
5141         * localedata/tests-mbwc/dat_strcoll.c [SHOJI_IS_RIGHT]:
5142         Likewise
5143         * localedata/tests-mbwc/dat_swscanf.c [SHOJI_IS_RIGHT]:
5144         Likewise
5145         * localedata/tests-mbwc/dat_towctrans.c [SHOJI_IS_RIGHT]:
5146         Likewise
5147         * localedata/tests-mbwc/dat_wcscoll.c [SHOJI_IS_RIGHT]:
5148         Likewise
5149         * localedata/tests-mbwc/dat_wcswidth.c [SHOJI_IS_RIGHT]:
5150         Likewise
5151         * localedata/tests-mbwc/dat_wctob.c [SHOJI_IS_RIGHT]:
5152         Likewise
5153         * localedata/tests-mbwc/dat_wcwidth.c [SHOJI_IS_RIGHT]:
5154         Likewise
5155         * localedata/tests-mbwc/tst_towctrans.c [SHOJI_IS_RIGHT]:
5156         Likewise
5157
5158 2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5159
5160         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Align VSX copies to 16B
5161         to avoid alignment traps in non-cacheable memory.
5162         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
5163
5164         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memmove
5165         multiarch objects.
5166         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-power7.c: New
5167         file: multiarch power7 memmove.
5168         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove-ppc.c: New file:
5169         multiarch default memmove.
5170         * sysdeps/powerpc/powerpc32/power4/multiarch/memmove.c: New file:
5171         multiarch memove for powerpc32/power4.
5172
5173         * string/bcopy.c: Use full path to include memmove.c.
5174         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memmove and bcopy
5175         multiarch objects.
5176         * sysdeps/powerpc/powerpc64/multiarch/bcopy-ppc64.c: New file: default
5177         bcopy for powerpc64.
5178         * sysdeps/powerpc/powerpc64/multiarch/bcopy.c: New file: multiarch
5179         bcopy for powerpc64.
5180         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Add bcopy
5181         and memmove implementations.
5182         * sysdeps/powerpc/powerpc64/multiarch/memmove-power7.S: New file:
5183         optimized multiarch memmove for POWER7/powerpc64.
5184         * sysdeps/powerpc/powerpc64/multiarch/memmove-ppc64.c: New file:
5185         default multiarch memmove for powerpc64.
5186         * sysdeps/powerpc/powerpc64/multiarch/memmove.c: New file: memmove
5187         multiarch for powerpc64.
5188         * sysdeps/powerpc/powerpc64/power7/bcopy.c: New file: optimized bcopy
5189         for POWER7/powerpc64.
5190         * sysdeps/powerpc/powerpc64/power7/memmove.S: New file: optimized
5191         memmove for POWER7/powerpc64.
5192
5193         * sysdeps/powerpc/memmove.c (memmove): Cleanup impplementation to use
5194         glibc default one.
5195
5196         * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
5197         __ELF_NATIVE_CLASS equal to 64.
5198
5199 2014-07-07  Roland McGrath  <roland@hack.frob.com>
5200
5201         * sysdeps/nptl/lowlevellock.h: File removed.
5202
5203         * NEWS: NPTL is no longer an add-on!
5204         * nptl/internaltypes.h: Moved ...
5205         * sysdeps/nptl/internaltypes.h: ... here.
5206         * sysdeps/nptl/aio_misc.h: Use <nptl/pthreadP.h> in #include.
5207         * sysdeps/nptl/fork.c: Likewise.
5208         * sysdeps/nptl/gai_misc.h: Likewise.
5209         * sysdeps/nptl/librt-cancellation.c: Likewise.
5210         * sysdeps/nptl/jmp-unwind.c: Likewise.
5211         * sysdeps/nptl/setxid.h: Likewise.
5212         * sysdeps/unix/sysv/linux/aarch64/Implies: New file.
5213         * sysdeps/unix/sysv/linux/alpha/Implies: Add alpha/nptl.
5214         * sysdeps/unix/sysv/linux/arm/Implies: New file.
5215         * sysdeps/unix/sysv/linux/hppa/Implies: New file.
5216         * sysdeps/unix/sysv/linux/i386/Implies: Add i386/nptl.
5217         * sysdeps/unix/sysv/linux/i386/i686/Implies: New file.
5218         * sysdeps/unix/sysv/linux/ia64/Implies: Add ia64/nptl.
5219         * sysdeps/unix/sysv/linux/m68k/Implies: New file.
5220         * sysdeps/unix/sysv/linux/microblaze/Implies: New file.
5221         * sysdeps/unix/sysv/linux/mips/Implies: New file.
5222         * sysdeps/unix/sysv/linux/powerpc/Implies: New file.
5223         * sysdeps/unix/sysv/linux/s390/Implies: Add s390/nptl.
5224         * sysdeps/unix/sysv/linux/sh/Implies: New file.
5225         * sysdeps/unix/sysv/linux/sparc/Implies: New file.
5226         * sysdeps/unix/sysv/linux/tile/Implies: New file.
5227         * sysdeps/unix/sysv/linux/x86_64/Implies: Add x86_64/nptl.
5228         * sysdeps/unix/sysv/linux/x86_64/x32/Implies: New file.
5229         * nptl/Makeconfig: Moved ...
5230         * sysdeps/nptl/Makeconfig: ... here.
5231         * nptl/configure: File removed.
5232         * nptl/ANNOUNCE: File removed.
5233         * sysdeps/unix/sysv/linux/configure.ac: Remove nptl sanity check.
5234         * sysdeps/unix/sysv/linux/configure: Regenerated.
5235
5236         * nptl/Makefile (routines): Add libc_pthread_init,
5237         libc_multiple_threads, register-atfork and unregister-atfork.
5238         (libpthread-routines): Add pthread_mutex_cond_lock and pt-fork here.
5239         (gen-as-const-headers): Add lowlevelcond.sym, lowlevelrwlock.sym,
5240         lowlevelbarrier.sym, unwindbuf.sym, lowlevelrobustlock.sym,
5241         pthread-pi-defines.sym, structsem.sym.
5242         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = posix]
5243         (CFLAGS-fork.c, CFLAGS-getpid.o, CFLAGS-getpid.os): New variables.
5244         [$(subdir) = nptl] (tests): Add tst-setgetname.
5245         * nptl/sysdeps/unix/sysv/linux/Makefile: File removed.
5246         * sysdeps/unix/sysv/linux/sigaction.c: Just include
5247         <nptl/sigaction.c> directly here, instead of WRAPPER_INCLUDE.
5248         [!LIBC_SIGACTION]: Remove aliases.
5249         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
5250         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
5251         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
5252         * sysdeps/unix/sysv/linux/ia64/sigaction.c: Likewise.
5253         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
5254         * sysdeps/unix/sysv/linux/s390/s390-64/sigaction.c: Likewise.
5255         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
5256         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
5257         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
5258         * nptl/Versions (libc: GLIBC_2.3.2): Add __register_atfork.
5259         (libc: GLIBC_PRIVATE): Add __libc_pthread_init,
5260         __libc_current_sigrtmin_private, __libc_current_sigrtmax_private,
5261         __libc_allocate_rtsig_private.
5262         * nptl/sysdeps/unix/sysv/linux/Versions: File removed.
5263         * sysdeps/unix/sysv/linux/sigtimedwait.c: Include <nptl/pthreadP.h>.
5264         * sysdeps/unix/sysv/linux/sigwait.c: Likewise.
5265         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Likewise.
5266         * sysdeps/unix/sysv/linux/sleep.c: Likewise.
5267         * nptl/sysdeps/unix/sysv/linux/sigwait.c: File removed.
5268         * nptl/sysdeps/unix/sysv/linux/sigtimedwait.c: File removed.
5269         * nptl/sysdeps/unix/sysv/linux/sigwaitinfo.c: File removed.
5270         * nptl/sysdeps/unix/sysv/linux/sleep.c: File removed.
5271         * nptl/sysdeps/unix/sysv/linux/createthread.c: File removed.
5272         * sysdeps/unix/sysv/linux/ia64/fork.S: File removed.
5273         * nptl/sysdeps/unix/sysv/linux/internaltypes.h: Moved ...
5274         * nptl/internaltypes.h: ... here.
5275         * nptl/sysdeps/unix/sysv/linux/jmp-unwind.c: Moved ...
5276         * sysdeps/nptl/jmp-unwind.c: ... here.
5277         * nptl/sysdeps/unix/sysv/linux/libc-lowlevellock.c: Moved ...
5278         * nptl/libc-lowlevellock.c: ... here.
5279         * nptl/sysdeps/unix/sysv/linux/libc_multiple_threads.c: Moved ...
5280         * nptl/libc_multiple_threads.c: ... here.
5281         * nptl/sysdeps/unix/sysv/linux/libc_pthread_init.c: Moved ...
5282         * nptl/libc_pthread_init.c: ... here.
5283         * nptl/sysdeps/unix/sysv/linux/lowlevelbarrier.sym: Moved ...
5284         * nptl/lowlevelbarrier.sym: ... here.
5285         * nptl/sysdeps/unix/sysv/linux/lowlevelcond.sym: Moved ...
5286         * nptl/lowlevelcond.sym: ... here.
5287         * nptl/sysdeps/unix/sysv/linux/lowlevellock.c: Moved ...
5288         * nptl/lowlevellock.c: ... here.
5289         * nptl/lowlevellock.h: Moved ...
5290         * sysdeps/nptl/lowlevellock.h: ... here.
5291         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Moved ...
5292         * nptl/lowlevelrobustlock.c: ... here.
5293         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.sym: Moved ...
5294         * nptl/lowlevelrobustlock.sym: ... here.
5295         * nptl/sysdeps/unix/sysv/linux/lowlevelrwlock.sym: Moved ...
5296         * nptl/lowlevelrwlock.sym: ... here.
5297         * nptl/sysdeps/unix/sysv/linux/pt-fork.c: Moved ...
5298         * nptl/pt-fork.c: ... here.
5299         * nptl/sysdeps/unix/sysv/linux/pthread-pi-defines.sym: Moved ...
5300         * nptl/pthread-pi-defines.sym: ... here.
5301         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Moved ...
5302         * nptl/pthread_attr_getaffinity.c: ... here.
5303         * nptl/sysdeps/unix/sysv/linux/pthread_attr_setaffinity.c: Moved ...
5304         * nptl/pthread_attr_setaffinity.c: ... here.
5305         * nptl/sysdeps/unix/sysv/linux/pthread_mutex_cond_lock.c: Moved ...
5306         * nptl/pthread_mutex_cond_lock.c: ... here.
5307         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
5308         Update #include.
5309         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Likewise.
5310         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: Moved ...
5311         * nptl/pthread_once.c: ... here, replacing old file.
5312         * nptl/sysdeps/unix/sysv/linux/pthread_yield.c: Moved ...
5313         * nptl/pthread_yield.c: ... here.
5314         * nptl/sysdeps/unix/sysv/linux/register-atfork.c: Moved ...
5315         * nptl/register-atfork.c: ... here.
5316         * nptl/sysdeps/unix/sysv/linux/sem_post.c: Moved ...
5317         * nptl/sem_post.c: ... here.
5318         * sysdeps/unix/sysv/linux/alpha/sem_post.c: Update #include.
5319         * nptl/sysdeps/unix/sysv/linux/sem_timedwait.c: Moved ...
5320         * nptl/sem_timedwait.c: ... here.
5321         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Moved ...
5322         * nptl/sem_trywait.c: ... here.
5323         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: Update #include.
5324         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Moved ...
5325         * nptl/sem_wait.c: ... here.
5326         * nptl/sysdeps/unix/sysv/linux/structsem.sym: Moved ...
5327         * nptl/structsem.sym: ... here.
5328         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Moved ...
5329         * sysdeps/unix/sysv/linux/mq_notify.c: ... here, replacing old file.
5330         * nptl/sysdeps/unix/sysv/linux/unregister-atfork.c: Moved ...
5331         * nptl/unregister-atfork.c: ... here.
5332         * nptl/sysdeps/unix/sysv/linux/unwindbuf.sym: Moved ...
5333         * nptl/unwindbuf.sym: ... here.
5334         * nptl/sysdeps/unix/sysv/linux/fork.c: Moved ...
5335         * sysdeps/nptl/fork.c: ... here.
5336         * nptl/sysdeps/unix/sysv/linux/fork.h: Moved ...
5337         * sysdeps/nptl/fork.h: ... here.
5338         * sysdeps/unix/sysv/linux/syscalls.list: Remove fork.
5339         * nptl/sysdeps/unix/sysv/linux/aio_misc.h: Moved ...
5340         * sysdeps/unix/sysv/linux/aio_misc.h: ... here.
5341         * nptl/sysdeps/unix/sysv/linux/allocrtsig.c: Moved ...
5342         * sysdeps/unix/sysv/linux/allocrtsig.c: ... here.
5343         * nptl/sysdeps/unix/sysv/linux/getpid.c: Moved ...
5344         * sysdeps/unix/sysv/linux/getpid.c: ... here.
5345         * nptl/sysdeps/unix/sysv/linux/kernel-posix-timers.h: Moved ...
5346         * sysdeps/unix/sysv/linux/kernel-posix-timers.h: ... here.
5347         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Moved ...
5348         * sysdeps/unix/sysv/linux/pt-raise.c: ... here.
5349         * nptl/sysdeps/unix/sysv/linux/pthread_getaffinity.c: Moved ...
5350         * sysdeps/unix/sysv/linux/pthread_getaffinity.c: ... here.
5351         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Moved ...
5352         * sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: ... here.
5353         * nptl/sysdeps/unix/sysv/linux/pthread_getname.c: Moved ...
5354         * sysdeps/unix/sysv/linux/pthread_getname.c: ... here.
5355         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Moved ...
5356         * sysdeps/unix/sysv/linux/pthread_kill.c: ... here.
5357         * nptl/sysdeps/unix/sysv/linux/pthread_setaffinity.c: Moved ...
5358         * sysdeps/unix/sysv/linux/pthread_setaffinity.c: ... here.
5359         * nptl/sysdeps/unix/sysv/linux/pthread_setname.c: Moved ...
5360         * sysdeps/unix/sysv/linux/pthread_setname.c: ... here.
5361         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Moved ...
5362         * sysdeps/unix/sysv/linux/pthread_sigqueue.c: ... here.
5363         * nptl/sysdeps/unix/sysv/linux/raise.c: Moved ...
5364         * sysdeps/unix/sysv/linux/raise.c: ... here.
5365         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Moved ...
5366         * sysdeps/unix/sysv/linux/timer_create.c: ... here.
5367         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Moved ...
5368         * sysdeps/unix/sysv/linux/timer_delete.c: ... here.
5369         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Moved ...
5370         * sysdeps/unix/sysv/linux/timer_getoverr.c: ... here.
5371         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Moved ...
5372         * sysdeps/unix/sysv/linux/timer_gettime.c: ... here.
5373         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Moved ...
5374         * sysdeps/unix/sysv/linux/timer_routines.c: ... here.
5375         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Moved ...
5376         * sysdeps/unix/sysv/linux/timer_settime.c: ... here.
5377         * nptl/sysdeps/unix/sysv/linux/tst-setgetname.c: Moved ...
5378         * sysdeps/unix/sysv/linux/tst-setgetname.c: ... here.
5379         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Update #include.
5380
5381 2014-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
5382
5383         * sysdeps/generic/memcopy.h: Add comment for
5384         MEMCPY_OK_FOR_FWD_MEMMOVE.
5385
5386 2014-07-04  Will Newton  <will.newton@linaro.org>
5387
5388         * string/memchr.c: Merge from gnulib.
5389         [_LIBC]: Remove conditionals.
5390         (__ptr_t): Remove define.
5391         (LONG_MAX_32_BITS): Likewise.
5392         (LONG_MAX): Likewise.
5393         (MEMCHR): Use ANSI prototype and optimize algorithm.
5394
5395         * sysdeps/arm/dl-machine.h (ELF_MACHINE_NO_REL): Define.
5396
5397 2014-07-03  Roland McGrath  <roland@hack.frob.com>
5398
5399         * sysdeps/unix/sysv/linux/ia64/lowlevellock.h
5400         (lll_futex_timed_wait_bitset): Fix syscall argument count.
5401
5402         * sysdeps/nptl/configure.ac (libc_cv_forced_unwind):
5403         Use -Dinhibit_libc=1 for unwind.h check to prevent false failure
5404         in a bare environment with no <stdlib.h> installed.
5405         * sysdeps/nptl/configure: Regenerated.
5406
5407         * sysdeps/alpha/fpu/s_nearbyint.c: Include <math_ldbl_opt.h>.
5408
5409         * sysdeps/unix/sysv/linux/configure.ac: Use AC_TRY_COMPILE rather than
5410         AC_EGREP_CPP for kernel header checks, so they only succeed if
5411         including <linux/version.h> actually works right.
5412         * sysdeps/unix/sysv/linux/configure: Regenerated.
5413
5414         * sysdeps/s390/nptl/tls.h (THREAD_SET_POINTER_GUARD): Refer to the
5415         value so it's not diagnosed as unused.
5416
5417         * sysdeps/pthread/Makefile: Conditionalize tst-timer bits (the only
5418         thing) with "ifeq ($(subdir),rt)".
5419
5420 2014-07-03  Richard Henderson  <rth@redhat.com>
5421
5422         * sysdeps/alpha/fpu/s_nearbyintf.c: Remove file.
5423         * sysdeps/alpha/fpu/s_nearbyint.c (__nearbyint): Remove;
5424         include sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c.
5425
5426         * sysdeps/alpha/fpu/math_private.h (math_opt_barrier): New.
5427         (math_force_eval): New.
5428
5429         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
5430         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
5431
5432         * sysdeps/alpha/fpu/s_round.c: Remove file.
5433         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
5434
5435         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
5436         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
5437         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
5438         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
5439         (_dl_start, print_statistics): Likewise.
5440         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
5441         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
5442
5443         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
5444         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
5445         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
5446         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
5447         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
5448         (HP_SMALL_TIMING_AVAIL): Define.
5449         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
5450         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
5451         (HP_SMALL_TIMING_AVAIL): Define.
5452         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
5453         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
5454
5455         * sysdeps/aarch64/hp-timing.h: New file.
5456
5457         * sysdeps/generic/hp-timing.h: Remove dead comment.
5458         * sysdeps/generic/hp-timing-common.h: New file.
5459         * sysdeps/alpha/hp-timing.h: Include it.
5460         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
5461         * sysdeps/i386/i686/hp-timing.h: Likewise.
5462         * sysdeps/ia64/hp-timing.h: Likewise.
5463         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5464         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5465         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5466         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5467         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
5468         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
5469         (hp_timing_t): New.
5470
5471         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
5472         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
5473         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
5474         * elf/rtld.c (_dl_start_final): Likewise.
5475         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
5476         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
5477         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
5478         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
5479         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
5480         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
5481         (HP_TIMING_DIFF_INIT): Remove.
5482         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
5483         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
5484         (HP_TIMING_DIFF_INIT): Remove.
5485         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
5486         * sysdeps/i386/i686/hp-timing.c: Remove file.
5487         * sysdeps/x86_64/hp-timing.c: Remove file.
5488         * sysdeps/ia64/hp-timing.c: Remove file.
5489         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
5490         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
5491         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
5492         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
5493
5494         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
5495         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
5496         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
5497         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
5498         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
5499         (HP_TIMING_ACCUM): Remove.
5500         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
5501         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
5502         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
5503
5504         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
5505         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
5506         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
5507         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
5508         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
5509         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
5510         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
5511         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
5512
5513         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
5514
5515 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
5516
5517         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
5518
5519 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5520
5521         Sync up with gettext.
5522         * intl/loadmsgcat.c: Define O_BINARY if not defined.
5523         [_MSC_VER]: Include malloc.h
5524         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
5525         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
5526         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
5527         TEMP_FAILURE_RETRY.  Cast return of alloca.
5528         [!_LIBC] Call gl_rwlock_init.
5529         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
5530
5531 2014-07-02  Roland McGrath  <roland@hack.frob.com>
5532
5533         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
5534         before checking its value.
5535
5536 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5537
5538         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
5539
5540         * debug/memcpy_chk.c: Don't include pagecopy.h.
5541         * debug/mempcpy_chk.c: Likewise.
5542         * string/memcpy.c: Likewise.
5543         * string/memmove.c: Likewise.
5544         * sysdeps/powerpc/memmove.c: Likewise.
5545         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
5546         definition of PAGE_COPY_FWD_MAYBE here...
5547         * sysdeps/generic/pagecopy.h: ... from here.
5548         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
5549
5550 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5551             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5552
5553         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
5554         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
5555         optimizations.
5556         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5557         (__libc_ifunc_impl_list): Likewise.
5558         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
5559         multiarch strcat for PPC64.
5560         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
5561         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
5562
5563 2014-07-02  Roland McGrath  <roland@hack.frob.com>
5564
5565         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
5566
5567 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5568
5569         * intl/loadmsgcat.c: Remove declaration of
5570         get_sysdep_segment_value.
5571         (get_sysdep_segment_value): Use ISO C style.
5572         (_nl_load_domain): Use ISO C style.  Get rid of redundant
5573         semicolon.  Fix typo and formatting in comment.
5574         (_nl_unload_domain): Use ISO C style.
5575
5576         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
5577
5578 2014-07-02  Will Newton  <will.newton@linaro.org>
5579
5580         * malloc/obstack.c: Merge from gnulib master.
5581         [HAVE_CONFIG_H]: Remove conditional code.
5582         [!_LIBC]: Include config.h.
5583         [!ELIDE_CODE]: Don't include inttypes.h, include
5584         stdint.h unconditionally.
5585         (print_and_abort): Mark as _Noreturn.
5586         (_obstack_allocated_p): Mark as __attribute_pure__.
5587         (obstack_free): Rename to __obstack_free.
5588         [!__attribute__]: Remove conditional code.
5589         * malloc/obstack.h: Merge from gnulib master.
5590         [__cplusplus]: Move conditional down.
5591         [!__attribute_pure__]: Define __attribute_pure__ here
5592         if it is not already defined.
5593         (_obstack_memory_used): Mark as __attribute_pure__.
5594         [!__obstack_free]: Define as obstack_free.
5595         [__GNUC__]: Remove check for ancient NeXT gcc.
5596
5597 2014-07-02  Will Newton  <will.newton@linaro.org>
5598             Paul Eggert  <eggert@cs.ucla.edu>
5599
5600         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
5601
5602 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5603
5604         * resolv/gethnamaddr.c: Add comment warning that the file is
5605         not maintained.
5606
5607 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
5608
5609         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
5610         entries.
5611
5612         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
5613         entry for aio_cancel and aio_cancel64.
5614         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
5615         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
5616         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
5617         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
5618         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
5619         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
5620         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
5621         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
5622         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
5623         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
5624         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
5625         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
5626         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
5627
5628 2014-07-01  Roland McGrath  <roland@hack.frob.com>
5629
5630         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
5631         * nptl/pthread_mutex_lock.c: Likewise.
5632         * nptl/pthread_mutex_timedlock.c: Likewise.
5633         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
5634
5635 2014-07-01  Richard henderson  <rth@redhat.com>
5636
5637         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
5638         (__isnan, __isnanl): Remove.
5639         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
5640
5641         * sysdeps/alpha/fpu/libm-test-ulps: Update.
5642
5643 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
5644
5645         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
5646
5647 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5648
5649         * resolv/nss_dns/dns-host.c (getanswer_r)
5650         [MULTI_PTRS_ARE_ALIASES]: Remove code.
5651
5652 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
5653
5654         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
5655         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
5656         undefine.
5657         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
5658         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
5659
5660 2014-07-01  Roland McGrath <roland@hack.frob.com>
5661
5662         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
5663         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
5664
5665         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
5666         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
5667
5668         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
5669         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
5670         ... here.
5671         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
5672         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
5673
5674         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
5675         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
5676         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
5677         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
5678
5679         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
5680         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
5681         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
5682         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
5683         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
5684         Moved ...
5685         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
5686         ... here.
5687         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
5688         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
5689         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
5690         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
5691         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
5692         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
5693         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
5694         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
5695         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
5696         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
5697         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
5698         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
5699         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
5700         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
5701         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
5702         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
5703         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
5704         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
5705         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
5706         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
5707         ... here.
5708         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
5709         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
5710         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
5711         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
5712         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
5713         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
5714         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
5715         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
5716
5717 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
5718
5719         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
5720         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
5721         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
5722         Add sysdep.
5723
5724 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5725
5726         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5727
5728 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
5729
5730         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
5731         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
5732
5733         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
5734
5735         * sysdeps/arm/libm-test-ulps: Regenerated.
5736
5737 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
5738             Roland McGrath <roland@hack.frob.com>
5739
5740         * test-skeleton.c (signal_handler): Kill the whole process group
5741         before killing the child individually.
5742         (main): Report any failure on `setpgid'.
5743
5744 2014-06-30  Roland McGrath  <roland@hack.frob.com>
5745
5746         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
5747         from _TLS_H to _ARM_NPTL_TLS_H.
5748         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
5749         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
5750
5751 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
5752
5753         [BZ #16539]
5754         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
5755         (__expm1l): Return argument unchanged when small but not
5756         subnormal.
5757
5758         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
5759         include macro name.
5760         (_FP_UNPACK_RAW_1_P): Likewise.
5761         (_FP_PACK_RAW_1): Likewise.
5762         (_FP_PACK_RAW_1_P): Likewise.
5763         (_FP_MUL_MEAT_1_wide): Likewise.
5764         (_FP_MUL_MEAT_DW_1_hard): Likewise.
5765         (_FP_MUL_MEAT_1_hard): Likewise.
5766         (_FP_DIV_MEAT_1_imm): Likewise.
5767         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
5768         (_FP_DIV_MEAT_1_udiv): Likewise.
5769         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
5770         (_FP_UNPACK_RAW_2): Likewise.
5771         (_FP_UNPACK_RAW_2_P): Likewise.
5772         (_FP_PACK_RAW_2): Likewise.
5773         (_FP_PACK_RAW_2_P): Likewise.
5774         (_FP_MUL_MEAT_DW_2_wide): Likewise.
5775         (_FP_MUL_MEAT_2_wide): Likewise.
5776         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
5777         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
5778         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
5779         (_FP_MUL_MEAT_2_gmp): Likewise.
5780         (_FP_DIV_MEAT_2_udiv): Likewise.
5781         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
5782         (_FP_FRAC_SRL_4): Likewise.
5783         (_FP_FRAC_SRST_4): Likewise.
5784         (_FP_FRAC_SRS_4): Likewise.
5785         (_FP_UNPACK_RAW_4): Likewise.
5786         (_FP_UNPACK_RAW_4_P): Likewise.
5787         (_FP_PACK_RAW_4): Likewise.
5788         (_FP_PACK_RAW_4_P): Likewise.
5789         (_FP_MUL_MEAT_DW_4_wide): Likewise.
5790         (_FP_MUL_MEAT_4_wide): Likewise.
5791         (_FP_MUL_MEAT_4_gmp): Likewise.
5792         (umul_ppppmnnn): Likewise.
5793         (_FP_DIV_MEAT_4_udiv): Likewise.
5794         (__FP_FRAC_ADD_4): Likewise.
5795         (__FP_FRAC_SUB_3): Likewise.
5796         (__FP_FRAC_SUB_4): Likewise.
5797         (__FP_FRAC_DEC_3): Likewise.
5798         (__FP_FRAC_DEC_4): Likewise.
5799         (__FP_FRAC_ADDI_4): Likewise.
5800         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
5801         (_FP_FRAC_SRL_8): Likewise.
5802         (_FP_FRAC_SRS_8): Likewise.
5803
5804         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
5805         include macro name.
5806         (FP_UNPACK_RAW_EP): Likewise.
5807         (FP_PACK_RAW_E): Likewise.
5808         (FP_PACK_RAW_EP): Likewise.
5809         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
5810         (_FP_ISSIGNAN): Likewise.
5811         (_FP_ADD_INTERNAL): Likewise.
5812         (_FP_FMA): Likewise.
5813         (_FP_CMP): Likewise.
5814         (_FP_SQRT): Likewise.
5815         (_FP_TO_INT): Likewise.
5816         (_FP_FROM_INT): Likewise.
5817         (FP_EXTEND): Likewise.
5818         (_FP_DIV_MEAT_N_loop): Likewise.
5819
5820 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
5821
5822         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
5823         throughout.
5824
5825 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
5826
5827         [BZ #17097]
5828         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
5829         result with correct sign in case of exponents that produce
5830         overflow except for X very close to 1.
5831
5832 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
5833
5834         mktime: merge #if/#ifdef usage from glibc
5835         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
5836         as that works with both Glibc's and Gnulib's style.
5837         See thread starting at Siddhesh Poyarekar's bug report at:
5838         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
5839
5840 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5841
5842         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
5843         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
5844         * sysdeps/tile/tilegx/memmove.c: Remove file.
5845
5846 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
5847
5848         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
5849         abi-name definition.
5850         * scripts/soversions.awk: Do not handle or generate ABI lines.
5851         * shlib-versions: Remove ABI entries.
5852         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
5853         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
5854
5855 2014-06-27  Roland McGrath  <roland@hack.frob.com>
5856
5857         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
5858         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
5859         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
5860         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
5861         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
5862         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
5863         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
5864         Moved ...
5865         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
5866         ... here.
5867         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
5868         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
5869         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
5870         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
5871         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
5872         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
5873         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
5874         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
5875         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
5876         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
5877         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
5878         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
5879         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
5880         Moved ...
5881         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
5882         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
5883         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
5884         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
5885         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
5886         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
5887         Moved ...
5888         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
5889         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
5890         Moved ...
5891         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
5892         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
5893         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
5894         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
5895         Moved ...
5896         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
5897         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
5898         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
5899         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
5900         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
5901         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
5902         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
5903         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
5904         Moved ...
5905         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
5906         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
5907         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
5908         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
5909         Moved ...
5910         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
5911         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
5912         Moved ...
5913         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
5914         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
5915         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
5916         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
5917         Moved ...
5918         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
5919         ... here.
5920         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
5921         Identical file removed.
5922         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
5923         Moved ...
5924         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
5925         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
5926         Identical file removed.
5927         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
5928         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
5929         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
5930         Moved ...
5931         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
5932         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
5933         Identical file removed.
5934         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
5935         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
5936         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
5937         Identical file removed.
5938         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
5939         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
5940         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
5941         Identical file removed.
5942         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
5943         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
5944         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
5945         Identical file removed.
5946         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
5947         Moved ...
5948         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
5949         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
5950         Identical file removed.
5951         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
5952         Moved ...
5953         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
5954         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
5955         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
5956         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
5957         Identical file removed.
5958         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
5959         Moved ...
5960         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
5961         ... here.
5962         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
5963         Identical file removed.
5964         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
5965         Moved ...
5966         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
5967         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
5968         Identical file removed.
5969         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
5970         Moved ...
5971         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
5972         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
5973         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
5974         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
5975         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
5976         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
5977         Moved ...
5978         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
5979         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
5980         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
5981
5982         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
5983         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
5984         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
5985         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
5986         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
5987
5988 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
5989
5990         [BZ #17092]
5991         * nscd/nscd.c (monitor_child): Return exit status of child
5992         instead of return value from wait syscall.
5993
5994 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
5995
5996         * configure.ac (libc_commonpagesize): Remove variable.
5997         (libc_relro_required): Likewise.
5998         (libc_cv_z_relro): Remove configure test.
5999         * configure: Regenerated.
6000         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
6001         variable.
6002         (libc_relro_required): Likewise.
6003         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
6004         (libc_relro_required): Likewise.
6005         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
6006         (libc_relro_required): Likewise.
6007         * sysdeps/arm/preconfigure: Regenerated.
6008         * sysdeps/ia64/preconfigure: Remove file.
6009         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
6010         variable.
6011         (libc_relro_required): Likewise.
6012
6013         [BZ #16561]
6014         [BZ #16562]
6015         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
6016         (__ieee754_yn): Set FE_TONEAREST mode internally and then
6017         recompute overflowing results in original rounding mode.
6018         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
6019         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
6020         recompute overflowing results in original rounding mode.
6021         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
6022         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
6023         recompute overflowing results in original rounding mode.
6024         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
6025         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
6026         recompute overflowing results in original rounding mode.
6027         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
6028         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
6029         recompute overflowing results in original rounding mode.
6030         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
6031         (libc_feholdsetround_ctx): New macro.
6032         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
6033         * sysdeps/i386/fpu/libm-test-ulps: Update.
6034         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
6035
6036 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
6037
6038         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
6039         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
6040         corresponding .cpsetup call.
6041
6042 2014-06-26  Roland McGrath  <roland@hack.frob.com>
6043
6044         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
6045         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
6046         * sysdeps/arm/Makefile [$(subdir) = csu]
6047         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
6048         (static-only-routines): Add aeabi_read_tp here.
6049         (shared-only-routines): Add libc-aeabi_read_tp here.
6050         (CFLAGS-libc-start.c): Add -fexceptions here.
6051         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
6052         (sysdep_routines, static-only-routines, shared-only-routines):
6053         Don't add to these here.
6054         (CFLAGS-libc-start.c): Likewise.
6055
6056         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
6057         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
6058         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
6059         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
6060         * sysdeps/arm/Makefile [$(subdir) = rt]
6061         (librt-sysdep_routines, librt-shared-only-routines):
6062         Append rt-aeabi_unwind_cpp_pr1 here.
6063         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
6064         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
6065         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
6066         (libpthread-sysdep_routines, libpthread-shared-only-routines):
6067         Append nptl-aeabi_unwind_cpp_pr1 here.
6068         (tests): Filter out tst-cleanupx4 here.
6069         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
6070         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
6071         Don't do those here.
6072
6073 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
6074
6075         * scripts/list-sources.sh: Do not handle ports specially.
6076
6077 2014-06-26  Roland McGrath  <roland@hack.frob.com>
6078
6079         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
6080         * sysdeps/arm/feupdateenv.c: Likewise.
6081
6082         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
6083
6084 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
6085
6086         * manual/texinfo.tex: Update to version 2014-05-05.10 with
6087         trailing whitespace removed.
6088         * scripts/config.guess: Update to version 2014-03-23.
6089         * scripts/config.sub: Update to version 2014-05-01
6090         * scripts/install-sh: Update to version 2013-12-25.23.
6091         * scripts/move-if-change: Update from gnulib.
6092
6093 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6094
6095         * debug/memmove_chk.c: Remove pagecopy.h include.
6096
6097 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
6098
6099         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
6100         identical to gnulib mktime.
6101
6102 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
6103
6104         * configure.ac: Do not test for machine being rs6000.  Do not test
6105         for powerpc*-*soft.
6106         * configure: Regenerated.
6107
6108         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
6109         test.
6110         * configure: Regenerated.
6111         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
6112         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
6113         Remove configure test.
6114         * sysdeps/arm/configure: Regenerated.
6115         * sysdeps/nptl/configure.ac: Do not check
6116         libc_cv_asm_cfi_directives.
6117         * sysdeps/nptl/configure: Regenerated.
6118         * sysdeps/x86_64/nptl/configure.ac: Remove file.
6119         * sysdeps/x86_64/nptl/configure: Remove generated file.
6120         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
6121         unconditional.
6122         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
6123
6124 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6125
6126         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
6127         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
6128         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
6129         it is defined.
6130
6131         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
6132         instead of whether it is defined.
6133         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
6134         * sysdeps/hppa/dl-machine.h: Likewise.
6135         * sysdeps/ia64/dl-machine.h: Likewise.
6136         * sysdeps/m68k/dl-machine.h: Likewise.
6137         * sysdeps/microblaze/dl-machine.h: Likewise.
6138         * sysdeps/mips/dl-machine.: Likewise.
6139         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
6140         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
6141         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
6142         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
6143         * sysdeps/sh/dl-machine.h: Likewise.
6144         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6145         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6146         * sysdeps/tile/dl-machine.h: Likewise.
6147         * sysdeps/x86_64/dl-machine.h: Likewise.
6148
6149         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
6150         code.
6151         (verify_persistent_db): Likewise.
6152
6153 2014-06-26  Roland McGrath  <roland@hack.frob.com>
6154
6155         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
6156         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
6157         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
6158         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
6159         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
6160         Moved ...
6161         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
6162         ... here.
6163         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
6164         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
6165         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
6166         Identical file removed.
6167         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
6168         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
6169         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
6170         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
6171         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
6172         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
6173         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
6174         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
6175         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
6176         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
6177         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6178         Moved ...
6179         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
6180         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
6181         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
6182         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
6183         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
6184         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
6185         Moved ...
6186         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
6187         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
6188         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
6189         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
6190         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
6191         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
6192         Identical file removed.
6193         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
6194         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
6195         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
6196         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
6197         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
6198         Moved ...
6199         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
6200         ... here.
6201         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
6202         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
6203         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
6204         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
6205         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
6206         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
6207         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
6208         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
6209         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
6210         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
6211         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6212         Moved ...
6213         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
6214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
6215         Moved ...
6216         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
6217         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
6218         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
6219         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
6220         Moved ...
6221         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
6222         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
6223         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
6224
6225         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
6226         folded into ...
6227         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
6228         * sysdeps/unix/sysv/linux/s390/Versions
6229         (libpthread: GLIBC_2.19): New version set.
6230         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
6231         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
6232         (librt: GLIBC_2.3.3): New version set.
6233         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
6234         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
6235         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
6236         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
6237         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
6238         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
6239         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
6240         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
6241         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
6242         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
6243         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
6244         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
6245         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
6246         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
6247         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
6248         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
6249         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
6250         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
6251         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
6252         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
6253         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
6254         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
6255         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
6256         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
6257         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
6258         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
6259         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
6260         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
6261         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
6262         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
6263         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
6264         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
6265         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
6266         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
6267         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
6268         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
6269         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
6270         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
6271         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
6272         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
6273         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
6274         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
6275         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
6276         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
6277         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
6278
6279         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
6280         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
6281         (__libc_vfork): Define the function under this name.
6282         [!NOT_IN_libc] (__vfork): Make this an alias.
6283         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
6284         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
6285         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
6286         (__libc_vfork): Define the function under this name.
6287         [!NOT_IN_libc] (__vfork): Make this an alias.
6288         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
6289         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
6290         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
6291         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
6292         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
6293         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
6294
6295         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
6296         code that was previously under [RESET_PID].
6297         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
6298         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
6299         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
6300
6301         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
6302         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
6303         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
6304         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
6305         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
6306         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
6307         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
6308         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
6309         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
6310         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
6311         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
6312         Moved ...
6313         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
6314         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
6315         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
6316         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
6317         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
6318         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
6319         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
6320         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
6321         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
6322         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
6323         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
6324         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
6325         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
6326         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
6327         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
6328         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
6329         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
6330         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
6331         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
6332         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
6333         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
6334         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
6335         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
6336         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
6337         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
6338         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
6339         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
6340         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
6341         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
6342
6343 2014-06-25  Roland McGrath  <roland@hack.frob.com>
6344
6345         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
6346         that was previously under [RESET_PID].
6347         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
6348
6349 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
6350
6351         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
6352         not undefine and redefine.
6353         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
6354         [O_CLOEXEC]: Make code unconditional.
6355         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
6356         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
6357         <kernel-features.h>.
6358         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
6359         conditional variable definition.
6360         (shm_open) [O_CLOEXEC]: Make code unconditional.
6361         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
6362         code.
6363
6364         * configure.ac (USE_REGPARMS): Don't define here.
6365         * configure: Regenerated.
6366         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
6367         * sysdeps/i386/configure: Regenerated.
6368
6369         * nptl/createthread.c: Don't include kernel-features.h.
6370         * nptl/pthread_cancel.c: Likewise.
6371         * nptl/pthread_condattr_setclock.c: Likewise.
6372         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
6373         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
6374         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
6375         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
6376         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
6377         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
6378         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
6379         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
6380         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
6381         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
6382         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
6383         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
6384         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
6385         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
6386         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
6387         * nscd/gai.c: Likewise.
6388         * nss/nss_db/db-open.c: Likewise.
6389         * sysdeps/generic/ldsodefs.h: Likewise.
6390         * sysdeps/sh/nptl/tls.h: Likewise.
6391         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
6392         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
6393         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
6394         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
6395         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
6396         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
6397         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
6398         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
6399         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
6400         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
6401         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
6402         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
6403         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
6404         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
6405         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
6406         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
6407         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
6408         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
6409         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
6410         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
6411         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
6412         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
6413         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
6414         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
6415         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
6416         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
6417         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
6418         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
6419         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
6420         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
6421         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
6422         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
6423         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
6424         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
6425         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
6426         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
6427         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
6428         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
6429         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
6430         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
6431         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
6432         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
6433         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
6434         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
6435         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
6436         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
6437         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
6438         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
6439         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
6440         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
6441         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
6442         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
6443         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
6444         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
6445         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
6446         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
6447         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
6448         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
6449         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
6450         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
6451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
6452         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
6453         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
6454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
6455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
6456         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
6457         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
6458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
6459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
6460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
6461         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
6462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
6463         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
6464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
6465         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
6466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
6467         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
6468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
6469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
6470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
6471         * sysdeps/unix/sysv/linux/pread.c: Likewise.
6472         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
6473         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
6474         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
6475         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
6476         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
6477         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
6478         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
6479         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
6480         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
6481         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
6482         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
6483         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
6484         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
6485         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
6486         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
6487         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
6488         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
6489         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
6490         * sysdeps/unix/sysv/linux/system.c: Likewise.
6491         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
6492         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
6493         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
6494         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
6495         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
6496         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
6497         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
6498
6499         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
6500         * configure: Regenerated.
6501         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
6502
6503         * configure.ac (base_machine): Do not set specially for particular
6504         machines here.
6505         * configure: Regenerated.
6506         * sysdeps/powerpc/preconfigure: Move machine and base_machine
6507         settings from configure.ac.
6508         * sysdeps/i386/preconfigure: New file.
6509         * sysdeps/s390/preconfigure: Likewise.
6510         * sysdeps/sh/preconfigure: Likewise.
6511         * sysdeps/sparc/preconfigure: Likewise.
6512
6513 2014-06-25  Roland McGrath  <roland@hack.frob.com>
6514
6515         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
6516         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
6517         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
6518         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
6519         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
6520         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
6521         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
6522         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
6523         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
6524         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
6525         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
6526         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
6527         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
6528         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
6529         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
6530         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
6531         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
6532         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
6533         * sysdeps/sparc/sparc64/Makefile: ... appended here.
6534
6535         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
6536         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
6537         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
6538         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
6539         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
6540         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
6541         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
6542         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
6543         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
6544         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
6545         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
6546         * sysdeps/sparc/sparc32/sem_post.c: ... here.
6547         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
6548         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
6549         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
6550         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
6551         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
6552         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
6553         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
6554         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
6555         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
6556         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
6557         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
6558         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
6559         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
6560         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
6561         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
6562         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
6563         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
6564         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
6565         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
6566         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
6567         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
6568         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
6569         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
6570         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
6571         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
6572         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
6573
6574         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
6575         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
6576         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
6577         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
6578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
6579         Moved ...
6580         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
6581         ... here.
6582         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
6583         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
6584         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
6585         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
6586         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
6587         Moved ...
6588         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
6589         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
6590         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
6591         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
6592         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
6593         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
6594         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
6595         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
6596         Moved ...
6597         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
6598         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
6599         Moved ...
6600         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
6601         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
6602         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
6603         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
6604         Moved ...
6605         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
6606         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
6607         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
6608         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
6609         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
6610         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
6611         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
6612         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
6613         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
6614         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
6615         Moved ...
6616         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
6617         ... here.
6618         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
6619         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
6620         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
6621         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
6622         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
6623         Moved ...
6624         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
6625         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
6626         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
6627         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
6628         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
6629         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
6630         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
6631         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
6632         Moved ...
6633         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
6634         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
6635         Moved ...
6636         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
6637         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
6638         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
6639         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
6640         Moved ...
6641         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
6642         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
6643         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
6644         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
6645         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
6646
6647 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
6648
6649         * timezone/checktab.awk: Update from tzcode 2014e.
6650         * timezone/private.h: Likewise.
6651         * timezone/tzfile.h: Likewise.
6652         * timezone/zdump.c: Likewise.
6653         * timezone/zic.c: Likewise.
6654
6655         * sysdeps/unix/sysv/linux/kernel-features.h
6656         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
6657         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
6658         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
6659         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
6660         Remove conditional code.
6661
6662 2014-06-25  Will Newton  <will.newton@linaro.org>
6663
6664         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
6665         (_dl_arm_cap_flags): Add HWCAP2 values.
6666         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
6667         (_DL_HWCAP_COUNT): Increase to 37.
6668         (_DL_HWCAP_LAST): New define.
6669         (_DL_HWCAP2_LAST): New define.
6670         (_dl_procinfo): Add support for printing
6671         AT_HWCAP2 entries.
6672         (_dl_string_hwcap): Use _dl_hwcap_string.
6673
6674 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6675
6676         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6677
6678 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
6679
6680         * README: Do not mention ports directory.
6681
6682         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
6683         Remove macro.
6684         * sysdeps/unix/sysv/linux/futimes.c: Do not include
6685         <kernel-features.h>.
6686         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
6687         conditional variable definition.
6688         (__futimes): Update comment.
6689         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
6690         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
6691
6692         [BZ #16560]
6693         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
6694         arguments close to 0.
6695         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
6696         Likewise.
6697         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
6698         Likewise.
6699         * math/auto-libm-test-in: Add more tests of exp10.
6700         * math/auto-libm-test-out: Regenerated.
6701         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6702
6703         * sysdeps/unix/sysv/linux/kernel-features.h
6704         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
6705         * sysdeps/unix/sysv/linux/readv.c: Do not include
6706         <kernel-features.h>.
6707         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
6708         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
6709         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
6710         unconditional.
6711         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
6712         conditional code.
6713         * sysdeps/unix/sysv/linux/writev.c: Do not include
6714         <kernel-features.h>.
6715         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
6716         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
6717         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
6718         unconditional.
6719         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
6720         conditional code.
6721
6722 2014-06-25  Will Newton  <will.newton@linaro.org>
6723
6724         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
6725         comment changes throughout the file.  Remove checks
6726         for HAVE_*_H definitions that are not required.
6727         (__gen_tempname): Call abort if an unknown kind value is
6728         passed.
6729
6730 2014-06-25  Andreas Schwab  <schwab@suse.de>
6731
6732         [BZ #17086]
6733         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
6734         scalbln, scalblnf, scalblnl in libc.
6735
6736 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6737
6738         [BZ #17086]
6739         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
6740         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
6741         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
6742
6743 2014-06-24  Roland McGrath  <roland@hack.frob.com>
6744
6745         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
6746         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
6747         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
6748         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
6749         Update #include.
6750         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
6751         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
6752         Update #include.
6753         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
6754         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
6755         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
6756         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
6757         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
6758         * sysdeps/x86/bits/pthreadtypes.h: ... here.
6759         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
6760         * sysdeps/x86/bits/semaphore.h: ... here.
6761         * sysdeps/x86/nptl/elide.h: Moved ...
6762         * sysdeps/x86/elide.h: ... here.
6763         * sysdeps/x86_64/nptl/Implies: File removed.
6764         * sysdeps/i386/nptl/Implies: File removed.
6765
6766 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
6767
6768         [BZ #16539]
6769         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
6770         return the argument for normal arguments with exponent below -64.
6771         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
6772         Likewise.
6773         * math/auto-libm-test-in: Add another test of expm1.
6774         * math/auto-libm-test-out: Regenerated.
6775
6776         [BZ #16287]
6777         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
6778         calling __erfcl for arguments at least 16.
6779         * math/auto-libm-test-in: Add more tests of erf.
6780         * math/auto-libm-test-out: Regenerated.
6781
6782         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
6783         individual architectures.
6784         * sysdeps/unix/sysv/linux/configure: Regenerated.
6785         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
6786         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
6787         * sysdeps/unix/sysv/linux/powerpc/configure.ac
6788         (ldd_rewrite_script): Define variable.
6789         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
6790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
6791         file.
6792         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
6793         generated file.
6794         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
6795         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
6796         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
6797         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
6798         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
6799         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
6800         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
6801         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
6802
6803 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6804
6805         [BZ #17084]
6806         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
6807         Rename member __data.d to __data.__elision_data.
6808
6809 2014-06-24  Wilco  <wdijkstr@arm.com>
6810
6811         * NEWS: Add 16918 to fixed bug list.
6812
6813 2014-06-24  Wilco  <wdijkstr@arm.com>
6814
6815         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
6816
6817 2014-06-24  Wilco  <wdijkstr@arm.com>
6818
6819         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
6820         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
6821         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
6822         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
6823         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
6824         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
6825         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
6826         Use _FPU_MASK_RM.
6827
6828 2014-06-24  Wilco  <wdijkstr@arm.com>
6829
6830         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
6831
6832 2014-06-24  Wilco  <wdijkstr@arm.com>
6833
6834         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
6835         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
6836         * sysdeps/arm/fesetround.c (fesetround): Remove space.
6837         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
6838
6839 2014-06-24  Wilco  <wdijkstr@arm.com>
6840
6841         [BZ #16918]
6842         * sysdeps/arm/feupdateenv.c (feupdateenv):
6843         Rewrite to reduce FPSCR accesses and fix return value.
6844
6845 2014-06-24  Wilco  <wdijkstr@arm.com>
6846
6847         * sysdeps/arm/fclrexcpt.c (feclearexcept):
6848         Optimize to avoid unnecessary FPSCR writes.
6849         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
6850         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
6851         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
6852         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
6853
6854 2014-06-24  Wilco  <wdijkstr@arm.com>
6855
6856         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
6857         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
6858         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
6859         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
6860         Call libc_fetestexcept_vfp.
6861         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
6862         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
6863         __SOFTFP__ ifdef so that they can be built for softfp.
6864
6865 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6866
6867         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
6868         argument type signed char.
6869
6870         * Makerules (check-abi): Dump diff of symlist if the test
6871         fails.
6872
6873 2014-06-23  Roland McGrath  <roland@hack.frob.com>
6874
6875         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
6876         using abort.
6877
6878         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
6879         Remove unused variable ST.
6880
6881 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
6882
6883         [BZ #16354]
6884         [BZ #17061]
6885         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
6886         small arguments before calling __expm1.
6887         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
6888         small arguments before calling __expm1f.
6889         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
6890         small arguments before calling __expm1l.
6891         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
6892         Likewise.
6893         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
6894         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
6895         spurious underflow for some cosh tests.
6896         * math/auto-libm-test-out: Regenerated.
6897         * sysdeps/i386/fpu/libm-test-ulps: Update.
6898
6899         [BZ #17050]
6900         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
6901         (__ieee754_y1): Set errno if return value overflows.
6902         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
6903         (__ieee754_y1f): Set errno if return value overflows.
6904         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
6905         (__ieee754_y1l): Set errno if return value overflows.
6906         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
6907         (__ieee754_y1l): Set errno if return value overflows.
6908         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
6909         * math/auto-libm-test-out: Regenerated.
6910
6911         * math/gen-auto-libm-tests.c: Document use of
6912         ignore-zero-inf-sign.
6913         (input_flag_type): Add value flag_ignore_zero_inf_sign.
6914         (input_flags): Add ignore-zero-inf-sign.
6915         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
6916         * math/gen-libm-test.pl (generate_testfile): Handle
6917         ignore-zero-inf-sign.
6918         * math/auto-libm-test-in: Mark some cpow tests with
6919         ignore-zero-inf-sign and some with xfail-rounding.
6920         * math/auto-libm-test-out: Regenerated.
6921         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
6922         * sysdeps/i386/fpu/libm-test-ulps: Update.
6923         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6924
6925         [BZ #16315]
6926         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
6927         overflowing or underflowing operations take place with sign of
6928         result.
6929         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
6930         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
6931         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
6932         (__ieee754_pow): Recompute overflowing and underflowing results in
6933         original rounding mode.
6934         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
6935         (__powl_helper): Allow negative argument X and scale negated value
6936         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
6937         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
6938         overflowing or underflowing operations take place with sign of
6939         result.
6940         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
6941         Include <math.h>.
6942         * math/auto-libm-test-in: Add more tests of pow.
6943         * math/auto-libm-test-out: Regenerated.
6944         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
6945         (pow_tonearest_test_data): Remove.
6946         (pow_test_tonearest): Likewise.
6947         (pow_towardzero_test_data): Likewise.
6948         (pow_test_towardzero): Likewise.
6949         (pow_downward_test_data): Likewise.
6950         (pow_test_downward): Likewise.
6951         (pow_upward_test_data): Likewise.
6952         (pow_test_upward): Likewise.
6953         (main): Don't call removed functions.
6954         * sysdeps/i386/fpu/libm-test-ulps: Update.
6955         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6956
6957 2014-06-23  Roland McGrath  <roland@hack.frob.com>
6958
6959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
6960         Moved ...
6961         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
6962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6963         Moved ...
6964         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
6965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6966         Moved ...
6967         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
6968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
6969         Moved ...
6970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
6971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
6972         File removed.
6973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6974         File removed.
6975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
6976         File removed.
6977         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
6978         File removed.
6979         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
6980         File removed.
6981         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
6982         File removed.
6983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
6984         File removed.
6985         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6986         File removed.
6987         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
6988         File removed.
6989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6990         File removed.
6991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
6992         File removed.
6993         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
6994         File removed.
6995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
6996         Moved ...
6997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
6998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
6999         Moved ...
7000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
7001         ... here.
7002         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
7003         Moved ...
7004         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
7005         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
7006         Moved ...
7007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
7008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
7009         Moved ...
7010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
7011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
7012         Moved ...
7013         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
7014         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
7015         Moved ...
7016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
7017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
7018         Moved ...
7019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
7020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
7021         Moved ...
7022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
7023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
7024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
7025         ... here.
7026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
7027         Moved ...
7028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
7029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
7030         Moved ...
7031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
7032         ... here.
7033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
7034         Moved ...
7035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
7036         ... here.
7037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
7038         Moved ...
7039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
7040         ... here.
7041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
7042         Moved ...
7043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
7044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
7045         Moved ...
7046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
7047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
7048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
7049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
7050         Moved ...
7051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
7052         ... here.
7053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7054         Moved ...
7055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
7056         ... here.
7057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
7058         Moved ...
7059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
7060         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7061         Moved ...
7062         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
7063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
7064         Moved ...
7065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
7066         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7067         Moved ...
7068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
7069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
7070         Moved ...
7071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
7072         ... here.
7073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7074         Moved ...
7075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
7076         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
7077         Moved ...
7078         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
7079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7080         Moved ...
7081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
7082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
7083         Moved ...
7084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
7085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
7086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
7087         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
7088         Moved ...
7089         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
7090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7091         Moved ...
7092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
7093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
7094         Moved ...
7095         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
7096         ... here.
7097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7098         Moved ...
7099         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
7100         ... here.
7101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
7102         Moved ...
7103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
7104         ... here.
7105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7106         Moved ...
7107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
7108         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
7109         Moved ...
7110         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
7111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7112         Moved ...
7113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
7114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
7115         Moved ...
7116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
7117         ... here.
7118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7119         Moved ...
7120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
7121         ... here.
7122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
7123         Moved ...
7124         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
7125         ... here.
7126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7127         Moved ...
7128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
7129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
7130         Moved ...
7131         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
7132
7133 2014-06-23  Will Newton  <will.newton@linaro.org>
7134             Wilco  <wdijkstr@arm.com>
7135
7136         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
7137         implementation.  Include get-rounding-mode.h.
7138         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
7139         [!libc_feholdsetround_noex_ctx]: Define
7140         libc_feholdsetround_noex_ctx.
7141         [!libc_feholdsetround_noexf_ctx]: Define
7142         libc_feholdsetround_noexf_ctx.
7143         [!libc_feholdsetround_noexl_ctx]: Define
7144         libc_feholdsetround_noexl_ctx.
7145         (libc_feholdsetround_ctx): New function.
7146         (libc_feresetround_ctx): New function.
7147         (libc_feholdsetround_noex_ctx): New function.
7148         (libc_feresetround_noex_ctx): New function.
7149
7150 2014-06-23  Roland McGrath  <roland@hack.frob.com>
7151
7152         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
7153         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
7154         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
7155         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
7156         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
7157         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
7158
7159         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
7160         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
7161         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
7162         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
7163         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
7164         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
7165         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
7166         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
7167         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
7168         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
7169         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
7170         Moved ...
7171         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
7172         ... here.
7173         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
7174         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
7175         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
7176         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
7177         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
7178         Moved ...
7179         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
7180         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
7181         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
7182         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
7183         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
7184         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
7185         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
7186         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
7187         Moved ...
7188         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
7189         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
7190         Moved ...
7191         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
7192         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
7193         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
7194         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
7195         Moved ...
7196         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
7197         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
7198         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
7199         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
7200         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
7201         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
7202         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
7203         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
7204         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
7205         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
7206         Moved ...
7207         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
7208         ... here.
7209         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
7210         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
7211         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
7212         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
7213         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
7214         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
7215         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
7216         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
7217         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
7218         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
7219         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
7220         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
7221         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
7222         Moved ...
7223         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
7224         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
7225         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
7226         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
7227         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
7228         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
7229         Moved ...
7230         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
7231         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
7232         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
7233         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
7234         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
7235
7236         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
7237         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
7238         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
7239         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
7240         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
7241         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
7242         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
7243         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
7244         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
7245         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
7246         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
7247         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
7248         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
7249         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
7250         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
7251         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
7252         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
7253         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
7254         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
7255         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
7256         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
7257         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
7258         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
7259         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
7260         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
7261         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
7262         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
7263         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
7264
7265 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
7266
7267         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
7268         (FALLOC_FL_COLLAPSE_RANGE): New macro.
7269         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
7270         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
7271         (IPV6_PMTUDISC_INTERFACE): Likewise.
7272         (IPV6_PMTUDISC_OMIT): Likewise.
7273
7274 2014-06-23  Andreas Schwab  <schwab@suse.de>
7275
7276         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
7277         Remove unused errout label.
7278
7279 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7280
7281         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
7282         macro: hardware supports Vector Crypto instructions.
7283
7284 2014-06-23  Will Newton  <will.newton@linaro.org>
7285
7286         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
7287         rather than __builtin_expect.
7288
7289         * elf/dl-lookup.c (undefined_msg): Remove variable.
7290         (_dl_lookup_symbol_x): Replace undefined_msg with string
7291         literal.
7292
7293         * elf/dl-lookup.c (do_lookup_unique): New function.
7294         (do_lookup_x): Move STB_GNU_UNIQUE handling code
7295         to a separate function.
7296
7297 2014-06-23  Andreas Schwab  <schwab@suse.de>
7298
7299         [BZ #17079]
7300         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
7301         before reading the next line.
7302
7303 2014-06-23  Will Newton  <will.newton@linaro.org>
7304
7305         * test-skeleton.c (signal_handler): Use printf and %m
7306         rather than perror.  Use printf rather than fprintf to
7307         stderr.  Use puts rather than fputs to stderr.
7308         (main): Likewise.
7309
7310 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
7311
7312         * nscd/nscd.c (thread_info_t): Remove typedef.
7313         (thread_info): Remove variable.
7314
7315 2014-06-21  Allan McRae  <allan@archlinux.org>
7316
7317         * NEWS: Mention CVE-2014-4043.
7318
7319 2014-06-20  Roland McGrath  <roland@hack.frob.com>
7320
7321         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
7322         * nptl/smp.h: ... here.
7323
7324         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
7325
7326         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
7327         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
7328         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
7329         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
7330
7331         * nptl/allocatestack.c: Include <stack-aliasing.h>.
7332         * nptl/stack-aliasing.h: New file.
7333         * sysdeps/i386/i686/stack-aliasing.h: New file.
7334         * sysdeps/i386/i686/nptl/Makefile: File removed.
7335         * sysdeps/x86_64/stack-aliasing.h: New file.
7336         * sysdeps/x86_64/nptl/Makefile
7337         (CFLAGS-pthread_create.c): Variable removed.
7338
7339         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
7340         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
7341         old file.
7342         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
7343         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
7344         old file.
7345
7346 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
7347
7348         * sysdeps/unix/sysv/linux/arm/kernel-features.h
7349         (__ASSUME_SIGFRAME_V2): Remove macro.
7350         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
7351         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
7352         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
7353         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
7354         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
7355         Declare as function.  Remove conditional macro definitions.
7356         (__default_rt_sa_restorer): Likewise.
7357         (__default_sa_restorer_v1): Remove declaration.
7358         (__default_sa_restorer_v2): Likewise.
7359         (__default_rt_sa_restorer_v1): Likewise.
7360         (__default_rt_sa_restorer_v2): Likewise.
7361         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
7362         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
7363         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
7364
7365 2014-06-20  Roland McGrath  <roland@hack.frob.com>
7366
7367         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
7368         (libpthread-routines): Add sysdep.
7369         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
7370         * sysdeps/unix/sysv/linux/sparc/Versions
7371         (libpthread: GLIBC_2.3.3): New version set.
7372         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
7373         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
7374         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
7375         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
7376         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
7377         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
7378         Moved ...
7379         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
7380         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
7381         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
7382         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
7383         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
7384         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
7385         * sysdeps/sparc/nptl/sem_init.c: ... here.
7386         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
7387         * sysdeps/sparc/nptl/sem_post.c: ... here.
7388         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
7389         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
7390         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
7391         * sysdeps/sparc/nptl/sem_wait.c: ... here.
7392         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
7393         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
7394         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
7395         (libpthread-routines): Add cpu_relax.
7396         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
7397         File removed.
7398         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
7399         (librt: GLIBC_2.3.3): New version set.
7400         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
7401         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
7402         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
7403         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
7404         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
7405         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
7406         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
7407         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
7408         Moved ...
7409         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
7410         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
7411         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
7412         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
7413         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
7414         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
7415         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
7416         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
7417         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
7418         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
7419         Moved ...
7420         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
7421         Update #include.
7422         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
7423         Moved ...
7424         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
7425         Update #include.
7426         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
7427         Moved ...
7428         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
7429         Update #include.
7430         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
7431         Moved ...
7432         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
7433         Update #include.
7434         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
7435         Moved ...
7436         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
7437         Update #include.
7438         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
7439         Moved ...
7440         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
7441         Update #include.
7442         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
7443         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
7444         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
7445         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
7446         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
7447         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
7448         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
7449         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
7450         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
7451         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
7452         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
7453         Moved ...
7454         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
7455         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
7456         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
7457         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
7458         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
7459
7460 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
7461
7462         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
7463         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
7464         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
7465         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
7466         * nscd/nscd.c: Likewise.
7467         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
7468         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
7469         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
7470         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
7471
7472         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
7473         <kernel-features.h>.
7474         (init_mq_netlink): Remove conditional have_sock_cloexec
7475         definitions.  Remove code conditional on have_sock_cloexec < 0.
7476         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
7477         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
7478         * sysdeps/unix/sysv/linux/opensock.c: Do not include
7479         <kernel-features.h>.
7480         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
7481         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
7482
7483 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
7484
7485         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
7486         Add tests for memset_chk and memset.
7487
7488         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
7489         with AVX2_Usable.
7490
7491 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
7492
7493         [BZ #16046]
7494         * elf/tst-dl-iter-static.c: New file.
7495         * elf/Makefile (tests-static): Add tst-dl-iter-static.
7496
7497         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
7498         error.
7499
7500 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
7501
7502         * sysdeps/unix/sysv/linux/kernel-features.h
7503         (__ASSUME_F_GETOWN_EX): Remove macro.
7504         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
7505         <kernel-features.h>.
7506         (miss_F_GETOWN_EX): Remove variable or macro.
7507         (do_fcntl): Do not check miss_F_GETOWN_EX.
7508         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
7509
7510         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
7511         Remove macro.
7512         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
7513         [!__ASSUME_AT_RANDOM]: Remove conditional code.
7514         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
7515
7516         * sysdeps/unix/sysv/linux/kernel-features.h
7517         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
7518         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
7519         [ADJ_OFFSET_SS_READ]: Make code unconditional.
7520         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
7521
7522 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
7523
7524         [BZ #17075]
7525         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
7526         Fix calculation of the symbol's value.
7527         * sysdeps/arm/tst-armtlsdescloc.c: New file.
7528         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
7529         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
7530         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
7531         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
7532         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
7533         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
7534         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
7535         (modules-names): Add `tst-armtlsdescmod',
7536         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
7537         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
7538         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
7539         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
7540         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
7541         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
7542         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
7543         ($(objpfx)tst-armtlsdescloc): New dependency.
7544         ($(objpfx)tst-armtlsdescextnow): Likewise.
7545         ($(objpfx)tst-armtlsdescextlazy): Likewise.
7546         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
7547         TLS scheme support.
7548         * sysdeps/arm/configure: Regenerate.
7549
7550 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
7551
7552         * include/fcntl.h (__atfct_seterrno): Remove prototype.
7553         (__atfct_seterrno_2): Likewise.
7554         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
7555         <kernel-features.h>.
7556         (__ASSUME_ATFCTS): Do not undefine and redefine.
7557         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
7558         (__have_atfcts): Remove conditional definition.
7559         (__fxstatat([__NR_fstatat64]: Make code unconditional.
7560         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
7561         unreachable if [__ASSUME_ATFCTS].
7562         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
7563         not undefine and redefine.
7564         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
7565         <kernel-features.h>.
7566         (faccessat) [__NR_faccessat]: Make code unconditional.
7567         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
7568         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
7569         <kernel-features.h>.
7570         (fchmodat) [__NR_fchmodat]: Make code unconditional.
7571         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
7572         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
7573         <kernel-features.h>.
7574         (fchownat) [__NR_fchownat]: Make code unconditional.
7575         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
7576         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
7577         <kernel-features.h>.
7578         (futimesat) [__NR_futimesat]: Make code unconditional.
7579         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
7580         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
7581         <kernel-features.h>.
7582         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
7583         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
7584         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
7585         <kernel-features.h>.
7586         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
7587         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
7588         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
7589         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
7590         <kernel-features.h>.
7591         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
7592         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
7593         * sysdeps/unix/sysv/linux/linkat.c: Do not include
7594         <kernel-features.h>.
7595         (linkat) [__NR_linkat]: Make code unconditional.
7596         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
7597         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
7598         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
7599         <kernel-features.h>.
7600         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
7601         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
7602         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
7603         <kernel-features.h>.
7604         (mkdirat) [__NR_mkdirat]: Make code unconditional.
7605         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
7606         * sysdeps/unix/sysv/linux/openat.c: Do not include
7607         <kernel-features.h>.
7608         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
7609         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
7610         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
7611         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
7612         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
7613         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
7614         <kernel-features.h>.
7615         (readlinkat) [__NR_readlinkat]: Make code unconditional.
7616         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
7617         result of INLINE_SYSCALL directly, not via int variable.
7618         * sysdeps/unix/sysv/linux/renameat.c: Do not include
7619         <kernel-features.h>.
7620         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
7621         (renameat) [__NR_renameat]: Make code unconditional.
7622         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
7623         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
7624         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
7625         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
7626         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
7627         (__ASSUME_ATFCTS): Do not undefine and redefine.
7628         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
7629         <kernel-features.h>.
7630         (symlinkat) [__NR_symlinkat]: Make code unconditional.
7631         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
7632         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
7633         <kernel-features.h>.
7634         (unlinkat) [__NR_unlinkat]: Make code unconditional.
7635         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
7636         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
7637         (__ASSUME_ATFCTS): Do not undefine and redefine.
7638         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
7639         <kernel-features.h>.
7640         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
7641         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
7642         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
7643         <kernel-features.h>.
7644         (__xmknodat) [__NR_mknodat]: Make code unconditional.
7645         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
7646
7647 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
7648
7649         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
7650
7651 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
7652
7653         [BZ #17069]
7654         * posix/regcomp.c (parse_reg_exp): Deallocate partially
7655         constructed tree before returning error.
7656         * posix/bug-regexp36.c: Expand test case.
7657
7658 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
7659
7660         [BZ #6803]
7661         * math/libm-test.inc (scalbln_test_date):
7662         Add errno expectations.
7663         * math/w_scalblnf.c: New File.
7664         Add wrapper which checks for setting errno to ERANGE.
7665         Add weak_alias for corresponding scalbln function.
7666         * math/w_scalbln.c: Likewise.
7667         * math/w_scalblnl.c: Likewise.
7668         * math/Makefile (libm-calls): Add w_scalbln.
7669         * sysdeps/ieee754/flt-32/s_scalblnf.c:
7670         Remove weak_alias for corresponding scalbln function.
7671         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
7672         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
7673         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7674         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
7675         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
7676         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
7677         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
7678         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
7679         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
7680         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
7681         Remove long_double_symbol for scalblnl function in libm, libc.
7682         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
7683         Add wrapper which checks for setting errno to ERANGE.
7684         Add long_double_symbol for scalblnl function in libm, libc.
7685         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
7686         Remove long_double_symbol for scalblnl in libm.
7687         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
7688         Add wrapper which checks for setting errno to ERANGE.
7689         Add long_double_symbol for scalblnl function in libm.
7690         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
7691         Do not use wrapper because of own implementation.
7692
7693 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
7694
7695         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
7696         3 bytes for __pad1 for x32.
7697         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
7698
7699 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
7700             H.J. Lu  <hongjiu.lu@intel.com>
7701
7702         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
7703         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
7704         * sysdeps/x86_64/multiarch/memset.S: Likewise.
7705         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
7706         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
7707
7708 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
7709
7710         [BZ #17069]
7711         * posix/regcomp.c (parse_expression): Deallocate partially
7712         constructed tree before returning error.
7713         * posix/Makefile.c (tests): Add bug-regex36.
7714         (generated): Add bug-regex36.mtrace.
7715         (tests-special): Add $(objpfx)bug-regex36-mem.out
7716         (bug-regex36-ENV): New variable.
7717         ($(objpfx)bug-regex36-mem.out): New rule.
7718         * posix/bug-regex36.c: New file.
7719
7720 2014-06-19  Will Newton  <will.newton@linaro.org>
7721
7722         * malloc/malloc.c (systrim): If extra is zero then return
7723         early.
7724
7725 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7726
7727         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
7728
7729 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
7730
7731         * sysdeps/aarch64/strchr.S: New file.
7732
7733 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
7734
7735         [BZ #17022]
7736         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
7737         from arguments -2 or below.
7738         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
7739         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
7740
7741 2014-06-18  Andreas Schwab  <schwab@suse.de>
7742
7743         [BZ #17062]
7744         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
7745         of a bracket expr not to run off the end of the string.
7746         * posix/Makefile (tests): Add tst-fnmatch3.
7747         * posix/tst-fnmatch3.c: New file.
7748
7749 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
7750
7751         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
7752         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
7753         [$(cross-compiling) = no]: Likewise.
7754         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
7755         [$(cross-compiling) = no]: Likewise.
7756
7757 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
7758
7759         [BZ #17031]
7760         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
7761         double, adjusted for any remainder from the high double.
7762         * math/libm-test.inc (nearbyint): Add tests.
7763         (rint): Likewise.
7764
7765 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7766
7767         * nptl/sysdeps/powerpc/Makefile: Moved ...
7768         * sysdeps/powerpc/nptl/Makefile: ... here.
7769         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
7770         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
7771         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
7772         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
7773         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
7774         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
7775         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
7776         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
7777         * nptl/sysdeps/powerpc/tls.h: Moved ...
7778         * sysdeps/powerpc/nptl/tls.h: ... here.
7779
7780 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
7781
7782         [BZ #16681]
7783         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
7784         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
7785         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
7786         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
7787         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
7788         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
7789         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
7790         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
7791         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
7792
7793 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
7794
7795         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
7796
7797 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
7798
7799         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
7800         defined operator.
7801
7802         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
7803         $TIMEOUTFACTOR.
7804
7805 2014-06-16  Florian Weimer  <fweimer@redhat.com>
7806
7807         [BZ #17058]
7808         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
7809         non-executed part of the test.
7810
7811 2014-06-16  Andreas Schwab  <schwab@suse.de>
7812
7813         * string/bits/string2.h (strdup, strndup): Update feature guard.
7814
7815 2014-06-14  David S. Miller  <davem@davemloft.net>
7816
7817         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7818
7819 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
7820
7821         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
7822         that was previously under [RESET_PID].
7823         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
7824
7825         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
7826         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
7827         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
7828         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
7829         (__libc_vfork): New strong alias.
7830         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
7831
7832 2014-06-14 Andi Kleen  <ak@linux.intel.com>
7833
7834         * sysdeps/generic/elide.h: New file.
7835
7836 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
7837
7838         * Makefile (installed-headers): Adjust path of pthread.h header.
7839
7840 2014-06-13  Roland McGrath  <roland@hack.frob.com>
7841
7842         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
7843         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
7844         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
7845         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
7846
7847         * nptl/sysdeps/s390/Makefile: Moved ...
7848         * sysdeps/s390/nptl/Makefile: ... here.
7849         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
7850         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
7851         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
7852         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
7853         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
7854         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
7855         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
7856         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
7857         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
7858         * sysdeps/s390/nptl/pthreaddef.h: ... here.
7859         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
7860         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
7861         * nptl/sysdeps/s390/tls.h: Moved ...
7862         * sysdeps/s390/nptl/tls.h: ... here.
7863
7864         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
7865         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
7866
7867 2014-06-13  David S. Miller  <davem@davemloft.net>
7868
7869         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
7870         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
7871         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
7872         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
7873         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
7874         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
7875         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
7876         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
7877         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
7878         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
7879         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
7880         Remove RESET_PID cpp guards.
7881         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
7882         Remove RESET_PID cpp guards.
7883         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
7884
7885 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
7886
7887         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
7888         __sp to uintptr_t.
7889
7890 2014-06-13  Andi Kleen  <ak@linux.intel.com>
7891
7892         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
7893         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
7894         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
7895         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
7896         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
7897         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
7898         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
7899         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
7900         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
7901         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
7902         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
7903         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
7904         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
7905         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
7906         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
7907         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
7908         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
7909         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
7910         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
7911         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
7912
7913         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
7914         (pthread_rwlock_rdlock): Add elision.
7915         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
7916         (pthread_rwlock_wrlock): Add elision.
7917         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
7918         (pthread_rwlock_trywrlock): Add elision.
7919         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
7920         (pthread_rwlock_tryrdlock): Add elision.
7921         * nptl/pthread_rwlock_unlock.c: Include elide.h.
7922         (pthread_rwlock_tryrdlock): Add elision unlock.
7923         * nptl/sysdeps/pthread/pthread.h:
7924         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
7925         (PTHREAD_RWLOCK_INITIALIZER,
7926         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
7927         Handle new elision field.
7928         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
7929         * sysdeps/arm/nptl/bits/pthreadtypes.h
7930         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7931         * sysdeps/sh/nptl/bits/pthreadtypes.h
7932         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7933         * sysdeps/tile/nptl/bits/pthreadtypes.h
7934         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7935         * sysdeps/a/nptl/bits/pthreadtypes.h
7936         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7937         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
7938         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7939         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
7940         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7941         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
7942         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7943         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
7944         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7945         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
7946         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7947         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
7948         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7949         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
7950         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7951         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
7952         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7953         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
7954         (elision_init): Set try_xbegin to zero when no RTM.
7955         * sysdeps/x86/nptl/bits/pthreadtypes.h
7956         (pthread_rwlock_t): Change __pad1 to __rwelision.
7957         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
7958
7959 2014-06-13  Andi Kleen  <ak@linux.intel.com>
7960
7961         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
7962         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
7963         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
7964         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
7965
7966 2014-06-13  Meador Inge  <meadori@codesourcery.com>
7967
7968         [BZ #16996]
7969         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
7970         that the cached result has been set before returning it.
7971
7972 2014-06-12  Roland McGrath  <roland@hack.frob.com>
7973
7974         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
7975         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
7976         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
7977         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
7978         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
7979         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
7980
7981         * nptl/sysdeps/sparc/Makefile: Moved ...
7982         * sysdeps/sparc/nptl/Makefile: ... here.
7983         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
7984         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
7985         * nptl/sysdeps/sparc/tls.h: Moved ...
7986         * sysdeps/sparc/nptl/tls.h: ... here.
7987         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
7988         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
7989         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
7990         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
7991         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
7992         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
7993         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
7994         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
7995         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
7996         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
7997         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
7998         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
7999         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
8000         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
8001         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
8002         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
8003         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
8004         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
8005         Update #include.
8006         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
8007         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
8008         Update #include.
8009         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
8010         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
8011         Update #include.
8012         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
8013         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
8014         Update #include.
8015
8016         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
8017
8018         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
8019         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
8020
8021         * sysdeps/pthread/posix-timer.h: Include <list.h>.
8022         (struct list_links): Type removed.
8023         (struct thread_node, struct timer_node): Replace struct list_links
8024         with struct list_head.
8025         (list_unlink_ip): Likewise.
8026         * sysdeps/pthread/timer_routines.c
8027         (timer_free_list, thread_free_list, thread_active_list): Likewise.
8028         (list_append, list_insbefore): Likewise.
8029         (list_init): Function removed.
8030         (thread_init, init_module): Use INIT_LIST_HEAD instead.
8031         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
8032         * sysdeps/pthread/Makefile: ... here, new file.
8033
8034         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
8035         * sysdeps/nptl/Implies: ... here.
8036         * sysdeps/unix/sysv/linux/Implies: Add nptl.
8037         * nptl/sysdeps/pthread/list.h: Moved ...
8038         * include/list.h: ... here.
8039         * nptl/sysdeps/pthread/createthread.c: Moved ...
8040         * nptl/createthread.c: ... here.
8041         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
8042         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
8043         * nptl/pt-longjmp.c: ... here.
8044         * nptl/sysdeps/pthread/Makefile: Moved ...
8045         * sysdeps/nptl/Makefile: ... here.
8046         * nptl/sysdeps/pthread/Subdirs: Moved ...
8047         * sysdeps/nptl/Subdirs: ... here.
8048         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
8049         * sysdeps/nptl/aio_misc.h: ... here.
8050         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
8051         * sysdeps/nptl/bits/libc-lock.h: ... here.
8052         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
8053         * sysdeps/nptl/bits/libc-lockP.h: ... here.
8054         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
8055         * sysdeps/nptl/bits/stdio-lock.h: ... here.
8056         * nptl/sysdeps/pthread/configure: Moved ...
8057         * sysdeps/nptl/configure: ... here.
8058         * nptl/sysdeps/pthread/configure.ac: Moved ...
8059         * sysdeps/nptl/configure.ac: ... here.
8060         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
8061         * sysdeps/nptl/gai_misc.h: ... here.
8062         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
8063         * sysdeps/nptl/librt-cancellation.c: ... here.
8064         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
8065         * sysdeps/nptl/malloc-machine.h: ... here.
8066         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
8067         * sysdeps/nptl/pthread-functions.h: ... here.
8068         * nptl/sysdeps/pthread/pthread.h: Moved ...
8069         * sysdeps/nptl/pthread.h: ... here.
8070         * nptl/sysdeps/pthread/setxid.h: Moved ...
8071         * sysdeps/nptl/setxid.h: ... here.
8072         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
8073         * sysdeps/nptl/sigfillset.c: ... here.
8074         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
8075         * sysdeps/nptl/tcb-offsets.h: ... here.
8076         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
8077         * sysdeps/nptl/tst-mqueue8x.c: ... here.
8078         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
8079         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
8080         * nptl/sysdeps/pthread/allocalim.h: Moved ...
8081         * sysdeps/pthread/allocalim.h: ... here.
8082         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
8083         * sysdeps/pthread/bits/sigthread.h: ... here.
8084         * nptl/sysdeps/pthread/flockfile.c: Moved ...
8085         * sysdeps/pthread/flockfile.c: ... here.
8086         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
8087         * sysdeps/pthread/ftrylockfile.c: ... here.
8088         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
8089         * sysdeps/pthread/funlockfile.c: ... here.
8090         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
8091         * sysdeps/pthread/posix-timer.h: ... here.
8092         * nptl/sysdeps/pthread/timer_create.c: Moved ...
8093         * sysdeps/pthread/timer_create.c: ... here.
8094         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
8095         * sysdeps/pthread/timer_delete.c: ... here.
8096         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
8097         * sysdeps/pthread/timer_getoverr.c: ... here.
8098         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
8099         * sysdeps/pthread/timer_gettime.c: ... here.
8100         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
8101         * sysdeps/pthread/timer_routines.c: ... here.
8102         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
8103         * sysdeps/pthread/timer_settime.c: ... here.
8104         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
8105         * sysdeps/pthread/tst-timer.c: ... here.
8106         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
8107         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
8108
8109         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
8110         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
8111
8112         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
8113         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
8114         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
8115         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
8116         Update #include target.
8117         * nptl/sysdeps/i386/i686/Makefile: Moved ...
8118         * sysdeps/i386/i686/nptl/Makefile: ... here.
8119         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
8120         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
8121         Update #include target.
8122         * nptl/sysdeps/i386/i686/tls.h: Moved ...
8123         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
8124         * nptl/sysdeps/i386/Makefile: Moved ...
8125         * sysdeps/i386/nptl/Makefile: ... here.
8126         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
8127         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
8128         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
8129         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
8130         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
8131         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
8132         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
8133         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
8134         * sysdeps/i386/nptl/pthreaddef.h: ... here.
8135         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
8136         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
8137         * nptl/sysdeps/i386/tls.h: Moved ...
8138         * sysdeps/i386/nptl/tls.h: ... here.
8139
8140         * sysdeps/sh/Makefile [$(subdir) = csu]
8141         (gen-as-const-headers): Add tcb-offsets.sym.
8142         * nptl/sysdeps/sh/Makefile: File removed.
8143         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
8144         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
8145         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
8146         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
8147         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
8148         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
8149         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
8150         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
8151         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
8152         * sysdeps/sh/nptl/pthreaddef.h: ... here.
8153         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
8154         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
8155         * nptl/sysdeps/sh/tls.h: Moved ...
8156         * sysdeps/sh/nptl/tls.h: ... here.
8157         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
8158         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
8159         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
8160         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
8161         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
8162         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
8163         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
8164         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
8165         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
8166         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
8167         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
8168         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
8169         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
8170         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
8171         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
8172         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
8173         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
8174         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
8175         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
8176         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
8177         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
8178         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
8179         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
8180         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
8181         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
8182         Moved ...
8183         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
8184         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
8185         Moved ...
8186         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
8187         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
8188         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
8189         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
8190         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
8191         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
8192         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
8193         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
8194         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
8195         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
8196         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
8197         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
8198         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
8199         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
8200         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
8201         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
8202         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
8203         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
8204         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
8205
8206 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
8207
8208         * posix/spawn_faction_addopen.c: Include string.h.
8209
8210 2014-06-11  Roland McGrath  <roland@hack.frob.com>
8211
8212         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
8213         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
8214         * nptl/sysdeps/x86_64/Makefile: Moved ...
8215         * sysdeps/x86_64/nptl/Makefile: ... here.
8216         * nptl/sysdeps/x86_64/configure: Moved ...
8217         * sysdeps/x86_64/nptl/configure: ... here.
8218         * nptl/sysdeps/x86_64/configure.ac: Moved ...
8219         * sysdeps/x86_64/nptl/configure.ac: ... here.
8220         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
8221         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
8222         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
8223         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
8224         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
8225         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
8226         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
8227         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
8228         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
8229         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
8230         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
8231         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
8232         * nptl/sysdeps/x86_64/tls.h: Moved ...
8233         * sysdeps/x86_64/nptl/tls.h: ... here.
8234         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
8235         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
8236         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
8237         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
8238
8239         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
8240
8241 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8242
8243         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8244
8245 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
8246
8247         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
8248         type.
8249         [POSIX] (off_t): Likewise.
8250         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
8251         [POSIX] (S_ISBLK): Require macro.
8252         [POSIX] (S_ISCHR): Likewise.
8253         [POSIX] (S_ISDIR): Likewise.
8254         [POSIX] (S_ISFIFO): Likewise.
8255         [POSIX] (S_ISREG): Likewise.
8256         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
8257         optional-macro.
8258         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
8259         type.
8260         [POSIX] (time_t): Likewise.
8261         [POSIX] (timer_t): Likewise.
8262
8263 2014-06-11  Florian Weimer  <fweimer@redhat.com>
8264
8265         [BZ #17048]
8266         * posix/spawn_int.h (struct __spawn_action): Make the path string
8267         non-const to support deallocation.
8268         * posix/spawn_faction_addopen.c
8269         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
8270         * posix/spawn_faction_destroy.c
8271         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
8272         path in all spawn_do_open actions.
8273         * posix/tst-spawn.c (do_test): Exercise the copy operation in
8274         posix_spawn_file_actions_addopen.
8275
8276 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
8277
8278         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
8279         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
8280         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
8281         conditional code always true.
8282         (__libc_vfork): New alias.
8283
8284 2014-06-11  Roland McGrath  <roland@hack.frob.com>
8285
8286         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
8287         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
8288
8289         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
8290
8291         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
8292         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
8293
8294         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
8295         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
8296
8297         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
8298         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
8299
8300 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
8301
8302         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
8303         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
8304         multiarch strcmp for PPC64.
8305         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
8306         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
8307         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
8308         multiarch optimizations.
8309         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
8310         (__libc_ifunc_impl_list): Likewise.
8311
8312 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
8313
8314         * benchtests/scripts/validate_benchout.py: New script.
8315         * benchtests/Makefile (bench-func): Call it.
8316         * benchtests/scripts/benchout.schema.json: New file.
8317
8318 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
8319
8320         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
8321         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
8322         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
8323         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
8324         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
8325         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
8326         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
8327         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
8328         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
8329         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
8330         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
8331         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
8332         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
8333         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
8334         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
8335         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
8336         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
8337         Moved ...
8338         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
8339         ... here.
8340         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
8341         Moved ...
8342         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
8343         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
8344         Moved ...
8345         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
8346         ... here.
8347         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
8348         Moved ...
8349         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
8350         ... here.
8351         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
8352         Moved ...
8353         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
8354         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
8355         Moved ...
8356         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
8357         ... here.
8358         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
8359         Moved ...
8360         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
8361         ... here.
8362         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
8363         Moved ...
8364         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
8365         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
8366         Moved ...
8367         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
8368         ... here.
8369         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
8370         Moved ...
8371         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
8372         ... here.
8373         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
8374         Moved ...
8375         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
8376         ... here.
8377         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
8378         Moved ...
8379         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
8380         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
8381         Moved ...
8382         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
8383         ... here.
8384         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
8385         Moved ...
8386         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
8387         ... here.
8388         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
8389         Moved ...
8390         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
8391         ... here.
8392         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
8393         Moved ...
8394         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
8395         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
8396         Moved ...
8397         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
8398         ... here.
8399         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
8400         Moved ...
8401         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
8402         ... here.
8403         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
8404         Moved ...
8405         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
8406         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
8407         Moved ...
8408         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
8409         ... here.
8410         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
8411         Moved ...
8412         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
8413         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
8414         Moved ...
8415         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
8416         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
8417         Moved ...
8418         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
8419         ... here.
8420         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
8421         Moved ...
8422         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
8423         ... here.
8424         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
8425         Moved ...
8426         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
8427         ... here.
8428         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
8429         Moved ...
8430         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
8431         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
8432         Moved ...
8433         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
8434         ... here.
8435         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
8436         Moved ...
8437         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
8438         ... here.
8439         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
8440         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
8441         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
8442         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
8443         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
8444         Moved ...
8445         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
8446         ... here.
8447         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
8448         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
8449         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
8450         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
8451         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
8452         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
8453         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
8454         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
8455         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
8456         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
8457         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
8458         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
8459         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
8460         Moved ...
8461         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
8462         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
8463         Moved ...
8464         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
8465         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
8466         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
8467         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
8468         Moved ...
8469         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
8470         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
8471         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
8472         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
8473         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
8474         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
8475         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
8476
8477 2014-06-10  Wilco  <wdijkstr@arm.com>
8478
8479         * math/test-fenv-return.c: New file.
8480         * math/Makefile: Add new test test-fenv-return.
8481
8482 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
8483
8484         [BZ #17042]
8485         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
8486         when x - 1 is zero.
8487         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
8488         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
8489         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
8490         0.0L for an argument of 1.0L.
8491         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
8492         Likewise.
8493         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
8494         value when x - 1 is zero.
8495         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
8496         * sysdeps/i386/fpu/libm-test-ulps: Update.
8497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8498
8499 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
8500
8501         [BZ #15119]
8502         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
8503
8504 2014-06-09  Roland McGrath  <roland@hack.frob.com>
8505
8506         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
8507         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
8508
8509 2014-06-09  Roland McGrath  <roland@hack.frob.com>
8510
8511         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
8512         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
8513
8514         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
8515         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
8516
8517         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
8518         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
8519
8520         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
8521         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
8522
8523         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
8524         if not already defined.
8525         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
8526         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
8527         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
8528         (TLS_INIT_TP): Use it.
8529         (TLS_DEFINE_INIT_TP): New macro.
8530         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
8531
8532 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
8533
8534         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
8535         constant.
8536         [POSIX] (IXANY): Likewise.
8537         [POSIX] (OLCUC): Likewise.
8538         [POSIX || POSIX2008] (CBAUD): Do not allow.
8539         [POSIX || POSIX2008] (DEFECHO): Likewise.
8540         [POSIX || POSIX2008] (ECHOCTL): Likewise.
8541         [POSIX || POSIX2008] (ECHOKE): Likewise.
8542         [POSIX || POSIX2008] (ECHOPRT): Likewise.
8543         [POSIX || POSIX2008] (EXTA): Likewise.
8544         [POSIX || POSIX2008] (EXTB): Likewise.
8545         [POSIX || POSIX2008] (FLUSHO): Likewise.
8546         [POSIX || POSIX2008] (LOBLK): Likewise.
8547         [POSIX || POSIX2008] (PENDIN): Likewise.
8548         [POSIX || POSIX2008] (SWTCH): Likewise.
8549         [POSIX || POSIX2008] (VDISCARD): Likewise.
8550         [POSIX || POSIX2008] (VDSUSP): Likewise.
8551         [POSIX || POSIX2008] (VLNEXT): Likewise.
8552         [POSIX || POSIX2008] (VREPRINT): Likewise.
8553         [POSIX || POSIX2008] (VSTATUS): Likewise.
8554         [POSIX || POSIX2008] (VWERASE): Likewise.
8555         (B*): Change to B[0123456789]*.
8556         * conform/data/time.h-data [POSIX || UNIX98]
8557         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
8558         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
8559         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
8560         [POSIX] (tm_*): Do not allow.
8561
8562 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
8563
8564         * Makefile (install): Don't set LANGUAGE.
8565         * Makefile.in (install): Likewise.
8566         * assert/Makefile (test-assert-ENV): Remove variable.
8567         (test-assert-perr-ENV): Likewise.
8568         * elf/Makefile (neededtest4-ENV): Likewise.
8569         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
8570         [$(cross-compiling) = no]: Don't set LANGUAGE.
8571         * io/ftwtest-sh (LANG): Remove variable.
8572         * libio/Makefile (tst-widetext-ENV): Likewise.
8573         * manual/install.texi (Running make install): Don't refer to
8574         environment settings for make install.
8575         * INSTALL: Regenerated.
8576         * nptl/tst-tls6.sh: Don't set LANG.
8577         * posix/globtest.sh (LANG): Remove variable.
8578         * string/Makefile (tester-ENV): Likewise.
8579         (inl-tester-ENV): Likewise.
8580         (noinl-tester-ENV): Likewise.
8581         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
8582         [$(cross-compiling) = no]: Don't set LANGUAGE.
8583         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
8584         without explicit environment settings.
8585
8586 2014-06-06  Roland McGrath  <roland@hack.frob.com>
8587
8588         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
8589         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
8590         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
8591         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
8592
8593 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
8594
8595         * crypt/crypt-private.h [DOS]: Add some includes taken from the
8596         other files in the crypt directory.
8597         * crypt/crypt.c: Remove duplicate includes.
8598         * crypt/crypt-entry.c: Likewise.
8599         * crypt/crypt_util.c: Likewise.
8600
8601 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
8602
8603         * Makeconfig (run-program-env): New variable.
8604         (run-program-prefix-before-env): Likewise.
8605         (run-program-prefix-after-env): Likewise.
8606         (run-program-prefix): Define in terms of new variables.
8607         (built-program-cmd-before-env): New variable.
8608         (built-program-cmd-after-env): Likewise.
8609         (built-program-cmd): Define in terms of new variables.
8610         (test-program-prefix-before-env): New variable.
8611         (test-program-prefix-after-env): Likewise.
8612         (test-program-prefix): Define in terms of new variables.
8613         (test-program-cmd-before-env): New variable.
8614         (test-program-cmd-after-env): Likewise.
8615         (test-program-cmd): Define in terms of new variables.
8616         * Rules (make-test-out): Use $(run-program-env).
8617         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
8618         (help): Do not mention environment variables.  Mention
8619         --timeoutfactor option.
8620         (timeoutfactor): New variable.
8621         (blacklist_exports): Remove function.
8622         (exports): Remove variable.
8623         (command): Do not include ${exports}.
8624         * manual/install.texi (Configuring and compiling): Do not mention
8625         test wrappers preserving environment variables.  Mention that last
8626         assignment to a variable must take precedence.
8627         * INSTALL: Regenerated.
8628         * benchtests/Makefile (run-bench): Use $(run-program-env).
8629         * catgets/Makefile ($(objpfx)test1.cat): Use
8630         $(built-program-cmd-before-env), $(run-program-env) and
8631         $(built-program-cmd-after-env).
8632         ($(objpfx)test2.cat): Do not specify environment variables
8633         explicitly.
8634         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
8635         $(run-program-env) and $(built-program-cmd-after-env).
8636         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
8637         $(run-program-env) and $(test-program-cmd-after-env).
8638         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
8639         explicitly.
8640         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
8641         run_program_env and test_program_cmd_after_env arguments.
8642         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
8643         * elf/tst-pathopt.sh: Use run_program_env argument.
8644         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
8645         $(test-wrapper-env) and $(run-program-env).
8646         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
8647         run_program_env arguments.
8648         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
8649         * intl/Makefile ($(objpfx)tst-gettext.out): Use
8650         $(test-program-prefix-before-env), $(run-program-env) and
8651         $(test-program-prefix-after-env).
8652         ($(objpfx)tst-gettext2.out): Likewise.
8653         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
8654         run_program_env and test_program_prefix_after_env arguments.
8655         * intl/tst-gettext2.sh: Likewise.
8656         * intl/tst-gettext4.sh: Do not set environment variables
8657         explicitly.
8658         * intl/tst-gettext6.sh: Likewise.
8659         * intl/tst-translit.sh: Likewise.
8660         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
8661         $(test-program-prefix-before-env), $(run-program-env) and
8662         $(test-program-prefix-after-env).
8663         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
8664         run_program_env and test_program_prefix_after_env arguments.
8665         * math/Makefile (run-regen-ulps): Use $(run-program-env).
8666         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
8667         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
8668         explicitly with each use of ${test_wrapper_env}.
8669         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
8670         $(test-program-prefix-before-env), $(run-program-env) and
8671         $(test-program-prefix-after-env).
8672         * posix/tst-getconf.sh: Do not set environment variables
8673         explicitly.
8674         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
8675         run_program_env and test_program_prefix_after_env arguments.
8676         * stdio-common/tst-printf.sh: Do not set environment variables
8677         explicitly.
8678         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
8679         $(test-program-prefix-before-env), $(run-program-env) and
8680         $(test-program-prefix-after-env).
8681         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
8682         run_program_env and test_program_prefix_after_env arguments.
8683         Split $test calls into $test_pre and $test.
8684         * timezone/Makefile (build-testdata): Use
8685         $(built-program-cmd-before-env), $(run-program-env) and
8686         $(built-program-cmd-after-env).
8687
8688 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8689
8690         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
8691         strlen for non SHARED builds.
8692
8693 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
8694
8695         * nptl/allocatestack.c (check_list): Inlined function...
8696         (__reclaim_stacks): ... here.
8697
8698 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
8699
8700         [BZ #15698]
8701         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
8702         memory overrun.
8703
8704 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
8705
8706         * Rules (make-test-out): Include
8707         LOCPATH=$(common-objpfx)localedata in default environment.
8708         * debug/Makefile (tst-chk1-ENV): Remove variable.
8709         (tst-chk2-ENV): Likewise.
8710         (tst-chk3-ENV): Likewise.
8711         (tst-chk4-ENV): Likewise.
8712         (tst-chk5-ENV): Likewise.
8713         (tst-chk6-ENV): Likewise.
8714         (tst-lfschk1-ENV): Likewise.
8715         (tst-lfschk2-ENV): Likewise.
8716         (tst-lfschk3-ENV): Likewise.
8717         (tst-lfschk4-ENV): Likewise.
8718         (tst-lfschk5-ENV): Likewise.
8719         (tst-lfschk6-ENV): Likewise.
8720         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
8721         (tst-iconv7-ENV): Likewise.
8722         * intl/Makefile (LOCPATH-ENV): Likewise.
8723         (tst-codeset-ENV): Likewise.
8724         (tst-gettext3-ENV): Likewise.
8725         (tst-gettext5-ENV): Likewise.
8726         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
8727         (tst-fopenloc-ENV): Likewise.
8728         (tst-fgetws-ENV): Remove variable.
8729         (tst-ungetwc1-ENV): Likewise.
8730         (tst-ungetwc2-ENV): Likewise.
8731         (bug-ungetwc2-ENV): Likewise.
8732         (tst-swscanf-ENV): Likewise.
8733         (bug-ftell-ENV): Likewise.
8734         (tst-fgetwc-ENV): Likewise.
8735         (tst-fseek-ENV): Likewise.
8736         (tst-ftell-partial-wide-ENV): Likewise.
8737         (tst-ftell-active-handler-ENV): Likewise.
8738         (tst-ftell-append-ENV): Likewise.
8739         * posix/Makefile (tst-fnmatch-ENV): Likewise.
8740         (tst-regexloc-ENV): Likewise.
8741         (bug-regex1-ENV): Likewise.
8742         (tst-regex-ENV): Likewise.
8743         (tst-regex2-ENV): Likewise.
8744         (bug-regex5-ENV): Likewise.
8745         (bug-regex6-ENV): Likewise.
8746         (bug-regex17-ENV): Likewise.
8747         (bug-regex18-ENV): Likewise.
8748         (bug-regex19-ENV): Likewise.
8749         (bug-regex20-ENV): Likewise.
8750         (bug-regex22-ENV): Likewise.
8751         (bug-regex23-ENV): Likewise.
8752         (bug-regex25-ENV): Likewise.
8753         (bug-regex26-ENV): Likewise.
8754         (bug-regex30-ENV): Likewise.
8755         (bug-regex32-ENV): Likewise.
8756         (bug-regex33-ENV): Likewise.
8757         (bug-regex34-ENV): Likewise.
8758         (bug-regex35-ENV): Likewise.
8759         (tst-rxspencer-ENV): Likewise.
8760         (tst-rxspencer-no-utf8-ENV): Likewise.
8761         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
8762         (tst-sscanf-ENV): Likewise.
8763         (tst-swprintf-ENV): Likewise.
8764         (tst-swscanf-ENV): Likewise.
8765         (test-vfprintf-ENV): Likewise.
8766         (scanf13-ENV): Likewise.
8767         (bug14-ENV): Likewise.
8768         (tst-grouping-ENV): Likewise.
8769         * stdlib/Makefile (tst-strtod-ENV): Likewise.
8770         (tst-strtod3-ENV): Likewise.
8771         (tst-strtod4-ENV): Likewise.
8772         (tst-strtod5-ENV): Likewise.
8773         (testmb2-ENV): Likewise./
8774         * string/Makefile (tst-strxfrm-ENV): Likewise.
8775         (tst-strxfrm2-ENV): Likewise.
8776         (bug-strcoll1-ENV): Likewise.
8777         (test-strcasecmp-ENV): Likewise.
8778         (test-strncasecmp-ENV): Likewise.
8779         * time/Makefile (tst-strptime-ENV): Likewise.
8780         (tst-ftime_l-ENV): Likewise.
8781         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
8782         (tst-mbrtowc-ENV): Likewise.
8783         (tst-wcrtomb-ENV): Likewise.
8784         (tst-mbrtowc2-ENV): Likewise.
8785         (tst-c16c32-1-ENV): Likewise.
8786         (tst-mbsnrtowcs-ENV): Likewise.
8787
8788 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
8789
8790         * manual/resource.texi (How to get information about the memory
8791         subsystem?): Fix typo.
8792         Reported by Peon de la Parra Ivan <peon@keba.com>
8793
8794 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
8795
8796         [BZ #16882]
8797         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
8798         (pthread_spin_lock): Branch out of spin loop to proper location.
8799         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
8800         (pthread_spin_lock): Likewise.
8801
8802         * nptl/tst-spin4.c: New test.
8803         * nptl/Makefile (tests): Add tst-spin4.
8804
8805 2014-06-03  Andreas Schwab  <schwab@suse.de>
8806
8807         [BZ #15946]
8808         * resolv/res_send.c (send_dg): Reload file descriptor after
8809         calling reopen.
8810
8811 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
8812
8813         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8814
8815 2014-06-03  Richard Henderson  <rth@redhat.com>
8816
8817         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
8818         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
8819         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
8820         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
8821         in the SAVE_PID block.
8822         (__libc_vfork): New alias.
8823         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
8824
8825         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
8826         child in registers, not on the stack.  Remove RESET_PID conditionals.
8827         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
8828
8829 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8830
8831         * sysdeps/aarch64/libm-test-ulps: Regenerate.
8832
8833 2014-06-03  Wilco  <wdijkstr@arm.com>
8834
8835         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
8836         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
8837         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
8838         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
8839         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
8840         Likewise.
8841
8842 2014-06-03  Wilco  <wdijkstr@arm.com>
8843
8844         * sysdeps/aarch64/fpu/math_private.h
8845         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
8846         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
8847         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
8848         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
8849         Fix declarations.
8850
8851 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
8852
8853         * crypt/crypt-private.h: Include ufc-crypt.h.
8854         (__b64_from_24bit): Declare extern.
8855         * crypt/crypt_util.c(__b64_from_24bit): New function.
8856         (b64t): New static const variable.
8857         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
8858         (b64t): Remove variable.
8859         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
8860         * crypt/sha256-crypt.c: Include crypt-private.h.
8861         (b64t): Remove variable.
8862         (__sha256_crypt_r): Remove b64_from_24bit and replace
8863         with __b64_from_24bit.
8864         * crypt/sha512-crypt.c: Likewise.
8865
8866 2014-06-02  Roland McGrath  <roland@hack.frob.com>
8867
8868         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
8869         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
8870         Label the code __libc_vfork rather than __vfork.
8871         [!NOT_IN_libc] (vfork): Define as weak alias.
8872         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
8873         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
8874         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
8875
8876 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8877
8878         * malloc/malloc.c (malloc_info): Fix format specifier for
8879         n_mmaps.
8880
8881 2014-06-02  Wilco  <wdijkstr@arm.com>
8882
8883         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
8884         FPCR write.
8885
8886 2014-06-02  Wilco  <wdijkstr@arm.com>
8887
8888         [BZ #17009]
8889         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
8890         Rewrite to reduce FPCR/FPSR accesses.
8891
8892 2014-06-01  David S. Miller  <davem@davemloft.net>
8893
8894         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8895
8896 2014-05-31  David S. Miller  <davem@davemloft.net>
8897
8898         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
8899         to occur in round to nearest mode when |x| >= 2.0
8900
8901 2014-05-30  Richard Henderson  <rth@twiddle.net>
8902
8903         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
8904         (PSEUDO_RET_NOERRNO): Remove.
8905         (ret): Don't redefine.
8906         (ret_NOERRNO): Define in terms of ret.
8907         (ret_ERRVAL): Likewise.
8908
8909         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
8910         use of PSEUDO_RET; perform the error check directly.
8911
8912 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
8913
8914         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
8915         with __int128_t.
8916
8917 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8918
8919         * malloc/malloc (malloc_info): Fix formatting.
8920
8921 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8922             Roland McGrath  <roland@hack.frob.com>
8923
8924         * malloc/malloc (malloc_info): Also print mmapped statistics.
8925
8926 2014-05-30  Roland McGrath  <roland@hack.frob.com>
8927
8928         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
8929         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
8930
8931 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
8932
8933         * malloc/malloc.c (malloc_info): Inline mi_arena.
8934
8935 2014-05-29  Richard Henderson  <rth@twiddle.net>
8936
8937         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
8938         Remove comma before expanding ASM_ARGS_##nr.
8939         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
8940         Make _x0 a strict output; make _x8 a strict input; adjust expansion
8941         of ASM_ARGS_##nr.
8942         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
8943         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
8944         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
8945         (ASM_ARGS_1): Add leading comma.
8946
8947         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
8948         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
8949         to __errno_location.
8950         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
8951         Remove the expected plt for __errno_location.
8952
8953         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
8954         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
8955         call to __read_tp.
8956
8957         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
8958         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
8959         it and break it down.
8960         (DOCARGS_0, DOCARGS_1): Do nothing.
8961         (DOCARGS_2): Update to store into the new stack frame.
8962         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
8963         (UNDOCARGS_1): Update to restore from the new stack frame.
8964         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
8965         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
8966
8967         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
8968         (SINGLE_THREAD_P): New parameter for result regno.
8969         (PSEUDO): Update to match; use cbz instead of beq.
8970
8971         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
8972         Use ENTRY to define the _nocancel entry point.  Share the syscall
8973         and syscall error check paths with the cancel path.
8974         (PSEUDO_END): New.
8975
8976         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
8977         whitespace; tabs before and after asm mnemonics.
8978
8979 2014-05-29  Eric Wong  <normalperson@yhbt.net>
8980
8981         [BZ #15132]
8982         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8983         Call fstat64 or stat64 internally, depending on arguments passed.
8984         Replace stat buffer argument with file descriptor argument.
8985         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
8986         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
8987         Pass fd to __internal_statvfs instead of calling fstat64.
8988         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
8989         Pass fd to __internal_statvfs64 instead of calling fstat64.
8990         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
8991         Pass -1 to __internal_statvfs instead of calling stat64.
8992         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
8993         Pass -1 to __internal_statvfs64 instead of calling stat64.
8994
8995 2014-05-28  Roland McGrath  <roland@hack.frob.com>
8996
8997         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
8998         that was previously under [RESET_PID].
8999         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
9000
9001         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
9002         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
9003
9004 2014-05-27  Roland McGrath  <roland@hack.frob.com>
9005
9006         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
9007
9008         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
9009         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
9010
9011 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
9012
9013         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
9014
9015 2014-05-27  Andreas Schwab  <schwab@suse.de>
9016
9017         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
9018         TLS_INIT_TP macro.
9019         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
9020         * elf/rtld.c (init_tls, dl_main): Likewise.
9021         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
9022         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
9023         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
9024         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
9025         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
9026         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
9027         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
9028         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
9029         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
9030         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
9031         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
9032         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
9033         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
9034         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
9035         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
9036         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
9037         * sysdeps/generic/tls.h: Update description.
9038
9039 2014-05-27  Will Newton  <will.newton@linaro.org>
9040
9041         [BZ #16990]
9042         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
9043         and restore r2 rather than just restoring.
9044
9045 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9046
9047         [BZ #16724]
9048         * libio/tst-ftell-append.c: New test case.
9049         * libio/Makefile (tests): Add test case.
9050         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
9051         append mode.
9052         * libio/wfileops.c (do_ftell_wide): Likewise.
9053
9054 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9055
9056         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9057
9058         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
9059         ...
9060         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
9061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
9062         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
9063         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
9064         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
9065         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
9066         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
9067         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
9068         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
9069         Moved ...
9070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
9071         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
9072         Moved ...
9073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
9074         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
9075         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
9076         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
9077         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
9078         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
9079         ...
9080         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
9081         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
9082         Moved ...
9083         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
9084         here.
9085         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
9086         ...
9087         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
9088         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
9089         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
9090
9091         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
9092         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
9093         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
9094         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
9095
9096         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
9097         merge into ...
9098         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
9099         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
9100         ...
9101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
9102         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
9103         ...
9104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
9105         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
9106         Moved ...
9107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
9108         here.
9109         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
9110         Moved ...
9111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
9112         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
9113         Moved ...
9114         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
9115
9116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
9117         conditional [RESET_PID].
9118         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
9119         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
9120         removed.
9121         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
9122         removed.
9123
9124         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
9125         <tcb-offsets.h>.
9126         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
9127         (__libc_vfork): New strong alias.
9128         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
9129         removed.
9130         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
9131         Removed.
9132
9133         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
9134         <tcb-offsets.h>.
9135         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
9136         (__libc_vfork): New strong alias.
9137         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
9138         removed.
9139         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
9140         removed.
9141
9142 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
9143
9144         * malloc/malloc.c (mi_arena): New function.
9145         (malloc_info): Remove nested function mi_arena. Call non-nosted
9146         function mi_arena.
9147
9148 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9149
9150         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
9151         by insrwi.
9152         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
9153         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
9154         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
9155         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
9156         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
9157         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
9158         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
9159
9160 2014-05-26  Andreas Schwab  <schwab@suse.de>
9161
9162         [BZ #16984]
9163         * locale/programs/repertoire.c (repertoire_read): Add slash
9164         between I18NPATH element and file name.
9165         * locale/programs/locfile.c (locfile_read): Likewise.
9166
9167 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
9168
9169         * nptl/pthread_mutexattr_settype.c
9170         (__pthread_mutexattr_settype):
9171         Disable lock elision for PTHREAD_MUTEX_NORMAL.
9172
9173 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
9174
9175         * nptl/tst-mutex5 (do_test):
9176         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
9177
9178 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9179
9180         * benchtests/README: Document 'init' directive.
9181         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
9182         BENCH_INIT.
9183         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
9184         (parse_file): Recognize 'init' directive.
9185
9186 2014-05-26  Kyle McMartin  <kyle@redhat.com>
9187
9188         [BZ #16796]
9189         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
9190         alignment of struct pthread.
9191
9192 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9193
9194         [BZ #16878]
9195         * nscd/netgroupcache.c (addgetnetgrentX): Look for
9196         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
9197         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
9198         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
9199
9200 2014-05-25  Richard Henderson  <rth@twiddle.net>
9201
9202         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
9203         (SINGLE_THREAD_P_PIC): Remove.
9204         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
9205         (SINGLE_THREAD_P_PIC): Remove.
9206
9207         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
9208         branch to syscall error ...
9209         (PSEUDO): ... here.
9210         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
9211         from __local_syscall_error to .Lsyscall_error.
9212         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
9213         (SYSCALL_ERROR): Update label name.
9214
9215         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
9216         Do not use DOARGS/UNDOARGS.
9217         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
9218         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
9219         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
9220         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
9221         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
9222
9223         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
9224         block comment.
9225
9226         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
9227         define if !NOT_IN_libc.
9228         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
9229         define with non-default symbol versions.
9230
9231 2014-05-23  Richard Henderson  <rth@twiddle.net>
9232
9233         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
9234         (vfork, __vfork): Define via compat_symbol.
9235
9236         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
9237         [!HAVE_IFUNC] (vfork_compat): Remove.
9238         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
9239
9240 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
9241
9242         [BZ #16978]
9243         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
9244         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
9245         variable.
9246
9247 2014-05-23  Richard Henderson  <rth@twiddle.net>
9248
9249         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
9250         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
9251         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
9252         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
9253
9254         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
9255         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
9256         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
9257         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
9258         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
9259         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
9260         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
9261         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
9262         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
9263         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
9264         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
9265         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
9266         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
9267         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
9268         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
9269         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
9270         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
9271         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
9272         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
9273         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
9274         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
9275         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
9276         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
9277         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
9278         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
9279         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
9280         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
9281         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
9282         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
9283         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
9284         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
9285         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
9286         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
9287         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
9288         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
9289         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
9290         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
9291         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
9292         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
9293         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
9294         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
9295         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
9296         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
9297         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
9298         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
9299         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
9300         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
9301         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
9302         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
9303         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
9304         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
9305         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
9306         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
9307         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
9308         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
9309         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
9310
9311         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
9312         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
9313         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
9314         before exiting on error.
9315         (__libc_vfork): New strong alias.
9316         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
9317         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
9318
9319         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
9320         that was previously under [RESET_PID].
9321         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
9322
9323         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
9324
9325 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
9326
9327         [BZ #16977]
9328         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
9329         value when x - 1 is zero.
9330         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
9331         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
9332         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
9333         0.0L for an argument of 1.0L.
9334         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
9335         Likewise.
9336         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
9337         value when x - 1 is zero.
9338         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
9339         * sysdeps/i386/fpu/libm-test-ulps: Update.
9340         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9341
9342 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
9343
9344         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
9345         alphasort and versionsort.
9346
9347 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9348
9349         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
9350         macro.
9351         [copysignf]: Likewise.
9352
9353 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
9354
9355         * crypt/md5-crypt.c: Fix formatting.
9356
9357 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
9358
9359         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
9360         (b64_from_24bit): New function.
9361
9362 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9363
9364         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
9365         libc_hidden_builtin_def to ifunc.
9366         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
9367         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
9368
9369 2014-05-21  Roland McGrath  <roland@hack.frob.com>
9370
9371         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
9372         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
9373
9374 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
9375
9376         * nscd/Depend (linuxthreads): Remove.
9377         (nptl): Add.
9378         * resolv/Depend (linuxthreads): Remove.
9379         * rt/Depend (linuxthreads): Remove.
9380
9381         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
9382         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
9383         $(common-objpfx)elf/.
9384         (link-libc-before-gnulib): Likewise.
9385         (elfobjdir): Remove variable.
9386         * Makefile (install): Use $(elf-objpfx) instead of
9387         $(common-objpfx)elf/.
9388         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
9389         $(elfobjdir)/.
9390         (link-libc-deps): Likewise.
9391         ($(common-objpfx)libc.so): Likewise.
9392         ($(common-objpfx)linkobj/libc.so): Likewise.
9393         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
9394         instead of $(common-objpfx)elf/.
9395         (symbolic-link-list): Likewise.
9396         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
9397         [$(cross-compiling) = no]: Likewise.
9398         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
9399         $(elfobjdir)/.
9400         (static-gnulib-arch): Likewise.
9401         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
9402         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
9403         $(common-objpfx)elf/.
9404
9405 2014-05-21  Richard Henderson  <rth@redhat.com>
9406
9407         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
9408         (SINGLE_THREAD_P): Use the correct width load.  Fold
9409         into the ldr offset.
9410
9411         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
9412         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
9413
9414 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
9415
9416         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
9417         (libgcc_s_resume): Use __attribute_used__.
9418         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
9419         Likewise.
9420
9421 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9422
9423         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
9424         optimization when used with float constants.
9425
9426         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9427
9428 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
9429
9430         [BZ #16915]
9431         * locale/nl_langinfo_l.c: Make direct reference to every
9432         _nl_current_CATEGORY symbol.
9433         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
9434         (tests-static): Add tst-langinfo-static.
9435         (tests-special): Add tst-langinfo-static.out.
9436         ($(objpfx)tst-langinfo.out): Redirect output.
9437         ($(objpfx)tst-langinfo-static.out): New.
9438         * localedata/tst-langinfo.sh: Send output to stdout.
9439         * localedata/tst-langinfo-static.c: New file.
9440
9441         [BZ #16965]
9442         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
9443         when the shift amount is modulo the limb size.
9444
9445 2014-05-20  Richard Henderson  <rth@redhat.com>
9446
9447         [BZ #16967]
9448         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
9449         Change type of sa_flags from unsigned int to int.
9450
9451         [BZ #16966]
9452         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
9453
9454         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
9455
9456 2014-05-20  Will Newton  <will.newton@linaro.org>
9457
9458         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
9459         Test the return value of the system call in the nocancel case.
9460
9461 2014-05-20  Will Newton  <will.newton@linaro.org>
9462             Yvan Roux  <yvan.roux@linaro.org>
9463
9464         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
9465         #include of asm/ptrace.h.
9466         (PTRACE_GET_THREAD_AREA): Remove #undef.
9467         (PTRACE_GETHBPREGS): Likewise.
9468         (PTRACE_SETHBPREGS): Likewise.
9469         (struct user_regs_struct): New structure.
9470         (struct user_fpsimd_struct): New structure.
9471         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
9472         #include of asm/ptrace.h and second #include of sys/user.h.
9473         (PTRACE_GET_THREAD_AREA): Remove #undef.
9474         (PTRACE_GETHBPREGS): Likewise.
9475         (PTRACE_SETHBPREGS): Likewise.
9476         (ELF_NGREG): Use new struct user_regs_struct.
9477         (elf_fpregset_t): Use new struct user_fpsimd_struct.
9478
9479 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9480
9481         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
9482         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
9483
9484 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
9485
9486         [BZ #16958]
9487         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
9488         membar to avoid block loads/stores to overlap previous stores.
9489
9490 2014-05-17  Richard Henderson  <rth@redhat.com>
9491
9492         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
9493         Create the __##syscall_name##_nocancel entry point.
9494         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
9495         Remove; let the sysdep-cancel.h code create it.
9496
9497 2014-05-17  David S. Miller  <davem@davemloft.net>
9498
9499         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
9500         Protect with __USE_GNU.
9501         (TIOCSET_TEMPT): Likewise.
9502         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
9503         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
9504         these are already provided in bits/ioctl-types.h
9505
9506 2014-05-16  Roland McGrath  <roland@hack.frob.com>
9507
9508         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
9509         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
9510
9511         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
9512         Use wait4 regardless of [__NR_waitpid].
9513
9514 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
9515
9516         PR libgcc/60166
9517         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
9518         (_FP_NANSIGN_Q): Set the quiet bit.
9519
9520 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
9521
9522         * benchtests/Makefile
9523         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
9524         not $(common-objpfx)math/libm.so.
9525         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
9526         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
9527         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
9528         $(common-objpfx)dlfcn/libdl.so.
9529         ($(objpfx)tst-audit8): Depend on $(libm), not
9530         $(common-objpfx)math/libm.so.
9531         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
9532         not $(common-objpfx)dlfcn/libdl.so.
9533         * math/Makefile
9534         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
9535         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
9536         [$(build-shared) = yes].
9537         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
9538         $(common-objpfx)nptl/libpthread.so.
9539         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
9540         $(common-objpfx)math/libm.so$(libm.so-version) or
9541         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
9542         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
9543         $(common-objpfx)dlfcn/libdl.so.
9544         * setjmp/Makefile (link-libm): Remove variable.
9545         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
9546         * stdio-common/Makefile (link-libm): Remove variable.
9547         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
9548         * stdlib/Makefile (link-libm): Remove variable.
9549         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
9550         ($(objpfx)tst-strtod-round): Likewise.
9551         ($(objpfx)tst-tininess): Likewise.
9552         ($(objpfx)tst-strtod-underflow): Likewise.
9553         ($(objpfx)tst-strtod6): Likewise.
9554         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
9555         $(libdl), not $(common-objpfx)nptl/libpthread.so and
9556         $(common-objpfx)dlfcn/libdl.so.
9557
9558 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9559
9560         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
9561         BSD terminal modes definitions.
9562
9563 2014-05-16  Roland McGrath  <roland@hack.frob.com>
9564
9565         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
9566         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
9567
9568         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
9569         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
9570         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
9571         Don't do #include_next.
9572         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
9573         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
9574         Don't do #include_next.
9575         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
9576         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
9577         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
9578         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
9579
9580 2014-05-16  Allan McRae  <allan@archlinux.org>
9581
9582         * po/sv.po: Update Swedish translation from translation project.
9583
9584         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
9585         in sed expression.
9586
9587 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
9588
9589         [BZ #16917]
9590         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
9591         errno if the TIOCGPTN ioctl fails with an error different than
9592         EINVAL.
9593         * login/tst-ptsname.c: New file.
9594         * login/Makefile (tests): Add tst-ptsname.
9595
9596         [BZ #16943]
9597         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
9598         and prlimit64.
9599
9600 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
9601
9602         [BZ #16849]
9603         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
9604         herrno to return EAI_AGAIN.
9605
9606 2014-05-14  Roland McGrath  <roland@hack.frob.com>
9607
9608         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
9609         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
9610         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
9611         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
9612         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
9613         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
9614         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
9615         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
9616         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
9617         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
9618         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
9619         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
9620         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
9621         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
9622         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
9623         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
9624         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
9625         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
9626         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
9627         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
9628         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
9629         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
9630         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
9631         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
9632         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
9633         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
9634         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
9635         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
9636         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
9637         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
9638         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
9639         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
9640         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
9641         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
9642         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
9643         Moved ...
9644         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
9645         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
9646         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
9647         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
9648         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
9649         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
9650         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
9651         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
9652         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
9653         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
9654         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
9655         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
9656         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
9657         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
9658         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
9659         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
9660         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
9661         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
9662         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
9663         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
9664         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
9665         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
9666         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
9667         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
9668         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
9669         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
9670         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
9671         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
9672         Moved ...
9673         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
9674         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
9675         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
9676         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
9677         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
9678         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
9679         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
9680         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
9681         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
9682         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
9683         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
9684         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
9685         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
9686         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
9687         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
9688         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
9689         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
9690         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
9691         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
9692         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
9693         Moved ...
9694         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
9695         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
9696         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
9697
9698         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
9699         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
9700         (libpthread-sysdep_routines): Add elision-related stuff here instead.
9701         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
9702         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
9703         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
9704         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
9705         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
9706         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
9707         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
9708         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
9709         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
9710         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
9711         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
9712         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
9713         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
9714         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
9715         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
9716         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
9717         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
9718         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
9719         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
9720         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
9721         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
9722         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
9723         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
9724         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
9725         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
9726         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
9727         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
9728         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
9729
9730         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
9731         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
9732
9733         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
9734         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
9735         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
9736         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
9737         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
9738         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
9739         Moved ...
9740         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
9741         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
9742         Moved ...
9743         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
9744         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
9745         Moved ...
9746         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
9747         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
9748         Moved ...
9749         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
9750         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
9751         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
9752         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
9753         Moved ...
9754         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
9755         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
9756         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
9757         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
9758         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
9759         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
9760         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
9761         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
9762         Moved ...
9763         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
9764         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
9765         Moved ...
9766         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
9767         ... here.
9768         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
9769         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
9770         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
9771         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
9772         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
9773         Moved ...
9774         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
9775         ... here.
9776         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
9777         Moved ...
9778         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
9779         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
9780         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
9781         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
9782         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
9783         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
9784         Moved ...
9785         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
9786         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
9787         Moved ...
9788         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
9789         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
9790         Moved ...
9791         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
9792         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
9793         Moved ...
9794         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
9795         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
9796         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
9797         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
9798         Moved ...
9799         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
9800         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
9801         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
9802         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
9803         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
9804         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
9805         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
9806         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
9807         Moved ...
9808         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
9809         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9810         Moved ...
9811         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
9812         ... here.
9813         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
9814         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
9815         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
9816         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
9817         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9818         Moved ...
9819         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
9820         ... here.
9821         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
9822         Moved ...
9823         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
9824         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
9825         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
9826         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
9827         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
9828         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
9829         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
9830         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
9831         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
9832         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
9833         Moved ...
9834         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
9835         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
9836         Moved ...
9837         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
9838         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
9839         Moved ...
9840         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
9841         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
9842         Moved ...
9843         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
9844         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
9845         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
9846         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
9847         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
9848         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
9849         Moved ...
9850         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
9851         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
9852         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
9853         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
9854         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
9855         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
9856         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
9857         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
9858         Moved ...
9859         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
9860         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
9861         Moved ...
9862         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
9863         ... here.
9864         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
9865         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
9866         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
9867         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
9868         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
9869         Moved ...
9870         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
9871         ... here.
9872         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
9873         Moved ...
9874         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
9875         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
9876         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
9877         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
9878         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
9879         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
9880         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
9881         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
9882         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
9883         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
9884         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
9885
9886         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
9887         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
9888
9889         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
9890         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
9891
9892         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
9893         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
9894         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
9895         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
9896         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
9897         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
9898         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
9899         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
9900         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
9901         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
9902         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
9903         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
9904         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
9905         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
9906         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
9907         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
9908         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
9909         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
9910         Moved ...
9911         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
9912         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
9913         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
9914         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
9915         Moved ...
9916         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
9917         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
9918         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
9919         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
9920         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
9921         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
9922         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
9923         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
9924         Moved ...
9925         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
9926         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
9927         Moved ...
9928         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
9929         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
9930         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
9931         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
9932         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
9933         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
9934         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
9935         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
9936         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
9937         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
9938         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
9939         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
9940         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
9941         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
9942         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
9943         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
9944         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
9945
9946         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
9947         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
9948         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
9949         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
9950         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
9951
9952         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
9953         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
9954         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
9955         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
9956         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
9957         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
9958         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
9959         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
9960         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
9961         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
9962
9963         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
9964         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
9965
9966         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
9967         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
9968         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
9969         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
9970         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
9971         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
9972         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
9973         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
9974         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
9975         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
9976         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
9977         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
9978         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
9979         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
9980         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
9981         Update #include.
9982         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
9983         Likewise.
9984         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
9985         Likewise.
9986         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
9987         Likewise.
9988         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
9989         Likewise.
9990         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
9991         Likewise.
9992         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
9993         Likewise.
9994         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
9995         Likewise.
9996         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
9997         Likewise.
9998         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
9999         Likewise.
10000         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
10001         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
10002         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
10003         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
10004         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
10005         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
10006         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
10007         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
10008         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
10009         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
10010         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
10011         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
10012         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
10013         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
10014         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
10015
10016         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
10017         that was previously under [RESET_PID].
10018         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
10019         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
10020         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
10021
10022         * sysdeps/i386/nptl/Implies: New file.
10023         * sysdeps/x86_64/nptl/Implies: New file.
10024         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
10025         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
10026         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
10027         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
10028
10029         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
10030         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
10031         (__libc_vfork): New strong alias.
10032         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
10033         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
10034
10035         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
10036         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
10037         (__libc_vfork): New strong alias.
10038         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
10039         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
10040
10041         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
10042         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
10043         (__libc_vfork): New strong alias.
10044         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
10045         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
10046         * nptl/pt-vfork.c: New file.
10047         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
10048         (libpthread: GLIBC_2.20): New version set (empty).
10049
10050 2014-05-14  Will Newton  <will.newton@linaro.org>
10051
10052         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
10053         rather than #if.
10054
10055 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
10056
10057         [BZ #16564]
10058         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
10059         arguments with exponent 65 or above.
10060         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
10061         arguments 0x1p113L or above.
10062         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
10063         to arguments 0x1p107L or above.
10064         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
10065         positive arguments with exponent 65 or above.
10066         * math/auto-libm-test-in: Add more tests of log1p.
10067         * math/auto-libm-test-out: Regenerated.
10068
10069         [BZ #16928]
10070         * math/s_cacos.c (__cacos): Ensure zero real part of result from
10071         non-finite arguments is +0.
10072         * math/s_cacosf.c (__cacosf): Likewise.
10073         * math/s_cacosl.c (__cacosl): Likewise.
10074         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
10075         * sysdeps/i386/fpu/libm-test-ulps: Update.
10076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10077
10078         [BZ #16927]
10079         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
10080         value.
10081         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
10082         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
10083         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
10084         for explicit high bit of mantissa when testing for argument equal
10085         to 1.
10086         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
10087         * sysdeps/i386/fpu/libm-test-ulps: Update.
10088         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10089
10090         [BZ #16516]
10091         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
10092         (__erf): Scale by 16 instead of 8 in potentially underflowing
10093         case.  Ensure exception if result actually underflows.
10094         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
10095         (__erff): Scale by 16 instead of 8 in potentially underflowing
10096         case.  Ensure exception if result actually underflows.
10097         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
10098         (efx8): Remove variable.
10099         (__erfl): Scale by 16 instead of 8 in potentially underflowing
10100         case.  Ensure exception if result actually underflows.
10101         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
10102         (efx8): Remove variable.
10103         (__erfl): Scale by 16 instead of 8 in potentially underflowing
10104         case.  Ensure exception if result actually underflows.
10105         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
10106         (efx8): Remove variable.
10107         (__erfl): Scale by 16 instead of 8 in potentially underflowing
10108         case.  Ensure exception if result actually underflows.
10109         * math/auto-libm-test-in: Add more tests of erf.
10110         * math/auto-libm-test-out: Regenerated.
10111
10112 2014-05-14  Andreas Schwab  <schwab@suse.de>
10113
10114         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
10115         Remove code conditionalized on USE___THREAD.
10116
10117         * config.h.in (HAVE_PT_CHOWN): Define as 0.
10118         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
10119         not definedness.
10120
10121 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
10122
10123         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
10124         Define unconditionally.
10125         (__ASSUME_O_CLOEXEC): Likewise.
10126         (__ASSUME_SOCK_CLOEXEC): Likewise.
10127         (__ASSUME_IN_NONBLOCK): Likewise.
10128         (__ASSUME_PIPE2): Likewise.
10129         (__ASSUME_EVENTFD2): Likewise.
10130         (__ASSUME_SIGNALFD4): Likewise.
10131         (__ASSUME_DUP3): Likewise.
10132         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
10133         (__ASSUME_DUP3): Do not define.
10134         (__ASSUME_EVENTFD2): Likewise.
10135         (__ASSUME_IN_NONBLOCK): Likewise.
10136         (__ASSUME_O_CLOEXEC): Likewise.
10137         (__ASSUME_PIPE2): Likewise.
10138         (__ASSUME_SIGNALFD4): Likewise.
10139         (__ASSUME_SOCK_CLOEXEC): Likewise.
10140         (__ASSUME_UTIMES): Undefine.
10141         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10142         (__ASSUME_UTIMES): Do not define.
10143         (__ASSUME_O_CLOEXEC): Likewise.
10144         (__ASSUME_SOCK_CLOEXEC): Likewise.
10145         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
10146         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
10147         0x020621].
10148         (__ASSUME_PIPE2): Likewise.
10149         (__ASSUME_EVENTFD2): Likewise.
10150         (__ASSUME_SIGNALFD4): Likewise.
10151         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
10152         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
10153         Do not define.
10154         (__ASSUME_EVENTFD2): Likewise.
10155         (__ASSUME_SIGNALFD4): Likewise.
10156         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
10157         (__ASSUME_32BITUIDS): Likewise.
10158         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
10159         (__ASSUME_IPC64): Likewise.
10160         (__ASSUME_ST_INO_64_BIT): Likewise.
10161         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
10162         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
10163         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10164         (__ASSUME_UTIMES): Do not define.
10165         (__ASSUME_PSELECT): Likewise.
10166         (__ASSUME_PPOLL): Likewise.
10167         (__ASSUME_O_CLOEXEC): Likewise.
10168         (__ASSUME_SOCK_CLOEXEC): Likewise.
10169         (__ASSUME_IN_NONBLOCK): Likewise.
10170         (__ASSUME_PIPE2): Likewise.
10171         (__ASSUME_EVENTFD2): Likewise.
10172         (__ASSUME_SIGNALFD4): Likewise.
10173         (__ASSUME_DUP3): Likewise.
10174         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10175         (__ASSUME_UTIMES): Likewise.
10176         (__ASSUME_O_CLOEXEC): Likewise.
10177         (__ASSUME_SOCK_CLOEXEC): Likewise.
10178         (__ASSUME_IN_NONBLOCK): Likewise.
10179         (__ASSUME_PIPE2): Likewise.
10180         (__ASSUME_EVENTFD2): Likewise.
10181         (__ASSUME_SIGNALFD4): Likewise.
10182         (__ASSUME_DUP3): Likewise.
10183         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
10184         (__ASSUME_UTIMES): Likewise.
10185         (__ASSUME_O_CLOEXEC): Likewise.
10186         (__ASSUME_SOCK_CLOEXEC): Likewise.
10187         (__ASSUME_IN_NONBLOCK): Likewise.
10188         (__ASSUME_PIPE2): Likewise.
10189         (__ASSUME_EVENTFD2): Likewise.
10190         (__ASSUME_SIGNALFD4): Likewise.
10191         (__ASSUME_DUP3): Likewise.
10192         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
10193         Likewise.
10194         (__ASSUME_UTIMES): Likewise.
10195         (__ASSUME_EVENTFD2): Likewise.
10196         (__ASSUME_SIGNALFD4): Likewise.
10197         * sysdeps/unix/sysv/linux/tile/kernel-features.h
10198         (__ASSUME_O_CLOEXEC): Likewise.
10199         (__ASSUME_SOCK_CLOEXEC): Likewise.
10200         (__ASSUME_IN_NONBLOCK): Likewise.
10201         (__ASSUME_PIPE2): Likewise.
10202         (__ASSUME_EVENTFD2): Likewise.
10203         (__ASSUME_SIGNALFD4): Likewise.
10204         (__ASSUME_DUP3): Likewise.
10205         (__ASSUME_UTIMES): Undefine.
10206
10207         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
10208         feclearexcept.  Remove symbol versioning code.
10209         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
10210         symbol versioning code.
10211         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
10212         symbol versioning code.
10213         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
10214         feupdateenv.  Remove symbol versioning code.
10215         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
10216         fegetexceptflag.  Remove symbol versioning code.
10217         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
10218         fesetexceptflag.  Remove symbol versioning code.
10219         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
10220         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
10221         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
10222         (__posix_fadvise64_l32): Remove prototype.
10223         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
10224         code.
10225
10226 2014-05-13  Roland McGrath  <roland@hack.frob.com>
10227
10228         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
10229         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
10230         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
10231         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
10232
10233 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
10234
10235         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
10236         current working directory
10237
10238 2014-05-13  Roland McGrath  <roland@hack.frob.com>
10239
10240         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
10241         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
10242         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
10243         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
10244         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
10245         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
10246         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
10247         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
10248         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
10249         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
10250         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
10251         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
10252         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
10253         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
10254         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
10255         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
10256         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
10257         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
10258         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
10259         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
10260         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
10261         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
10262         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
10263         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
10264         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
10265         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
10266         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
10267         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
10268         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
10269         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
10270         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
10271         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
10272         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
10273         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
10274         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
10275         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
10276         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
10277         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
10278         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
10279         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
10280         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
10281         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
10282
10283         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
10284         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
10285
10286         * sysdeps/unix/sysv/linux/arm/Makefile
10287         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
10288         Add rt-aeabi_unwind_cpp_pr1.
10289         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
10290         Add nptl-aeabi_unwind_cpp_pr1.
10291         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
10292         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
10293         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
10294         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
10295         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
10296         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
10297
10298         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
10299         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
10300         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
10301         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
10302
10303         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
10304         Deconditionalize the code that was previously under [RESET_PID].
10305         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
10306
10307         * sysdeps/generic/exit-thread.h: New file.
10308         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
10309         * include/unistd.h (__exit_thread): Remove declaration.
10310         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
10311         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
10312         * csu/libc-start.c: Include <exit-thread.h>.
10313         (LIBC_START_MAIN): Pass no argument to __exit_thread.
10314         * nptl/pthread_create.c: Include <exit-thread.h>.
10315         (start_thread): Call __exit_thread in place of __exit_thread_inline.
10316         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
10317         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
10318         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
10319         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
10320         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
10321         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
10322         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
10323         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
10324         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
10325         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
10326         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
10327         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
10328         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
10329         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
10330         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
10331         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
10332
10333 2014-05-13  Andreas Schwab  <schwab@suse.de>
10334
10335         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
10336
10337 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
10338
10339         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
10340         (__ASSUME_UTIMES): Do not condition on kernel version.
10341         (__ASSUME_PSELECT): Define unconditionally.
10342         (__ASSUME_PPOLL): Likewise.
10343         (__ASSUME_ATFCTS): Likewise.
10344         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
10345         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
10346         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
10347         (__ASSUME_UTIMENSAT): Define unconditionally.
10348         (__ASSUME_PRIVATE_FUTEX): Likewise.
10349         (__ASSUME_FALLOCATE): Likewise.
10350         (__ASSUME_O_CLOEXEC): Likewise.
10351         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
10352         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
10353         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
10354         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
10355         (__ASSUME_IN_NONBLOCK): Likewise.
10356         (__ASSUME_PIPE2): Likewise.
10357         (__ASSUME_EVENTFD2): Likewise.
10358         (__ASSUME_SIGNALFD4): Likewise.
10359         (__ASSUME_DUP3): Likewise.
10360         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10361         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
10362         (__ASSUME_AT_RANDOM): Likewise.
10363         (__ASSUME_PREADV): Likewise.
10364         (__ASSUME_PWRITEV): Likewise.
10365         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
10366         (__ASSUME_F_GETOWN_EX): Define unconditionally.
10367         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
10368         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
10369         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
10370         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
10371         (__ASSUME_O_CLOEXEC): Define unconditionally.
10372         (__ASSUME_PSELECT): Do not undefine conditionally.
10373         (__ASSUME_PPOLL): Likewise.
10374         (__ASSUME_ATFCTS): Likewise.
10375         (__ASSUME_SET_ROBUST_LIST): Likewise.
10376         (__ASSUME_UTIMENSAT): Likewise.
10377         (__ASSUME_FDATASYNC): Define unconditionally.
10378         * sysdeps/unix/sysv/linux/arm/kernel-features.h
10379         (__ASSUME_SIGFRAME_V2): Likewise.
10380         )__ASSUME_EVENTFD2): Likewise.
10381         (__ASSUME_SIGNALFD4): Likewise.
10382         (__ASSUME_PSELECT): Do not undefine conditionally.
10383         (__ASSUME_PPOLL): Likewise.
10384         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
10385         (__ASSUME_PSELECT): Define unconditionally.
10386         (__ASSUME_PPOLL): Likewise.
10387         (__ASSUME_O_CLOEXEC): Likewise.
10388         (__ASSUME_SOCK_CLOEXEC): Likewise.
10389         (__ASSUME_IN_NONBLOCK): Likewise.
10390         (__ASSUME_PIPE2): Likewise.
10391         (__ASSUME_EVENTFD2): Likewise.
10392         (__ASSUME_SIGNALFD4): Likewise.
10393         (__ASSUME_DUP3): Likewise.
10394         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
10395         (__ASSUME_O_CLOEXEC): Likewise.
10396         (__ASSUME_SOCK_CLOEXEC): Likewise.
10397         (__ASSUME_IN_NONBLOCK): Likewise.
10398         (__ASSUME_PIPE2): Likewise.
10399         (__ASSUME_EVENTFD2): Likewise.
10400         (__ASSUME_SIGNALFD4): Likewise.
10401         (__ASSUME_DUP3): Likewise.
10402         * sysdeps/unix/sysv/linux/mips/kernel-features.h
10403         (__ASSUME_EVENTFD2): Likewise.
10404         (__ASSUME_SIGNALFD4): Likewise.
10405         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
10406
10407 2014-05-12  Andreas Schwab  <schwab@suse.de>
10408
10409         [BZ #16932]
10410         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
10411         (_nss_nis_gethostbyname4_r): Return error if item length is larger
10412         than maximum RPC packet size.
10413         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
10414         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
10415         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
10416         (_nss_nis_getservbyport_r): Likewise.
10417
10418 2014-05-12  Will Newton  <will.newton@linaro.org>
10419
10420         * malloc/Makefile (tests): Add tst-mallopt.
10421         * malloc/tst-mallopt.c: New file.
10422
10423 2014-05-09  Roland McGrath  <roland@hack.frob.com>
10424
10425         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
10426         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
10427
10428 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10429
10430         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
10431         (tst-tlsmod6.so): Likewise.
10432
10433 2014-05-09  Roland McGrath  <roland@hack.frob.com>
10434
10435         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
10436
10437 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
10438
10439         [BZ #16064]
10440         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
10441         and <dl-procinfo.h>.
10442         (__fegetenv): Save SSE state in envp->__eip if supported.
10443         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
10444         envp->__eip if supported.
10445         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
10446         and <dl-procinfo.h>.
10447         (__fesetenv): Always set __eip, __cs_selector, __opcode,
10448         __data_offset and __data_selector in environment to 0.  Set SSE
10449         state if supported.
10450         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
10451         test-fenv-sse.
10452         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
10453         -mfpmath=sse.
10454         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
10455
10456 2014-05-09  Will Newton  <will.newton@linaro.org>
10457
10458         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
10459         and libc_relro_required for ARM.
10460         * sysdeps/arm/preconfigure: Regenerate.
10461
10462 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
10463             Stefan Liebler  <stli@linux.vnet.ibm.com>
10464
10465         * config.make.in (enable-lock-elision): New Makefile variable.
10466         * configure.ac: Likewise.
10467         * configure: Regenerate.
10468         * sysdeps/s390/configure.ac:
10469         Add check for gcc transactions support.
10470         * sysdeps/s390/configure: Regenerate.
10471         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
10472         Build elision files if enabled.
10473         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
10474         Add lock elision support for s390.
10475         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
10476         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
10477         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
10478         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
10479         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
10480         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
10481         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
10482         Likewise.
10483         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
10484         Likewise.
10485         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
10486         Likewise.
10487         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
10488         Likewise.
10489         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
10490         (__lll_timedlock_elision, __lll_lock_elision)
10491         (__lll_unlock_elision, __lll_trylock_elision)
10492         (lll_timedlock_elision, lll_lock_elision)
10493         (lll_unlock_elision, lll_trylock_elision): Add.
10494         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
10495         (pthread_mutex_t): Add lock elision support for s390.
10496
10497 2014-05-14  Wilco  <wdijkstr@arm.com>
10498
10499         * sysdeps/arm/fclrexcpt.c: Cleanup.
10500         * sysdeps/arm/fedisblxcpt.c: Cleanup.
10501         * sysdeps/arm/feenablxcpt.c: Cleanup.
10502         * sysdeps/arm/fegetenv.c: Cleanup.
10503         * sysdeps/arm/fegetexcept.c: Cleanup.
10504         * sysdeps/arm/fegetround.c: Cleanup.
10505         * sysdeps/arm/feholdexcpt.c: Cleanup.
10506         * sysdeps/arm/fesetenv.c: Cleanup.
10507         * sysdeps/arm/fesetround.c: Cleanup.
10508         * sysdeps/arm/feupdateenv.c: Cleanup.
10509         * sysdeps/arm/fgetexcptflg.c: Cleanup.
10510         * sysdeps/arm/fraiseexcpt.c: Cleanup.
10511         * sysdeps/arm/fsetexcptflg.c: Cleanup.
10512         * sysdeps/arm/ftestexcept.c: Cleanup.
10513         * sysdeps/arm/get-rounding-mode.h: Cleanup.
10514         * sysdeps/arm/setfpucw.c: Cleanup.
10515
10516 2014-05-09  Will Newton  <will.newton@linaro.org>
10517
10518         * sysdeps/arm/armv7/strcmp.S: New file.
10519         * NEWS: Mention addition of ARMv7 optimized strcmp.
10520
10521 2014-05-08  Roland McGrath  <roland@hack.frob.com>
10522
10523         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
10524         look for %.ac rather than %.in.
10525
10526         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
10527         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
10528         * sysdeps/mach/hurd/configure: Regenerated.
10529         * sysdeps/unix/sysv/linux/configure: Regenerated.
10530
10531         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
10532
10533 2014-05-07  Steve Ellcey  <sellcey@mips.com>
10534
10535         [BZ# 16922]
10536         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
10537         (LONG_SUB): Ditto.
10538         (PTR_SUB): Ditto.
10539
10540 2014-05-07  Andreas Schwab  <schwab@suse.de>
10541
10542         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
10543         when skipping over non-matching result from nscd.
10544
10545 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
10546
10547         [BZ #16876]
10548         * nptl/sockperf.c (client): Check socket return value.
10549
10550         [BZ #16877]
10551         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
10552         nscd security class.
10553
10554 2014-05-06  Roland McGrath  <roland@hack.frob.com>
10555
10556         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
10557         * sysdeps/arm/unwind.h: ... here.
10558
10559 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
10560
10561         [BZ# 16916]
10562         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
10563         Define.
10564
10565 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
10566
10567         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
10568         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
10569         multiarch strncpy for PPC64.
10570         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
10571         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
10572         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
10573         multiarch optimizations.
10574         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
10575         (__libc_ifunc_impl_list): Likewise.
10576         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
10577         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
10578         multiarch stpncpy for PPC64.
10579         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
10580         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
10581
10582 2014-05-06  Andreas Schwab  <schwab@suse.de>
10583
10584         [BZ #16912]
10585         * gmon/mcount.c (_MCOUNT_DECL): Use
10586         atomic_compare_and_exchange_bool_acq instead of
10587         catomic_compare_and_exchange_bool_acq.
10588
10589 2014-05-05  Roland McGrath  <roland@hack.frob.com>
10590
10591         * elf/Makefile (others, install-bin): Remove pldd.
10592         (pldd-modules): Variable removed.
10593         ($(objpfx)pldd): Target removed.
10594         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
10595         (others, install-bin): Append pldd here.
10596         ($(objpfx)pldd): New target.
10597
10598         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
10599         to 0, so the first #if test emitted later doesn't see it undefined.
10600         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
10601         * sysdeps/gnu/errlist.c: Regenerated.
10602
10603 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10604
10605         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
10606         [libc_hidden_builtin_def]: Define to empty value.
10607         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
10608         [libc_hidden_builtin_def]: Likewise.
10609         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
10610         [libc_hidden_builtin_def]: Likewise.
10611         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
10612         [libc_hidden_builtin_def]: Likewise.
10613         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
10614         __redirect_memcpy and define ifunc as default hidden symbol.
10615         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
10616         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
10617
10618 2014-05-04  Adam Conrad  <adconrad@0c3.net>
10619
10620         * locale/iso-4217.def: Reintroduce XDR currency.
10621
10622 2014-05-04  Allan McRae  <allan@archlinux.org>
10623
10624         * po/eo.po: Update Esperanto translation from translation project.
10625
10626 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
10627
10628         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
10629         and FEATURE_INDEX_MAX to 1.
10630         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
10631
10632 2014-05-01  Steve Ellcey  <sellcey@mips.com>
10633
10634         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
10635         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
10636         * iconvdata/big5.c (ONE_DIRECTION): Define.
10637         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
10638         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
10639         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
10640         * iconvdata/cp932.c (ONE_DIRECTION): Define.
10641         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
10642         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
10643         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
10644         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
10645         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
10646         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
10647         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
10648         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
10649         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
10650         * iconvdata/gbk.c (ONE_DIRECTION): Define.
10651         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
10652         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
10653         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
10654         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
10655         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
10656         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
10657         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
10658         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
10659         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
10660         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
10661         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
10662         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
10663         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
10664         * iconvdata/iso646.c (ONE_DIRECTION): Define.
10665         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
10666         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
10667         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
10668         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
10669         * iconvdata/johab.c (ONE_DIRECTION): Define.
10670         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
10671         * iconvdata/sjis.c (ONE_DIRECTION): Define.
10672         * iconvdata/t.61.c (ONE_DIRECTION): Define.
10673         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
10674         * iconvdata/tscii.c (ONE_DIRECTION): Define.
10675         * iconvdata/uhc.c (ONE_DIRECTION): Define.
10676         * iconvdata/unicode.c (ONE_DIRECTION): Define.
10677         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
10678         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
10679         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
10680
10681 2014-05-01  Roland McGrath  <roland@hack.frob.com>
10682
10683         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
10684         (_IO_JUMPS_OFFSET): Define to 0.
10685
10686         * nptl/sysdeps/pthread/bits/libc-lock.h
10687         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
10688         (__libc_lock_define_initialized_recursive): Always define using
10689         initializer.  Modern compilers treat uninitialized (implicit zero) and
10690         explicit zero initializers the same (i.e. put the datum in bss).
10691
10692 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10693
10694         * nscd/nscd-client.h: Include <string.h>.
10695
10696 2014-05-01  David S. Miller  <davem@davemloft.net>
10697
10698         [BZ #16885]
10699         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
10700         multiple zero bytes exist at the end of a string.
10701         Reported by Aurelien Jarno <aurelien@aurel32.net>
10702
10703         * string/test-strcmp.c (check): Add explicit test for situations where
10704         there are multiple zero bytes after the first.
10705
10706 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
10707
10708         [BZ #16890]
10709         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
10710         when compiling wprintf.
10711         * stdio-common/tstdiomisc.c (t3): New function.
10712         (main): Call it.
10713
10714 2014-05-01  Steve Ellcey  <sellcey@mips.com>
10715
10716         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
10717         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
10718         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
10719         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
10720
10721 2014-05-01  Steve Ellcey  <sellcey@mips.com>
10722
10723         * stdlib/longlong.h: Updated from GCC.
10724
10725 2014-05-01  Will Newton  <will.newton@linaro.org>
10726             Bernard Ogden  <bernie.ogden@linaro.org>
10727
10728         * NEWS: Update fixed bug list.
10729
10730         [BZ #15119]
10731         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
10732
10733 2014-04-30  David S. Miller  <davem@davemloft.net>
10734
10735         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
10736         (libc_feholdexcept_setround_sparc_ctx): New function.
10737         (libc_fesetenv_sparc_ctx): Likewise.
10738         (libc_feupdateenv_sparc_ctx): Likewise.
10739         (libc_feholdsetround_sparc_ctx): Likewise.
10740         (libc_feholdexcept_setround_ctx): Define.
10741         (libc_feholdexcept_setroundf_ctx): Likewise.
10742         (libc_feholdexcept_setroundl_ctx): Likewise.
10743         (libc_fesetenv_ctx): Likewise.
10744         (libc_fesetenvf_ctx): Likewise.
10745         (libc_fesetenvl_ctx): Likewise.
10746         (libc_feupdateenv_ctx): Likewise.
10747         (libc_feupdateenvf_ctx): Likewise.
10748         (libc_feupdateenvl_ctx): Likewise.
10749         (libc_feresetround_ctx): Likewise.
10750         (libc_feresetroundf_ctx): Likewise.
10751         (libc_feresetroundl_ctx): Likewise.
10752         (libc_feholdsetround_ctx): Likewise.
10753         (libc_feholdsetroundf_ctx): Likewise.
10754         (libc_feholdsetroundl_ctx): Likewise.
10755
10756         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
10757         with __USE_GNU instead of XOPEN cpp guards.
10758
10759         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
10760         0.
10761
10762         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
10763         with XOPEN cpp guards.
10764
10765 2014-04-30  Julian Brown  <julian@codesourcery.com>
10766
10767         [BZ #16888]
10768         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
10769         handling.
10770
10771 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
10772
10773         [BZ #9894]
10774         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
10775         Change to 2.6.32.
10776         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
10777         * sysdeps/unix/sysv/linux/configure: Regenerated.
10778         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
10779         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
10780         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
10781         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
10782         * README: Update reference to required Linux kernel version.
10783         * manual/install.texi (Linux): Update reference to required Linux
10784         kernel headers version.
10785         * INSTALL: Regenerated.
10786
10787         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
10788         header inclusion.
10789         [POSIX] (limits.h): Likewise.
10790         [POSIX] (math.h): Likewise.
10791         [POSIX] (sys/wait.h): Likewise.
10792         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
10793         function.
10794         [POSIX] (stddef.h): Do not allow header inclusion.
10795
10796 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10797
10798         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
10799
10800 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
10801
10802         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
10803         Return immediately after lll_futex_wake.
10804
10805 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10806
10807         [BZ #16791]
10808         * nscd/nscd-client.h (datahead_init_common): Initialize entire
10809         structure.
10810         (datahead_init_pos): Call datahead_init_common early.
10811         (datahead_init_neg): Likewise.
10812
10813         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
10814         datahead_init_neg): New functions.
10815         * nscd/aicache.c (addhstaiX): Use them.
10816         * nscd/grpcache.c (cache_addgr): Likewise.
10817         * nscd/hstcache.c (cache_addhst): Likewise.
10818         * nscd/initgrcache.c (addinitgroupsX): Likewise.
10819         * nscd/netgroupcache.c (do_notfound): Likewise.
10820         (addgetnetgrentX): Likewise.
10821         (addinnetgrX): Likewise.
10822         * nscd/pwdcache.c (cache_addpw): Likewise.
10823         * nscd/servicescache.c (cache_addserv): Likewise.
10824
10825 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10826             Atsushi Onoe  <atsushi@onoe.org>
10827
10828         [BZ #14308]
10829         [BZ #12994]
10830         [BZ #13651]
10831         * resolv/res_query.c (__libc_res_nsearch): Return if at least
10832         one response is valid.
10833         * resolv/res_send.c (send_dg): Check for validity of other
10834         response if the current response is a referral.
10835
10836 2014-04-29  Steve Ellcey  <sellcey@mips.com>
10837
10838         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
10839
10840 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
10841
10842         [BZ #16823]
10843         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
10844         Always divide by positive zero when computing -Inf result.
10845         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
10846         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
10847
10848 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10849
10850         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
10851         FPSCR if value do not change.
10852         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10853         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
10854         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
10855         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
10856         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
10857         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
10858         function.
10859
10860 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
10861
10862         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
10863         * sysdeps/unix/sysv/linux/hppa: Move directory from
10864         ports/systeps/unix/sysv/linux/hppa.
10865         * README: Update listing for hppa-*-linux-gnu.
10866
10867 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
10868
10869         [BZ #16754]
10870         * manual/stdio.texi (Hook functions): Fix types of stream hook
10871         functions.
10872         [BZ #16854]
10873         * socket/sys/socket.h: Fix typo in comment.
10874
10875 2014-04-28  Wilco  <wdijkstr@arm.com>
10876
10877         * sysdeps/arm/fenv_private.h: New file.
10878         * sysdeps/arm/math_private.h: New file.
10879         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
10880
10881 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
10882
10883         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
10884         with __int128_t.
10885         (La_x86_64_retval): Likewise.
10886
10887 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
10888
10889         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
10890         fpsr if value didn't change.
10891         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
10892         to fpcr if value didn't change.
10893         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
10894         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
10895         fpsr or fpcr if value didn't change.
10896         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
10897         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
10898         fpcr if value didn't change.
10899         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
10900         to fpsr if value didn't change.
10901
10902 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
10903
10904         * nptl/tst-sem3.c: Use test-skeleton.c
10905         (main): Rename to do_test.  Use return instead of
10906         exit.
10907         * nptl/tst-sem4.c: Use test-skeleton.c
10908         (main): Rename to do_test.
10909
10910 2014-04-22  David S. Miller  <davem@davemloft.net>
10911
10912         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
10913         (struct sigaction): New struct member __glibc_reserved0, change
10914         type of sa_flags to int.
10915
10916 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
10917
10918         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
10919         (COUNT_LEADING_ZEROS_0): Define for AArch64.
10920
10921 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
10922
10923         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
10924         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
10925
10926 2014-04-22  Will Newton  <will.newton@linaro.org>
10927             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
10928
10929         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
10930         (__longjmp): Add longjmp and longjmp_target SystemTap
10931         probes.
10932         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
10933         (__sigsetjmp): Add setjmp SystemTap probe.
10934
10935 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
10936
10937         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
10938         match manual order.
10939
10940 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10941
10942         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
10943
10944         * sysdeps/powerpc/fpu/fenv_private.h
10945         (libc_feholdexcept_setroundl_ctx): Define to
10946         libc_feholdexcept_setround_ppc_ctx.
10947         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
10948         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
10949         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
10950         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
10951
10952 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
10953
10954         * sysdeps/aarch64/math-tests.h: New file.
10955
10956 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
10957
10958         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
10959         New.
10960         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
10961         Check and set bit_AVX2_Usable.
10962         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
10963         macro.
10964         (bit_AVX2): Likewise.
10965         (index_AVX2_Usable): Likewise.
10966         (CPUID_AVX2): Likewise.
10967         (HAS_AVX2): Likewise.
10968
10969 2014-04-17  Will Newton  <will.newton@linaro.org>
10970
10971         * manual/setjmp.texi (System V contexts): Add note that
10972         calling setcontext on a context created by a call to a
10973         signal handler is undefined.  Update text to note that
10974         setcontext from a signal handler is possible but not
10975         recommended.
10976
10977         [BZ #16629]
10978         * stdlib/tst-setcontext.c: Include signal.h.
10979         (main): Check that the signal stack before and
10980         after swapcontext is the same.
10981
10982         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
10983         Re-implement to restore registers in user code and avoid
10984         rt_sigreturn system call.
10985
10986 2014-04-17  Wilco  <wdijkstr@arm.com>
10987
10988         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
10989         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
10990         * math/test-fenv.c: Skip exception trap tests on targets which only
10991         support non-stop mode.
10992
10993 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
10994             Wilco Dijkstra  <wilco.dijkstra@arm.com>
10995
10996         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
10997         (libc_feholdsetround_aarch64_ctx)
10998         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
10999         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
11000         (libc_feresetround_ctx, libc_feresetroundf_ctx)
11001         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
11002         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
11003         (libc_feresetround_noexl_ctx): Define.
11004
11005 2014-04-16  Richard Henderson  <rth@redhat.com>
11006
11007         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
11008
11009         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
11010         unwind tables.
11011
11012         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
11013         const from the non-libc, non-ldso copy.
11014
11015         * sysdeps/alpha/libm-test-ulps: Regenerate.
11016
11017 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
11018             Wilco Dijkstra  <wilco.dijkstra@arm.com>
11019
11020         * sysdeps/aarch64/fpu/math_private.h: New file.
11021
11022 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11023
11024         * sysdeps/aarch64/libm-test-ulps: Regenerate.
11025
11026 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
11027
11028         [BZ #16275]
11029         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
11030         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
11031         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
11032         Intel MPX bound registers before _dl_profile_fixup.
11033         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
11034         registers after _dl_profile_fixup.  Save and restore bound
11035         registers bnd0/bnd1 when calling _dl_call_pltexit.
11036         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
11037         (LR_BND_OFFSET): Likewise.
11038         (LRV_BND0_OFFSET): Likewise.
11039         (LRV_BND1_OFFSET): Likewise.
11040
11041 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11042
11043         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
11044         to...
11045         * sysdeps/mach/hurd/i386/tls.h: ... here.
11046         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
11047         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
11048         fields.
11049
11050 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11051
11052         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
11053
11054 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
11055
11056         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
11057
11058 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
11059
11060         [BZ #14770]
11061         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
11062         * sysdeps/s390/configure: Regenerate.
11063
11064         [BZ #16824]
11065         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
11066         Set round-to-nearest internally to reduce error accumulation.
11067
11068 2014-04-16  Alan Modra  <amodra@gmail.com>
11069
11070         [BZ #16740]
11071         [BZ #16619]
11072         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
11073         * math/libm-test.inc (frexp_test_data): Add tests.
11074         * NEWS: Update fixed bug list.
11075
11076 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
11077
11078         * benchtests/Makefile: Depend on libraries in build directory.
11079         (bench-math): Separate out math tests.
11080         (bench-pthread): Separate out pthread tests.
11081         (bench): Include math and pthread tests.
11082
11083 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
11084
11085         [BZ #16831]
11086         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
11087         _dl_debug_initialize.
11088
11089         * configure.ac: Remove SELinux header check.
11090         * configure: Regenerate.
11091         * nscd/selinux.c (perms): Array of const char* to permission names.
11092         (nscd_request_avc_has_perm): Call security_deny_unknown to find
11093         default policy. Call string_to_security_class and string_to_av_perm to
11094         translate strings. Enforce default policy and call avs_has_perm with
11095         results of translated strings.
11096
11097 2014-04-13  David S. Miller  <davem@davemloft.net>
11098
11099         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11100
11101 2014-04-12  Allan McRae  <allan@archlinux.org>
11102
11103         [BZ #16838]
11104         * manual/string.texi (Collation Functions): Fix qsort argument
11105         order in example.
11106         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
11107
11108 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
11109
11110         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
11111         Make the test a no-op if there are no exceptions defined.
11112
11113 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
11114
11115         * elf/Makefile (tests): make tst-dlopen-aout conditional on
11116         enable-hardcoded-path-in-tests
11117
11118 2014-04-11  Will Newton  <will.newton@linaro.org>
11119
11120         * benchtests/Makefile (extra-objs): Add json-lib.o.
11121         (bench-func): Tidy up JSON output.
11122         * benchtests/bench-skeleton.c: Include json-lib.h.
11123         (main): Use JSON library functions to do output of
11124         benchmark results.
11125         * benchtests/bench-timing-type.c (main): Output the
11126         timing type simply, leaving formatting to the user.
11127         * benchtests/json-lib.c: New file.
11128         * benchtests/json-lib.h: Likewise.
11129
11130 2014-04-11  Torvald Riegel  <triegel@redhat.com>
11131
11132         [BZ #15215]
11133         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
11134         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
11135         memory barriers.  Add comments.
11136         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
11137         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
11138         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
11139         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
11140         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
11141         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
11142
11143 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
11144
11145         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
11146         * sysdeps/s390/s390-64/configure.ac: ... this ...
11147         * sysdeps/s390/configure.ac: ... to here.
11148         * sysdeps/s390/s390-32/configure: Delete file.
11149         * sysdeps/s390/s390-64/configure: Delete file.
11150         * sysdeps/s390/configure: Regenerate.
11151
11152 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
11153
11154         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
11155
11156 2014-04-11  Will Newton  <will.newton@linaro.org>
11157
11158         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
11159         to zero if it is not defined elsewhere.  (mtrim): Test
11160         the value of MALLOC_DEBUG with #if rather than #ifdef.
11161
11162 2014-04-10 Torvald Riegel  <triegel@redhat.com>
11163
11164         * benchtests/pthread_once-inputs: New file.
11165         * benchtests/pthread_once-source.c: New file.
11166         * benchtests/README: Update documentation.
11167
11168 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
11169             H.J. Lu  <hongjiu.lu@intel.com>
11170
11171         [BZ #16275]
11172         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
11173         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
11174         * sysdeps/x86_64/configure: Regenerated.
11175         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
11176         macro.
11177         (REGISTER_SAVE_RAX): Likewise.
11178         (REGISTER_SAVE_RCX): Likewise.
11179         (REGISTER_SAVE_RDX): Likewise.
11180         (REGISTER_SAVE_RSI): Likewise.
11181         (REGISTER_SAVE_RDI): Likewise.
11182         (REGISTER_SAVE_R8): Likewise.
11183         (REGISTER_SAVE_R9): Likewise.
11184         (REGISTER_SAVE_BND0): Likewise.
11185         (REGISTER_SAVE_BND1): Likewise.
11186         (REGISTER_SAVE_BND2): Likewise.
11187         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
11188         bound registers when calling _dl_fixup.
11189
11190 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11191
11192         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
11193         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
11194         of its definition.
11195         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
11196         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
11197         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
11198         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
11199         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
11200         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
11201         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
11202
11203 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
11204
11205         [BZ #15514]
11206         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
11207         pathconf(_PC_NAME_MAX).
11208
11209 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11210
11211         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
11212         Remove macro usage.
11213         (__PTHREAD_SPINS): Move definition to ...
11214         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
11215         (__PTHREAD_SPINS): ... here.
11216         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
11217         (__PTHREAD_SPIN): Likewise.
11218         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
11219         (__PTHREAD_SPIN): Likewise.
11220         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
11221         (__PTHREAD_SPIN): Likewise.
11222         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
11223         (__PTHREAD_SPIN): Likewise.
11224         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
11225         (__PTHREAD_SPIN): Likewise.
11226         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
11227         (__PTHREAD_SPIN): Likewise.
11228         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
11229         (__PTHREAD_SPIN): Likewise.
11230         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
11231         (__PTHREAD_SPIN): Likewise.
11232         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
11233         (__PTHREAD_SPIN): Likewise.
11234         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
11235         (__PTHREAD_SPIN): Likewise.
11236         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
11237         (__PTHREAD_SPIN): Likewise.
11238         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
11239         (__PTHREAD_SPIN): Likewise.
11240
11241         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
11242         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
11243         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
11244         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
11245         imply folder.
11246         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
11247         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
11248         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
11249         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
11250         correct imply path.
11251         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
11252         strlen symbol for non multi-arch builds.
11253         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
11254         missing hidden_def and weak_alias.
11255
11256 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
11257
11258         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
11259
11260 2014-04-07  Will Newton  <will.newton@linaro.org>
11261
11262         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
11263         and contents.  [!_LIBC] Remove #ifndef and contents.
11264         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
11265         * string/memccpy.c (__memccpy): Use ANSI prototype.
11266         * string/memfrob.c (memfrob): Likewise.
11267         * string/strcoll.c (STRCOLL): Likewise.
11268         * string/strlen.c (strlen): Likewise.
11269         * string/strtok.c (STRTOK): Likewise.
11270         * string/strcat.c: Remove unused #include of memcopy.h.
11271         (strcat): Use ANSI prototype.
11272         * string/strchr.c: Remove unused #include of memcopy.h.
11273         (strchr): Use ANSI prototype.
11274         * string/strcmp.c: Remove unused #include of memcopy.h.
11275         (strcmp): Use ANSI prototype.
11276         * string/strcpy.c: Remove unused #include of memcopy.h.
11277         (strcpy): Use ANSI prototype.
11278
11279 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11280
11281         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
11282         * config.make.in (config-extra-cppflags): Set it from
11283         libc_extra_cppflags.
11284         * configure.ac (libc_extra_cflags): Make it accumulate over
11285         configure fragments.
11286         (libc_extra_cppflags): New flag.
11287         * configure. Regenerate.
11288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
11289         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
11290         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
11291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
11292
11293         [BZ #16815]
11294         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
11295         result for FE_DOWNWARD rounding mode.
11296         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
11297         Likewise.
11298         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11299
11300 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
11301
11302         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
11303         in function argument name.
11304
11305 2014-04-03  David Svoboda  <svoboda@cert.org>
11306
11307         [BZ #5666]
11308         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
11309         explicitly.
11310
11311 2014-04-03  Roland McGrath  <roland@hack.frob.com>
11312
11313         * elf/dl-unmap-segments.h: New file.
11314         * sysdeps/generic/ldsodefs.h
11315         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
11316         * elf/dl-close.c: Include <dl-unmap-segments.h>.
11317         * elf/dl-fptr.c: Likewise.
11318         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
11319         * sysdeps/aarch64/tlsdesc.c: Likewise.
11320         * sysdeps/arm/tlsdesc.c: Likewise.
11321         * sysdeps/i386/tlsdesc.c: Likewise.
11322         * sysdeps/tile/dl-runtime.c: Likewise.
11323         * sysdeps/x86_64/tlsdesc.c: Likewise.
11324         * elf/dl-load.h: New file.
11325         * elf/dl-load.c: Include it.
11326         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
11327         Macros moved to dl-load.h.
11328         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
11329         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
11330         Use _dl_unmap_segments in place of __munmap.
11331         Break out segment-mapping loop into ...
11332         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
11333
11334 2014-04-03  Will Newton  <will.newton@linaro.org>
11335
11336         * elf/dl-lookup.c (do_lookup_x): Remove comment
11337         referring to nested function and move variable
11338         declarations down to before first use.
11339
11340 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
11341
11342         [BZ #16799]
11343         [BZ #16800]
11344         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
11345         with 0 numerator.
11346         * math/s_catanf.c (__catanf): Likewise.
11347         * math/s_catanh.c (__catanh): Likewise.
11348         * math/s_catanhf.c (__catanhf): Likewise.
11349         * math/s_catanhl.c (__catanhl): Likewise.
11350         * math/s_catanl.c (__catanl): Likewise.
11351         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
11352         by positive zero when computing -Inf result.
11353         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
11354         (catanh_test): Likewise.
11355         * sysdeps/i386/fpu/libm-test-ulps: Update.
11356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11357
11358         [BZ #16789]
11359         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
11360         instead of using underflowing value in computing result.
11361         * math/s_clog10.c (__clog10): Likewise.
11362         * math/s_clog10f.c (__clog10f): Likewise.
11363         * math/s_clog10l.c (__clog10l): Likewise.
11364         * math/s_clogf.c (__clogf): Likewise.
11365         * math/s_clogl.c (__clogl): Likewise.
11366         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
11367         (clog10_test): Likewise.
11368         * sysdeps/i386/fpu/libm-test-ulps: Update.
11369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11370
11371 2014-04-02  Alan Modra  <amodra@gmail.com>
11372
11373         [BZ #16739]
11374         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
11375         output when value is near a power of two.  Use int64_t for lx and
11376         remove casts.  Use decimal rather than hex exponent constants.
11377         Don't use long double multiplication when double will suffice.
11378         * math/libm-test.inc (nextafter_test_data): Add tests.
11379         * NEWS: Add 16739 and 16786 to bug list.
11380
11381         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
11382
11383         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
11384
11385 2014-04-01  Will Newton  <will.newton@linaro.org>
11386
11387         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
11388         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
11389
11390 2014-04-01  Florian Weimer  <fweimer@redhat.com>
11391
11392         [BZ #13347]
11393         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
11394         * nptl/tst-setuid2.c: New file.
11395         * nptl/Makefile (xtests): Add tst-setuid2.
11396
11397 2014-04-01  Alan Modra  <amodra@gmail.com>
11398
11399         [BZ #16786]
11400         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
11401
11402 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
11403
11404         [BZ #6803]
11405         [BZ #6804]
11406         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
11407         set errno as appropriate.
11408         * math/w_scalbf.c (__scalbf): Likewise.
11409         * math/w_scalbl.c (__scalbl): Likewise.
11410         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
11411         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
11412         * math/libm-test.inc (scalb_test_data): Add errno expectations.
11413         Add more NaN tests.
11414
11415         [BZ #16349]
11416         * math/w_atan2.c: Include <errno.h>.
11417         (__atan2): Set errno for result underflowing to zero.
11418         * math/w_atan2f.c: Include <errno.h>.
11419         (__atan2f): Set errno for result underflowing to zero.
11420         * math/w_atan2l.c: Include <errno.h>.
11421         (__atan2l): Set errno for result underflowing to zero.
11422         * math/auto-libm-test-in: Don't allow missing errno for some atan2
11423         tests.
11424         * math/auto-libm-test-out: Regenerated.
11425
11426 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11427
11428         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
11429         Encode instruction correctly in little endian.
11430         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
11431         Likewise.
11432         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
11433         Likewise.
11434         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
11435         Likewise.
11436         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
11437         Likewise.
11438
11439 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
11440
11441         [BZ #9894]
11442         * sysdeps/unix/sysv/linux/kernel-features.h
11443         [__sparc__ && !__arch64__ && !__sparc_v9__]
11444         (__ASSUME_SET_ROBUST_LIST): Do not define.
11445         [__sparc__ && !__arch64__ && !__sparc_v9__]
11446         (__ASSUME_FUTEX_LOCK_PI): Likewise.
11447         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
11448         Likewise.
11449         * sysdeps/unix/sysv/linux/arm/kernel-features.h
11450         (__ASSUME_FUTEX_LOCK_PI): Undefine.
11451         (__ASSUME_REQUEUE_PI): Likewise.
11452         (__ASSUME_SET_ROBUST_LIST): Likewise.
11453         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
11454         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
11455         Undefine.
11456         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11457         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
11458         Likewise.
11459         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
11460         Likewise.
11461         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
11462         Likewise.
11463         * sysdeps/unix/sysv/linux/mips/kernel-features.h
11464         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
11465         Undefine.
11466         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
11467         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
11468         Likewise.
11469
11470         [BZ #16648]
11471         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
11472         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
11473         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
11474
11475 2014-03-31  Will Newton  <will.newton@linaro.org>
11476
11477         * benchtests/Makefile (bench): Add ffs and ffsll to list
11478         of tests.
11479         * benchtests/ffs-inputs: New file.
11480         * benchtests/ffsll-inputs: Likewise.
11481
11482 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
11483
11484         [BZ #16770]
11485         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
11486         too large before casting to int.
11487         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
11488         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
11489         * math/libm-test.inc (scalb_test_data): Add more tests.
11490
11491 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
11492
11493         * benchtests/Makefile (DETAILED_OPT): New make option.
11494         (bench-func): Run benchmark program with -d if DETAILED_OPT is
11495         set.
11496         * benchtests/bench-skeleton.c: Include stdbool.h.
11497         (main): Store and print timings per input.
11498         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
11499         member to each argument value.
11500         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
11501         (_print_arg_data): Initialize per-input timing to 0.
11502
11503         * benchtests/Makefile (timing-type): New binary.
11504         (bench-clean): Also remove bench-timing-type.
11505         (bench): New target for timing-type.
11506         (bench-func): Print output in JSON format.
11507         * benchtests/bench-skeleton.c (main): Print output in JSON
11508         format.
11509         * benchtests/bench-timing-type.c: New file.
11510         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
11511         (TIMING_PRINT_STATS): Remove.
11512         * benchtests/scripts/bench.py (_print_arg_data): Store variant
11513         name separately.
11514
11515         * benchtests/bench-modf.c: Remove.
11516         * benchtests/modf-inputs: New inputs file.
11517
11518 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
11519
11520         [BZ #16362]
11521         * math/s_clog10.c (M_PI_LOG10E): New macro.
11522         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
11523         imaginary parts are 0.
11524         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
11525         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
11526         imaginary parts are 0.
11527         * math/s_clog10l.c (M_PI_LOG10El): New macro.
11528         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
11529         imaginary parts are 0.
11530         * math/libm-test.inc (clog10_test_data): Update expected results
11531         for when real and imaginary parts are 0.
11532
11533 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
11534
11535         * elf/dl-load.c: Finish conversion of __builtin_expect into
11536         __glibc_{un}likely.
11537
11538 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
11539
11540         [BZ #16348]
11541         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
11542         1+x for argument with exponent below -67.
11543         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
11544         Likewise.
11545         * math/auto-libm-test-in: Add more tests of exp.
11546         * math/auto-libm-test-out: Regenerated.
11547
11548 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11549
11550         [BZ #16759]
11551         * inet/getnetgrent_r.c (get_nonempty_val): New function.
11552         (nscd_getnetgrent): Use it.
11553
11554         [BZ #16760]
11555         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
11556         of stpcpy.
11557
11558 2014-03-27  Andi Kleen  <ak@linux.intel.com>
11559
11560         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
11561         (lll_robust_lock, lll_cond_lock, lll_timedlock)
11562         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
11563         (lll_robust_unlock): Remove out of line section. Use cfi
11564         intrinsics.
11565         (LLL_STUB_UNWIND_INFO*): Remove.
11566         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
11567         (lll_robust_lock, lll_cond_lock, lll_timedlock)
11568         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
11569         (lll_robust_unlock): Remove out of line section. Use cfi
11570         intrinsics.
11571         (LLL_STUB_UNWIND_INFO*): Remove.
11572
11573 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
11574
11575         [BZ #16758]
11576         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
11577         blank values.
11578
11579 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
11580
11581         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
11582
11583 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
11584
11585         [BZ #16198]
11586         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
11587         fnstenv.
11588         * math/test-fenv-preserve.c: New file.
11589         * math/Makefile (tests): Add test-fenv-preserve.
11590
11591 2014-03-26  Will Newton <will.newton@linaro.org>
11592
11593         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
11594
11595 2014-03-25  Roland McGrath  <roland@hack.frob.com>
11596
11597         * scripts/versionlist.awk: Partition the version sets and emit all
11598         GLIBC_* (sorted) before all others (sorted).
11599
11600 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
11601
11602         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
11603         GLIBC_2.2.5 version.
11604
11605 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11606
11607         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
11608         calls.
11609
11610         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
11611         previous change.
11612
11613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11614
11615 2014-03-25  Andreas Schwab  <schwab@suse.de>
11616
11617         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
11618         label to be used after in6ailist is initialized.
11619
11620 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11621
11622         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
11623         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
11624
11625 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
11626
11627         [BZ #16357]
11628         [BZ #16599]
11629         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
11630         min_plus_half.
11631         (fp_formats): Update initializers.
11632         (init_fp_formats): Initialize new field.
11633         (output_for_one_input_case): Allow underflow for results up to
11634         min_plus_half.
11635         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
11636         * math/auto-libm-test-in: Don't mark some underflows from asin and
11637         atanh as spurious.
11638         * math/auto-libm-test-out: Regenerated.
11639         * sysdeps/i386/fpu/libm-test-ulps: Update.
11640         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11641
11642 2014-03-25  Andreas Schwab  <schwab@suse.de>
11643
11644         * libio/Makefile (tst-ftell-partial-wide-ENV)
11645         (tst-ftell-active-handler-ENV): Define.
11646
11647 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
11648
11649         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
11650
11651 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
11652
11653         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
11654
11655 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
11656
11657         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
11658         * sysdeps/x86_64/fpu/multiarch/e_exp.c
11659         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
11660
11661 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
11662
11663         [BZ #16634]
11664         * elf/dl-load.c (open_verify): Add mode parameter.
11665         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
11666         (open_path): Change from boolean 'secure' to complete flag 'mode'
11667         (_dl_map_object): Adjust.
11668         * elf/Makefile (tests): Add tst-dlopen-aout.
11669         * elf/tst-dlopen-aout.c: New test.
11670
11671 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
11672
11673         [BZ #16714]
11674         * sysdeps/unix/sysv/linux/s390/bits/stat.h
11675         (struct stat): Rename member pad0 to __glibc_reserved0.
11676
11677         [BZ #16712]
11678         * sysdeps/s390/s390-32/bits/wordsize.h
11679         (__WORDSIZE32_SIZE_ULONG): New define.
11680         * sysdeps/s390/s390-64/bits/wordsize.h
11681         (__WORDSIZE32_SIZE_ULONG): Likewise.
11682         * sysdeps/generic/stdint.h (SIZE_MAX):
11683         Define as UL if __WORDSIZE32_SIZE_ULONG.
11684
11685         [BZ #16713]
11686         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
11687         (__glibc_reserved0): New variable.
11688         (sa_flags): Change type to int.
11689
11690         * posix/Makefile (before-compile): Use += before-compile instead
11691         of a :=.
11692
11693         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
11694         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
11695
11696 2014-03-20  Andreas Schwab  <schwab@suse.de>
11697
11698         [BZ #16743]
11699         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
11700         non-matching result from nscd.
11701
11702 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
11703
11704         * scripts/bench.py: Moved to ...
11705         * benchtests/scripts/bench.py: ... here.
11706         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
11707
11708 2014-03-24  Andreas Schwab  <schwab@suse.de>
11709
11710         [BZ #16002]
11711         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
11712         alloca_account and account alloca use for struct in6ailist.
11713
11714 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
11715
11716         [BZ #16284]
11717         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
11718         rounding mode to recompute results that overflow to infinity or
11719         underflow to zero.
11720         * math/auto-libm-test-in: Don't mark tests as expected to fail for
11721         bug 16284.
11722         * math/auto-libm-test-out: Regenerated.
11723         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
11724         (ccosh_test): Likewise.
11725         (csin_test_data): Use plus_oflow.
11726         (csin_test): Use ALL_RM_TEST.
11727         (csinh_test_data): Use plus_oflow.
11728         (csinh_test): Use ALL_RM_TEST.
11729         * sysdeps/i386/fpu/libm-test-ulps: Update.
11730         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11731
11732 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
11733
11734         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
11735         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
11736         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
11737
11738         [BZ #16731]
11739         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
11740         when x - 1 is zero.
11741         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
11742         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
11743         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
11744         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
11745         argument is 1.
11746         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
11747         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
11748         zero.
11749         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
11750         * sysdeps/i386/fpu/libm-test-ulps: Update.
11751         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11752
11753 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
11754
11755         * scripts/bench.pl: Remove file.
11756         * scripts/bench.py: New benchmark script.
11757         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
11758         * benchtests/README: Mention python dependency.
11759         * scripts/pylintrc: New file.
11760         * scripts/pylint: New file.
11761
11762         * bits/mathdef.h: Use #ifdef instead of #if.
11763         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
11764         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
11765         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
11766         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
11767         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
11768         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
11769
11770 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11771             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
11772
11773         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
11774         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
11775         and strpbrk-ppc64 objects.
11776         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11777         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
11778         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
11779         multiarch strpbrk for POWER7.
11780         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
11781         multiarch strpbrk for PPC64.
11782         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
11783         ifunc selector.
11784         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
11785         strpbrk for POWER7.
11786
11787 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
11788
11789         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
11790         (atan_test): Likewise.
11791         (atanh_test_data): Use NO_TEST_INLINE for two tests.
11792         (atanh_test): Use ALL_RM_TEST.
11793         (atan2_test_data): Likewise.
11794         (cabs_test): Likewise.
11795         (cacosh_test): Likewise.
11796         (carg_test): Likewise.
11797         (casin_test): Likewise.
11798         (casinh_test): Likewise.
11799         (cbrt_test): Likewise.
11800         (csqrt_test): Likewise.
11801         (erf_test): Likewise.
11802         (erfc_test): Likewise.
11803         (pow10_test): Likewise.
11804         (exp2_test): Likewise.
11805         (hypot_test): Likewise.
11806         (j0_test): Likewise.
11807         (j1_test): Likewise.
11808         (lgamma_test): Likewise.
11809         (gamma_test): Likewise.
11810         (sincos_test): Likewise.
11811         (tanh_test): Likewise.
11812         (y0_test): Likewise.
11813         (y1_test): Likewise.
11814         * sysdeps/i386/fpu/libm-test-ulps: Update.
11815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11816
11817 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11818
11819         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
11820         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
11821         and strcspn-ppc64 objects.
11822         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11823         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
11824         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
11825         multiarch strcspn for POWER7.
11826         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
11827         multiarch strcspn for PPC64.
11828         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
11829         ifunc selector.
11830         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
11831         strcspn for POWER7.
11832
11833 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
11834
11835         * math/gen-libm-test.pl (generate_testfile): Expect only function
11836         name as argument to AUTO_TESTS_* and pass results for all rounding
11837         modes to parse_args.
11838         (parse_auto_input): Separate inputs of automatic tests from
11839         outputs before storing in %auto_tests.
11840         * math/libm-test.inc (acos_test_data): Update call to
11841         AUTO_TESTS_f_f.
11842         (acos_test): Use ALL_RM_TEST.
11843         (acos_tonearest_test_data): Remove.
11844         (acos_test_tonearest): Likewise.
11845         (acos_towardzero_test_data): Likewise.
11846         (acos_test_towardzero): Likewise.
11847         (acos_downward_test_data): Likewise.
11848         (acos_test_downward): Likewise.
11849         (acos_upward_test_data): Likewise.
11850         (acos_test_upward): Likewise.
11851         (acosh_test_data): Update call to AUTO_TESTS_f_f.
11852         (asin_test_data): Likewise.
11853         (asin_test): Use ALL_RM_TEST.
11854         (asin_tonearest_test_data): Remove.
11855         (asin_test_tonearest): Likewise.
11856         (asin_towardzero_test_data): Likewise.
11857         (asin_test_towardzero): Likewise.
11858         (asin_downward_test_data): Likewise.
11859         (asin_test_downward): Likewise.
11860         (asin_upward_test_data): Likewise.
11861         (asin_test_upward): Likewise.
11862         (asinh_test_data): Update call to AUTO_TESTS_f_f.
11863         (atan_test_data): Likewise.
11864         (atanh_test_data): Likewise.
11865         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
11866         (cabs_test_data): Update call to AUTO_TESTS_c_f.
11867         (carg_test_data): Likewise.
11868         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
11869         (ccos_test_data): Update call to AUTO_TESTS_c_c.
11870         (ccosh_test_data): Likewise.
11871         (cexp_test_data): Likewise.
11872         (clog_test_data): Likewise.
11873         (clog10_test_data): Likewise.
11874         (cos_test_data): Update call to AUTO_TESTS_f_f.
11875         (cos_test): Use ALL_RM_TEST.
11876         (cos_tonearest_test_data): Remove.
11877         (cos_test_tonearest): Likewise.
11878         (cos_towardzero_test_data): Likewise.
11879         (cos_test_towardzero): Likewise.
11880         (cos_downward_test_data): Likewise.
11881         (cos_test_downward): Likewise.
11882         (cos_upward_test_data): Likewise.
11883         (cos_test_upward): Likewise.
11884         (cosh_test_data): Update call to AUTO_TESTS_f_f.
11885         (cosh_test): Use ALL_RM_TEST.
11886         (cosh_tonearest_test_data): Remove.
11887         (cosh_test_tonearest): Likewise.
11888         (cosh_towardzero_test_data): Likewise.
11889         (cosh_test_towardzero): Likewise.
11890         (cosh_downward_test_data): Likewise.
11891         (cosh_test_downward): Likewise.
11892         (cosh_upward_test_data): Likewise.
11893         (cosh_test_upward): Likewise.
11894         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
11895         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
11896         (ctan_test_data): Likewise.
11897         (ctan_test): Use ALL_RM_TEST.
11898         (ctan_tonearest_test_data): Remove.
11899         (ctan_test_tonearest): Likewise.
11900         (ctan_towardzero_test_data): Likewise.
11901         (ctan_test_towardzero): Likewise.
11902         (ctan_downward_test_data): Likewise.
11903         (ctan_test_downward): Likewise.
11904         (ctan_upward_test_data): Likewise.
11905         (ctan_test_upward): Likewise.
11906         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
11907         (ctanh_test): Use ALL_RM_TEST.
11908         (ctanh_tonearest_test_data): Remove.
11909         (ctanh_test_tonearest): Likewise.
11910         (ctanh_towardzero_test_data): Likewise.
11911         (ctanh_test_towardzero): Likewise.
11912         (ctanh_downward_test_data): Likewise.
11913         (ctanh_test_downward): Likewise.
11914         (ctanh_upward_test_data): Likewise.
11915         (ctanh_test_upward): Likewise.
11916         (erf_test_data): Update call to AUTO_TESTS_f_f.
11917         (erfc_test_data): Likewise.
11918         (exp_test_data): Likewise.
11919         (exp_test): Use ALL_RM_TEST.
11920         (exp_tonearest_test_data): Remove.
11921         (exp_test_tonearest): Likewise.
11922         (exp_towardzero_test_data): Likewise.
11923         (exp_test_towardzero): Likewise.
11924         (exp_downward_test_data): Likewise.
11925         (exp_test_downward): Likewise.
11926         (exp_upward_test_data): Likewise.
11927         (exp_test_upward): Likewise.
11928         (exp10_test_data): Update call to AUTO_TESTS_f_f.
11929         (exp10_test): Use ALL_RM_TEST.
11930         (exp10_tonearest_test_data): Remove.
11931         (exp10_test_tonearest): Likewise.
11932         (exp10_towardzero_test_data): Likewise.
11933         (exp10_test_towardzero): Likewise.
11934         (exp10_downward_test_data): Likewise.
11935         (exp10_test_downward): Likewise.
11936         (exp10_upward_test_data): Likewise.
11937         (exp10_test_upward): Likewise.
11938         (exp2_test_data): Update call to AUTO_TESTS_f_f.
11939         (expm1_test_data): Likewise.
11940         (expm1_test): Use ALL_RM_TEST.
11941         (expm1_tonearest_test_data): Remove.
11942         (expm1_test_tonearest): Likewise.
11943         (expm1_towardzero_test_data): Likewise.
11944         (expm1_test_towardzero): Likewise.
11945         (expm1_downward_test_data): Likewise.
11946         (expm1_test_downward): Likewise.
11947         (expm1_upward_test_data): Likewise.
11948         (expm1_test_upward): Likewise.
11949         (fma_test_data): Update call to AUTO_TESTS_fff_f.
11950         (fma_test): Use ALL_RM_TEST.
11951         (fma_towardzero_test_data): Remove.
11952         (fma_test_towardzero): Likewise.
11953         (fma_downward_test_data): Likewise.
11954         (fma_test_downward): Likewise.
11955         (fma_upward_test_data): Likewise.
11956         (fma_test_upward): Likewise.
11957         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
11958         (j0_test_data): Update call to AUTO_TESTS_f_f.
11959         (j1_test_data): Likewise.
11960         (jn_test_data): Update call to AUTO_TESTS_if_f.
11961         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
11962         (log_test_data): Update call to AUTO_TESTS_f_f.
11963         (log10_test_data): Likewise.
11964         (log1p_test_data): Likewise.
11965         (log2_test_data): Likewise.
11966         (pow_test_data): Update call to AUTO_TESTS_ff_f.
11967         (pow_tonearest_test_data): Likewise.
11968         (sin_test_data): Update call to AUTO_TESTS_f_f.
11969         (sin_test): Use ALL_RM_TEST.
11970         (sin_tonearest_test_data): Remove.
11971         (sin_test_tonearest): Likewise.
11972         (sin_towardzero_test_data): Likewise.
11973         (sin_test_towardzero): Likewise.
11974         (sin_downward_test_data): Likewise.
11975         (sin_test_downward): Likewise.
11976         (sin_upward_test_data): Likewise.
11977         (sin_test_upward): Likewise.
11978         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
11979         (sinh_test_data): Update call to AUTO_TESTS_f_f.
11980         (sinh_test): Use ALL_RM_TEST.
11981         (sinh_tonearest_test_data): Remove.
11982         (sinh_test_tonearest): Likewise.
11983         (sinh_towardzero_test_data): Likewise.
11984         (sinh_test_towardzero): Likewise.
11985         (sinh_downward_test_data): Likewise.
11986         (sinh_test_downward): Likewise.
11987         (sinh_upward_test_data): Likewise.
11988         (sinh_test_upward): Likewise.
11989         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
11990         (sqrt_test): Use ALL_RM_TEST.
11991         (sqrt_tonearest_test_data): Remove.
11992         (sqrt_test_tonearest): Likewise.
11993         (sqrt_towardzero_test_data): Likewise.
11994         (sqrt_test_towardzero): Likewise.
11995         (sqrt_downward_test_data): Likewise.
11996         (sqrt_test_downward): Likewise.
11997         (sqrt_upward_test_data): Likewise.
11998         (sqrt_test_upward): Likewise.
11999         (tan_test_data): Update call to AUTO_TESTS_f_f.
12000         (tan_test): Use ALL_RM_TEST.
12001         (tan_tonearest_test_data): Remove.
12002         (tan_test_tonearest): Likewise.
12003         (tan_towardzero_test_data): Likewise.
12004         (tan_test_towardzero): Likewise.
12005         (tan_downward_test_data): Likewise.
12006         (tan_test_downward): Likewise.
12007         (tan_upward_test_data): Likewise.
12008         (tan_test_upward): Likewise.
12009         (tanh_test_data): Update call to AUTO_TESTS_f_f.
12010         (tgamma_test_data): Likewise.
12011         (y0_test_data): Likewise.
12012         (y1_test_data): Likewise.
12013         (yn_test_data): Update call to AUTO_TESTS_if_f.
12014         (main): Do not call removed functions.
12015
12016 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
12017
12018         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
12019         (ldexp_test_data): Remove.
12020         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
12021         scalbn_test_data.
12022         (scalb_test): Use ALL_RM_TEST.
12023
12024 2014-03-19  Andreas Schwab  <schwab@suse.de>
12025
12026         * nscd/nscd.service: Also invalidate netgroup cache on reload.
12027
12028 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
12029
12030         [BZ #16649]
12031         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
12032         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
12033         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
12034         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12035         (__ASSUME_PREADV): Undefine.
12036         (__ASSUME_PWRITEV): Likewise.
12037
12038 2014-03-18  Roland McGrath  <roland@hack.frob.com>
12039
12040         * bits/mman-linux.h: Add comment about non-Linux use.
12041         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
12042         bits/mman-linux.h resting place.
12043
12044         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
12045         * bits/mman-linux.h: ... here.
12046
12047 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12048
12049         * conform/conformtest.pl: Add standard definition when calling C
12050         preprocessor on data files.
12051         (checknamespace): Remove unused variable.
12052
12053 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
12054
12055         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
12056         minus_oflow, plus_uflow and minus_uflow in expected results.
12057         * math/libm-test.inc (scalbn_test_data): Add more tests of
12058         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
12059         minus_uflow.
12060         (scalbn_test): Use ALL_RM_TEST.
12061         (scalbln_test_data): Add more tests of negative arguments.  Use
12062         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
12063         (scalbln_test): Use ALL_RM_TEST.
12064
12065 2014-03-18  Roland McGrath  <roland@hack.frob.com>
12066
12067         * scripts/abilist.awk: Ignore symbols marked with .hidden.
12068
12069 2014-03-18  Will Newton  <will.newton@linaro.org>
12070
12071         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
12072         inaccurate comment.
12073
12074 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
12075
12076         * Makerules [!subdir] (check-abi): Exit with error status if a
12077         test failed.
12078
12079 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
12080
12081         * math/libm-test.inc (nearbyint_test_data): Include all tests used
12082         for rint.  Include results for all rounding modes.
12083         (nearbyint_test): Use ALL_RM_TEST.
12084         (rint_test_data): Include all tests used for nearbyint.
12085
12086 2014-03-17  Will Newton  <will.newton@linaro.org>
12087
12088         * nptl/sysdeps/pthread/pthread.h: Revert previous
12089         change.
12090
12091         * sysdeps/generic/ldsodefs.h: Revert previous
12092         change.
12093
12094         * libio/genops.c: Revert previous change.
12095         * libio/libioP.h: Likewise.
12096         * stdio-common/vfprintf.c: Likewise.
12097
12098         * sysdeps/generic/math_private.h: Revert previous
12099         change.
12100
12101         * sysdeps/generic/math_private.h: Check whether
12102         HAVE_RM_CTX is defined with #ifdef rather
12103         than #if.
12104
12105         * argp/argp-fmtstream.h: Check whether
12106         __STRICT_ANSI__ is defined with #ifdef rather
12107         than #if.
12108         * argp/argp.h: Likewise.
12109
12110         * libio/genops.c: Check whether
12111         _IO_JUMPS_OFFSET is defined with #ifdef rather
12112         than #if.
12113         * libio/libioP.h: Likewise.
12114         * stdio-common/vfprintf.c: Likewise.
12115
12116         * sysdeps/generic/ldsodefs.h: Check whether
12117         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
12118         than #if.
12119
12120         * nptl/sysdeps/pthread/pthread.h: Check
12121         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
12122         its value.
12123
12124 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
12125
12126         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
12127         setting O_APPEND.
12128         * libio/tst-ftell-active-handler.c (do_append_test): Add a
12129         test case.
12130
12131         [BZ #16680]
12132         * libio/fileops.c (_IO_file_open): Seek to end of file but
12133         don't cache the offset.
12134         (get_file_offset): Remove function.
12135         (do_ftell): Use cached offset when available.
12136         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
12137         don't cache the offset.
12138         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
12139         case.
12140         (do_one_test): Call it.
12141         (do_ftell_test): Fix up expected old offset for a+ mode.
12142         * libio/wfileops.c (do_ftell_wide): Used cached offset when
12143         available.
12144
12145         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
12146         up test status with function return status.
12147         (do_write_test): Likewise.
12148         (do_append_test): Likewise.
12149
12150         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
12151         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
12152         Remove.
12153
12154 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
12155
12156         * math/gen-libm-test.pl (parse_args): Handle results specified for
12157         each rounding mode separately.
12158         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
12159         tests and results from lrint_tonearest_test_data,
12160         lrint_towardzero_test_data, lrint_downward_test_data and
12161         lrint_upward_test_data.
12162         (lrint_test): Use ALL_RM_TEST.
12163         (lrint_tonearest_test_data): Remove.
12164         (lrint_test_tonearest): Likewise.
12165         (lrint_towardzero_test_data): Likewise.
12166         (lrint_test_towardzero): Likewise.
12167         (lrint_downward_test_data): Likewise.
12168         (lrint_test_downward): Likewise.
12169         (lrint_upward_test_data): Likewise.
12170         (lrint_test_upward): Likewise.
12171         (llrint_test_data): Merge in per-rounding-mode tests and results
12172         from llrint_tonearest_test_data, llrint_towardzero_test_data,
12173         llrint_downward_test_data and llrint_upward_test_data.
12174         (llrint_test): Use ALL_RM_TEST.
12175         (llrint_tonearest_test_data): Remove.
12176         (llrint_test_tonearest): Likewise.
12177         (llrint_towardzero_test_data): Likewise.
12178         (llrint_test_towardzero): Likewise.
12179         (llrint_downward_test_data): Likewise.
12180         (llrint_test_downward): Likewise.
12181         (llrint_upward_test_data): Likewise.
12182         (llrint_test_upward): Likewise.
12183         (rint_test_data): Merge in per-rounding-mode tests and results
12184         from rint_tonearest_test_data, rint_towardzero_test_data,
12185         rint_downward_test_data and rint_upward_test_data.  Add
12186         per-rounding-mode results for tests not in those arrays.
12187         (rint_test): Use ALL_RM_TEST.
12188         (rint_tonearest_test_data): Remove.
12189         (rint_test_tonearest): Likewise.
12190         (rint_towardzero_test_data): Likewise.
12191         (rint_test_towardzero): Likewise.
12192         (rint_downward_test_data): Likewise.
12193         (rint_test_downward): Likewise.
12194         (rint_upward_test_data): Likewise.
12195         (rint_test_upward): Likewise.
12196         (main): Don't call removed functions.
12197
12198 2014-03-14  Roland McGrath  <roland@hack.frob.com>
12199
12200         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
12201         "Compiled on ..." crapola.  It is anti-useful.
12202
12203 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
12204
12205         * scripts/evaluate-test.sh: Handle fourth argument to determine
12206         whether test run should stop on failure.
12207         * Makeconfig (stop-on-test-failure): New variable.
12208         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
12209         $(stop-on-test-failure).
12210         * Makefile (tests): Give a summary of results from testing and
12211         exit with failure status if they include an ERROR or FAIL.
12212         (xtests): Likewise.
12213         * manual/install.texi (Configuring and compiling): Mention
12214         stop-on-test-failure=y.
12215         * INSTALL: Regenerated.
12216
12217 2014-03-14  Roland McGrath  <roland@hack.frob.com>
12218
12219         * scripts/versionlist.awk: New file.
12220         * Makerules [$(build-shared) = yes]
12221         (postclean-generated): Add Versions.def, not Versions.def.v and
12222         Versions.def.v.i.
12223         ($(common-objpfx)Versions.def.v.i): Target removed.
12224         ($(common-objpfx)Versions.def): New target.
12225         ($(common-objpfx)Versions.all): Depend on that rather that
12226         $(common-objpfx)Versions.def.v.
12227         * Versions.def: File removed.
12228
12229         * Makeconfig (+gccwarn): Add -Wundef.
12230         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
12231         a dl-sysdep.h breaking its contract.
12232         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
12233         * include/stackinfo.h: New file.
12234         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
12235         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
12236         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
12237         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
12238         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
12239         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
12240         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12241         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12242         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12243         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12244         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12245         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
12246         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12247         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12248         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
12249
12250 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12251
12252         [BZ #16707]
12253         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
12254         implementation.
12255         * math/libm-test.inc (round_test_data): Add more tests.
12256
12257         [BZ #16706]
12258         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
12259         implementation.
12260         * math/libm-test.inc (nearbyint_test_data): Add more tests.
12261
12262         [BZ #16701]
12263         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
12264         implementation.
12265         * math/libm-test.inc (ceil_test_data): Add more tests.
12266
12267         * math/libm-test.inc (trunc_test_data): Add more tests related to
12268         BZ#16414.
12269
12270 2014-03-14  Roland McGrath  <roland@hack.frob.com>
12271
12272         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
12273         with #if rather than #ifdef.
12274         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
12275
12276 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
12277
12278         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
12279         first.  Disable AVX-512 GCC support if assembler doesn't support
12280         it.
12281         * sysdeps/x86_64/configure: Regenerated.
12282
12283 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
12284
12285         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
12286         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
12287         (__old_pthread_attr_setstack): Likewise.
12288         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
12289         [!_STACK_GROWS_DOWN]: Likewise.
12290
12291 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
12292
12293         * config.make.in (have-bash2): Delete.
12294         * configure.ac (libc_cv_have_bash2): Delete.
12295         * configure: Regenerate.
12296         * elf/Makefile (common-ldd-rewrite): Rename to ...
12297         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
12298         (sh-ldd-rewrite): Delete.
12299         (bash-ldd-rewrite): Delete.
12300         (have-bash2): Delete checks.
12301         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
12302         ldd-rewrite.
12303
12304         * config.make.in (have-ksh): Delete.
12305         (KSH): Delete.
12306         * configure.ac (libc_cv_have_ksh): Delete.
12307         * configure: Regenerate.
12308
12309         * elf/Makefile: Delete $(have-ksh) check.
12310         ($(objpfx)sotruss): Change KSH to BASH.
12311         * elf/sotruss.ksh: Rename to ...
12312         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
12313         function style to match POSIX.  Drop ksh vim mode setting.
12314
12315         * manual/time.texi (Specifying the Time Zone with TZ): Change
12316         Tuesday to Thursday.
12317
12318         * debug/tst-longjmp_chk2.c: Update header comment.
12319         (stackoverflow_handler): Add comment.  Call assert on pass value.
12320
12321 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
12322
12323         [BZ #16194]
12324         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
12325         (HAVE_AVX512_ASM_SUPPORT): Likewise.
12326         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
12327         (La_x86_64_vector): Add zmm.
12328         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
12329         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
12330         ($(objpfx)tst-audit10): New target.
12331         ($(objpfx)tst-audit10.out): Likewise.
12332         (tst-audit10-ENV): New.
12333         (AVX512-CFLAGS): Likewise.
12334         (CFLAGS-tst-audit10.c): Likewise.
12335         (CFLAGS-tst-auditmod10a.c): Likewise.
12336         (CFLAGS-tst-auditmod10b.c): Likewise.
12337         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
12338         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
12339         * sysdeps/x86_64/configure: Regenerated.
12340         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
12341         AVX-512 zmm register support.
12342         (_dl_x86_64_save_sse): Likewise.
12343         (_dl_x86_64_restore_sse): Likewise.
12344         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
12345         size vector registers.
12346         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
12347         (ZMM_SIZE): Likewise.
12348         * sysdeps/x86_64/tst-audit10.c: New file.
12349         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
12350         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
12351
12352 2014-03-13  Roland McGrath  <roland@hack.frob.com>
12353
12354         * configure.ac (HAVE_EHDR_START): New check.
12355         * configure: Regenerated.
12356         * config.h.in (HAVE_EHDR_START): New #undef.
12357         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
12358         assuming the lowest-addressed segment maps the start of the file.
12359
12360 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
12361
12362         * INSTALL: Regenerated.
12363
12364 2014-03-13  Will Newton  <will.newton@linaro.org>
12365
12366         * manual/setjmp.texi (System V contexts): Improve
12367         clarity and grammar of documentation.
12368
12369 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
12370
12371         [BZ #16381]
12372         * elf/Makefile (tests): Add tst-pie2.
12373         (tests-pie): Add tst-pie2.
12374         * elf/tst-pie2.c: New file.
12375         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
12376         for ET_EXEC.
12377         * elf/rtld.c (map_doit): Load executable as lt_executable.
12378         (dl_main): Likewise.
12379
12380 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
12381
12382         [BZ #16642]
12383         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
12384         (__ASSUME_PSELECT): Undefine.
12385
12386 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12387
12388         [BZ #16689]
12389         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
12390         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
12391         static build.
12392         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
12393         selector for static builds.
12394
12395 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
12396
12397         [BZ #16695]
12398         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
12399         key in the buffer.
12400
12401 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12402
12403         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
12404         IFUNC selector for static builds.
12405
12406 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
12407
12408         * sysdeps/mips/math_private.h [__mips_hard_float]
12409         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
12410         libc_feresetround_mips_ctx.
12411         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
12412         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
12413         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
12414
12415         [BZ #16677]
12416         * math/s_nextafter.c (__nextafter): Do not return value from
12417         overflowing computation.
12418         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
12419         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
12420         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
12421         Likewise.
12422         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
12423         Likewise.
12424         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
12425         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
12426
12427 2014-03-11  Roland McGrath  <roland@hack.frob.com>
12428
12429         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
12430         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
12431         Move sfi_sp use from the load-multiple (that no longer sets sp) to
12432         the new mov targetting sp.
12433
12434 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12435
12436         [BZ #16683]
12437         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
12438         Define it for static builds as well.
12439         (NO_BZERO_IMPL): Likewise.
12440
12441 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
12442
12443         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
12444         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
12445         multiarch strspn for PPC64.
12446         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
12447         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
12448         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
12449         (__libc_ifunc_impl_list): Likewise.
12450         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
12451         multiarch optimizations
12452         * string/strspn.c (strspn): Using macro to redefine symbol name.
12453
12454 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
12455             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12456
12457         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
12458         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
12459         multiarch strncat for PPC64.
12460         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
12461         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
12462         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
12463         (__libc_ifunc_impl_list): Likewise.
12464         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
12465         multiarch optimizations
12466
12467 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
12468
12469         [BZ #16639]
12470         * nscd/nscd.service: Make service type forking.
12471
12472 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12473
12474         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
12475         sign in non default rounding modes.
12476         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
12477
12478 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
12479
12480         * math/libm-test.inc (ALL_RM_TEST): New macro.
12481         (ceil_test): Use ALL_RM_TEST.
12482         (cimag_test): Likewise.
12483         (conj_test): Likewise.
12484         (copysign_test): Likewise.
12485         (cproj_test): Likewise.
12486         (creal_test): Likewise.
12487         (fabs_test): Likewise.
12488         (floor_test): Likewise.
12489         (fmax_test): Likewise.
12490         (fmin_test): Likewise.
12491         (fmod_test): Likewise.
12492         (fpclassify_test): Likewise.
12493         (frexp_test): Likewise.
12494         (ilogb_test): Likewise.
12495         (isfinite_test): Likewise.
12496         (finite_test): Likewise.
12497         (isgreater_test): Likewise.
12498         (isgreaterequal_test): Likewise.
12499         (isinf_test): Likewise.
12500         (isless_test): Likewise.
12501         (islessequal_test): Likewise.
12502         (islessgreater_test): Likewise.
12503         (isnan_test): Likewise.
12504         (isnormal_test): Likewise.
12505         (issignaling_test): Likewise.
12506         (isunordered_test): Likewise.
12507         (logb_test): Likewise.
12508         (logb_downward_test_data): Remove.
12509         (logb_test_downward): Likewise.
12510         (lround_test): Use ALL_RM_TEST.
12511         (llround_test): Likewise.
12512         (modf_test): Likewise.
12513         (nexttoward_test): Likewise.
12514         (remainder_test): Likewise.
12515         (drem_test): Likewise.
12516         (remainder_tonearest_test_data): Likewise.
12517         (remainder_test_tonearest): Likewise.
12518         (drem_test_tonearest): Likewise.
12519         (remainder_towardzero_test_data): Likewise.
12520         (remainder_test_towardzero): Likewise.
12521         (drem_test_towardzero): Likewise.
12522         (remainder_downward_test_data): Likewise.
12523         (remainder_test_downward): Likewise.
12524         (drem_test_downward): Likewise.
12525         (remainder_upward_test_data): Likewise.
12526         (remainder_test_upward): Likewise.
12527         (drem_test_upward): Likewise.
12528         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
12529         (round_test): Use ALL_RM_TEST.
12530         (signbit_test): Likewise.
12531         (trunc_test): Likewise.
12532         (significand_test): Likewise.
12533         (main): Don't call removed functions.
12534
12535 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
12536
12537         [BZ #16674]
12538         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
12539         || __USE_XOPEN2K8].
12540         (ILL_ILLOPN): Likewise.
12541         (ILL_ILLADR): Likewise.
12542         (ILL_ILLTRP): Likewise.
12543         (ILL_PRVOPC): Likewise.
12544         (ILL_PRVREG): Likewise.
12545         (ILL_COPROC): Likewise.
12546         (ILL_BADSTK): Likewise.
12547         (FPE_INTDIV): Likewise.
12548         (FPE_INTOVF): Likewise.
12549         (FPE_FLTDIV): Likewise.
12550         (FPE_FLTOVF): Likewise.
12551         (FPE_FLTUND): Likewise.
12552         (FPE_FLTRES): Likewise.
12553         (FPE_FLTINV): Likewise.
12554         (FPE_FLTSUB): Likewise.
12555         (SEGV_MAPERR): Likewise.
12556         (SEGV_ACCERR): Likewise.
12557         (BUS_ADRALN): Likewise.
12558         (BUS_ADRERR): Likewise.
12559         (BUS_OBJERR): Likewise.
12560         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12561         (TRAP_TRACE): Likewise.
12562         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12563         __USE_XOPEN2K8].
12564         (CLD_KILLED): Likewise.
12565         (CLD_DUMPED): Likewise.
12566         (CLD_TRAPPED): Likewise.
12567         (CLD_STOPPED): Likewise.
12568         (CLD_CONTINUED): Likewise.
12569         (POLL_IN): Likewise.
12570         (POLL_OUT): Likewise.
12571         (POLL_MSG): Likewise.
12572         (POLL_ERR): Likewise.
12573         (POLL_PRI): Likewise.
12574         (POLL_HUP): Likewise.
12575         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
12576         Likewise.
12577         (ILL_ILLOPN): Likewise.
12578         (ILL_ILLADR): Likewise.
12579         (ILL_ILLTRP): Likewise.
12580         (ILL_PRVOPC): Likewise.
12581         (ILL_PRVREG): Likewise.
12582         (ILL_COPROC): Likewise.
12583         (ILL_BADSTK): Likewise.
12584         (FPE_INTDIV): Likewise.
12585         (FPE_INTOVF): Likewise.
12586         (FPE_FLTDIV): Likewise.
12587         (FPE_FLTOVF): Likewise.
12588         (FPE_FLTUND): Likewise.
12589         (FPE_FLTRES): Likewise.
12590         (FPE_FLTINV): Likewise.
12591         (FPE_FLTSUB): Likewise.
12592         (SEGV_MAPERR): Likewise.
12593         (SEGV_ACCERR): Likewise.
12594         (BUS_ADRALN): Likewise.
12595         (BUS_ADRERR): Likewise.
12596         (BUS_OBJERR): Likewise.
12597         (BUS_MCEERR_AR): Likewise.
12598         (BUS_MCEERR_AO): Likewise.
12599         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12600         (TRAP_TRACE): Likewise.
12601         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12602         __USE_XOPEN2K8].
12603         (CLD_KILLED): Likewise.
12604         (CLD_DUMPED): Likewise.
12605         (CLD_TRAPPED): Likewise.
12606         (CLD_STOPPED): Likewise.
12607         (CLD_CONTINUED): Likewise.
12608         (POLL_IN): Likewise.
12609         (POLL_OUT): Likewise.
12610         (POLL_MSG): Likewise.
12611         (POLL_ERR): Likewise.
12612         (POLL_PRI): Likewise.
12613         (POLL_HUP): Likewise.
12614         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
12615         (ILL_ILLOPN): Likewise.
12616         (ILL_ILLADR): Likewise.
12617         (ILL_ILLTRP): Likewise.
12618         (ILL_PRVOPC): Likewise.
12619         (ILL_PRVREG): Likewise.
12620         (ILL_COPROC): Likewise.
12621         (ILL_BADSTK): Likewise.
12622         (FPE_INTDIV): Likewise.
12623         (FPE_INTOVF): Likewise.
12624         (FPE_FLTDIV): Likewise.
12625         (FPE_FLTOVF): Likewise.
12626         (FPE_FLTUND): Likewise.
12627         (FPE_FLTRES): Likewise.
12628         (FPE_FLTINV): Likewise.
12629         (FPE_FLTSUB): Likewise.
12630         (SEGV_MAPERR): Likewise.
12631         (SEGV_ACCERR): Likewise.
12632         (BUS_ADRALN): Likewise.
12633         (BUS_ADRERR): Likewise.
12634         (BUS_OBJERR): Likewise.
12635         (BUS_MCEERR_AR): Likewise.
12636         (BUS_MCEERR_AO): Likewise.
12637         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12638         (TRAP_TRACE): Likewise.
12639         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12640         __USE_XOPEN2K8].
12641         (CLD_KILLED): Likewise.
12642         (CLD_DUMPED): Likewise.
12643         (CLD_TRAPPED): Likewise.
12644         (CLD_STOPPED): Likewise.
12645         (CLD_CONTINUED): Likewise.
12646         (POLL_IN): Likewise.
12647         (POLL_OUT): Likewise.
12648         (POLL_MSG): Likewise.
12649         (POLL_ERR): Likewise.
12650         (POLL_PRI): Likewise.
12651         (POLL_HUP): Likewise.
12652         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
12653         Likewise.
12654         (ILL_ILLOPN): Likewise.
12655         (ILL_ILLADR): Likewise.
12656         (ILL_ILLTRP): Likewise.
12657         (ILL_PRVOPC): Likewise.
12658         (ILL_PRVREG): Likewise.
12659         (ILL_COPROC): Likewise.
12660         (ILL_BADSTK): Likewise.
12661         (ILL_BADIADDR): Likewise.
12662         (ILL_BREAK): Likewise.
12663         (FPE_INTDIV): Likewise.
12664         (FPE_INTOVF): Likewise.
12665         (FPE_FLTDIV): Likewise.
12666         (FPE_FLTOVF): Likewise.
12667         (FPE_FLTUND): Likewise.
12668         (FPE_FLTRES): Likewise.
12669         (FPE_FLTINV): Likewise.
12670         (FPE_FLTSUB): Likewise.
12671         (FPE_DECOVF): Likewise.
12672         (FPE_DECDIV): Likewise.
12673         (FPE_DECERR): Likewise.
12674         (FPE_INVASC): Likewise.
12675         (FPE_INVDEC): Likewise.
12676         (SEGV_MAPERR): Likewise.
12677         (SEGV_ACCERR): Likewise.
12678         (SEGV_PSTKOVF): Likewise.
12679         (BUS_ADRALN): Likewise.
12680         (BUS_ADRERR): Likewise.
12681         (BUS_OBJERR): Likewise.
12682         (BUS_MCEERR_AR): Likewise.
12683         (BUS_MCEERR_AO): Likewise.
12684         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12685         (TRAP_TRACE): Likewise.
12686         (TRAP_BRANCH): Likewise.
12687         (TRAP_HWBKPT): Likewise.
12688         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12689         __USE_XOPEN2K8].
12690         (CLD_KILLED): Likewise.
12691         (CLD_DUMPED): Likewise.
12692         (CLD_TRAPPED): Likewise.
12693         (CLD_STOPPED): Likewise.
12694         (CLD_CONTINUED): Likewise.
12695         (POLL_IN): Likewise.
12696         (POLL_OUT): Likewise.
12697         (POLL_MSG): Likewise.
12698         (POLL_ERR): Likewise.
12699         (POLL_PRI): Likewise.
12700         (POLL_HUP): Likewise.
12701         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
12702         (ILL_ILLOPN): Likewise.
12703         (ILL_ILLADR): Likewise.
12704         (ILL_ILLTRP): Likewise.
12705         (ILL_PRVOPC): Likewise.
12706         (ILL_PRVREG): Likewise.
12707         (ILL_COPROC): Likewise.
12708         (ILL_BADSTK): Likewise.
12709         (FPE_INTDIV): Likewise.
12710         (FPE_INTOVF): Likewise.
12711         (FPE_FLTDIV): Likewise.
12712         (FPE_FLTOVF): Likewise.
12713         (FPE_FLTUND): Likewise.
12714         (FPE_FLTRES): Likewise.
12715         (FPE_FLTINV): Likewise.
12716         (FPE_FLTSUB): Likewise.
12717         (SEGV_MAPERR): Likewise.
12718         (SEGV_ACCERR): Likewise.
12719         (BUS_ADRALN): Likewise.
12720         (BUS_ADRERR): Likewise.
12721         (BUS_OBJERR): Likewise.
12722         (BUS_MCEERR_AR): Likewise.
12723         (BUS_MCEERR_AO): Likewise.
12724         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12725         (TRAP_TRACE): Likewise.
12726         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12727         __USE_XOPEN2K8].
12728         (CLD_KILLED): Likewise.
12729         (CLD_DUMPED): Likewise.
12730         (CLD_TRAPPED): Likewise.
12731         (CLD_STOPPED): Likewise.
12732         (CLD_CONTINUED): Likewise.
12733         (POLL_IN): Likewise.
12734         (POLL_OUT): Likewise.
12735         (POLL_MSG): Likewise.
12736         (POLL_ERR): Likewise.
12737         (POLL_PRI): Likewise.
12738         (POLL_HUP): Likewise.
12739         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
12740         (ILL_ILLOPN): Likewise.
12741         (ILL_ILLADR): Likewise.
12742         (ILL_ILLTRP): Likewise.
12743         (ILL_PRVOPC): Likewise.
12744         (ILL_PRVREG): Likewise.
12745         (ILL_COPROC): Likewise.
12746         (ILL_BADSTK): Likewise.
12747         (FPE_INTDIV): Likewise.
12748         (FPE_INTOVF): Likewise.
12749         (FPE_FLTDIV): Likewise.
12750         (FPE_FLTOVF): Likewise.
12751         (FPE_FLTUND): Likewise.
12752         (FPE_FLTRES): Likewise.
12753         (FPE_FLTINV): Likewise.
12754         (FPE_FLTSUB): Likewise.
12755         (SEGV_MAPERR): Likewise.
12756         (SEGV_ACCERR): Likewise.
12757         (BUS_ADRALN): Likewise.
12758         (BUS_ADRERR): Likewise.
12759         (BUS_OBJERR): Likewise.
12760         (BUS_MCEERR_AR): Likewise.
12761         (BUS_MCEERR_AO): Likewise.
12762         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12763         (TRAP_TRACE): Likewise.
12764         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12765         __USE_XOPEN2K8].
12766         (CLD_KILLED): Likewise.
12767         (CLD_DUMPED): Likewise.
12768         (CLD_TRAPPED): Likewise.
12769         (CLD_STOPPED): Likewise.
12770         (CLD_CONTINUED): Likewise.
12771         (POLL_IN): Likewise.
12772         (POLL_OUT): Likewise.
12773         (POLL_MSG): Likewise.
12774         (POLL_ERR): Likewise.
12775         (POLL_PRI): Likewise.
12776         (POLL_HUP): Likewise.
12777         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
12778         (ILL_ILLOPN): Likewise.
12779         (ILL_ILLADR): Likewise.
12780         (ILL_ILLTRP): Likewise.
12781         (ILL_PRVOPC): Likewise.
12782         (ILL_PRVREG): Likewise.
12783         (ILL_COPROC): Likewise.
12784         (ILL_BADSTK): Likewise.
12785         (FPE_INTDIV): Likewise.
12786         (FPE_INTOVF): Likewise.
12787         (FPE_FLTDIV): Likewise.
12788         (FPE_FLTOVF): Likewise.
12789         (FPE_FLTUND): Likewise.
12790         (FPE_FLTRES): Likewise.
12791         (FPE_FLTINV): Likewise.
12792         (FPE_FLTSUB): Likewise.
12793         (SEGV_MAPERR): Likewise.
12794         (SEGV_ACCERR): Likewise.
12795         (BUS_ADRALN): Likewise.
12796         (BUS_ADRERR): Likewise.
12797         (BUS_OBJERR): Likewise.
12798         (BUS_MCEERR_AR): Likewise.
12799         (BUS_MCEERR_AO): Likewise.
12800         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12801         (TRAP_TRACE): Likewise.
12802         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12803         __USE_XOPEN2K8].
12804         (CLD_KILLED): Likewise.
12805         (CLD_DUMPED): Likewise.
12806         (CLD_TRAPPED): Likewise.
12807         (CLD_STOPPED): Likewise.
12808         (CLD_CONTINUED): Likewise.
12809         (POLL_IN): Likewise.
12810         (POLL_OUT): Likewise.
12811         (POLL_MSG): Likewise.
12812         (POLL_ERR): Likewise.
12813         (POLL_PRI): Likewise.
12814         (POLL_HUP): Likewise.
12815         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
12816         (ILL_ILLOPN): Likewise.
12817         (ILL_ILLADR): Likewise.
12818         (ILL_ILLTRP): Likewise.
12819         (ILL_PRVOPC): Likewise.
12820         (ILL_PRVREG): Likewise.
12821         (ILL_COPROC): Likewise.
12822         (ILL_BADSTK): Likewise.
12823         (ILL_DBLFLT): Likewise.
12824         (ILL_HARDWALL): Likewise.
12825         (FPE_INTDIV): Likewise.
12826         (FPE_INTOVF): Likewise.
12827         (FPE_FLTDIV): Likewise.
12828         (FPE_FLTOVF): Likewise.
12829         (FPE_FLTUND): Likewise.
12830         (FPE_FLTRES): Likewise.
12831         (FPE_FLTINV): Likewise.
12832         (FPE_FLTSUB): Likewise.
12833         (SEGV_MAPERR): Likewise.
12834         (SEGV_ACCERR): Likewise.
12835         (BUS_ADRALN): Likewise.
12836         (BUS_ADRERR): Likewise.
12837         (BUS_OBJERR): Likewise.
12838         (BUS_MCEERR_AR): Likewise.
12839         (BUS_MCEERR_AO): Likewise.
12840         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12841         (TRAP_TRACE): Likewise.
12842         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12843         __USE_XOPEN2K8].
12844         (CLD_KILLED): Likewise.
12845         (CLD_DUMPED): Likewise.
12846         (CLD_TRAPPED): Likewise.
12847         (CLD_STOPPED): Likewise.
12848         (CLD_CONTINUED): Likewise.
12849         (POLL_IN): Likewise.
12850         (POLL_OUT): Likewise.
12851         (POLL_MSG): Likewise.
12852         (POLL_ERR): Likewise.
12853         (POLL_PRI): Likewise.
12854         (POLL_HUP): Likewise.
12855         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
12856         (ILL_ILLOPN): Likewise.
12857         (ILL_ILLADR): Likewise.
12858         (ILL_ILLTRP): Likewise.
12859         (ILL_PRVOPC): Likewise.
12860         (ILL_PRVREG): Likewise.
12861         (ILL_COPROC): Likewise.
12862         (ILL_BADSTK): Likewise.
12863         (FPE_INTDIV): Likewise.
12864         (FPE_INTOVF): Likewise.
12865         (FPE_FLTDIV): Likewise.
12866         (FPE_FLTOVF): Likewise.
12867         (FPE_FLTUND): Likewise.
12868         (FPE_FLTRES): Likewise.
12869         (FPE_FLTINV): Likewise.
12870         (FPE_FLTSUB): Likewise.
12871         (SEGV_MAPERR): Likewise.
12872         (SEGV_ACCERR): Likewise.
12873         (BUS_ADRALN): Likewise.
12874         (BUS_ADRERR): Likewise.
12875         (BUS_OBJERR): Likewise.
12876         (BUS_MCEERR_AR): Likewise.
12877         (BUS_MCEERR_AO): Likewise.
12878         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
12879         (TRAP_TRACE): Likewise.
12880         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
12881         __USE_XOPEN2K8].
12882         (CLD_KILLED): Likewise.
12883         (CLD_DUMPED): Likewise.
12884         (CLD_TRAPPED): Likewise.
12885         (CLD_STOPPED): Likewise.
12886         (CLD_CONTINUED): Likewise.
12887         (POLL_IN): Likewise.
12888         (POLL_OUT): Likewise.
12889         (POLL_MSG): Likewise.
12890         (POLL_ERR): Likewise.
12891         (POLL_PRI): Likewise.
12892         (POLL_HUP): Likewise.
12893         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
12894         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
12895
12896         [BZ #16670]
12897         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
12898         before #include of <time.h>.
12899         [!__USE_XOPEN2K] (__need_timespec): Likewise.
12900         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
12901         (test-xfail-UNIX98/sched.h/conform): Likewise.
12902
12903 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12904
12905         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
12906         error absence of trapping exception support.
12907         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
12908
12909 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
12910
12911         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
12912         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
12913         * timezone/Makefile (testdata): Move definition above include of
12914         Rules.
12915         (test-zones): New variable.
12916         (tests-special): Add zone files.
12917         (build-testdata): Use $(evaluate-test).
12918
12919         * elf/Makefile (tests-special): Rename tests to end with .out.
12920         ($(objpfx)noload-mem): Likewise.
12921         ($(objpfx)tst-leaks1-mem): Likewise.
12922         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
12923         * iconv/Makefile (xtests-special): Change test-iconvconfig to
12924         $(objpfx)test-iconvconfig.out.
12925         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
12926         set -e inside subshell and redirect output to file.
12927         * iconvdata/Makefile (generated): Rename tests to end with .out.
12928         Correct type.
12929         (tests-special): Rename tests to end with .out.
12930         ($(objpfx)mtrace-tst-loading): Likewise.
12931         * intl/Makefile (generated): Likewise.
12932         (tests-special): Likewise.
12933         ($(objpfx)mtrace-tst-gettext): Likewise.
12934         * misc/Makefile (generated): Likewise.
12935         (tests-special): Likewise.
12936         ($(objpfx)tst-error1-mem): Likewise.
12937         * nptl/Makefile (tests-special): Likewise.
12938         ($(objpfx)tst-stack3-mem): Likewise.
12939         (generated): Likewise.
12940         * posix/Makefile (generated): Likewise.
12941         (tests-special): Likewise.
12942         (xtests-special): Likewise.
12943         ($(objpfx)tst-fnmatch-mem): Likewise.
12944         ($(objpfx)bug-regex2-mem): Likewise.
12945         ($(objpfx)bug-regex14-mem): Likewise.
12946         ($(objpfx)bug-regex21-mem): Likewise.
12947         ($(objpfx)bug-regex31-mem): Likewise.
12948         ($(objpfx)tst-vfork3-mem): Likewise.
12949         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
12950         ($(objpfx)tst-pcre-mem): Likewise.
12951         ($(objpfx)tst-boost-mem): Likewise.
12952         ($(objpfx)bug-ga2-mem): Likewise.
12953         ($(objpfx)bug-glob2-mem): Likewise.
12954         * resolv/Makefile (generate): Likewise.
12955         (tests-special): Likewise.
12956         (xtests-special): Likewise.
12957         (generated): Likewise.
12958         ($(objpfx)mtrace-tst-leaks): Likewise.
12959         ($(objpfx)mtrace-tst-leaks2): Likewise.
12960
12961         * scripts/merge-test-results.sh: New file.
12962         * Makefile (tests-special-notdir): New variable.
12963         (tests): Run merge-test-results.sh.
12964         (xtests): Likewise.
12965         * Rules (tests-special-notdir): New variable.
12966         (xtests-special-notdir): Likewise.
12967         (tests): Run merge-test-results.sh
12968         (xtests): Likewise.
12969
12970         * Makeconfig (test-xfail-name): New variable.
12971         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
12972         compute variable name for expected failures.
12973         * conform/Makefile (conformtest-headers-data): New variable.
12974         (conformtest-standards): Likewise.
12975         (conformtest-headers-ISO): Likewise.
12976         (conformtest-headers-ISO99): Likewise.
12977         (conformtest-headers-ISO11): Likewise.
12978         (conformtest-headers-POSIX): Likewise.
12979         (conformtest-headers-XPG3): Likewise.
12980         (conformtest-headers-XPG4): Likewise.
12981         (conformtest-headers-UNIX98): Likewise.
12982         (conformtest-headers-XOPEN2K): Likewise.
12983         (conformtest-headers-POSIX2008): Likewise.
12984         (conformtest-headers-XOPEN2K8): Likewise.
12985         (conformtest-header-list-base): Likewise.
12986         (conformtest-header-list-tests): Likewise.
12987         (conformtest-header-base): Likewise.
12988         (conformtest-header-tests): Likewise.
12989         (tests-special): Add $(conformtest-header-list-tests).  If
12990         [$(fast-check) && !$(cross-compiling)], add
12991         $(conformtest-header-tests) instead of
12992         $(objpfx)run-conformtest.out.
12993         (generated): Add $(conformtest-header-list-base).  If
12994         [$(fast-check) && !$(cross-compiling)], add
12995         $(conformtest-header-base).  Remove previous setting.
12996         ($(conformtest-header-list-tests)): New target.
12997         (test-xfail-run-conformtest): Remove variable.
12998         ($(objpfx)run-conformtest.out): Remove target.
12999         (test-xfail-ISO11/complex.h/conform): New variable.
13000         (test-xfail-ISO11/stdalign.h/conform): Likewise.
13001         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
13002         (test-xfail-XPG3/varargs.h/conform): Likewise.
13003         (test-xfail-XPG4/varargs.h/conform): Likewise.
13004         (test-xfail-UNIX98/varargs.h/conform): Likewise.
13005         (test-xfail-XPG4/ndbm.h/conform): Likewise.
13006         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
13007         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
13008         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
13009         (test-xfail-XPG3/fcntl.h/conform): Likewise.
13010         (test-xfail-XPG3/ftw.h/conform): Likewise.
13011         (test-xfail-XPG3/grp.h/conform): Likewise.
13012         (test-xfail-XPG3/langinfo.h/conform): Likewise.
13013         (test-xfail-XPG3/limits.h/conform): Likewise.
13014         (test-xfail-XPG3/pwd.h/conform): Likewise.
13015         (test-xfail-XPG3/search.h/conform): Likewise.
13016         (test-xfail-XPG3/signal.h/conform): Likewise.
13017         (test-xfail-XPG3/stdio.h/conform): Likewise.
13018         (test-xfail-XPG3/stdlib.h/conform): Likewise.
13019         (test-xfail-XPG3/string.h/conform): Likewise.
13020         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
13021         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
13022         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
13023         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
13024         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
13025         (test-xfail-XPG3/sys/types.h/conform): Likewise.
13026         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
13027         (test-xfail-XPG3/termios.h/conform): Likewise.
13028         (test-xfail-XPG3/time.h/conform): Likewise.
13029         (test-xfail-XPG3/unistd.h/conform): Likewise.
13030         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
13031         (test-xfail-XPG4/fcntl.h/conform): Likewise.
13032         (test-xfail-XPG4/langinfo.h/conform): Likewise.
13033         (test-xfail-XPG4/netdb.h/conform): Likewise.
13034         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
13035         (test-xfail-XPG4/signal.h/conform): Likewise.
13036         (test-xfail-XPG4/stdio.h/conform): Likewise.
13037         (test-xfail-XPG4/stdlib.h/conform): Likewise.
13038         (test-xfail-XPG4/stropts.h/conform): Likewise.
13039         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
13040         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
13041         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
13042         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
13043         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
13044         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
13045         (test-xfail-XPG4/sys/time.h/conform): Likewise.
13046         (test-xfail-XPG4/sys/types.h/conform): Likewise.
13047         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
13048         (test-xfail-XPG4/termios.h/conform): Likewise.
13049         (test-xfail-XPG4/ucontext.h/conform): Likewise.
13050         (test-xfail-XPG4/unistd.h/conform): Likewise.
13051         (test-xfail-XPG4/utmpx.h/conform): Likewise.
13052         (test-xfail-POSIX/sched.h/conform): Likewise.
13053         (test-xfail-POSIX/signal.h/conform): Likewise.
13054         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
13055         (test-xfail-POSIX/tar.h/conform): Likewise.
13056         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
13057         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
13058         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
13059         (test-xfail-UNIX98/netdb.h/conform): Likewise.
13060         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
13061         (test-xfail-UNIX98/sched.h/conform): Likewise.
13062         (test-xfail-UNIX98/signal.h/conform): Likewise.
13063         (test-xfail-UNIX98/stdio.h/conform): Likewise.
13064         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
13065         (test-xfail-UNIX98/stropts.h/conform): Likewise.
13066         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
13067         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
13068         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
13069         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
13070         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
13071         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
13072         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
13073         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
13074         (test-xfail-UNIX98/unistd.h/conform): Likewise.
13075         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
13076         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
13077         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
13078         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
13079         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
13080         (test-xfail-XOPEN2K/math.h/conform): Likewise.
13081         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
13082         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
13083         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
13084         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
13085         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
13086         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
13087         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
13088         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
13089         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
13090         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
13091         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
13092         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
13093         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
13094         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
13095         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
13096         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
13097         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
13098         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
13099         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
13100         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
13101         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
13102         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
13103         (test-xfail-POSIX2008/signal.h/conform): Likewise.
13104         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
13105         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
13106         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
13107         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
13108         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
13109         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
13110         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
13111         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
13112         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
13113         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
13114         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
13115         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
13116         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
13117         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
13118         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
13119         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
13120         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
13121         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
13122         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
13123         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
13124         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
13125         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
13126         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
13127         (conformtest-cc-flags): Likewise.
13128         ($(conformtest-header-tests): New target.
13129         * conform/check-header-lists.sh: New file.
13130         * conform/run-conformtest.sh: Remove.
13131
13132         * conform/conformtest.pl: Allow ' and \ in values given for
13133         constants.
13134         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
13135         inclusion.
13136         [POSIX] (sys/types.h): Likewise.
13137         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
13138         inclusion.
13139         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
13140         inclusion.
13141         * conform/data/signal.h-data (SIGIO): Remove expectation.
13142         [XPG3] (SIGBUS): Do not expect.
13143         [POSIX || XPG3] (SIGPOLL): Likewise.
13144         [POSIX || XPG3] (SIGPROF): Likewise.
13145         [POSIX || XPG3] (SIGSYS): Likewise.
13146         [XPG3] (SIGTRAP): Likewise.
13147         [POSIX || XPG3] (SIGURG): Likewise.
13148         [POSIX || XPG3] (SIGVTALRM): Likewise.
13149         [POSIX || XPG3] (SIGXCPU): Likewise.
13150         [POSIX || XPG3] (SIGXFSZ): Likewise.
13151         [POSIX] (SA_SIGINFO): Expect.
13152         [XPG3] (siginfo_t): Do not expect type or contents.
13153         [POSIX] (si_pid): Do not expect element.
13154         [POSIX] (si_uid): Likewise.
13155         [POSIX] (si_addr): Likewise.
13156         [POSIX] (si_status): Likewise.
13157         [POSIX] (si_band): Likewise.
13158         [XPG4] (si_value): Likewise.
13159         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
13160         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
13161         [POSIX || XPG3] (ILL_ILLADR): Likewise.
13162         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
13163         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
13164         [POSIX || XPG3] (ILL_PRVREG): Likewise.
13165         [POSIX || XPG3] (ILL_COPROC): Likewise.
13166         [POSIX || XPG3] (ILL_BADSTK): Likewise.
13167         [POSIX || XPG3] (FPE_INTDIV): Likewise.
13168         [POSIX || XPG3] (FPE_INTOVF): Likewise.
13169         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
13170         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
13171         [POSIX || XPG3] (FPE_FLTUND): Likewise.
13172         [POSIX || XPG3] (FPE_FLTRES): Likewise.
13173         [POSIX || XPG3] (FPE_FLTINV): Likewise.
13174         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
13175         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
13176         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
13177         [POSIX || XPG3] (BUS_ADRALN): Likewise.
13178         [POSIX || XPG3] (BUS_ADRERR): Likewise.
13179         [POSIX || XPG3] (BUS_OBJERR): Likewise.
13180         [POSIX || XPG3] (CLD_EXITED): Likewise.
13181         [POSIX || XPG3] (CLD_KILLED): Likewise.
13182         [POSIX || XPG3] (CLD_DUMPED): Likewise.
13183         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
13184         [POSIX || XPG3] (CLD_STOPPED): Likewise.
13185         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
13186         [POSIX || XPG3] (POLL_IN): Likewise.
13187         [POSIX || XPG3] (POLL_OUT): Likewise.
13188         [POSIX || XPG3] (POLL_MSG): Likewise.
13189         [POSIX || XPG3] (POLL_ERR): Likewise.
13190         [POSIX || XPG3] (POLL_PRI): Likewise.
13191         [POSIX || XPG3] (POLL_HUP): Likewise.
13192         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
13193         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
13194         (SIG*): Do not allow.
13195         [XPG3] (si_*): Likewise.
13196         [XPG3] (SI_*): Likewise.
13197         [XPG3 || XPG4] (sigev_*): Likewise.
13198         [XPG3 || XPG4] (SIGEV_*): Likewise.
13199         [XPG3 || XPG4] (sival_*): Likewise.
13200         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
13201         [POSIX || XPG3] (BUS_*): Likewise.
13202         [POSIX || XPG3] (CLD_*): Likewise.
13203         [POSIX || XPG3] (FPE_*): Likewise.
13204         [POSIX || XPG3] (ILL_*): Likewise.
13205         [POSIX || XPG3] (POLL_*): Likewise.
13206         [POSIX || XPG3] (SEGV_*): Likewise.
13207         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
13208         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
13209         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
13210         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
13211         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
13212         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
13213         Specify type and value.
13214         (TVERSLEN): Likewise.
13215         (REGTYPE): Likewise.
13216         (AREGTYPE): Likewise.
13217         (LNKTYPE): Likewise.
13218         (SYMTYPE): Likewise.
13219         (CHRTYPE): Likewise.
13220         (BLKTYPE): Likewise.
13221         (DIRTYPE): Likewise.
13222         (FIFOTYPE): Likewise.
13223         (CONTTYPE): Likewise.
13224         (TSUID): Likewise.
13225         (TSGID): Likewise.
13226         (TSVTX): Likewise.
13227         (TUREAD): Likewise.
13228         (TUWRITE): Likewise.
13229         (TUEXEC): Likewise.
13230         (TGREAD): Likewise.
13231         (TGWRITE): Likewise.
13232         (TGEXEC): Likewise.
13233         (TOREAD): Likewise.
13234         (TOWRITE): Likewise.
13235         (TOEXEC): Likewise.
13236         [POSIX] (TSVTX): Expect constant.
13237
13238 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
13239
13240         * Makefile (tests): Change dependencies to ....
13241         (tests-special): ... additions to this variable.
13242         (tests): Depend on $(tests-special).
13243         * Makerules (check-abi-list): New variable.
13244         (check-abi): Depend on $(check-abi-list).
13245         [$(subdir) = elf] (tests-special): Add
13246         $(objpfx)check-abi-libc.out.
13247         [$(build-shared) = yes && subdir] (tests-special): Add
13248         $(check-abi-list).
13249         [$(build-shared) = yes && subdir] (tests): Do not depend on
13250         check-abi.
13251         * Rules (tests): Depend on $(tests-special).
13252         (xtests): Depend on $(xtests-special).
13253         * catgets/Makefile (tests): Change dependencies to ....
13254         (tests-special): ... additions to this variable.
13255         * conform/Makefile (tests): Change dependencies to ....
13256         (tests-special): ... additions to this variable.
13257         * elf/Makefile (tests): Change dependencies to ....
13258         (tests-special): ... additions to this variable.
13259         * grp/Makefile (tests): Change dependencies to ....
13260         (tests-special): ... additions to this variable.
13261         * iconv/Makefile (xtests): Change dependencies to ....
13262         (xtests-special): ... additions to this variable.
13263         * iconvdata/Makefile (tests): Change dependencies to ....
13264         (tests-special): ... additions to this variable.
13265         * intl/Makefile (tests): Change dependencies to ....
13266         (tests-special): ... additions to this variable.  Also add
13267         $(objpfx)tst-gettext.out.
13268         * io/Makefile (tests): Change dependencies to ....
13269         (tests-special): ... additions to this variable.
13270         * libio/Makefile (tests): Change dependencies to ....
13271         (tests-special): ... additions to this variable.
13272         * malloc/Makefile (tests): Change dependencies to ....
13273         (tests-special): ... additions to this variable.
13274         * misc/Makefile (tests): Change dependencies to ....
13275         (tests-special): ... additions to this variable.
13276         * nptl/Makefile (tests): Change dependencies to ....
13277         (tests-special): ... additions to this variable.
13278         * nptl_db/Makefile (tests): Change dependencies to ....
13279         (tests-special): ... additions to this variable.
13280         * posix/Makefile (tests): Change dependencies to ....
13281         (tests-special): ... additions to this variable.
13282         (xtests): Change dependencies to ....
13283         (xtests-special): ... additions to this variable.
13284         * resolv/Makefile (tests): Change dependencies to ....
13285         (tests-special): ... additions to this variable.
13286         (xtests): Change dependencies to ....
13287         (xtests-special): ... additions to this variable.
13288         * stdio-common/Makefile (tests): Change dependencies to ....
13289         (tests-special): ... additions to this variable.
13290         (do-tst-unbputc): Remove target.
13291         (do-tst-printf): Likewise.
13292         * stdlib/Makefile (tests): Change dependencies to ....
13293         (tests-special): ... additions to this variable.
13294         * string/Makefile (tests): Change dependencies to ....
13295         (tests-special): ... additions to this variable.
13296         * sysdeps/x86/Makefile (tests): Change dependencies to ....
13297         (tests-special): ... additions to this variable.
13298
13299         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
13300         whole file.
13301         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
13302         whole file.
13303         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
13304         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
13305
13306         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
13307         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
13308         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
13309         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
13310         * conform/data/libgen.h-data [XPG3]: Likewise.
13311         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
13312         * conform/data/ndbm.h-data [XPG3]: Likewise.
13313         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
13314         * conform/data/netdb.h-data [XPG3]: Likewise.
13315         * conform/data/netinet/in.h-data [XPG3]: Likewise.
13316         * conform/data/poll.h-data [XPG3]: Likewise.
13317         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
13318         * conform/data/strings.h-data [XPG3]: Likewise.
13319         * conform/data/stropts.h-data [XPG3]: Likewise.
13320         * conform/data/sys/mman.h-data [XPG3]: Likewise.
13321         * conform/data/sys/resource.h-data [XPG3]: Likewise.
13322         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
13323         Likewise.
13324         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
13325         * conform/data/sys/time.h-data [XPG3]: Likewise.
13326         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
13327         * conform/data/sys/uio.h-data [XPG3]: Likewise.
13328         * conform/data/sys/un.h-data [XPG3]: Likewise.
13329         * conform/data/syslog.h-data [XPG3]: Likewise.
13330         * conform/data/ucontext.h-data [XPG3]: Likewise.
13331         * conform/data/utmpx.h-data [XPG3]: Likewise.
13332         * conform/data/varargs.h-data [UNIX98]: Enable file.
13333
13334         * manual/Makefile (INSTALL_INFO): Remove variable setting.
13335
13336         * math/libm-test.inc (struct test_f_f_data): Move expected results
13337         into structure for each rounding mode.
13338         (struct test_ff_f_data): Likewise.
13339         (struct test_ff_f_data_nexttoward): Likewise.
13340         (struct test_fi_f_data): Likewise.
13341         (struct test_fl_f_data): Likewise.
13342         (struct test_if_f_data): Likewise.
13343         (struct test_fff_f_data): Likewise.
13344         (struct test_c_f_data): Likewise.
13345         (struct test_f_f1_data): Likewise.
13346         (struct test_fF_f1_data): Likewise.
13347         (struct test_ffI_f1_data): Likewise.
13348         (struct test_c_c_data): Likewise.
13349         (struct test_cc_c_data): Likewise.
13350         (struct test_f_i_data): Likewise.
13351         (struct test_ff_i_data): Likewise.
13352         (struct test_f_l_data): Likewise.
13353         (struct test_f_L_data): Likewise.
13354         (struct test_fFF_11_data): Likewise.
13355         (RM_): New macro.
13356         (RM_FE_DOWNWARD): Likewise.
13357         (RM_FE_TONEAREST): Likewise.
13358         (RM_FE_TOWARDZERO): Likewise.
13359         (RM_FE_UPWARD): Likewise.
13360         (RUN_TEST_LOOP_f_f): Update references to expected results.
13361         (RUN_TEST_LOOP_2_f): Likewise.
13362         (RUN_TEST_LOOP_fff_f): Likewise.
13363         (RUN_TEST_LOOP_c_f): Likewise.
13364         (RUN_TEST_LOOP_f_f1): Likewise.
13365         (RUN_TEST_LOOP_fF_f1): Likewise.
13366         (RUN_TEST_LOOP_fI_f1): Likewise.
13367         (RUN_TEST_LOOP_ffI_f1): Likewise.
13368         (RUN_TEST_LOOP_c_c): Likewise.
13369         (RUN_TEST_LOOP_cc_c): Likewise.
13370         (RUN_TEST_LOOP_f_i): Likewise.
13371         (RUN_TEST_LOOP_f_i_tg): Likewise.
13372         (RUN_TEST_LOOP_ff_i_tg): Likewise.
13373         (RUN_TEST_LOOP_f_b): Likewise.
13374         (RUN_TEST_LOOP_f_b_tg): Likewise.
13375         (RUN_TEST_LOOP_f_l): Likewise.
13376         (RUN_TEST_LOOP_f_L): Likewise.
13377         (RUN_TEST_LOOP_fFF_11): Likewise.
13378         * math/gen-libm-test.pl (parse_args): Output four copies of
13379         expected results for each test.
13380
13381         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
13382         (__ASSUME_UTIMES): Remove.
13383         * sysdeps/unix/sysv/linux/tile/kernel-features.h
13384         (__ASSUME_UTIMES): Likewise.
13385
13386         * math/gen-auto-libm-tests.c: Update comment on output format.
13387         (output_for_one_input_case): Generate before-rounding and
13388         after-rounding information as conditions on output flags not
13389         floating-point format.
13390         * math/auto-libm-test-out: Regenerated.
13391         * math/gen-libm-test.pl (cond_value): New function.
13392         (or_cond_value): Use cond_value.
13393         (generate_testfile): Handle conditional exceptions.
13394
13395 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
13396
13397         * math/libm-test.inc (max_valid_error): New variable.
13398         (init_max_error): Take new argument specifying whether function
13399         results are exactly determined.  Set max_valid_error and bound
13400         other variables for errors based on this argument.
13401         (set_max_error): Do not record results above max_valid_error.
13402         (check_float_internal): Only accept errors of up to 0.5ulps if
13403         also at most max_valid_error.
13404         (START): Take new argument EXACT and pass it to init_max_error.
13405         (acos_test): Update call to START.
13406         (acos_test_tonearest): Likewise.
13407         (acos_test_towardzero): Likewise.
13408         (acos_test_downward): Likewise.
13409         (acos_test_upward): Likewise.
13410         (acosh_test): Likewise.
13411         (asin_test): Likewise.
13412         (asin_test_tonearest): Likewise.
13413         (asin_test_towardzero): Likewise.
13414         (asin_test_downward): Likewise.
13415         (asin_test_upward): Likewise.
13416         (asinh_test): Likewise.
13417         (atan_test): Likewise.
13418         (atanh_test): Likewise.
13419         (atan2_test): Likewise.
13420         (cabs_test): Likewise.
13421         (cacos_test): Likewise.
13422         (cacosh_test): Likewise.
13423         (carg_test): Likewise.
13424         (casin_test): Likewise.
13425         (casinh_test): Likewise.
13426         (catan_test): Likewise.
13427         (catanh_test): Likewise.
13428         (cbrt_test): Likewise.
13429         (ccos_test): Likewise.
13430         (ccosh_test): Likewise.
13431         (ceil_test): Likewise.
13432         (cexp_test): Likewise.
13433         (cimag_test): Likewise.
13434         (clog_test): Likewise.
13435         (clog10_test): Likewise.
13436         (conj_test): Likewise.
13437         (copysign_test): Likewise.
13438         (cos_test): Likewise.
13439         (cos_test_tonearest): Likewise.
13440         (cos_test_towardzero): Likewise.
13441         (cos_test_downward): Likewise.
13442         (cos_test_upward): Likewise.
13443         (cosh_test): Likewise.
13444         (cosh_test_tonearest): Likewise.
13445         (cosh_test_towardzero): Likewise.
13446         (cosh_test_downward): Likewise.
13447         (cosh_test_upward): Likewise.
13448         (cpow_test): Likewise.
13449         (cproj_test): Likewise.
13450         (creal_test): Likewise.
13451         (csin_test): Likewise.
13452         (csinh_test): Likewise.
13453         (csqrt_test): Likewise.
13454         (ctan_test): Likewise.
13455         (ctan_test_tonearest): Likewise.
13456         (ctan_test_towardzero): Likewise.
13457         (ctan_test_downward): Likewise.
13458         (ctan_test_upward): Likewise.
13459         (ctanh_test): Likewise.
13460         (ctanh_test_tonearest): Likewise.
13461         (ctanh_test_towardzero): Likewise.
13462         (ctanh_test_downward): Likewise.
13463         (ctanh_test_upward): Likewise.
13464         (erf_test): Likewise.
13465         (erfc_test): Likewise.
13466         (exp_test): Likewise.
13467         (exp_test_tonearest): Likewise.
13468         (exp_test_towardzero): Likewise.
13469         (exp_test_downward): Likewise.
13470         (exp_test_upward): Likewise.
13471         (exp10_test): Likewise.
13472         (exp10_test_tonearest): Likewise.
13473         (exp10_test_towardzero): Likewise.
13474         (exp10_test_downward): Likewise.
13475         (exp10_test_upward): Likewise.
13476         (pow10_test): Likewise.
13477         (exp2_test): Likewise.
13478         (expm1_test): Likewise.
13479         (expm1_test_tonearest): Likewise.
13480         (expm1_test_towardzero): Likewise.
13481         (expm1_test_downward): Likewise.
13482         (expm1_test_upward): Likewise.
13483         (fabs_test): Likewise.
13484         (fdim_test): Likewise.
13485         (floor_test): Likewise.
13486         (fma_test): Likewise.
13487         (fma_test_towardzero): Likewise.
13488         (fma_test_downward): Likewise.
13489         (fma_test_upward): Likewise.
13490         (fmax_test): Likewise.
13491         (fmin_test): Likewise.
13492         (fmod_test): Likewise.
13493         (fpclassify_test): Likewise.
13494         (frexp_test): Likewise.
13495         (hypot_test): Likewise.
13496         (ilogb_test): Likewise.
13497         (isfinite_test): Likewise.
13498         (finite_test): Likewise.
13499         (isgreater_test): Likewise.
13500         (isgreaterequal_test): Likewise.
13501         (isinf_test): Likewise.
13502         (isless_test): Likewise.
13503         (islessequal_test): Likewise.
13504         (islessgreater_test): Likewise.
13505         (isnan_test): Likewise.
13506         (isnormal_test): Likewise.
13507         (issignaling_test): Likewise.
13508         (isunordered_test): Likewise.
13509         (j0_test): Likewise.
13510         (j1_test): Likewise.
13511         (jn_test): Likewise.
13512         (ldexp_test): Likewise.
13513         (lgamma_test): Likewise.
13514         (gamma_test): Likewise.
13515         (lrint_test): Likewise.
13516         (lrint_test_tonearest): Likewise.
13517         (lrint_test_towardzero): Likewise.
13518         (lrint_test_downward): Likewise.
13519         (lrint_test_upward): Likewise.
13520         (llrint_test): Likewise.
13521         (llrint_test_tonearest): Likewise.
13522         (llrint_test_towardzero): Likewise.
13523         (llrint_test_downward): Likewise.
13524         (llrint_test_upward): Likewise.
13525         (log_test): Likewise.
13526         (log10_test): Likewise.
13527         (log1p_test): Likewise.
13528         (log2_test): Likewise.
13529         (logb_test): Likewise.
13530         (logb_test_downward): Likewise.
13531         (lround_test): Likewise.
13532         (llround_test): Likewise.
13533         (modf_test): Likewise.
13534         (nearbyint_test): Likewise.
13535         (nextafter_test): Likewise.
13536         (nexttoward_test): Likewise.
13537         (pow_test): Likewise.
13538         (pow_test_tonearest): Likewise.
13539         (pow_test_towardzero): Likewise.
13540         (pow_test_downward): Likewise.
13541         (pow_test_upward): Likewise.
13542         (remainder_test): Likewise.
13543         (drem_test): Likewise.
13544         (remainder_test_tonearest): Likewise.
13545         (drem_test_tonearest): Likewise.
13546         (remainder_test_towardzero): Likewise.
13547         (drem_test_towardzero): Likewise.
13548         (remainder_test_downward): Likewise.
13549         (drem_test_downward): Likewise.
13550         (remainder_test_upward): Likewise.
13551         (drem_test_upward): Likewise.
13552         (remquo_test): Likewise.
13553         (rint_test): Likewise.
13554         (rint_test_tonearest): Likewise.
13555         (rint_test_towardzero): Likewise.
13556         (rint_test_downward): Likewise.
13557         (rint_test_upward): Likewise.
13558         (round_test): Likewise.
13559         (scalb_test): Likewise.
13560         (scalbn_test): Likewise.
13561         (scalbln_test): Likewise.
13562         (signbit_test): Likewise.
13563         (sin_test): Likewise.
13564         (sin_test_tonearest): Likewise.
13565         (sin_test_towardzero): Likewise.
13566         (sin_test_downward): Likewise.
13567         (sin_test_upward): Likewise.
13568         (sincos_test): Likewise.
13569         (sinh_test): Likewise.
13570         (sinh_test_tonearest): Likewise.
13571         (sinh_test_towardzero): Likewise.
13572         (sinh_test_downward): Likewise.
13573         (sinh_test_upward): Likewise.
13574         (sqrt_test): Likewise.
13575         (sqrt_test_tonearest): Likewise.
13576         (sqrt_test_towardzero): Likewise.
13577         (sqrt_test_downward): Likewise.
13578         (sqrt_test_upward): Likewise.
13579         (tan_test): Likewise.
13580         (tan_test_tonearest): Likewise.
13581         (tan_test_towardzero): Likewise.
13582         (tan_test_downward): Likewise.
13583         (tan_test_upward): Likewise.
13584         (tanh_test): Likewise.
13585         (tgamma_test): Likewise.
13586         (trunc_test): Likewise.
13587         (y0_test): Likewise.
13588         (y1_test): Likewise.
13589         (yn_test): Likewise.
13590         (significand_test): Likewise.
13591
13592         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
13593         individual tests in comment.
13594         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
13595         (prev_max_error): New variable.
13596         (prev_real_max_error): Likewise.
13597         (prev_imag_max_error): Likewise.
13598         (compare_ulp_data): Don't refer to test names in comment.
13599         (find_test_ulps): Remove function.
13600         (find_function_ulps): Likewise.
13601         (find_complex_function_ulps): Likewise.
13602         (init_max_error): Take function name as argument.  Look up ulps
13603         for that function.
13604         (print_ulps): Remove function.
13605         (print_max_error): Use prev_max_error instead of calling
13606         find_function_ulps.
13607         (print_complex_max_error): Use prev_real_max_error and
13608         prev_imag_max_error instead of calling find_complex_function_ulps.
13609         (check_float_internal): Take max_ulp parameter instead of calling
13610         find_test_ulps.  Don't call print_ulps.
13611         (check_float): Update call to check_float_internal.
13612         (check_complex): Update calls to check_float_internal.
13613         (START): Pass argument to init_max_error.
13614         * math/gen-libm-test.pl (%results): Don't include "kind"
13615         information.
13616         (parse_ulps): Don't handle ulps of individual tests.
13617         (print_ulps_file): Likewise.
13618         (output_ulps): Likewise.
13619         * math/README.libm-test: Update.
13620         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
13621         individual tests.
13622         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
13623         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
13624         * sysdeps/arm/libm-test-ulps: Likewise.
13625         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
13626         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
13627         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
13628         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
13629         * sysdeps/microblaze/libm-test-ulps: Likewise.
13630         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
13631         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
13632         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
13633         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
13634         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
13635         * sysdeps/sh/libm-test-ulps: Likewise.
13636         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
13637         * sysdeps/tile/libm-test-ulps: Likewise.
13638         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13639
13640 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
13641
13642         * math/libm-test.inc (print_complex_max_error): Check separately
13643         whether real and imaginary errors are within allowed range and
13644         pass 0 to print_complex_function_ulps instead of value within
13645         allowed range.
13646
13647 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
13648
13649         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
13650         formatting.
13651         (get_handles_fopen): Likewise.
13652         (do_write_test): Likewise.
13653
13654         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
13655
13656         * libio/fileops.c (do_ftell): Use cached offset when
13657         available.
13658         * libio/iofwide.c (do_ftell_wide): Likewise.
13659         * libio/iofdopen.c (_IO_new_fdopen): Don't use
13660         _IO_file_attach.
13661         * libio/wfileops.c (_IO_fwide): Don't cache offset.
13662
13663         [BZ #16532]
13664         * libio/libioP.h (get_file_offset): New function.
13665         * libio/fileops.c (get_file_offset): Likewise.
13666         (do_ftell): Likewise.
13667         (_IO_new_file_seekoff): Split out ftell logic.
13668         * libio/wfileops.c (do_ftell_wide): Likewise.
13669         (_IO_wfile_seekoff): Split out ftell logic.
13670         * libio/tst-ftell-active-handler.c: New test case.
13671         * libio/Makefile (tests): Add it.
13672
13673 2014-03-03  Roland McGrath  <roland@hack.frob.com>
13674
13675         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
13676         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
13677
13678 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
13679
13680         [BZ #16639]
13681         * nscd/connections.c (nscd_init): Call do_exit.
13682         (start_threads): Call do_exit and notify_parent.
13683         (begin_drop_privileges): Call do_exit.
13684         (finish_drop_privileges): Likewise.
13685         * nscd/selinux.c (preserve_capabilities): Likewise.
13686         (install_real_capabilities): Likewise.
13687         (nscd_selinux_enabled): Likewise.
13688         (avc_create_thread): Likewise.
13689         (avc_alloc_lock): Likewise.
13690         (nscd_avc_init): Likewise.
13691         * nscd/nscd.c (parent_fd): New static variable.
13692         (main): Create a pipe between parent and child processes.
13693         Skip closing parent_fd.
13694         (monitor_child): New function.
13695         (do_exit): Likewise.
13696         (notify_parent): Likewise.
13697         * nscd/nscd.h (notify_parent): Likewise.
13698         (do_exit): Likewise.
13699
13700 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
13701
13702         * malloc/malloc.c (__libc_calloc): Revert last change.
13703
13704 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13705
13706         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13707
13708 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
13709
13710         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
13711         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
13712         implementation.
13713         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
13714         (__libc_ifunc_impl_list): Likewise.
13715         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
13716         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
13717         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
13718         * string/strrchr.c: Define STRRCHR.
13719
13720 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
13721
13722         * benchtest/bench-strtok.c (simple_strtok): Delete.
13723         (strtok_string): Use as benchmark.
13724         * string/strtok (STRTOK): New macro.
13725
13726 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
13727
13728         * manual/threads.texi: Add header and standard comments to all
13729         functions.
13730
13731         * elf/dl-lookup.c (check_match): New function.
13732         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
13733         (do_lookup_x): Remove nested function check_match. Use non-nested
13734         function check_match.
13735
13736 2014-02-28  Roland McGrath  <roland@hack.frob.com>
13737
13738         * csu/Makefile (generated, before-compile): Use += rather than =.
13739         * catgets/Makefile (generated, generated-dirs): Likewise.
13740         * debug/Makefile (generated): Likewise.
13741         * dlfcn/Makefile (generated): Likewise.
13742         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
13743         * iconvdata/Makefile (before-compile, generated): Likewise.
13744         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
13745         * libio/Makefile (generated): Likewise.
13746         * malloc/Makefile (generated): Likewise.
13747         * manual/Makefile (generated, generated-dirs): Likewise.
13748         * misc/Makefile (generated): Likewise.
13749         * posix/Makefile (generated): Likewise.
13750         * resolv/Makefile (generated): Likewise.
13751         * sunrpc/Makefile (generated, generated-dirs): Likewise.
13752         * timezone/Makefile (generated, generated-dirs): Likewise.
13753
13754         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
13755
13756 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13757
13758         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
13759         power8 implementation.
13760         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
13761         file: POWER8 llround ifunc implementation.
13762         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
13763         (__lllround): Add POWER8 implementation.
13764         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
13765         POWER8 llround implementation.
13766
13767         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
13768         power8 implementation.
13769         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
13770         file: POWER8 llrint ifunc implementation.
13771         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
13772         Add POWER8 implementation.
13773         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
13774         POWER8 llrint implementation.
13775
13776         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
13777         power8 implementation.
13778         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
13779         file: POWER8 finite ifunc implementation.
13780         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
13781         Add POWER8 implementation.
13782         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
13783         Likewise.
13784         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
13785         POWER8 finite implementation.
13786         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
13787
13788         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
13789         power8 implementation.
13790         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
13791         file: POWER8 isinf ifunc implementation.
13792         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
13793         POWER8 implementation.
13794         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
13795         Likewise.
13796         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
13797         isinf implementation.
13798         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
13799
13800         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
13801         (INIT_ARCH): Add hwcap2 initialization.
13802         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
13803         power8 implementation.
13804         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
13805         file: POWER8 isnan ifunc implementation.
13806         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
13807         POWER8 implementation.
13808         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
13809         Likewise.
13810         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
13811         isnan implementation.
13812         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
13813
13814 2014-02-27  Joey Ye  <joey.ye@arm.com>
13815
13816         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
13817         (_FP_NANFRAC_Q): Set to zero.
13818
13819 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
13820
13821         [BZ #16623]
13822         * math/auto-libm-test-in: New test inputs.
13823         * math/auto-libm-test-out: Regenerate.
13824         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
13825         and DA.
13826         (__cos): Likewise.
13827         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
13828
13829 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
13830
13831         * scripts/evaluate-test.sh: Take new argument indicating whether
13832         failure is expected.
13833         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
13834         indicating whether failure is expected.
13835         * conform/Makefile (test-xfail-run-conformtest): New variable.
13836         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
13837         level.
13838         * posix/Makefile (test-xfail-annexc): New variable.
13839         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
13840
13841 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
13842
13843         * argp/Makefile: Include Makeconfig immediately after defining
13844         subdir.
13845         * assert/Makefile: Likewise.
13846         * benchtests/Makefile: Likewise.
13847         * catgets/Makefile: Likewise.
13848         * conform/Makefile: Likewise.
13849         * crypt/Makefile: Likewise.
13850         * csu/Makefile: Likewise.
13851         (all): Remove target.
13852         * ctype/Makefile: Include Makeconfig immediately after defining
13853         subdir.
13854         * debug/Makefile: Likewise.
13855         * dirent/Makefile: Likewise.
13856         * dlfcn/Makefile: Likewise.
13857         * gmon/Makefile: Likewise.
13858         * gnulib/Makefile: Likewise.
13859         * grp/Makefile: Likewise.
13860         * gshadow/Makefile: Likewise.
13861         * hesiod/Makefile: Likewise.
13862         * hurd/Makefile: Likewise.
13863         (all): Remove target.
13864         * iconvdata/Makefile: Include Makeconfig immediately after
13865         defining subdir.
13866         * inet/Makefile: Likewise.
13867         * intl/Makefile: Likewise.
13868         * io/Makefile: Likewise.
13869         * libio/Makefile: Likewise.
13870         (all): Remove target.
13871         * locale/Makefile: Include Makeconfig immediately after defining
13872         subdir.
13873         * login/Makefile: Likewise.
13874         * mach/Makefile: Likewise.
13875         (all): Remove target.
13876         * malloc/Makefile: Include Makeconfig immediately after defining
13877         subdir.
13878         (all): Remove target.
13879         * manual/Makefile: Include Makeconfig immediately after defining
13880         subdir.
13881         * math/Makefile: Likewise.
13882         * misc/Makefile: Likewise.
13883         * nis/Makefile: Likewise.
13884         * nss/Makefile: Likewise.
13885         * po/Makefile: Likewise.
13886         (all): Remove target.
13887         * posix/Makefile: Include Makeconfig immediately after defining
13888         subdir.
13889         * pwd/Makefile: Likewise.
13890         * resolv/Makefile: Likewise.
13891         * resource/Makefile: Likewise.
13892         * rt/Makefile: Likewise.
13893         * setjmp/Makefile: Likewise.
13894         * shadow/Makefile: Likewise.
13895         * signal/Makefile: Likewise.
13896         * socket/Makefile: Likewise.
13897         * soft-fp/Makefile: Likewise.
13898         * stdio-common/Makefile: Likewise.
13899         * stdlib/Makefile: Likewise.
13900         * streams/Makefile: Likewise.
13901         * string/Makefile: Likewise.
13902         * sunrpc/Makefile: Likewise.
13903         (all): Remove target.
13904         * sysvipc/Makefile: Include Makeconfig immediately after defining
13905         subdir.
13906         * termios/Makefile: Likewise.
13907         * time/Makefile: Likewise.
13908         * timezone/Makefile: Likewise.
13909         (all): Remove target.
13910         * wcsmbs/Makefile: Include Makeconfig immediately after defining
13911         subdir.
13912         * wctype/Makefile: Likewise.
13913
13914 2014-02-26  Steve Ellcey  <sellcey@mips.com>
13915
13916         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
13917         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
13918         (libc_feholdexcept_setround_mips): Ditto.
13919         (libc_feholdsetround): New.
13920         (libc_feholdsetroundf): New.
13921         (libc_feholdsetroundl): New.
13922         (libc_feupdateenv_test_mips): New.
13923         (libc_feupdateenv_test): New.
13924         (libc_feupdateenv_testf): New.
13925         (libc_feupdateenv_testl): New.
13926         (libc_feresetround): New.
13927         (libc_feresetroundf): New.
13928         (libc_feresetroundl): New.
13929         (libc_fetestexcept_mips): New.
13930         (libc_fetestexcept): New.
13931         (libc_fetestexceptf): New.
13932         (libc_fetestexceptl): New.
13933         (HAVE_RM_CTX): New.
13934         (libc_feholdexcept_setround_mips_ctx): New.
13935         (libc_feholdexcept_setround_ctx): New.
13936         (libc_feholdexcept_setroundf_ctx): New.
13937         (libc_feholdexcept_setroundl_ctx): New.
13938         (libc_fesetenv_mips_ctx): New.
13939         (libc_fesetenv_ctx): New.
13940         (libc_fesetenv_ctxf): New.
13941         (libc_fesetenv_ctxl): New.
13942         (libc_feupdateenv_mips_ctx): New.
13943         (libc_feupdateenv_ctx): New.
13944         (libc_feupdateenvf_ctx): New.
13945         (libc_feupdateenvl_ctx): New.
13946         (libc_feholdsetround_mips_ctx): New.
13947         (libc_feholdsetround_ctx): New.
13948         (libc_feholdsetroundf_ctx): New.
13949         (libc_feholdsetroundl_ctx): New.
13950         (libc_feresetround_mips_ctx): New.
13951         (libc_feresetround_ctx): New.
13952         (libc_feresetroundf_ctx): New.
13953         (libc_feresetroundl_ctx): New.
13954
13955 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
13956
13957         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
13958
13959         * manual/ipc.texi: New file.
13960         * manual/Makefile (chapters): Add ipc.
13961         * manual/job.texi: Add "Inter-Process Communication" to next.
13962         * manual/process.texi: Add "Inter-Process Communication" to prev.
13963
13964 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13965
13966         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13967
13968 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
13969
13970         * malloc/malloc.c (__libc_calloc): Simplify implementation.
13971
13972         * manual/arith.texi: Fix spaces after sentences.
13973         * manual/charset.texi: Likewise.
13974         * manual/errno.texi: Likewise.
13975         * manual/install.texi: Likewise.
13976         * manual/llio.texi: Likewise.
13977         * manual/locale.texi: Likewise.
13978         * manual/maint.texi: Likewise.
13979         * manual/math.texi: Likewise.
13980         * manual/memory.texi: Likewise.
13981         * manual/message.texi: Likewise.
13982         * manual/probes.texi: Likewise.
13983         * manual/resource.texi: Likewise.
13984         * manual/signal.texi: Likewise.
13985         * manual/socket.texi: Likewise.
13986         * manual/stdio.texi: Likewise.
13987         * manual/string.texi: Likewise.
13988         * manual/time.texi: Likewise.
13989         * manual/users.texi: Likewise.
13990
13991 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
13992
13993         [BZ #16632]
13994         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
13995         _DEFAULT_SOURCE is defined.
13996
13997 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
13998             Carlos O'Donell  <carlos@redhat.com>
13999
14000         [BZ #16613]
14001         * elf/dl-tls.c (_dl_count_modids): New function.
14002         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
14003         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
14004         audit library and increment generation counter.
14005         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
14006         * elf/tst-audit9.c: New file.
14007         * elf/tst-auditmod9a.c: New file.
14008         * elf/tst-auditmod9b.c: New file.
14009         * elf/Makefile: Add rules to build and run tst-audit9.
14010
14011 2014-02-25  Florian Weimer  <fweimer@redhat.com>
14012
14013         [BZ #15347]
14014         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
14015
14016 2014-02-25  Will Newton  <will.newton@linaro.org>
14017
14018         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
14019         (__longjmp): Restore sp and lr before restoring callee
14020         saved registers.  Add longjmp and longjmp_target
14021         SystemTap probe point.
14022         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
14023         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
14024         Define to zero to match jmpbuf layout.
14025         * sysdeps/arm/setjmp.S: Include stap-probe.h.
14026         (__sigsetjmp): Save sp and lr before saving callee
14027         saved registers.  Add setjmp SystemTap probe point.
14028
14029 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
14030
14031         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
14032
14033 2014-02-24  Andreas Schwab  <schwab@suse.de>
14034
14035         [BZ #15804]
14036         * elf/pldd.c (wait_for_ptrace_stop): New function.
14037         (main): Call it after attaching.
14038
14039 2014-02-22  Roland McGrath  <roland@hack.frob.com>
14040
14041         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
14042         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
14043         Versions files is now verboten.
14044         * hurd/Versions (libc: GLIBC_2.0):
14045         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
14046         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
14047         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
14048         * mach/Versions: Likewise.
14049
14050         * csu/Versions: Remove unused %include.
14051         * resolv/Versions: Likewise.
14052
14053 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
14054
14055         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
14056         ($(objpfx)check-local-headers.out): Likewise.
14057         ($(objpfx)begin-end-check.out): Likewise.
14058         * Makerules (check-abi-%.out): Likewise.
14059         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
14060         ($(objpfx)test2.cat): Likewise.
14061         ($(objpfx)de/libc.cat): Likewise.
14062         ($(objpfx)test-gencat.out): Likewise.
14063         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
14064         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
14065         ($(objpfx)noload-mem): Likewise.
14066         ($(objpfx)tst-pathopt.out): Likewise.
14067         ($(objpfx)tst-rtld-load-self.out): Likewise.
14068         ($(objpfx)tst-array1-cmp.out): Likewise.
14069         ($(objpfx)tst-array1-static-cmp.out): Likewise.
14070         ($(objpfx)tst-array2-cmp.out): Likewise.
14071         ($(objpfx)tst-array3-cmp.out): Likewise.
14072         ($(objpfx)tst-array4-cmp.out): Likewise.
14073         ($(objpfx)tst-array5-cmp.out): Likewise.
14074         ($(objpfx)tst-array5-static-cmp.out): Likewise.
14075         ($(objpfx)check-textrel.out): Likewise.
14076         ($(objpfx)check-execstack.out): Likewise.
14077         ($(objpfx)check-localplt.out): Likewise.
14078         ($(objpfx)order2-cmp.out): Likewise.
14079         ($(objpfx)tst-leaks1-mem): Likewise.
14080         ($(objpfx)tst-leaks1-static-mem): Likewise.
14081         ($(objpfx)tst-initorder-cmp.out): Likewise.
14082         ($(objpfx)tst-initorder2-cmp.out): Likewise.
14083         ($(objpfx)tst-unused-dep.out): Likewise.
14084         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
14085         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
14086         * iconv/Makefile (test-iconvconfig): Likewise.
14087         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
14088         ($(objpfx)iconv-test.out): Likewise.
14089         ($(objpfx)tst-tables.out): Likewise.
14090         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
14091         ($(objpfx)tst-gettext.out): Likewise.
14092         ($(objpfx)tst-translit.out): Likewise.
14093         ($(objpfx)tst-gettext2.out): Likewise.
14094         ($(objpfx)tst-gettext4.out): Likewise.
14095         ($(objpfx)tst-gettext6.out): Likewise.
14096         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
14097         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
14098         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
14099         ($(objpfx)tst-fopenloc-mem.out): Likewise.
14100         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
14101         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
14102         * posix/Makefile ($(objpfx)globtest.out): Likewise.
14103         ($(objpfx)wordexp-tst.out): Likewise.
14104         ($(objpfx)annexc.out): Likewise.
14105         ($(objpfx)tst-fnmatch-mem): Likewise.
14106         ($(objpfx)bug-regex2-mem): Likewise.
14107         ($(objpfx)bug-regex14-mem): Likewise.
14108         ($(objpfx)bug-regex21-mem): Likewise.
14109         ($(objpfx)bug-regex31-mem): Likewise.
14110         ($(objpfx)tst-vfork3-mem): Likewise.
14111         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
14112         ($(objpfx)tst-pcre-mem): Likewise.
14113         ($(objpfx)tst-boost-mem): Likewise.
14114         ($(objpfx)tst-getconf.out): Likewise.
14115         ($(objpfx)bug-ga2-mem): Likewise.
14116         ($(objpfx)bug-glob2-mem): Likewise.
14117         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
14118         ($(objpfx)mtrace-tst-leaks2): Likewise.
14119         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
14120         ($(objpfx)tst-printf.out): Likewise.
14121         ($(objpfx)tst-setvbuf1.out): Likewise.
14122         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
14123         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
14124         ($(objpfx)tst-fmtmsg.out): Likewise.
14125         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
14126         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
14127
14128         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
14129         * bits/sigaction.h [__USE_MISC]: Likewise.
14130         * bits/waitstatus.h: Update #endif comments.
14131         * ctype/ctype.h: Likewise.
14132         * dirent/dirent.h: Likewise.
14133         [__USE_MISC]: Remove redundant conditionals.
14134         * grp/grp.h: Update #endif comments.
14135         [__USE_GNU]: Remove redundant conditionals.
14136         [__USE_MISC]: Likewise.
14137         * inet/netinet/in.h [__USE_GNU]: Likewise.
14138         * io/sys/stat.h [__USE_MISC]: Likewise.
14139         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
14140         * libio/bits/stdio.h: Update #endif comments.
14141         [__USE_MISC]: Remove redundant conditionals.
14142         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
14143         * libio/stdio.h: Update #endif comments.
14144         [__USE_MISC]: Remove redundant conditionals.
14145         * math/bits/math-finite.h [__USE_MISC]: Likewise.
14146         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
14147         * math/math.h: Update #else and #endif comments.
14148         [__USE_MISC]: Remove redundant conditionals.
14149         * misc/sys/uio.h: Update #endif comments.
14150         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
14151         * posix/glob.h [__USE_MISC]: Likewise.
14152         * posix/sys/types.h: Update #endif comments.
14153         [__USE_MISC]: Remove redundant conditionals.
14154         * posix/sys/wait.h: Update #endif comments.
14155         [__USE_MISC]: Remove redundant conditionals.
14156         * posix/unistd.h: Update #endif comments.
14157         [__USE_MISC]: Remove redundant conditionals.
14158         * pwd/pwd.h [__USE_GNU]: Likewise.
14159         [__USE_MISC]: Likewise.
14160         * resolv/netdb.h [__USE_GNU]: Likewise.
14161         * signal/signal.h: Update #endif comments.
14162         [__USE_MISC]: Remove redundant conditionals.
14163         * stdlib/stdlib.h: Update #else and #endif comments.
14164         [__USE_MISC]: Remove redundant conditionals.
14165         [__USE_GNU]: Likewise.
14166         * string/bits/string2.h [__USE_MISC]: Likewise.
14167         * string/string.h: Update #endif comments.
14168         [__USE_MISC]: Remove redundant conditionals.
14169         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
14170         Likewise.
14171         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
14172         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
14173         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
14174         Likewise.
14175         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
14176         Likewise.
14177         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
14178         comments.
14179         [__USE_MISC]: Remove redundant conditionals.
14180         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
14181         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
14182         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
14183         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
14184         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
14185         Likewise.
14186         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
14187         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
14188         Likewise.
14189         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
14190         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
14191         Likewise.
14192         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
14193         Likewise.
14194         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
14195         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
14196         Likewise.
14197         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
14198         Likewise.
14199         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
14200         * sysdeps/x86/bits/string.h: Update #endif comments.
14201         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
14202         conditionals.
14203         * time/sys/time.h: Update #endif comments.
14204         * time/time.h: Likewise.
14205         [__USE_MISC]: Remove redundant conditionals.
14206
14207 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
14208
14209         [BZ #16600]
14210         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
14211
14212 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
14213
14214         * Versions.def (librt): Add GLIBC_2.17.
14215
14216 2014-02-21  Adam Conrad  <adconrad@0c3.net>
14217
14218         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
14219         synonym for _SYS_AUXV_H to allow direct inclusion.
14220         * sysdeps/sparc/bits/hwcap.h: Likewise.
14221         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
14222         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
14223         * sysdeps/sparc/sysdep.h: Likewise.
14224
14225 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
14226
14227         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
14228
14229 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
14230
14231         * benchtests/bench-strrchr.c: Print length instead of position.
14232
14233 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
14234
14235         [BZ #16611]
14236         * sysdeps/unix/sysv/linux/kernel-features.h
14237         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
14238         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
14239         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
14240         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
14241         Likewise.
14242         [__i386__ || __powerpc__ || __sh__ || __sparc__]
14243         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
14244         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
14245         (__ASSUME_SENDMMSG): Define instead of using previous
14246         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
14247         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
14248         (__ASSUME_SENDMMSG_SYSCALL): Define.
14249         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14250         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
14251         Likewise.
14252         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14253         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
14254         Likewise.
14255         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14256         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
14257         Likewise.
14258         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
14259         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
14260         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
14261         [__ASSUME_SENDMMSG]: Change conditionals to
14262         [__ASSUME_SENDMMSG_SOCKETCALL].
14263         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14264         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
14265         Define.
14266         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14267         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
14268         Likewise.
14269         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
14270         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
14271         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
14272         [!__ASSUME_SENDMMSG]: Change conditional to
14273         [!__ASSUME_SENDMMSG_SOCKETCALL].
14274         * sysdeps/unix/sysv/linux/tile/kernel-features.h
14275         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
14276         Define.
14277
14278         [BZ #16610]
14279         * sysdeps/unix/sysv/linux/kernel-features.h
14280         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
14281         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
14282         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
14283         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
14284         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
14285         [__i386__ || __sparc__]
14286         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
14287         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
14288         (__ASSUME_RECVMMSG): Define instead of using previous
14289         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
14290         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
14291         (__ASSUME_RECVMMSG_SYSCALL): Define.
14292         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14293         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
14294         Likewise.
14295         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14296         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
14297         Likewise.
14298         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14299         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
14300         Likewise.
14301         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
14302         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
14303         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
14304         [__ASSUME_RECVMMSG]: Change condition to
14305         [__ASSUME_RECVMMSG_SOCKETCALL].
14306         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14307         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
14308         Define.
14309         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
14310         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14311         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
14312         Likewise.
14313         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
14314         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
14315         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
14316         [!__ASSUME_RECVMMSG]: Change condition to
14317         [!__ASSUME_RECVMMSG_SOCKETCALL].
14318         * sysdeps/unix/sysv/linux/tile/kernel-features.h
14319         (__ASSUME_RECVMMSG_SYSCALL): Define.
14320
14321         [BZ #16609]
14322         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
14323         __powerpc__ || __s390__ || __sh__ || __sparc__]
14324         (__ASSUME_SOCKETCALL): Define.
14325         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
14326         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
14327         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
14328         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
14329         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
14330         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
14331         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
14332         (__ASSUME_ACCEPT4): Define instead of using previous
14333         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
14334         __powerpc__ || __sparc__ || __s390__)] condition.
14335         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
14336         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
14337         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
14338         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
14339         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
14340         [!__ASSUME_ACCEPT4]: Change condition to
14341         [!__ASSUME_ACCEPT4_SOCKETCALL].
14342         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
14343         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
14344         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
14345         * sysdeps/unix/sysv/linux/arm/kernel-features.h
14346         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
14347         __ASSUME_ACCEPT4_SYSCALL.
14348         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
14349         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
14350         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
14351         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
14352         __ASSUME_ACCEPT4_SYSCALL.
14353         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
14354         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
14355         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
14356         [__ASSUME_ACCEPT4]: Change condition to
14357         [__ASSUME_ACCEPT4_SOCKETCALL].
14358         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
14359         (__ASSUME_SOCKETCALL): Define.
14360         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
14361         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
14362         (__ASSUME_SOCKETCALL): Define.
14363         (__ASSUME_ACCEPT4): Remove.
14364         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
14365         Define.
14366         * sysdeps/unix/sysv/linux/mips/kernel-features.h
14367         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
14368         Likewise.
14369         * sysdeps/unix/sysv/linux/tile/kernel-features.h
14370         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
14371
14372         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
14373         macro.
14374         (HWCAP_ARM_LPAE): Likewise.
14375         (HWCAP_ARM_EVTSTRM): Likewise.
14376         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
14377         Add vpfd32, lpae and evtstrm.
14378         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
14379         Increase to 22.
14380
14381 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
14382
14383         * math/auto-libm-test-in: Add tests of clog10.
14384         * math/auto-libm-test-out: Regenerated.
14385         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
14386         * sysdeps/i386/fpu/libm-test-ulps: Update.
14387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14388
14389 2014-02-18  Andreas Schwab  <schwab@suse.de>
14390
14391         [BZ #16574]
14392         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
14393         Store non-zero if the second buffer was newly allocated.
14394         (send_dg): Likewise.
14395         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
14396         to send_vc and send_dg.
14397         (res_nsend): Pass NULL for ansp2_malloced.
14398         * resolv/res_query.c (__libc_res_nquery): Add parameter
14399         answerp2_malloced and pass it down to __libc_res_nsend.
14400         (res_nquery): Pass additional NULL to __libc_res_nquery.
14401         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
14402         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
14403         second answer buffer if answerp2_malloced was set.
14404         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
14405         (__libc_res_nquerydomain): Add parameter
14406         answerp2_malloced and pass it down to __libc_res_nquery.
14407         (res_nquerydomain): Pass additional NULL to
14408         __libc_res_nquerydomain.
14409         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
14410         additional NULL to __libc_res_nsend and __libc_res_nquery.
14411         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
14412         additional NULL to __libc_res_nsearch.
14413         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
14414         parameter of __libc_res_nsearch to check for separately allocated
14415         second buffer.
14416         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
14417         __libc_res_nquery.
14418         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
14419         additional NULL to __libc_res_nquery.
14420         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
14421         __libc_res_nsearch.
14422         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
14423         * include/resolv.h: Update prototypes of __libc_res_nquery,
14424         __libc_res_nsearch, __libc_res_nsend.
14425
14426 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
14427
14428         * math/auto-libm-test-in: Add tests of fma.
14429         * math/auto-libm-test-out: Regenerated.
14430         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
14431         (fma_towardzero_test_data): Likewise.
14432         (fma_downward_test_data): Likewise.
14433         (fma_upward_test_data): Likewise.
14434         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
14435         mpc_mode.
14436         (rounding_modes): Add values for new field.
14437         (func_calc_method): Add value mpfr_fff_f.
14438         (func_calc_desc): Add mpfr_fff_f union field.
14439         (test_function): Add field exact_args.
14440         (FUNC): Add macro argument EXACT_ARGS.
14441         (FUNC_mpfr_f_f): Update call to FUNC.
14442         (FUNC_mpfr_f_f): Likewise.
14443         (FUNC_mpfr_ff_f): Likewise.
14444         (FUNC_mpfr_if_f): Likewise.
14445         (FUNC_mpc_c_f): Likewise.
14446         (FUNC_mpc_c_c): Likewise.
14447         (test_functions): Add fma.  Update calls to FUNC.
14448         (handle_input_arg): Add argument exact_args.
14449         (add_test): Update call to handle_input_arg.
14450         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
14451         (output_for_one_input_case): Update call to calc_generic_results.
14452         Recalculate exact zero results in each rounding mode.
14453
14454         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
14455         non-negative before setting low bit.
14456         * math/auto-libm-test-in: Mark one asin test possibly having
14457         spurious underflow.
14458         * math/auto-libm-test-out: Regenerated.
14459         * sysdeps/i386/fpu/libm-test-ulps: Update.
14460         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14461
14462 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
14463
14464         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
14465         * sysdeps/unix/sysv/linux/microblaze: Move directory from
14466         ports/sysdeps/unix/sysv/linux/microblaze.
14467         * README: Add missing listing for microblaze*-*-linux-gnu.
14468
14469 2014-02-16  Ondřej Bílka  <neleai@seznam.cz>
14470
14471         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Remove
14472         duplicate code
14473
14474 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
14475
14476         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
14477         * sysdeps/unix/sysv/linux/ia64: Move directory from
14478         ports/sysdeps/unix/sysv/linux/ia64.
14479         * README: Update listing for ia64-*-linux-gnu.
14480
14481 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
14482             Joseph Myers  <joseph@codesourcery.com>
14483
14484         * Makeconfig (test-name): New variable.
14485         (evaluate-test): Likewise.
14486         * Makerules (do-test-clean): Remove .test-result files.
14487         (common-mostlyclean): Likewise.
14488         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
14489         * scripts/evaluate-test.sh: New file.
14490
14491 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
14492
14493         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
14494         separate $(objpfx)tst-fopenloc-cmp.out and
14495         $(objpfx)tst-fopenloc-mem.out targets.
14496         (tests): Update dependencies.
14497         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
14498         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
14499         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
14500         (tst-rxspencer-no-utf8-ARGS): New variable.
14501         (tst-rxspencer-no-utf8-ENV): Likewise.
14502         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
14503         instead of $(objpfx)tst-rxspencer-mem.
14504         ($(objpfx)tst-rxspencer-mem): Change target to
14505         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
14506         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
14507         * posix/tst-rxspencer-no-utf8.c: New file.
14508
14509         * elf/Makefile ($(objpfx)order.out): Remove rule.
14510         [$(run-built-tests) = yes] (tests): Depend on
14511         $(objpfx)order-cmp.out.
14512         ($(objpfx)order-cmp.out): New rule.
14513         [$(run-built-tests) = yes] (tests): Depend on
14514         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
14515         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
14516         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
14517         $(objpfx)tst-array5-static-cmp.out.
14518         ($(objpfx)tst-array1.out): Remove rule.
14519         ($(objpfx)tst-array1-cmp.out): New rule.
14520         ($(objpfx)tst-array1-static.out): Remove rule.
14521         ($(objpfx)tst-array1-static-cmp.out): New rule.
14522         ($(objpfx)tst-array2.out): Remove rule.
14523         ($(objpfx)tst-array2-cmp.out): New rule.
14524         ($(objpfx)tst-array3.out): Remove rule.
14525         ($(objpfx)tst-array3-cmp.out): New rule.
14526         ($(objpfx)tst-array4.out): Remove rule.
14527         ($(objpfx)tst-array4-cmp.out): New rule.
14528         ($(objpfx)tst-array5.out): Remove rule.
14529         ($(objpfx)tst-array5-cmp.out): New rule.
14530         ($(objpfx)tst-array5-static.out): Remove rule.
14531         ($(objpfx)tst-array5-static-cmp.out): New rule.
14532         [$(run-built-tests) = yes] (tests): Depend on
14533         $(objpfx)order2-cmp.out.
14534         ($(objpfx)order2.out): Remove rule.
14535         ($(objpfx)order2-cmp.out): New rule.
14536         ($(objpfx)tst-initorder.out): Remove rule.
14537         [$(run-built-tests) = yes] (tests): Depend on
14538         $(objpfx)tst-initorder-cmp.out.
14539         ($(objpfx)tst-initorder-cmp.out): New rule.
14540         ($(objpfx)tst-initorder2.out): Remove rule.
14541         [$(run-built-tests) = yes] (tests): Depend on
14542         $(objpfx)tst-initorder2-cmp.out.
14543         ($(objpfx)tst-initorder2-cmp.out): New rule.
14544         [$(run-built-tests) = yes] (tests): Depend on
14545         $(objpfx)tst-unused-dep-cmp.out.
14546         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
14547         ($(objpfx)tst-unused-dep-cmp.out): New rule.
14548         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
14549         on $(objpfx)tst-setvbuf1-cmp.out.
14550         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
14551         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
14552         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
14553         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
14554         ($(objpfx)tst-svc.out): Remove rule.
14555         ($(objpfx)tst-svc-cmp.out): New rule.
14556
14557 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
14558
14559         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
14560         * ctype/ctype.h [__USE_MISC]: Likewise.
14561         * dirent/dirent.h [__USE_MISC]: Likewise.
14562         * grp/grp.h [__USE_MISC]: Likewise.
14563         * io/fcntl.h [__USE_MISC]: Likewise.
14564         * io/sys/stat.h [__USE_MISC]: Likewise.
14565         * libio/stdio.h [__USE_MISC]: Likewise.
14566         * posix/unistd.h [__USE_MISC]: Likewise.
14567         * pwd/pwd.h [__USE_MISC]: Likewise.
14568         * stdlib.h [__USE_MISC]: Likewise.
14569         * string/bits/string2.h [__USE_MISC]: Likewise.
14570         * string/string.h [__USE_MISC]: Likewise.
14571         * time/time.h [__USE_MISC]: Likewise.
14572
14573 2014-02-13  Andreas Schwab  <schwab@suse.de>
14574
14575         [BZ #16574]
14576         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
14577         second answer buffer if it was separately allocated.
14578
14579 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
14580
14581         * sysdeps/mips/math-tests.h: Include <features.h>.
14582         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
14583         (ROUNDING_TESTS_long_double): Do not define.
14584         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
14585         (EXCEPTION_TESTS_long_double): Likewise.
14586         * sysdeps/mips/mips64/libm-test-ulps: Update.
14587
14588         * include/features.h (__USE_BSD): Remove macro definitions.
14589         (__USE_SVID): Likewise.
14590         (_BSD_SOURCE): Likewise.
14591         (_SVID_SOURCE): Likewise.
14592         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
14593         from definition of _DEFAULT_SOURCE.
14594         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
14595         [_DEFAULT_SOURCE].
14596         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
14597         * bits/mman.h [__USE_BSD]: Likewise.
14598         * bits/termios.h [__USE_BSD]: Likewise.
14599         * bits/waitstatus.h [__USE_BSD]: Likewise.
14600         * ctype/ctype.h [__USE_SVID]: Likewise.
14601         * dirent/dirent.h [__USE_BSD]: Likewise.
14602         * grp/grp.h [__USE_SVID]: Likewise.
14603         [__USE_BSD]: Likewise.
14604         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
14605         * io/fcntl.h [__USE_BSD]: Likewise.
14606         * io/ftw.h [__USE_BSD]: Likewise.
14607         * io/sys/stat.h [__USE_BSD]: Likewise.
14608         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
14609         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
14610         * libio/stdio.h [__USE_SVID]: Likewise.
14611         [__USE_BSD]: Likewise.
14612         * math/math.h [__USE_SVID]: Likewise.
14613         [__USE_BSD]: Likewise.
14614         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
14615         * misc/bits/syslog.h [__USE_BSD]: Likewise.
14616         * misc/search.h [__USE_SVID]: Likewise.
14617         * misc/sys/mman.h [__USE_BSD]: Likewise.
14618         * misc/sys/syslog.h [__USE_BSD]: Likewise.
14619         * misc/sys/uio.h [__USE_BSD]: Likewise.
14620         * posix/bits/unistd.h [__USE_BSD]: Likewise.
14621         * posix/glob.h [__USE_BSD]: Likewise.
14622         * posix/regex.h [__USE_BSD]: Likewise.
14623         * posix/sys/types.h [__USE_BSD]: Likewise.
14624         [__USE_SVID]: Likewise.
14625         * posix/sys/utsname.h [__USE_SVID]: Likewise.
14626         * posix/sys/wait.h [__USE_BSD]: Likewise.
14627         [__USE_SVID]: Likewise.
14628         * posix/unistd.h [__USE_BSD]: Likewise.
14629         [__USE_SVID]: Likewise.
14630         * pwd/pwd.h [__USE_SVID]: Likewise.
14631         * resolv/netdb.h [__USE_BSD]: Likewise.
14632         * setjmp/setjmp.h [__USE_BSD]: Likewise.
14633         * signal/signal.h [__USE_BSD]: Likewise.
14634         [__USE_SVID]: Likewise.
14635         * socket/sys/socket.h [__USE_BSD]: Likewise.
14636         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
14637         * stdlib/stdlib.h [__USE_BSD]: Likewise.
14638         [__USE_SVID]: Likewise.
14639         * string/bits/string2.h [__USE_BSD]: Likewise.
14640         [__USE_SVID]: Likewise.
14641         * string/bits/string3.h [__USE_BSD]: Likewise.
14642         * string/endian.h [__USE_BSD]: Likewise.
14643         * string/string.h [__USE_SVID]: Likewise.
14644         [__USE_BSD]: Likewise.
14645         * string/strings.h [__USE_BSD]: Likewise.
14646         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
14647         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
14648         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
14649         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
14650         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
14651         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
14652         Likewise.
14653         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
14654         Likewise.
14655         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
14656         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
14657         Likewise.
14658         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
14659         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
14660         Likewise.
14661         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
14662         Likewise.
14663         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
14664         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
14665         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
14666         Likewise.
14667         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
14668         Likewise.
14669         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
14670         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
14671         * termios/termios.h [__USE_BSD]: Likewise.
14672         * time/sys/time.h [__USE_BSD]: Likewise.
14673         * time/time.h [__USE_BSD]: Likewise.
14674         [__USE_SVID]: Likewise.
14675
14676         * Makefile (subdir_targets): Remove subdir_lint.out.
14677
14678         * stdio-common/Makefile (do-tst-unbputc): Remove target.
14679         (do-tst-printf): Likewise.
14680         (tests): Depend directly on $(objpfx)tst-unbputc.out and
14681         $(objpfx)tst-printf.out.
14682
14683         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
14684
14685         * Makerules (check-abi-%): Change target to
14686         $(objpfx)check-abi-%.out.
14687         (check-abi target): Update dependencies.
14688         (check-abi-pattern variable): Redirect output of diff to $@.
14689         (check-abi variable): Likewise.
14690         * elf/Makefile (check-abi): Update dependencies.
14691
14692         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
14693         unused.
14694         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
14695         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
14696         subnormal range.
14697         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
14698         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
14699         value has largest subnormal exponent.
14700         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
14701         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
14702         * sysdeps/aarch64/soft-fp/sfp-machine.h
14703         (_FP_TININESS_AFTER_ROUNDING): New macro.
14704         * sysdeps/alpha/soft-fp/sfp-machine.h
14705         (_FP_TININESS_AFTER_ROUNDING): Likewise.
14706         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
14707         Likewise.
14708         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
14709         (_FP_TININESS_AFTER_ROUNDING): Likewise.
14710         * sysdeps/mips/soft-fp/sfp-machine.h
14711         (_FP_TININESS_AFTER_ROUNDING): Likewise.
14712         * sysdeps/powerpc/soft-fp/sfp-machine.h
14713         (_FP_TININESS_AFTER_ROUNDING): Likewise.
14714         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
14715         Likewise.
14716         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
14717         (_FP_TININESS_AFTER_ROUNDING): Likewise.
14718         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
14719         (_FP_TININESS_AFTER_ROUNDING): Likewise.
14720         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
14721         Likewise.
14722
14723 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
14724
14725         [BZ #16545]
14726         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
14727         model 1.
14728
14729 2014-02-12  Richard Henderson  <rth@redhat.com>
14730
14731         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
14732         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
14733         * sysdeps/unix/sysv/linux/alpha: Move directory from
14734         ports/sysdeps/unix/sysv/linux/alpha.
14735         * README: Update listing for alpha-*-linux-gnu.
14736
14737 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
14738
14739         * include/features.h: Update comment documenting feature test
14740         macros.
14741         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
14742         _DEFAULT_SOURCE.
14743         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
14744         (_SVID_SOURCE): Likewise.
14745         (_DEFAULT_SOURCE): Update description of default features.
14746         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
14747         with _GNU_SOURCE.
14748         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
14749         (S_ISVTX): Likewise.
14750         * manual/math.texi (Mathematical Constants): Likewise.
14751         * manual/signal.texi (Interrupted Primitives): Likewise.
14752         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
14753         * math/test-matherr.c (_SVID_SOURCE): Do not define.
14754         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
14755         Don't refer to _SVID_SOURCE in warning text.
14756
14757         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14758
14759         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
14760         already defined.
14761         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
14762         * sysdeps/mips/dl-lookup.c: Remove.
14763         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
14764
14765 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
14766
14767         [BZ #16447]
14768         * math/auto-libm-test-in: Add testcase for expl.
14769         * math/auto-libm-test-out: Regenerate.
14770         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
14771         calculation of unsafe.
14772         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
14773
14774 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
14775
14776         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
14777         * sysdeps/unix/sysv/linux/aarch64: Move directory from
14778         ports/sysdeps/unix/sysv/linux/aarch64.
14779         * README: Update listing for aarch64*-*-linux-gnu.
14780
14781 2014-02-11  Will Newton  <will.newton@linaro.org>
14782
14783         * manual/probes.texi (Mathematical Function Probes): Use
14784         "triggered" instead of "hit".
14785
14786         * manual/probes.texi (Internal Probes): Add documentation
14787         of setjmp, longjmp and longjmp_target probes.
14788
14789         * include/stap-probe.h: Add comment about probe argument
14790         format.
14791
14792         * malloc/mtrace.c (attribute_hidden): Remove unused macro
14793         definition.  (tr_where, tr_freehook, tr_mallochook,
14794         tr_reallochook, tr_memalignhook): Use ANSI protoype.
14795
14796 2014-02-11  David S. Miller  <davem@davemloft.net>
14797
14798         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
14799         processing int_tests.
14800
14801 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
14802
14803         * sysdeps/mips: Move directory from ports/sysdeps/mips.
14804         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
14805         * sysdeps/unix/sysv/linux/mips: Move directory from
14806         ports/sysdeps/unix/sysv/linux/mips.
14807         * README: Update listing for mips-*-linux-gnu and
14808         mips64-*-linux-gnu.
14809
14810 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
14811
14812         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
14813         * sysdeps/unix/sysv/linux/m68k: Move directory from
14814         ports/sysdeps/unix/sysv/linux/m68k.
14815         * README: Update listing for m68k-*-linux-gnu.
14816
14817 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
14818
14819         * sysdeps/tile: Move directory from ports/sysdeps/tile.
14820         * sysdeps/unix/sysv/linux/generic: Move directory from
14821         ports/sysdeps/unix/sysv/linux/generic.
14822         * sysdeps/unix/sysv/linux/tile: Move directory from
14823         ports/sysdeps/unix/sysv/linux/tile.
14824         * README: Update listing for tile*-*-linux-gnu.
14825
14826 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
14827
14828         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
14829         __builtin_expect.
14830         * benchtests/bench-memmem.c (simple_memmem): Likewise.
14831         * catgets/open_catalog.c (__open_catalog): Likewise.
14832         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
14833         * debug/confstr_chk.c: Likewise.
14834         * debug/fread_chk.c (__fread_chk): Likewise.
14835         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
14836         * debug/getgroups_chk.c: Likewise.
14837         * debug/mbsnrtowcs_chk.c: Likewise.
14838         * debug/mbsrtowcs_chk.c: Likewise.
14839         * debug/mbstowcs_chk.c: Likewise.
14840         * debug/memcpy_chk.c: Likewise.
14841         * debug/memmove_chk.c: Likewise.
14842         * debug/mempcpy_chk.c: Likewise.
14843         * debug/memset_chk.c: Likewise.
14844         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
14845         * debug/strcat_chk.c (__strcat_chk): Likewise.
14846         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
14847         * debug/strncat_chk.c (__strncat_chk): Likewise.
14848         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
14849         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
14850         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
14851         * debug/wcpncpy_chk.c: Likewise.
14852         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
14853         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
14854         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
14855         * debug/wcsncpy_chk.c: Likewise.
14856         * debug/wcsnrtombs_chk.c: Likewise.
14857         * debug/wcsrtombs_chk.c: Likewise.
14858         * debug/wcstombs_chk.c: Likewise.
14859         * debug/wmemcpy_chk.c: Likewise.
14860         * debug/wmemmove_chk.c: Likewise.
14861         * debug/wmempcpy_chk.c: Likewise.
14862         * debug/wmemset_chk.c: Likewise.
14863         * dirent/scandirat.c (SCANDIRAT): Likewise.
14864         * dlfcn/dladdr1.c (dladdr1): Likewise.
14865         * dlfcn/dladdr.c (dladdr): Likewise.
14866         * dlfcn/dlclose.c (dlclose_doit): Likewise.
14867         * dlfcn/dlerror.c (__dlerror): Likewise.
14868         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
14869         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
14870         * dlfcn/dlopen.c (dlopen_doit): Likewise.
14871         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
14872         * dlfcn/dlsym.c (dlsym_doit): Likewise.
14873         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
14874         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
14875         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
14876         Likewise.
14877         * elf/dl-conflict.c: Likewise.
14878         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
14879         * elf/dl-dst.h: Likewise.
14880         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
14881         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
14882         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
14883         * elf/dl-init.c (call_init, _dl_init): Likewise.
14884         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
14885         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
14886         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
14887         Likewise.
14888         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
14889         Likewise.
14890         * elf/dl-minimal.c (__libc_memalign): Likewise.
14891         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
14892         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
14893         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
14894         * elf/dl-sym.c (do_sym): Likewise.
14895         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
14896         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
14897         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
14898         * elf/dl-writev.h (_dl_writev): Likewise.
14899         * elf/ldconfig.c (search_dir): Likewise.
14900         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
14901         (dl_main): Likewise.
14902         * elf/setup-vdso.h (setup_vdso): Likewise.
14903         * grp/compat-initgroups.c (compat_call): Likewise.
14904         * grp/fgetgrent.c (fgetgrent): Likewise.
14905         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
14906         * grp/putgrent.c (putgrent): Likewise.
14907         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
14908         Likewise.
14909         * hurd/hurdinit.c: Likewise.
14910         * iconvdata/8bit-gap.c (struct): Likewise.
14911         * iconvdata/ansi_x3.110.c : Likewise.
14912         * iconvdata/big5.c : Likewise.
14913         * iconvdata/big5hkscs.c : Likewise.
14914         * iconvdata/cp1255.c: Likewise.
14915         * iconvdata/cp1258.c : Likewise.
14916         * iconvdata/cp932.c : Likewise.
14917         * iconvdata/euc-cn.c: Likewise.
14918         * iconvdata/euc-jisx0213.c : Likewise.
14919         * iconvdata/euc-jp.c: Likewise.
14920         * iconvdata/euc-jp-ms.c : Likewise.
14921         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
14922         * iconvdata/gb18030.c : Likewise.
14923         * iconvdata/gbbig5.c (const): Likewise.
14924         * iconvdata/gbgbk.c: Likewise.
14925         * iconvdata/gbk.c : Likewise.
14926         * iconvdata/ibm1364.c : Likewise.
14927         * iconvdata/ibm930.c : Likewise.
14928         * iconvdata/ibm932.c: Likewise.
14929         * iconvdata/ibm933.c : Likewise.
14930         * iconvdata/ibm935.c : Likewise.
14931         * iconvdata/ibm937.c : Likewise.
14932         * iconvdata/ibm939.c : Likewise.
14933         * iconvdata/ibm943.c: Likewise.
14934         * iconvdata/iso_11548-1.c: Likewise.
14935         * iconvdata/iso-2022-cn.c : Likewise.
14936         * iconvdata/iso-2022-cn-ext.c : Likewise.
14937         * iconvdata/iso-2022-jp-3.c: Likewise.
14938         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
14939         * iconvdata/iso-2022-kr.c : Likewise.
14940         * iconvdata/iso646.c (gconv_end): Likewise.
14941         * iconvdata/iso_6937-2.c : Likewise.
14942         * iconvdata/iso_6937.c : Likewise.
14943         * iconvdata/iso8859-1.c: Likewise.
14944         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
14945         * iconvdata/shift_jisx0213.c : Likewise.
14946         * iconvdata/sjis.c : Likewise.
14947         * iconvdata/t.61.c : Likewise.
14948         * iconvdata/tcvn5712-1.c : Likewise.
14949         * iconvdata/tscii.c: Likewise.
14950         * iconvdata/uhc.c : Likewise.
14951         * iconvdata/unicode.c (gconv_end): Likewise.
14952         * iconvdata/utf-16.c (gconv_end): Likewise.
14953         * iconvdata/utf-32.c (gconv_end): Likewise.
14954         * iconvdata/utf-7.c (base64): Likewise.
14955         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
14956         * iconv/gconv_close.c (__gconv_close): Likewise.
14957         * iconv/gconv_open.c (__gconv_open): Likewise.
14958         * iconv/gconv_simple.c (internal_ucs4_loop_single)
14959         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
14960         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
14961         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
14962         (ucs4le_internal_loop_single): Likewise.
14963         * iconv/iconv.c (iconv): Likewise.
14964         * iconv/iconv_close.c: Likewise.
14965         * iconv/loop.c (SINGLE): Likewise.
14966         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
14967         * include/atomic.h: Likewise.
14968         * inet/inet6_option.c (option_alloc): Likewise.
14969         * intl/bindtextdom.c (set_binding_values): Likewise.
14970         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
14971         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
14972         * intl/localealias.c (read_alias_file): Likewise.
14973         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
14974         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
14975         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
14976         * libio/fmemopen.c (fmemopen): Likewise.
14977         * libio/iofgets.c (_IO_fgets): Likewise.
14978         * libio/iofgets_u.c (fgets_unlocked): Likewise.
14979         * libio/iofgetws.c (fgetws): Likewise.
14980         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
14981         * libio/iogetdelim.c (_IO_getdelim): Likewise.
14982         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
14983         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
14984         * locale/findlocale.c (_nl_find_locale): Likewise.
14985         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
14986         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
14987         Likewise.
14988         * locale/setlocale.c (setlocale): Likewise.
14989         * login/programs/pt_chown.c (main): Likewise.
14990         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
14991         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
14992         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
14993         (mmap, mmap64, mremap, munmap): Likewise.
14994         * math/e_exp2l.c: Likewise.
14995         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
14996         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
14997         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
14998         * math/s_catan.c (__catan): Likewise.
14999         * math/s_catanf.c (__catanf): Likewise.
15000         * math/s_catanh.c (__catanh): Likewise.
15001         * math/s_catanhf.c (__catanhf): Likewise.
15002         * math/s_catanhl.c (__catanhl): Likewise.
15003         * math/s_catanl.c (__catanl): Likewise.
15004         * math/s_ccosh.c (__ccosh): Likewise.
15005         * math/s_ccoshf.c (__ccoshf): Likewise.
15006         * math/s_ccoshl.c (__ccoshl): Likewise.
15007         * math/s_cexp.c (__cexp): Likewise.
15008         * math/s_cexpf.c (__cexpf): Likewise.
15009         * math/s_cexpl.c (__cexpl): Likewise.
15010         * math/s_clog10.c (__clog10): Likewise.
15011         * math/s_clog10f.c (__clog10f): Likewise.
15012         * math/s_clog10l.c (__clog10l): Likewise.
15013         * math/s_clog.c (__clog): Likewise.
15014         * math/s_clogf.c (__clogf): Likewise.
15015         * math/s_clogl.c (__clogl): Likewise.
15016         * math/s_csin.c (__csin): Likewise.
15017         * math/s_csinf.c (__csinf): Likewise.
15018         * math/s_csinh.c (__csinh): Likewise.
15019         * math/s_csinhf.c (__csinhf): Likewise.
15020         * math/s_csinhl.c (__csinhl): Likewise.
15021         * math/s_csinl.c (__csinl): Likewise.
15022         * math/s_csqrt.c (__csqrt): Likewise.
15023         * math/s_csqrtf.c (__csqrtf): Likewise.
15024         * math/s_csqrtl.c (__csqrtl): Likewise.
15025         * math/s_ctan.c (__ctan): Likewise.
15026         * math/s_ctanf.c (__ctanf): Likewise.
15027         * math/s_ctanh.c (__ctanh): Likewise.
15028         * math/s_ctanhf.c (__ctanhf): Likewise.
15029         * math/s_ctanhl.c (__ctanhl): Likewise.
15030         * math/s_ctanl.c (__ctanl): Likewise.
15031         * math/w_pow.c: Likewise.
15032         * math/w_powf.c: Likewise.
15033         * math/w_powl.c: Likewise.
15034         * math/w_scalb.c (sysv_scalb): Likewise.
15035         * math/w_scalbf.c (sysv_scalbf): Likewise.
15036         * math/w_scalbl.c (sysv_scalbl): Likewise.
15037         * misc/error.c (error_tail): Likewise.
15038         * misc/pselect.c (__pselect): Likewise.
15039         * nis/nis_callback.c (__nis_create_callback): Likewise.
15040         * nis/nis_call.c (__nisfind_server): Likewise.
15041         * nis/nis_creategroup.c (nis_creategroup): Likewise.
15042         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
15043         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
15044         * nis/nis_getservlist.c (nis_getservlist): Likewise.
15045         * nis/nis_lookup.c (nis_lookup): Likewise.
15046         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
15047         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
15048         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
15049         * nis/nis_xdr.c (xdr_endpoint): Likewise.
15050         * nis/nss_compat/compat-grp.c (getgrent_next_file)
15051         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
15052         * nis/nss_compat/compat-initgroups.c (add_group)
15053         (internal_getgrent_r): Likewise.
15054         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
15055         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
15056         * nis/nss_compat/compat-spwd.c (getspent_next_file)
15057         (internal_getspnam_r): Likewise.
15058         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
15059         (_nss_nis_getaliasbyname_r): Likewise.
15060         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
15061         (_nss_nis_getntohost_r): Likewise.
15062         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
15063         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
15064         (_nss_nis_getgrgid_r): Likewise.
15065         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
15066         (internal_nis_gethostent_r, internal_gethostbyname2_r)
15067         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
15068         (_nss_nis_gethostbyname4_r): Likewise.
15069         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
15070         (initgroups_netid): Likewise.
15071         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
15072         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
15073         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
15074         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
15075         (_nss_nis_getprotobynumber_r): Likewise.
15076         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
15077         (_nss_nis_getsecretkey): Likewise.
15078         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
15079         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
15080         (_nss_nis_getpwuid_r): Likewise.
15081         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
15082         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
15083         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
15084         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
15085         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
15086         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
15087         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
15088         Likewise.
15089         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
15090         (_nss_nisplus_getntohost_r): Likewise.
15091         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
15092         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
15093         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
15094         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
15095         Likewise.
15096         * nis/nss_nisplus/nisplus-initgroups.c
15097         (_nss_nisplus_initgroups_dyn): Likewise.
15098         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
15099         (_nss_nisplus_getnetbyaddr_r): Likewise.
15100         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
15101         (_nss_nisplus_getprotobynumber_r): Likewise.
15102         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
15103         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
15104         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
15105         Likewise.
15106         * nis/nss_nisplus/nisplus-service.c
15107         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
15108         (_nss_nisplus_getservbyport_r): Likewise.
15109         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
15110         (_nss_nisplus_getspnam_r): Likewise.
15111         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
15112         Likewise.
15113         * nscd/aicache.c (addhstaiX): Likewise.
15114         * nscd/cache.c (cache_search, prune_cache): Likewise.
15115         * nscd/connections.c (register_traced_file, send_ro_fd)
15116         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
15117         (main_loop_epoll): Likewise.
15118         * nscd/grpcache.c (addgrbyX): Likewise.
15119         * nscd/hstcache.c (addhstbyX): Likewise.
15120         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15121         * nscd/mem.c (gc, mempool_alloc): Likewise.
15122         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
15123         (addinnetgrX): Likewise.
15124         * nscd/nscd-client.h (__nscd_acquire_maplock)
15125         (__nscd_drop_map_ref): Likewise.
15126         * nscd/nscd_getai.c (__nscd_getai): Likewise.
15127         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
15128         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
15129         Likewise.
15130         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
15131         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
15132         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
15133         (__nscd_get_map_ref): Likewise.
15134         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
15135         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
15136         Likewise.
15137         * nscd/pwdcache.c (addpwbyX): Likewise.
15138         * nscd/selinux.c (preserve_capabilities): Likewise.
15139         * nscd/servicescache.c (addservbyX): Likewise.
15140         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
15141         * posix/fnmatch.c (fnmatch): Likewise.
15142         * posix/getopt.c (_getopt_internal_r): Likewise.
15143         * posix/glob.c (glob, glob_in_dir): Likewise.
15144         * posix/wordexp.c (exec_comm_child): Likewise.
15145         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
15146         (getanswer_r, gaih_getanswer_slice): Likewise.
15147         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
15148         * resolv/res_init.c: Likewise.
15149         * resolv/res_mkquery.c (res_nmkquery): Likewise.
15150         * resolv/res_query.c (__libc_res_nquery): Likewise.
15151         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
15152         Likewise.
15153         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
15154         * stdio-common/perror.c (perror): Likewise.
15155         * stdio-common/printf_fp.c (___printf_fp): Likewise.
15156         * stdio-common/tmpnam.c (tmpnam): Likewise.
15157         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
15158         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
15159         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
15160         Likewise.
15161         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
15162         * stdlib/putenv.c (putenv): Likewise.
15163         * stdlib/setenv.c (__add_to_environ): Likewise.
15164         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
15165         * stdlib/strtol_l.c (INTERNAL): Likewise.
15166         * string/memmem.c (memmem): Likewise.
15167         * string/strerror.c (strerror): Likewise.
15168         * string/strnlen.c (__strnlen): Likewise.
15169         * string/test-memmem.c (simple_memmem): Likewise.
15170         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
15171         * sunrpc/pm_getport.c (__get_socket): Likewise.
15172         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
15173         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
15174         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
15175         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
15176         Likewise.
15177         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
15178         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
15179         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
15180         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
15181         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
15182         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
15183         Likewise.
15184         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
15185         Likewise.
15186         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
15187         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
15188         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
15189         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
15190         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
15191         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
15192         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
15193         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
15194         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
15195         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
15196         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
15197         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
15198         Likewise.
15199         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
15200         Likewise.
15201         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
15202         Likewise.
15203         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
15204         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
15205         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
15206         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
15207         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
15208         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
15209         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
15210         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
15211         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
15212         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
15213         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
15214         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15215         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
15216         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
15217         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15218         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
15219         Likewise.
15220         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
15221         Likewise.
15222         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
15223         Likewise.
15224         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
15225         Likewise.
15226         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
15227         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15228         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
15229         Likewise.
15230         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
15231         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
15232         * sysdeps/posix/opendir.c (__opendirat): Likewise.
15233         * sysdeps/posix/sleep.c: Likewise.
15234         * sysdeps/posix/tempname.c: Likewise.
15235         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
15236         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
15237         Likewise.
15238         * sysdeps/powerpc/powerpc32/dl-machine.h
15239         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
15240         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
15241         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
15242         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
15243         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
15244         Likewise.
15245         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
15246         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
15247         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
15248         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
15249         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
15250         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
15251         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
15252         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
15253         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
15254         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
15255         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
15256         (elf_machine_lazy_rel): Likewise.
15257         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
15258         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
15259         (elf_machine_lazy_rel): Likewise.
15260         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
15261         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
15262         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
15263         * sysdeps/unix/grantpt.c (grantpt): Likewise.
15264         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
15265         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
15266         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
15267         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
15268         Likewise.
15269         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
15270         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
15271         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
15272         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
15273         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
15274         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
15275         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
15276         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
15277         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
15278         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
15279         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
15280         Likewise.
15281         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
15282         (__posix_fallocate64_l64): Likewise.
15283         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
15284         (posix_fallocate): Likewise.
15285         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
15286         Likewise.
15287         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
15288         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
15289         (getifaddrs_internal): Likewise.
15290         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
15291         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
15292         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
15293         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
15294         * sysdeps/unix/sysv/linux/posix_fallocate64.c
15295         (__posix_fallocate64_l64): Likewise.
15296         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
15297         Likewise.
15298         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
15299         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
15300         (__get_clockfreq): Likewise.
15301         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
15302         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
15303         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
15304         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
15305         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
15306         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
15307         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
15308         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
15309         Likewise.
15310         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
15311         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
15312         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
15313         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
15314         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15315         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
15316         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
15317         Likewise.
15318         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
15319         (posix_fallocate): Likewise.
15320         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
15321         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
15322         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
15323         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
15324         (elf_machine_rela, elf_machine_rela_relative)
15325         (elf_machine_lazy_rel): Likewise.
15326         * time/asctime.c (asctime_internal): Likewise.
15327         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
15328         * time/tzset.c (__tzset_parse_tz): Likewise.
15329         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
15330         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
15331         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
15332         * wcsmbs/wcsmbsload.h: Likewise.
15333
15334         [BZ #15894]
15335         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
15336
15337         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
15338         (arena_get2): Remove THREAD_STATS conditionals.
15339         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
15340         (__malloc_stats, int): Likewise.
15341
15342 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
15343
15344         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
15345         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
15346
15347         * manual/setjmp.texi: Fix typos/grammar errors.
15348
15349         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
15350         Only return early when n is <= 0.  Delete unused return statement.
15351
15352         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
15353         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
15354         * debug/tst-longjmp_chk3.c: New file.
15355
15356         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
15357         (test_main): Replace code with set_fortify_handler call.
15358         * debug/test-strcpy_chk.c: Likewise.
15359         * debug/tst-chk1.c: Likewise.
15360         * debug/tst-longjmp_chk.c: Likewise.
15361         * test-skeleton.c: Include fcntl.h & paths.h
15362         (set_fortify_handler): Define.
15363
15364         * debug/tst-longjmp_chk.c: Add header comment and include
15365         ../test-skeleton.c.
15366         (do_test): Mark static.
15367         (TEST_FUNCTION): Define.
15368
15369         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
15370         (IP_PMTUDISC_INTERFACE): Likewise.
15371         (IP_MULTICAST_IF): Likewise.
15372         (IP_MULTICAST_TTL): Likewise.
15373         (IP_MULTICAST_LOOP): Likewise.
15374         (IP_ADD_MEMBERSHIP): Likewise.
15375         (IP_DROP_MEMBERSHIP): Likewise.
15376         (IP_UNBLOCK_SOURCE): Likewise.
15377         (IP_BLOCK_SOURCE): Likewise.
15378         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
15379         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
15380         (IP_MSFILTER): Likewise.
15381         (MCAST_JOIN_GROUP): Likewise.
15382         (MCAST_BLOCK_SOURCE): Likewise.
15383         (MCAST_UNBLOCK_SOURCE): Likewise.
15384         (MCAST_LEAVE_GROUP): Likewise.
15385         (MCAST_JOIN_SOURCE_GROUP): Likewise.
15386         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
15387         (MCAST_MSFILTER): Likewise.
15388         (IP_MULTICAST_ALL): Likewise.
15389         (IP_UNICAST_IF): Likewise.
15390
15391         * timezone/Makefile: Delete $(have-ksh) check.
15392         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
15393         * timezone/tzselect.ksh: Add +x mode bits.
15394
15395         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
15396         (ANON_INODE_FS_MAGIC): Likewise.
15397         (BDEVFS_MAGIC): Likewise.
15398         (BINFMTFS_MAGIC): Likewise.
15399         (BTRFS_TEST_MAGIC): Likewise.
15400         (CRAMFS_MAGIC_WEND): Likewise.
15401         (DEBUGFS_MAGIC): Likewise.
15402         (ECRYPTFS_SUPER_MAGIC): Likewise.
15403         (EXT3_SUPER_MAGIC): Likewise.
15404         (EXT4_SUPER_MAGIC): Likewise.
15405         (FUTEXFS_SUPER_MAGIC): Likewise.
15406         (HOSTFS_SUPER_MAGIC): Likewise.
15407         (HUGETLBFS_MAGIC): Likewise.
15408         (MINIX3_SUPER_MAGIC): Likewise.
15409         (MTD_INODE_FS_MAGIC): Likewise.
15410         (NILFS_SUPER_MAGIC): Likewise.
15411         (OPENPROM_SUPER_MAGIC): Likewise.
15412         (PIPEFS_MAGIC): Likewise.
15413         (PSTOREFS_MAGIC): Likewise.
15414         (QNX6_SUPER_MAGIC): Likewise.
15415         (RAMFS_MAGIC): Likewise.
15416         (REISERFS_SUPER_MAGIC_STRING): Likewise.
15417         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
15418         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
15419         (SECURITYFS_MAGIC): Likewise.
15420         (SELINUX_MAGIC): Likewise.
15421         (SMACK_MAGIC): Likewise.
15422         (SOCKFS_MAGIC): Likewise.
15423         (SQUASHFS_MAGIC): Likewise.
15424         (STACK_END_MAGIC): Likewise.
15425         (TMPFS_MAGIC): Likewise.
15426         (USBDEVICE_SUPER_MAGIC): Likewise.
15427         (V9FS_MAGIC): Likewise.
15428         (XENFS_SUPER_MAGIC): Likewise.
15429         (CRAMFS_MAGIC): Fix typo in comment.
15430         (EXT2_SUPER_MAGIC): Update comment.
15431         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
15432
15433 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
15434
15435         * sysdeps/arm: Move directory from ports/sysdeps/arm.
15436         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
15437         * sysdeps/unix/sysv/linux/arm: Move directory from
15438         ports/sysdeps/unix/sysv/linux/arm.
15439         * README: Update listing for arm-*-linux-gnueabi.
15440
15441         * README: Remove mention of am33.
15442
15443 2014-02-07  Roland McGrath  <roland@hack.frob.com>
15444
15445         * bits/sigset.h (__sigemptyset): Use a statement expression rather
15446         than the comma operator, to avoid "rhs of comma has no effect"
15447         compiler warnings.
15448         (__sigfillset, __sigandset, __sigorset): Likewise.
15449         * include/signal.h (__sigemptyset): Likewise.
15450         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
15451
15452 2014-02-07  Allan McRae  <allan@archlinux.org>
15453
15454         * version.h (RELEASE): Set to "development".
15455         (VERSION): Set to "2.19.90"
15456         * NEWS: Add 2.20 section.
15457
15458 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
15459
15460         [BZ #16529]
15461         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
15462
15463 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15464
15465         * manual/contrib.texi: Update entry for Carlos O'Donell,
15466         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
15467
15468 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
15469
15470         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
15471
15472         * sysdeps/unix/sysv/linux/kernel-features.h
15473         [__LINUX_KERNEL_VERSION >= 0x020621]
15474         (__ASSUME_PROC_PID_TASK_COMM): Define.
15475
15476 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
15477
15478         [BZ #16398]
15479         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
15480         conversion when destination buffer does not have enough space.
15481         * libio/tst-ftell-partial-wide.c: New test case.
15482         * libio/Makefile (tests): Add tst-ftell-partial-wide.
15483
15484         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
15485         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
15486         Leonard and Allan McRae.
15487
15488 2014-02-04  David S. Miller  <davem@davemloft.net>
15489
15490         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
15491         32-bit.
15492
15493 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15494
15495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
15496         New file
15497         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
15498         New file
15499         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
15500         New file.
15501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
15502         New file.
15503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
15504         New file.
15505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
15506         New file.
15507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
15508         New file.
15509         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
15510         New file.
15511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
15512         New file.
15513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
15514         New file.
15515         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
15516         New file.
15517         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
15518         New file.
15519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
15520         New file.
15521
15522 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15523
15524         * nptl/shlib-versions: Change powerpc*le start to 2.17.
15525         * shlib-versions: Likewise.
15526
15527 2014-02-04  Roland McGrath  <roland@hack.frob.com>
15528             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15529
15530         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
15531         (abilist-pattern): New variable, set to %-le.abilist.
15532
15533         * Makerules (abilist-pattern): New variable.
15534         (vpath): Use $(abilist-pattern) in place of %.abilist.
15535         (check-abi-% pattern rule): Likewise.
15536         (check-abi, update-abi): Likewise.
15537
15538 2014-02-04  Eric Wong  <normalperson@yhbt.net>
15539
15540         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15541
15542 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
15543
15544         * manual/startup.texi: Add next, previous, and top entries for
15545         the `Program Arguments' and `Environment Variables' nodes.
15546
15547 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
15548
15549         * manual/macros.texi: Add comments before MTASC-safety macros.
15550
15551         * manual/users.texi: Document MTASC-safety properties.
15552
15553         * manual/threads.texi (pthread_key_create, pthread_key_delete)
15554         (pthread_getspecific, pthread_setspecific): Format with
15555         @deftypefun, and add @safety note.
15556         * manual/signal.texi: Move comments that analyze the above
15557         functions to their home place.
15558
15559 2014-02-03  Allan McRae  <allan@archlinux.org>
15560
15561         * po/sl.po: Update Slovenian translation from translation project.
15562
15563 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
15564
15565         * manual/time.texi (timegm): Add missing blank after @c.
15566         Reported by Joseph Myers <joseph@codesourcery.com>.
15567
15568 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
15569
15570         * manual/check-safety.sh: New.
15571         * manual/Makefile ($(objpfx)stamp-summary): Run it.
15572
15573         * manual/terminal.texi: Document MTASC-safety properties.
15574
15575         * manual/filesys.texi: Document MTASC-safety properties.
15576
15577         * manual/errno.texi: Document MTASC-safety properties.
15578
15579         * manual/intro.texi: Document safety identifiers and
15580         conditionals.
15581
15582         * manual/string.texi (wcstok): Fix prototype.
15583         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
15584
15585         * manual/time.texi: Document MTASC-safety properties.
15586
15587         * manual/string.texi: Document MTASC-safety properties.
15588
15589         * manual/threads.texi: Document MTASC-safety properties.
15590
15591         * manual/stdio.texi: Document MTASC-safety properties.
15592
15593         * manual/syslog.texi: Document MTASC-safety properties.
15594
15595         * manual/sysinfo.texi: Document MTASC-safety properties.
15596
15597         * manual/startup.texi: Document MTASC-safety properties.
15598
15599         * manual/socket.texi: Document MTASC-safety properties.
15600
15601         * manual/signal.texi: Document MTASC-safety properties.
15602
15603 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
15604
15605         * manual/setjmp.texi: Document MTASC-safety properties.
15606
15607         * manual/search.texi: Document MTASC-safety properties.
15608
15609         * manual/resource.texi: Document MTASC-safety properties.
15610
15611         * manual/process.texi: Document MTASC-safety properties.
15612
15613         * manual/platform.texi: Document MTASC-safety properties.
15614
15615         * manual/pipe.texi: Document MTASC-safety properties.
15616
15617         * manual/pattern.texi: Document MTASC-safety properties.
15618
15619         * manual/message.texi: Document MTASC-safety properties.
15620
15621         [BZ #12751]
15622         * manual/memory.texi: Document MTASC-safety properties.
15623
15624         * manual/math.texi: Document MTASC-safety properties.
15625
15626         * manual/locale.texi: Document MTASC-safety properties.
15627
15628         * manual/llio.texi: Document MTASC-safety properties.
15629
15630         * manual/libdl.texi: New.
15631
15632         * manual/lang.texi: Document MTASC-safety properties.
15633
15634         * manual/job.texi: Document MTASC-safety properties.
15635
15636         * manual/getopt.texi: Document MTASC-safety properties.
15637
15638         * manual/ctype.texi: Document MTASC-safety properties.
15639
15640 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
15641
15642         [BZ #16046]
15643         * csu/libc-tls.c (static_map): Remove variable.
15644         (__libc_setup_tls): Use main executable's link map for TLS data.
15645         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
15646         casing for LM_ID_BASE and GL(dl_nns).
15647         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
15648         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
15649         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
15650         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
15651         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
15652         member.
15653         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
15654         l_phnum members.
15655
15656 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
15657
15658         * manual/debug.texi: Document MTASC-safety properties.
15659
15660 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
15661
15662         [BZ #16510]
15663         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
15664         of __x86_64__ when disabling x87 inline functions.
15665
15666 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
15667
15668         * manual/charset.texi: Document MTASC-safety properties.
15669
15670         * manual/crypt.texi: Document MTASC-safety properties.
15671
15672         * manual/conf.texi: Document MTASC-safety properties.
15673
15674         * manual/arith.texi: Document MTASC-safety properties.
15675
15676         * manual/argp.texi: Document MTASC-safety properties.
15677
15678         * manual/macros.texi: Introduce macros to document multi
15679         thread, asynchronous signal and asynchronous cancellation
15680         safety properties.
15681         * manual/intro.texi: Introduce the properties themselves.
15682
15683 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15684
15685         * sysdeps/sh/sh4/Makefile: New file.
15686
15687 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
15688
15689         * math/gen-libm-test.pl ($srcdir): New variable.
15690         ($auto_input): Use it.
15691
15692 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
15693
15694         [BZ #16506]
15695         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
15696         access beyond array bounds when parsing netgroups file.
15697
15698         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
15699         the old buffer before realloc.
15700
15701 2014-01-27  Allan McRae  <allan@archlinux.org>
15702
15703         * po/fr.po: Update French translation from translation project.
15704
15705 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15706
15707         * sysdeps/sh/libm-test-ulps: Regenerate.
15708
15709 2014-01-24  David S. Miller  <davem@davemloft.net>
15710
15711         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
15712
15713 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15714
15715         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
15716         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
15717
15718 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
15719
15720         [BZ #16474]
15721         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
15722         string pointers after reallocation.
15723
15724 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15725
15726         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
15727         __SH4A__ instead of __SH_FPU_ANY__.
15728
15729 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15730
15731         * sysdeps/sh/fpu_control.h: New file.
15732         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
15733         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
15734         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
15735         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
15736         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
15737         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
15738         * sysdeps/sh/sys/ucontext.h: Remove.
15739         * sysdeps/sh/sys: Remove directory.
15740
15741 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15742
15743         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
15744         s390/sys/ucontext.h.
15745         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
15746         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
15747
15748 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
15749
15750         [BZ #15605]
15751         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
15752
15753 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15754
15755         [BZ#16431]
15756         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
15757         Adjust the vDSO correctly for internal calls.
15758         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
15759
15760 2014-01-20  Allan McRae  <allan@archlinux.org>
15761
15762         * po/ca.po: Update Catalan translation from translation project.
15763
15764 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
15765
15766         * sysdeps/s390/sotruss-lib.c: New file.
15767
15768 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15769
15770         [BZ#16430]
15771         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
15772         (__GI___gettimeofday): Alias for a different internal symbol to avoid
15773         local calls issues by not having a PLT stub required for IFUNC calls.
15774         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
15775
15776 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
15777
15778         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
15779         * math/test-fpucw-static.c: Likewise.
15780
15781 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
15782
15783         [BZ #16453]
15784         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
15785
15786 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15787
15788         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
15789         implementation for powerpc.
15790
15791 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
15792
15793         [BZ #14782]
15794         * sysdeps/posix/system.c (__libc_system): Do not enable
15795         asynchronous cancellation.
15796
15797 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15798
15799         [BZ #16427]
15800         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
15801         handling only for numbers special also in the IEEE case.
15802
15803 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15804
15805         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
15806
15807 2014-01-11  Allan McRae  <allan@archlinux.org>
15808
15809         * po/bg.po: Update Bulgarian translation from translation project.
15810
15811         * po/de.po: Update German translation from translation project.
15812
15813 2014-01-10  Roland McGrath  <roland@hack.frob.com>
15814
15815         * sysdeps/generic/gcc-compat.h: New file.
15816
15817 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15818
15819         * benchtests/asin-inputs: Correct slow inputs.
15820         * benchtests/acos-inputs: Likewise.
15821
15822 2014-01-10  Allan McRae  <allan@archlinux.org>
15823
15824         * po:sv.po: Update Swedish translation from translation project.
15825
15826         * po/vi.po: Update Vietnamese translation from translation project.
15827
15828         * po/eo.po: Update Esperanto translation from translation project.
15829
15830         * po/cs.po: Update Czech translation from translation project.
15831
15832         * po/nl.po: Update Dutch translation from translation project.
15833
15834         * po/pl.po: Update Polish translation from translation project.
15835
15836         * po/ru.po: Update Russian translation from translation project.
15837
15838         * po/uk.po: Update Ukrainian translation from translation project.
15839
15840 2014-01-08  Brooks Moses  <bmoses@google.com>
15841
15842         * elf/dl-load.c: Fix comment typo.
15843
15844 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
15845
15846         * po/header.pot: Rename to...
15847         * po/pot.header: ... this.
15848         * po/Makefile: Use pot.header.
15849
15850 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
15851             Maxim Kuvyrkov  <maxim@kugelworks.com>
15852
15853         [BZ #16394]
15854         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
15855         SRC and DEST against LEN.
15856
15857 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15858
15859         [BZ #16414]
15860         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
15861         implementation.
15862         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
15863
15864 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15865
15866         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15867
15868 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
15869
15870         [BZ #16408]
15871         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
15872         for large positive arguments.
15873
15874 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
15875
15876         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
15877
15878         * math/auto-libm-test-in: Mark various tests with
15879         xfail-rounding:ldbl-128ibm.
15880         * math/auto-libm-test-out: Regenerated.
15881
15882         [BZ #16407]
15883         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
15884         Increase overflow threshold.
15885
15886 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
15887
15888         [BZ #14286]
15889         * stdio-common/vfprintf.c: Check for integer overflow.
15890
15891 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15892
15893         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
15894         the first argument and return value of __tls_get_addr_internal.
15895
15896 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15897
15898         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
15899         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
15900
15901 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15902
15903         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
15904         * sysdeps/s390/rtld-global-offsets.sym: New file.
15905         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
15906         GLIBC_2.19 symbol.
15907         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
15908         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
15909         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
15910         ... this.
15911         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
15912         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
15913         ... this.
15914         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
15915         Regenerate.
15916         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
15917         Regenerate.
15918         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
15919         halfs of GPRs for high_gprs contexts.
15920         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
15921         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
15922         field.
15923         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
15924         uc_flags field.
15925         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
15926         64 bit versions:
15927         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
15928         for high GPRs (uc_high_gprs) and for future extensions
15929         (__reserved).
15930         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
15931         for future extensions (__reserved).
15932         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
15933         64 bit versions:
15934         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
15935         SC_HIGHGPRS offset definition.
15936         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
15937         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
15938
15939         * Versions.def: Add GLIBC_2.19 for libpthread.
15940         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
15941         siglongjmp for libpthread with GLIBC_2.19 symver.
15942         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
15943         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
15944         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
15945         * sysdeps/s390/__longjmp.c: New file.
15946         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
15947         * sysdeps/s390/longjmp.c: New file.
15948         * sysdeps/s390/setjmp.S: New file.
15949         * sysdeps/s390/sigjmp.S: New file.
15950         * sysdeps/s390/v1-longjmp.c: New file.
15951         * sysdeps/s390/v1-setjmp.h: New file.
15952         * sysdeps/s390/v1-sigjmp.c: New file.
15953         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
15954         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
15955         GLIBC_2.19 version.
15956         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
15957         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
15958         versioned symbols for ____longjmp_chk.
15959         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
15960         Likewise.
15961         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
15962         Regenerate.
15963         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
15964         Regenerate.
15965         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
15966         Regenerate.
15967         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
15968         Regenerate.
15969         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
15970         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
15971         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
15972         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
15973         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
15974         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
15975         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
15976         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
15977         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
15978         * sysdeps/s390/rtld-__longjmp.c: New file.
15979         * sysdeps/s390/rtld-setjmp.S: New file.
15980
15981 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
15982
15983         [BZ #16400]
15984         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
15985         Return -__logl (x) for small positive arguments without evaluating
15986         a polynomial.
15987
15988 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
15989
15990         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
15991         Rename to ...
15992         (__ptrace_peeksiginfo_args): ... this.
15993         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15994         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15995         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15996
15997 2014-01-06  Allan McRae  <allan@archlinux.org>
15998
15999         * inet/netinet/in.h: Fix typo in comment.
16000
16001 2014-01-05  Andreas Jaeger  <aj@suse.de>
16002
16003         * sysdeps/i386/fpu/libm-test-ulps: Update.
16004
16005 2014-01-05  Allan McRae  <allan@archlinux.org>
16006
16007         * po/libc.pot: Regenerated.
16008
16009         * malloc/memusagestat.c: Fix gettext call formatting.
16010
16011 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
16012
16013         * nscd/nscd.c: Improve usage() output.
16014
16015 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
16016
16017         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
16018         * sysdeps/unix/sysv/linux/configure: Regenerated.
16019         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
16020         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
16021
16022 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
16023
16024         [BZ #16390]
16025         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
16026         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
16027
16028 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16029
16030         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
16031         extra tokens at end of #undef directive.
16032         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
16033         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
16034         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
16035
16036 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
16037
16038         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
16039
16040         * math/auto-libm-test-in: Mark various tests with
16041         xfail-rounding:ldbl-128ibm.
16042         * math/auto-libm-test-out: Regenerated.
16043
16044 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
16045
16046         [BZ #16386]
16047         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
16048         numbers with subnormal high part when calculating exponent.
16049
16050         [BZ #16385]
16051         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
16052         fabs.
16053
16054         [BZ #16384]
16055         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
16056         M_LN2l.
16057         (__ieee754_acoshl): Use __log1pl not __log1p.
16058
16059 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
16060
16061         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
16062         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
16063         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
16064         (grow_heap, heap_trim, _int_new_arena, get_free_list)
16065         (reused_arena, arena_get2): Convert to GNU style.
16066         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
16067         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
16068         (memalign_check, __malloc_set_state): Likewise.
16069         * malloc/mallocbug.c (main): Likewise.
16070         * malloc/malloc.c (__malloc_assert, malloc_init_state)
16071         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
16072         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
16073         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
16074         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
16075         (__posix_memalign, malloc_info): Likewise.
16076         * malloc/malloc.h: Likewise.
16077         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
16078         (mallochook, memalignhook, reallochook, mabort): Likewise.
16079         * malloc/mcheck.h: Likewise.
16080         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
16081         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
16082         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
16083         * malloc/morecore.c (__default_morecore): Likewise.
16084         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
16085         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
16086         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
16087         (print_and_abort): Likewise.
16088         * malloc/obstack.h: Likewise.
16089         * malloc/set-freeres.c (__libc_freeres): Likewise.
16090         * malloc/tst-mallocstate.c (main): Likewise.
16091         * malloc/tst-mtrace.c (main): Likewise.
16092         * malloc/tst-realloc.c (do_test): Likewise.
16093
16094 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
16095
16096         [BZ #16366]
16097         * nscd/netgroupcache.c (do_notfound): New function.
16098         (addgetnetgrentX): Use it.
16099
16100         [BZ # 16365]
16101         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
16102         NSS_STATUS_NOTFOUND.
16103
16104 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
16105
16106         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
16107         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16108
16109 2014-01-01  Allan McRae  <allan@archlinux.org>
16110
16111         * scripts/update-copyrights: Update configure input file suffix.
16112
16113         * NEWS: Update copyright year.
16114         * catgets/gencat.c: Likewise.
16115         * csu/version.c: Likewise.
16116         * debug/catchsegv.sh: Likewise.
16117         * debug/pcprofiledump.c: Likewise.
16118         * debug/xtrace.sh: Likewise.
16119         * elf/ldconfig.c: Likewise.
16120         * elf/ldd.bash.in: Likewise.
16121         * elf/pldd.c: Likewise.
16122         * elf/sotruss.ksh: Likewise.
16123         * elf/sprof.c: Likewise.
16124         * iconv/iconv_prog.c: Likewise.
16125         * iconv/iconvconfig.c: Likewise.
16126         * locale/programs/locale.c: Likewise.
16127         * locale/programs/localedef.c: Likewise.
16128         * login/programs/pt_chown.c: Likewise.
16129         * malloc/memusage.sh: Likewise.
16130         * malloc/memusagestat.c: Likewise.
16131         * malloc/mtrace.pl: Likewise.
16132         * manual/libc.texinfo: Likewise.
16133         * nscd/nscd.c: Likewise.
16134         * nss/getent.c: Likewise.
16135         * nss/makedb.c: Likewise.
16136         * posix/getconf.c: Likewise.
16137         * scripts/test-installation.pl: Likewise.
16138
16139         * All files with FSF copyright notices: Update copyright dates
16140         using scripts/update-copyrights.
16141         * intl/plural.c: Regenerated.
16142         * locale/programs/charmap-kw.h: Likewise.
16143         * locale/programs/locfile-kw.h: Likewise.
16144
16145 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
16146
16147         * sysdeps/unix/sysv/linux/configure: Regenerated.
16148         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
16149         the linux/fanotify.h header.
16150         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
16151         HAVE_LINUX_FANOTIFY_H is defined.
16152
16153 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
16154
16155         * benchtests/cos-inputs: New inputs.
16156         * benchtests/sin-inputs: Likewise.
16157
16158         * benchtests/atan-inputs: New inputs. Fix name of multiple
16159         precision fallback inputs.
16160
16161         * benchtests/atanh-inputs: New inputs.
16162         * benchtests/tanh-inputs: Likewise.
16163
16164         * benchtests/acosh-inputs: New inputs.
16165         * benchtests/asinh-inputs: Likewise.
16166
16167         * benchtests/cosh-inputs: New inputs.
16168         * benchtests/sinh-inputs: Likewise.
16169
16170         * benchtests/acos-inputs: Add more inputs.
16171         * benchtests/asin-inputs: Likewise.
16172
16173 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
16174
16175         [BZ #16375]
16176         * manual/arith.texi: Fix spelling.
16177         * manual/charset.texi: Likewise.
16178         * manual/errno.texi: Likewise.
16179         * manual/filesys.texi: Likewise.
16180         * manual/lang.texi: Likewise.
16181         * manual/llio.texi: Likewise.
16182         * manual/locale.texi: Likewise.
16183         * manual/message.texi: Likewise.
16184         * manual/resource.texi: Likewise.
16185         * manual/search.texi: Likewise.
16186         * manual/setjmp.texi: Likewise.
16187         * manual/stdio.texi: Likewise.
16188         * manual/string.texi: Likewise.
16189         * manual/sysinfo.texi: Likewise.
16190         * manual/time.texi: Likewise.
16191
16192 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
16193
16194         * po/sl.po: New file.
16195
16196 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
16197
16198         * .gitignore: Add core/.gdbinit/.gdb_history.
16199
16200 2013-12-27  Allan McRae  <allan@archlinux.org>
16201
16202         [BZ #16369]
16203         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
16204         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
16205
16206 2013-12-24  Brooks Moses  <bmoses@google.com>
16207
16208         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
16209         all compilers that claim C++98 compliance, not just GCC.
16210         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
16211         Likewise.
16212
16213 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
16214
16215         * NEWS: Restore accidentally deleted bug-fix entries.
16216
16217 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
16218             Ondřej Bílka  <neleai@seznam.cz>
16219
16220         [BZ #15073]
16221         * malloc/malloc.c (_int_free): Perform sanity check only if we
16222         have_lock.
16223
16224 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
16225
16226         [BZ #12986]
16227         * manual/stdio.texi (String Input Conversions): Clarify that character
16228         classes are not supported.
16229
16230 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16231
16232         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16233
16234 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
16235
16236         [BZ #16337]
16237         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
16238         Calculate results for small negative arguments directly rather
16239         than using reflection formula with special underflow handling.
16240
16241         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
16242         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
16243         sysdeps/unix/bsd/bsd4.4/syscalls.list.
16244         (fchflags): Likewise.
16245         (revoke): Likewise.
16246         (setlogin): Likewise.
16247         (sigaltstack): Likewise.
16248         (wait4): Likewise.
16249         (sigblock): Remove.
16250         (sigsetmask): Likewise.
16251         (wait3): Likewise.
16252         (waitpid): Likewise.
16253         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
16254         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
16255         file.
16256         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
16257         * sysdeps/unix/bsd/Makefile: ... here.
16258         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
16259         * sysdeps/unix/bsd/Versions: ... here.
16260         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
16261         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
16262         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
16263         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
16264         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
16265         * sysdeps/unix/bsd/sigblock.c: ... here.
16266         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
16267         * sysdeps/unix/bsd/sigsetmask.c: ... here.
16268         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
16269         * sysdeps/unix/bsd/sigvec.c: ... here.
16270         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
16271         * sysdeps/unix/bsd/tcdrain.c: ... here.
16272         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
16273         * sysdeps/unix/bsd/tcgetattr.c: ... here.
16274         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
16275         * sysdeps/unix/bsd/tcsetattr.c: ... here.
16276         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
16277         * sysdeps/unix/bsd/wait.c: ... here.
16278         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
16279         * sysdeps/unix/bsd/wait3.c: ... here.
16280         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
16281         * sysdeps/unix/bsd/waitpid.c: ... here.
16282
16283 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
16284
16285         [BZ #16356]
16286         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
16287         round-to-nearest for [!USE_AS_EXPM1L].
16288         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
16289         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
16290         more tests of exp and exp10.  Expect some exp10 tests to miss
16291         exceptions or fail in directed rounding modes.
16292         * math/auto-libm-test-out: Regenerated.
16293         * math/libm-test.inc (exp10_tonearest_test_data): New array.
16294         (exp10_test_tonearest): New function.
16295         (exp10_towardzero_test_data): New array.
16296         (exp10_test_towardzero): New function.
16297         (exp10_downward_test_data): New array.
16298         (exp10_test_downward): New function.
16299         (exp10_upward_test_data): New array.
16300         (exp10_test_upward): New function.
16301         (main): Call the new functions.
16302         * sysdeps/i386/fpu/libm-test-ulps: Update.
16303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16304
16305 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
16306
16307         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
16308         asinh, atan, atan2, atanh, cbrt, cos and cosh.
16309         * math/auto-libm-test-out: Regenerated.
16310         * math/libm-test.inc (acosh_test_data): Add more tests.
16311         (atanh_test_data): Likewise.
16312         (ceil_test_data): Likewise.
16313         (copysign_test_data): Likewise.
16314         * sysdeps/i386/fpu/libm-test-ulps: Update.
16315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16316
16317         * timezone/checktab.awk: Update from tzcode 2013i.
16318         * timezone/private.h: Likewise.
16319         * timezone/scheck.c: Likewise.
16320         * timezone/tzfile.h: Likewise.
16321         * timezone/tzselect.ksh: Likewise.
16322         * timezone/zdump.c: Likewise.
16323         * timezone/zic.c: Likewise.
16324
16325         * math/auto-libm-test-in: Add tests of cpow.
16326         * math/auto-libm-test-out: Regenerated.
16327         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
16328         * math/gen-auto-libm-tests.c (func_calc_method): Add value
16329         mpc_cc_c.
16330         (func_calc_desc): Add mpc_cc_c union field.
16331         (test_functions): Add cpow.
16332         (special_fill_2pi): New function.
16333         (special_real_inputs): Add 2pi.
16334         (calc_generic_results): Handle mpc_cc_c.
16335         * sysdeps/i386/fpu/libm-test-ulps: Update.
16336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16337
16338         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
16339         csqrt, ctan and ctanh.
16340         * math/auto-libm-test-out: Regenerated.
16341         * math/libm-test.inc (TEST_COND_x86_64): New macro.
16342         (TEST_COND_x86): Likewise.
16343         (ccos_test_data): Use AUTO_TESTS_c_c.
16344         (ccosh_test_data): Likewise.
16345         (cexp_test_data): Likewise.
16346         (clog_test_data): Likewise.
16347         (csqrt_test_data): Likewise.
16348         (ctan_test_data): Likewise.
16349         (ctan_tonearest_test_data): Likewise.
16350         (ctan_towardzero_test_data): Likewise.
16351         (ctan_downward_test_data): Likewise.
16352         (ctan_upward_test_data): Likewise.
16353         (ctanh_test_data): Likewise.
16354         (ctanh_tonearest_test_data): Likewise.
16355         (ctanh_towardzero_test_data): Likewise.
16356         (ctanh_downward_test_data): Likewise.
16357         (ctanh_upward_test_data): Likewise.
16358         * math/gen-auto-libm-tests.c (func_calc_method): Add value
16359         mpc_c_c.
16360         (func_calc_desc): Add mpc_c_c union field.
16361         (FUNC_mpc_c_c): New macro.
16362         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
16363         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
16364         ctanh.
16365         (special_fill_min_subnorm_p120): New function.
16366         (special_real_inputs): Add min_subnorm_p120.
16367         (calc_generic_results): Handle mpc_c_c.
16368         * sysdeps/i386/fpu/libm-test-ulps: Update.
16369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16370
16371 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
16372
16373         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
16374         (do_sin_slow): New functions.
16375         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
16376         (cslow2, csloww1, csloww2): Use the new functions.
16377
16378         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
16379         Use M to change sign of result instead of X.  Assume X is
16380         positive.
16381         (csloww1): Likewise.
16382         (__sin): Adjust.
16383         (__cos): Adjust.
16384
16385         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
16386         arguments A and DA.
16387         (__sin): Adjust.
16388         (__cos): Likewise.
16389
16390         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
16391         (__cos): Likewise.
16392         (sloww1): Don't adjust sign of DX.
16393         (csloww1): Likewise.
16394         (sloww2): Use X directly and don't adjust sign of DX.
16395         (csloww2): Likewise.
16396
16397 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
16398
16399         * math/auto-libm-test-in: Add tests of cabs and carg.
16400         * math/auto-libm-test-out: Regenerated.
16401         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
16402         (carg_test_data): Likewise.
16403         * math/gen-auto-libm-tests.c (func_calc_method): Add value
16404         mpc_c_f.
16405         (func_calc_desc): Add mpc_c_f union field.
16406         (test_functions): Add cabs and carg.
16407         (calc_generic_results): Handle mpc_c_f.
16408
16409         * sysdeps/powerpc/powerpc32/libgcc-compat.S
16410         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
16411         as a macro and a compat symbol.
16412         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
16413         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
16414         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
16415         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
16416         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
16417         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
16418         not use .hidden.
16419         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
16420         Likewise.
16421         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
16422         Likewise.
16423         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
16424         Likewise.
16425         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
16426         Likewise.
16427         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
16428         Likewise.
16429         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
16430         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
16431         from GLIBC_2.3.2.
16432
16433 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16434
16435         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16436
16437 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
16438
16439         * manual/texinfo.tex: Update to version 2013-11-26.10 with
16440         trailing whitespace removed.
16441         * scripts/config.guess: Update to version 2013-11-29.
16442         * scripts/config.sub: Update to version 2013-10-01.
16443
16444         * math/auto-libm-test-in: Add tests of sincos.
16445         * math/auto-libm-test-out: Regenerated.
16446         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
16447         * math/gen-auto-libm-tests.c (func_calc_method): Add value
16448         mpfr_f_11.
16449         (func_calc_desc): Add mpfr_f_11 union field.
16450         (test_functions): Add sincos.
16451         (calc_generic_results): Handle mpfr_f_11.
16452         * sysdeps/i386/fpu/libm-test-ulps: Update.
16453         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16454
16455 2013-12-19  Andreas Schwab  <schwab@suse.de>
16456
16457         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
16458         CALL_MCOUNT.
16459         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
16460         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
16461         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
16462
16463 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
16464
16465         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
16466         * sysdeps/i386/fpu/libm-test-ulps: Update.
16467         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16468
16469         [BZ #16293]
16470         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
16471         round-to-nearest mode when using frndint.
16472         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
16473         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
16474         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
16475         Likewise.
16476         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
16477         sinh test to fail.
16478         * math/auto-libm-test-out: Regenerated.
16479         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
16480         (TEST_COND_x86): Likewise.
16481         (expm1_tonearest_test_data): New array.
16482         (expm1_test_tonearest): New function.
16483         (expm1_towardzero_test_data): New array.
16484         (expm1_test_towardzero): New function.
16485         (expm1_downward_test_data): New array.
16486         (expm1_test_downward): New function.
16487         (expm1_upward_test_data): New array.
16488         (expm1_test_upward): New function.
16489         (main): Run the new test functions.
16490         * sysdeps/i386/fpu/libm-test-ulps: Update.
16491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16492
16493         * include/features.h: Update comment documenting feature test
16494         macros.  Mention _DEFAULT_SOURCE in comment.
16495         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
16496         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
16497         _BSD_SOURCE and _SVID_SOURCE.
16498         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
16499         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
16500         !_SVID_SOURCE]: Likewise.
16501         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
16502         (__USE_POSIX_IMPLICITLY): Define.
16503         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
16504         (_POSIX_SOURCE): Undefine and redefine.
16505         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
16506         (_POSIX_C_SOURCE): Likewise.
16507         * manual/creature.texi (_DEFAULT_SOURCE): Document.
16508         (Feature Test Macros): Update documentation of default features.
16509
16510 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
16511
16512         * benchtests/Makefile: Add bench-strtok.
16513         * benchtests/bench-strtok.c: New file: strtok benchtest.
16514
16515 2013-12-19  Allan McRae  <allan@archlinux.org>
16516
16517         * manual/install.texi: Suppress menu for plain text output.
16518         * INSTALL: Regenerated.
16519
16520 2013-12-18  Brooks Moses  <bmoses@google.com>
16521
16522         [BZ #15846]
16523         * misc/getauxval.c: Include errno.h.
16524         (__getauxval): Set errno to ENOENT if the requested type is not
16525         found.
16526         * misc/sys/auxv.h (getauxval): Document that it may set errno;
16527         don't declare with __attribute_const__.
16528         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
16529         * manual/startup.texi: Document that getauxval sets errno.
16530
16531 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
16532
16533         * math/auto-libm-test-in: Add tests of jn and yn.
16534         * math/auto-libm-test-out: Regenerated.
16535         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
16536         (yn_test_data): Likewise.
16537         * math/gen-auto-libm-tests.c (func_calc_method): Add value
16538         mpfr_if_f.
16539         (func_calc_desc): Add mpfr_if_f union field.
16540         (FUNC_mpfr_if_f): New macro.
16541         (test_functions): Add jn and yn.
16542         (calc_generic_results): Assert type of second input for
16543         mpfr_ff_f.  Handle mpfr_if_f.
16544         (output_for_one_input_case): Disable all checking for arguments
16545         fitting floating-point types in case of an integer argument.
16546         * sysdeps/i386/fpu/libm-test-ulps: Update.
16547         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16548
16549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
16550         Don't expect fegetround reference in libm.so.
16551
16552 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
16553
16554         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
16555         $(config-cflags-nofma).
16556
16557 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
16558
16559         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
16560         * math/auto-libm-test-out: Regenerated.
16561
16562         [BZ #16338]
16563         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
16564         to determine exponent and adjust argument to have exponent of -1.
16565         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
16566         log2.
16567         * math/auto-libm-test-out: Regenerated.
16568         * sysdeps/i386/fpu/libm-test-ulps: Update.
16569         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16570
16571 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
16572
16573         * manual/probes.texi: Remove cases when per-thread arenas are
16574         disabled.
16575
16576 2013-12-18  Andreas Schwab  <schwab@suse.de>
16577
16578         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
16579         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
16580         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
16581         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
16582         * sysdeps/i386/i686/multiarch/Makefile: Update.
16583         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
16584
16585 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
16586
16587         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
16588         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
16589
16590 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
16591
16592         [BZ #15968]
16593         Support TZ transition times < 00:00:00.
16594         This is needed for version-3 tz-format files; it supports time
16595         stamps past 2037 for America/Godthab (the only entry in the tz
16596         database for which this change is relevant).
16597         * manual/time.texi (TZ Variable): Document transition times
16598         from -167:59:59 through -00:00:01.
16599         * time/tzset.c (tz_rule): Time of day is now signed.
16600         (__tzset_parse_tz): Parse negative time of day.
16601
16602         Document TZ transition times >= 25:00:00.
16603         * manual/time.texi (TZ Variable): Document transition times from
16604         25:00:00 through 167:59:59.  These are already supported, and this
16605         support will help with version-3 tz-format files.
16606
16607         * manual/time.texi (TZ Variable): Modernize North America example
16608         to reflect current (i.e., 2007-and-later) daylight saving rules.
16609
16610         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
16611
16612 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
16613
16614         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
16615         * sysdeps/unix/bsd/bits/stat.h: Likewise.
16616         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
16617         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
16618         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
16619         * sysdeps/unix/bsd/bsdstat.h: Likewise.
16620         * sysdeps/unix/bsd/clock.c: Likewise.
16621         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
16622         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
16623         * sysdeps/unix/bsd/init-posix.c: Likewise.
16624         * sysdeps/unix/bsd/poll.c: Likewise.
16625         * sysdeps/unix/bsd/ptsname.c: Likewise.
16626         * sysdeps/unix/bsd/seekdir.c: Likewise.
16627         * sysdeps/unix/bsd/setegid.c: Likewise.
16628         * sysdeps/unix/bsd/seteuid.c: Likewise.
16629         * sysdeps/unix/bsd/setgid.c: Likewise.
16630         * sysdeps/unix/bsd/setrgid.c: Likewise.
16631         * sysdeps/unix/bsd/setruid.c: Likewise.
16632         * sysdeps/unix/bsd/setsid.c: Likewise.
16633         * sysdeps/unix/bsd/setuid.c: Likewise.
16634         * sysdeps/unix/bsd/sigaction.c: Likewise.
16635         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
16636         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
16637         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
16638         * sysdeps/unix/bsd/telldir.c: Likewise.
16639         * sysdeps/unix/bsd/times.c: Likewise.
16640         * sysdeps/unix/bsd/usleep.c: Likewise.
16641
16642         * misc/Makefile (install-lib): Remove libbsd-compat.a.
16643         ($(objpfx)libbsd-compat.a): Remove rule.
16644
16645         * include/features.h (__FAVOR_BSD): Do not define.
16646         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
16647         features conflicting with POSIX.
16648         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
16649         (_BSD_SOURCE): Remove description of not being a subset of other
16650         feature test macros.
16651         * manual/job.texi (getpgrp): Do not document BSD version.
16652         (getpgid): Do not document by reference to BSD getpgrp.
16653         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
16654         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
16655         * signal/signal.h [__FAVOR_BSD]: Likewise.
16656         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
16657         instead of making contents conditional on [__FAVOR_BSD].
16658         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
16659
16660 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16661
16662         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16663
16664 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
16665
16666         [BZ #16314]
16667         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
16668         values below 2**-450, not 2**-500.
16669         * math/auto-libm-test-in: Don't allow spurious underflow from
16670         hypot.
16671         * math/auto-libm-test-out: Regenerated.
16672
16673         [BZ #16316]
16674         [BZ #16330]
16675         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
16676         values of ha and hb and sort them after adjusting subnormal
16677         arguments.
16678         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
16679         Likewise.
16680         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
16681         values of ea and eb and sort them after adjusting subnormal
16682         arguments.
16683         * math/auto-libm-test-in: Do not expect some hypot tests of
16684         subnormals to fail.  Add more hypot tests.
16685         * math/auto-libm-test-out: Regenerated.
16686
16687 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16688
16689         [BZ #13304]
16690         * sysdeps/sh/s_fma.c: New file.
16691         * sysdeps/sh/s_fmaf.c: New file.
16692         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
16693         version.
16694         * sysdeps/sh/Implies: Add sh/soft-fp.
16695
16696 2013-12-16  Roland McGrath  <roland@hack.frob.com>
16697
16698         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
16699         level of indirection to members `objname', `errstring', `malloced'.
16700         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
16701         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
16702         it as the __longjmp argument (just pass 1 instead).
16703         (_dl_catch_error): Initialize C with argument pointers and address of
16704         volatile local ERRCODE rather than copying values out of C at return.
16705
16706 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
16707
16708         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
16709         * math/auto-libm-test-out: Regenerated.
16710         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
16711         (hypot_test_data): Likewise.
16712         (pow_test_data): Likewise.
16713         (pow_tonearest_test_data): Likewise.
16714         * math/gen-auto-libm-tests.c (func_calc_method): Add value
16715         mpfr_ff_f.
16716         (func_calc_desc): Add mpfr_ff_f union field.
16717         (FUNC_mpfr_ff_f): New macro.
16718         (test_functions): Add atan2, hypot and pow.
16719         (special_fill_min): New function.
16720         (special_fill_minus_min): Likewise.
16721         (special_fill_min_subnorm): Likewise.
16722         (special_fill_minus_min_subnorm): Likewise.
16723         (special_real_inputs): Add min, -min, min_subnorm and
16724         -min_subnorm.
16725         (calc_generic_results): Handle mpfr_ff_f.
16726         * sysdeps/i386/fpu/libm-test-ulps: Update.
16727         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16728
16729 2013-12-16  Will Newton  <will.newton@linaro.org>
16730
16731         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
16732         (Aligned Memory Blocks): Add documentation for aligned_alloc
16733         and suggest it as an alternative to posix_memalign.
16734         (Hooks for Malloc): Document __memalign_hook is also called
16735         for aligned_alloc.  (Summary of Malloc): Add summary for
16736         aligned alloc.  Document __memalign_hook is also called
16737         for aligned_alloc.
16738
16739 2013-12-16  Will Newton  <will.newton@linaro.org>
16740
16741         * manual/memory.texi (Malloc Examples): Clarify default
16742         alignment documentation.  Suggest posix_memalign rather
16743         than memalign or valloc.
16744         (Aligned Memory Blocks): Remove suggestion to use memalign
16745         or valloc.  Remove obsolete comment about BSD.
16746         Document memalign errno values and mark the function obsolete.
16747         Document posix_memalign returned error codes.  Mark valloc
16748         as obsolete.  (Hooks for Malloc): __memalign_hook is also
16749         called for posix_memalign and valloc.
16750         (Summary of Malloc): Add posix_memalign to function summary.
16751         __memalign_hook is also called for posix_memalign and valloc.
16752
16753 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
16754
16755         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
16756         TAYLOR_SIN.
16757         (__sin): Adjust.
16758         (__cos): Likewise.
16759         (sloww): Use mynumber union.  Expand ternary operator into
16760         if-else statements.
16761         (cslow): use mynumber union.
16762
16763 2013-12-16  Allan McRae  <allan@archlinux.org>
16764
16765         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
16766         * configure: Regenerated.
16767
16768         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
16769
16770         [BZ #14120]
16771         * configure.ac: Added --enable-maintainer-mode. Check for
16772         autoconf when enabled.
16773         * configure: Regenerated.
16774
16775         * nscd/nscd.service: New file.
16776         * nscd/nscd.tmpfiles: New file.
16777
16778 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
16779
16780         [BZ #12100]
16781         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
16782         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
16783         * sysdeps/x86_64/multiarch/strstr.c: ... here.
16784         (strstr): Add __strstr_sse2_unaligned ifunc.
16785         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
16786         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
16787         (strcasestr): Remove __strcasestr_sse42 ifunc.
16788         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
16789         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
16790         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
16791
16792 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16793
16794         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
16795         * sysdeps/sh/bits/fenv.h: ... here.
16796         * sysdeps/sh/sh4/fpu/bits: Remove directory.
16797
16798 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16799
16800         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
16801
16802         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
16803         hypotf multiarch implementations.
16804         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
16805         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
16806         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
16807         multiarch hypot for PPC64.
16808         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
16809         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
16810         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
16811         multiarch hypotf for PPC64.
16812
16813         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
16814         modff multiarch implementations.
16815         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
16816         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
16817         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
16818         multiarch modf for PPC64.
16819         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
16820         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
16821         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
16822         multiarch modff for PPC64.
16823
16824         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
16825         and logl multiarch implementations.
16826         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
16827         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
16828         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
16829         multiarch logb for PPC64.
16830         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
16831         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
16832         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
16833         multiarch logb for PPC64.
16834         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
16835         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
16836         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
16837         multiarch logb for PPC64.
16838
16839         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
16840         isinff multiarch implementation.
16841         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
16842         file.
16843         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
16844         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
16845         multiarch isinf for PPC64.
16846         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
16847         file.
16848         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
16849         multiarch isinff for PPC64.
16850
16851         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
16852         finitef multiarch implementation.
16853         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
16854         file.
16855         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
16856         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
16857         multiarch finite for PPC64.
16858         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
16859         file.
16860         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
16861         multiarch finitef for PPC64.
16862
16863         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
16864         lrint multiarch implementation.
16865         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
16866         file.
16867         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
16868         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
16869         multiarch llrint for PPC64.
16870         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
16871         multiarch lrint for PPC64.
16872
16873         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
16874         copysignf multiarch implementation.
16875         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
16876         file.
16877         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
16878         file.
16879         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
16880         multiarch copysign for PPC64.
16881         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
16882         multiarch copysignf for PPC64.
16883
16884         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
16885         multiarch implementation.
16886         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
16887         file.
16888         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
16889         file.
16890         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
16891         file.
16892         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
16893         file.
16894         multiarch llround for PPC64.
16895         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
16896         multiarch trunc for PPC64.
16897         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
16898         multiarch truncf for PPC64.
16899
16900         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
16901         multiarch implementation.
16902         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
16903         file.
16904         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
16905         file.
16906         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
16907         file.
16908         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
16909         file.
16910         multiarch llround for PPC64.
16911         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
16912         multiarch round for PPC64.
16913         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
16914         multiarch roundf for PPC64.
16915
16916         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
16917         multiarch implementation.
16918         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
16919         file.
16920         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
16921         file.
16922         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
16923         file.
16924         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
16925         file.
16926         multiarch llround for PPC64.
16927         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
16928         multiarch floor for PPC64.
16929         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
16930         multiarch floorf for PPC64.
16931
16932         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
16933         multiarch implementation.
16934         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
16935         file.
16936         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
16937         file.
16938         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
16939         file.
16940         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
16941         file.
16942         multiarch llround for PPC64.
16943         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
16944         multiarch ceil for PPC64.
16945         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
16946         multiarch ceilf for PPC64.
16947
16948         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
16949         multiarch implementation.
16950         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
16951         file.
16952         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
16953         file.
16954         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
16955         file.
16956         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
16957         multiarch llround for PPC64.
16958         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
16959         multiarch lround for PPC64.
16960
16961         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
16962         multiarch implementation.
16963         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
16964         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
16965         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
16966         file.
16967         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
16968         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
16969         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
16970         multiarch isnan for PPC64.
16971         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
16972         multiarch isnanf for PPC64.
16973
16974         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
16975         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
16976         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
16977         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
16978         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
16979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
16980
16981         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
16982         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
16983         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
16984         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
16985
16986         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
16987         multiarch implementations.
16988         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
16989         (__libc_ifunc_impl_list): Likewise.
16990         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
16991         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
16992         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
16993         multiarch stpcpy for PPC64.
16994
16995         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
16996         multiarch implementations.
16997         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
16998         (__libc_ifunc_impl_list): Likewise.
16999         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
17000         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
17001         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
17002         multiarch strcpy for PPC64.
17003
17004         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
17005         redefine function name.
17006         (_wordcopy_fwd_dest_aligned): Likewise.
17007         (_wordcopy_bwd_aligned): Likewise.
17008         (_wordcopy_bwd_dest_aligned): Likewise.
17009         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
17010         multiarch implementations.
17011         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17012         (__libc_ifunc_impl_list): Likewise.
17013         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
17014         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
17015         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
17016         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
17017         multiarch wcscpy for PPC64.
17018
17019         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
17020         multiarch implementations.
17021         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17022         (__libc_ifunc_impl_list): Likewise.
17023         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
17024         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
17025         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
17026         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
17027         multiarch wcscpy for PPC64.
17028
17029         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
17030         multiarch implementations.
17031         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17032         (__libc_ifunc_impl_list): Likewise.
17033         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
17034         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
17035         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
17036         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
17037         multiarch wcsrchr for PPC64.
17038
17039         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
17040         multiarch implementations.
17041         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17042         (__libc_ifunc_impl_list): Likewise.
17043         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
17044         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
17045         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
17046         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
17047         multiarch wcschr for PPC64.
17048
17049         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
17050         multiarch implementations.
17051         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17052         (__libc_ifunc_impl_list): Likewise.
17053         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
17054         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
17055         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
17056         multiarch strchrnul for PPC64.
17057
17058         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
17059         implementations.
17060         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17061         (__libc_ifunc_impl_list): Likewise.
17062         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
17063         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
17064         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
17065         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
17066         strchr for PPC64.
17067
17068         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
17069         implementations.
17070         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17071         (__libc_ifunc_impl_list): Likewise.
17072         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
17073         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
17074         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
17075         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
17076         strncmp for PPC64.
17077
17078         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
17079         multiarch implementations.
17080         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17081         (__libc_ifunc_impl_list): Likewise.
17082         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
17083         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
17084         strncasecmp for PPC64.
17085         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
17086         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
17087         multiarch strncasecmp_l for PPC64.
17088
17089         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
17090         multiarch implementations.
17091         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
17092         (__libc_ifunc_impl_list): Likewise.
17093         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
17094         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
17095         multiarch strcasecmp for PPC64.
17096         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
17097         file.
17098         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
17099         multiarch strcasecmp_l for PPC64.
17100
17101         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
17102         implementations.
17103         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17104         (__libc_ifunc_impl_list): Likewise.
17105         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
17106         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
17107         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
17108         strnlen for PPC64.
17109
17110         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
17111         implementations.
17112         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17113         (__libc_ifunc_impl_list): Likewise.
17114         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
17115         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
17116         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
17117         strlen for PPC64.
17118
17119         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
17120         implementations.
17121         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17122         (__libc_ifunc_impl_list): Likewise.
17123         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
17124         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
17125         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
17126         rawmemrchr for PPC64.
17127
17128         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
17129         implementation.
17130         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17131         (__libc_ifunc_impl_list): Likewise.
17132         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
17133         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
17134         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
17135         memrchr for PPC64.
17136
17137         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
17138         implementation.
17139         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17140         (__libc_ifunc_impl_list): Likewise.
17141         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
17142         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
17143         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
17144         memchr for PPC64.
17145
17146         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
17147         implementation.
17148         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17149         (__libc_ifunc_impl_list): Likewise.
17150         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
17151         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
17152         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
17153         mempcpy for PPC64.
17154
17155         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
17156         avoid cretion of __bzero symbol.
17157         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
17158         Likewise.
17159         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
17160         Likewise.
17161         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
17162         Likewise.
17163         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
17164         multiarch implementations.
17165         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17166         (__libc_ifunc_impl_list): Likewise.
17167         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
17168         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
17169         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
17170         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
17171         bzero for PPC32.
17172         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
17173         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
17174         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
17175         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
17176         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
17177         memset for PPC64.
17178         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
17179
17180         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
17181         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
17182         implementations.
17183         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
17184         (__libc_ifunc_impl_list): Likewise.
17185         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
17186         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
17187         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
17188         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
17189         memcmp for PPC64.
17190
17191         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
17192         multiarch for POWER/PPC64.
17193         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
17194         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
17195         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
17196         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
17197         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
17198         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
17199         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
17200         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
17201         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
17202         memcpy for PPC64.
17203
17204         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
17205         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
17206         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
17207         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
17208         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
17209         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
17210         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
17211         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
17212         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
17213         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
17214         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
17215         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
17216         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
17217         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
17218         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
17219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
17220         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
17221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
17222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
17223         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
17224         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
17225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
17226
17227 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17228
17229         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
17230
17231 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
17232
17233         * benchtests/Makefile (bench): Add exp2 and log2.
17234         (LDLIBS-bench-exp2): Add -lm.
17235         (LDLIBS-bench-log2): Likewise.
17236         * benchtests/exp2-inputs: New inputs file.
17237         * benchtests/log2-inputs: New inputs file.
17238         * benchtests/log-inputs: Add new inputs.
17239         * benchtests/tan-inputs: Likewise.
17240
17241 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
17242
17243         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
17244         definition...
17245         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
17246         (csloww2): ... from here.
17247
17248         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
17249         instead of structures.
17250         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
17251         (POLYNOMIAL): Likewise.
17252         (TAYLOR_SLOW): Likewise.
17253         (__sin): Likewise.
17254         (__cos): Likewise.
17255         (slow1): Likewise.
17256         (slow2): Likewise.
17257         (sloww): Likewise.
17258         (sloww1); Likewise.
17259         (sloww2): Likewise.
17260         (bsloww1): Likewise.
17261         (bsloww2): Likewise.
17262         (cslow2): Likewise.
17263         (csloww): Likewise.
17264         (csloww1): Likewise.
17265         (csloww2): Likewise.
17266
17267 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
17268
17269         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
17270         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
17271         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
17272         * malloc/hooks.c (realloc_check): Likewise.
17273
17274         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
17275         * malloc/arena.c: Remove PER_THREAD conditional.
17276         [!PER_THREAD]: Remove code.
17277         (ptmalloc_unlock_all2): Likewise.
17278         (ptmalloc_init): Likewise.
17279         (_int_new_arena): Likewise.
17280         (arena_get2): Likewise.
17281         * malloc/hooks.c (__malloc_get_state): Likewise.
17282         (__malloc_set_state): Likewise.
17283         * malloc/malloc.c: Likewise.
17284         (struct malloc_state): Likewise.
17285         (struct malloc_par): Likewise.
17286         (__libc_realloc): Likewise.
17287         (__libc_mallopt): Likewise.
17288
17289 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17290
17291         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
17292
17293 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
17294
17295         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
17296         macro to a function.  Check for zero perturb_byte.
17297         (_int_malloc, _int_free): Remove zero perturb_byte checks.
17298
17299         * malloc/malloc.c: (force_reg): Remove.
17300         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
17301         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
17302         force_reg by atomic_forced_read.
17303         * malloc/arena.c (ptmalloc_init): Likewise.
17304         * malloc/hooks.c (top_check): Likewise.
17305
17306 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17307
17308         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17309
17310 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
17311
17312         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17313
17314 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
17315
17316         * math/auto-libm-test-in: Add tests of lgamma.
17317         * math/auto-libm-test-out: Regenerated.
17318         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
17319         (M_LOG_2_SQRT_PIl): Likewise.
17320         (lgamma_test_data): Use AUTO_TESTS_f_f1.
17321         * math/gen-auto-libm-tests.c (func_calc_method): Add value
17322         mpfr_f_f1.
17323         (func_calc_desc): Add mpfr_f_f1 union field.
17324         (ARGS1): New macro.
17325         (ARGS2): Likewise.
17326         (ARGS3): Likewise.
17327         (ARGS4): Likewise.
17328         (RET1): Likewise.
17329         (RET2): Likewise.
17330         (CALC): Likewise.
17331         (FUNC): Likewise.
17332         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
17333         (test_functions): Add lgamma.
17334         (calc_generic_results): Handle mpfr_f_f1.
17335         * sysdeps/i386/fpu/libm-test-ulps: Update.
17336         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17337
17338 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17339
17340         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
17341         __mpn_add_n for PowerPC64/POWER7.
17342         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
17343         __mpn_sub_n for PowerPC64/POWER7.
17344
17345         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
17346         __mpn_addmul_1 for PowerPC64.
17347         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
17348         __mpn_submul_1 for PowerPC64.
17349         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
17350         for PowerPC64.
17351         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
17352         for PowerPC64.
17353
17354 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
17355
17356         [BZ #15089]
17357         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
17358
17359 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17360
17361         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
17362
17363         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
17364         add multiarch folders.
17365         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
17366         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
17367         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
17368         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
17369         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
17370         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
17371         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
17372         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
17373         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
17374         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
17375         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
17376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
17377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
17378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
17379         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
17380         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
17381         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
17382
17383         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
17384         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
17385         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
17386         New file.
17387         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
17388         New file.
17389         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
17390         multiarch __ieee754_hypot for PowerPC32.
17391         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
17392         New file.
17393         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
17394         New file.
17395         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
17396         multiarch __ieee754_hypotf for PowerPC32.
17397
17398         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
17399         long_double_symbol only if __logbl is defined.
17400         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
17401         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
17402         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
17403         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
17404         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
17405         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
17406         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
17407         path for implementation.
17408         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
17409         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
17410         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
17411         logb, and logbl multiarch implementations for PowerPC32.
17412         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
17413         file.
17414         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
17415         file.
17416         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
17417         multiarch logb for PowerPC32.
17418         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
17419         file.
17420         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
17421         file.
17422         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
17423         multiarch logbf for PowerPC32.
17424         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
17425         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
17426         file.
17427         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
17428         multiarch logbl implementation for PowerPC32.
17429
17430         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
17431         and modff multiarch implementations.
17432         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
17433         New file.
17434         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
17435         New file.
17436         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
17437         multiarch modf for PowerPC32.
17438         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
17439         New file.
17440         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
17441         New file.
17442         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
17443         multiarch modff for PowerPC32.
17444
17445         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
17446         and lrintf multiarch implementations.
17447         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
17448         New file.
17449         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
17450         New file.
17451         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
17452         multiarch lrint for PowerPC32.
17453         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
17454         file: multiarch lrintf for PowerPC32.
17455
17456         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
17457         and lroundf multiarch implementations.
17458         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
17459         New file.
17460         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
17461         New file.
17462         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
17463         New file.
17464         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
17465         multiarch lround for PowerPC32.
17466         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
17467         file: multiarch lroundf for PowerPC32.
17468
17469         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
17470         copysign and copysignf multiarch implementations.
17471         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
17472         New file.
17473         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
17474         New file.
17475         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
17476         file: multiarch copysign for PowerPC32.
17477         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
17478         file: multiarch copysignf for PowerPC32.
17479
17480         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
17481         and truncf multiarch implementations.
17482         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
17483         New file.
17484         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
17485         file.
17486         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
17487         multiarch trunc for PowerPC32.
17488         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
17489         New file.
17490         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
17491         New file.
17492         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
17493         multiarch truncf for PowerPC32.
17494
17495         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
17496         and roundf multiarch implementations.
17497         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
17498         New file.
17499         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
17500         file.
17501         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
17502         multiarch round for PowerPC32.
17503         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
17504         New file.
17505         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
17506         New file.
17507         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
17508         multiarch roundf for PowerPC32.
17509
17510         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
17511         and floorf multiarch implementations.
17512         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
17513         New file.
17514         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
17515         file.
17516         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
17517         multiarch floor for PowerPC32.
17518         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
17519         New file.
17520         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
17521         New file.
17522         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
17523         multiarch floorf for PowerPC32.
17524
17525         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
17526         and ceilf multiarch implementations.
17527         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
17528         New file.
17529         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
17530         file.
17531         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
17532         multiarch ceil for PowerPC32.
17533         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
17534         New file.
17535         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
17536         file.
17537         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
17538         multiarch ceilf for PowerPC32.
17539
17540         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
17541         is defined.
17542         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
17543         FINITEF is defined.
17544         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
17545         and finitef multiarch implementations.
17546         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
17547         New file.
17548         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
17549         file.
17550         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
17551         multiarch finite for PowerPC32.
17552         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
17553         New file.
17554         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
17555         file: multiarch finitef for PowerPC32.
17556
17557         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
17558         and isinff multiarch implementations.
17559         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
17560         file.
17561         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
17562         file.
17563         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
17564         multiarch isinf for PowerPC32.
17565         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
17566         New file.
17567         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
17568         multiarch isinff for PowerPC32.
17569
17570         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
17571         alias when __isnan is defined.
17572         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
17573         and isnanf multiarch implementations.
17574         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
17575         file.
17576         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
17577         file.
17578         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
17579         file.
17580         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
17581         file.
17582         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
17583         multiarch isnan for PowerPC32.
17584         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
17585         New file.
17586         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
17587         New file.
17588         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
17589         multiarch isnanf for PowerPC32.
17590
17591         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
17592         and sqrtf multiarch implementations.
17593         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
17594         file.
17595         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
17596         file.
17597         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
17598         multiarch sqrt for PowerPC32.
17599         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
17600         file.
17601         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
17602         file.
17603         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
17604         multiarch sqrtf for PowerPC32.
17605
17606         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
17607         and llroundf multiarch implementations.
17608         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
17609         New file.
17610         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
17611         New file.
17612         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
17613         New file.
17614         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
17615         file: multiarch llround for PowerPC32.
17616         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
17617         file: multiarch llroundf for PowerPC32.
17618
17619         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
17620         multiarch PowerPC32 fpu implementations.
17621         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
17622         New file.
17623         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
17624         New file.
17625         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
17626         multiarch llrint for PowerPC32.
17627         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
17628         New file.
17629         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
17630         New file.
17631         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
17632         file.
17633
17634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
17635
17636         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
17637         file.
17638         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
17639         file.
17640         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
17641         file.
17642         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
17643         multiarch wordcopy for PPC32.
17644         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
17645         wordcopy objects.
17646         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17647         (__libc_ifunc_impl_list): Likewise.
17648         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
17649         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
17650         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
17651         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
17652         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
17653         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
17654
17655         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
17656         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
17657         file.
17658         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
17659         file.
17660         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
17661         file.
17662         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
17663         multiarch wcscpy for PPC32.
17664         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
17665         multiarch objects.
17666         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17667         (__libc_ifunc_impl_list): Likewise.
17668         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
17669         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
17670         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
17671         sysdeps/powerpc/power6/wcscpy.c.
17672
17673         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
17674         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
17675         file.
17676         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
17677         file.
17678         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
17679         file.
17680         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
17681         multiarch wcsrchr for PPC32.
17682         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
17683         multiarch objects.
17684         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17685         (__libc_ifunc_impl_list): Likewise.
17686         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
17687         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
17688         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
17689         sysdeps/powerpc/power6/wcsrchr.c.
17690
17691         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
17692         file.
17693         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
17694         file.
17695         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
17696         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
17697         multiarch wcschr for PPc32.
17698         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
17699         multiarch objects.
17700         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17701         (__libc_ifunc_impl_list): Likewise.
17702         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
17703         * sysdeps/powerpc/power6/wcschr.c: ... to here.
17704         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
17705         sysdeps/powerpc/power6/wcschr.c.
17706
17707         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
17708         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
17709         file.
17710         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
17711         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
17712         file: multiarch strchr for PPC32.
17713         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
17714         multiarch objects.
17715         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17716         (__libc_ifunc_impl_list): Likewise.
17717
17718         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
17719         name.
17720         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
17721         file.
17722         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
17723         file.
17724         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
17725         multiarch strchrnul for PPC32.
17726         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
17727         multiarch objects.
17728         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17729         (__libc_ifunc_impl_list): Likewise.
17730
17731         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
17732         file.
17733         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
17734         multiarch strncasecmp for PPC32.
17735         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
17736         file.
17737         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
17738         multiarch strncasecmp_l for PPC32.
17739         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
17740         strncasecmp multiarch objects.
17741         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17742         (__libc_ifunc_impl_list): Likewise.
17743
17744         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
17745         file.
17746         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
17747         multiarch strncasecmp for PPC32.
17748         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
17749         New file.
17750         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
17751         multiarch strcasecmp_l for PPC32.
17752         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
17753         multiarch objects.
17754         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17755         (__libc_ifunc_impl_list): Likewise.
17756
17757         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
17758         file.
17759         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
17760         file.
17761         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
17762         multiarch strncmp for PPC32.
17763         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
17764         multiarch objects.
17765         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17766         (__libc_ifunc_impl_list): Likewise.
17767
17768         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
17769         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
17770         file.
17771         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
17772         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
17773         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
17774         multiarch objects.
17775         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17776         (__libc_ifunc_impl_list): Likewise.
17777
17778         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
17779         file.
17780         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
17781         file.
17782         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
17783         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
17784         multiarch objects.
17785         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17786         (__libc_ifunc_impl_list): Likewise.
17787
17788         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
17789         file.
17790         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
17791         file.
17792         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
17793         multiarch rawmemchr for PPC32.
17794         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
17795         multiarch objects.
17796         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17797         (__libc_ifunc_impl_list): Likewise.
17798
17799         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
17800         file.
17801         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
17802         file.
17803         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
17804         file: memrchr multiarch for PPC32.
17805         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
17806         multiarch objects.
17807         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
17808         (__libc_ifunc_impl_list): Likewise.
17809
17810         * string/memchr.c (__memchr): Using macro to redefine symbol name.
17811         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
17812         file.
17813         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
17814         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
17815         multiarch memchr for PPC32.
17816         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
17817         multiarch objects.
17818         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
17819         (__libc_ifunc_impl_list): Likewise.
17820
17821         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
17822         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
17823         file.
17824         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
17825         file.
17826         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
17827         file: multiarch mempcpy for PPC32.
17828         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
17829         multiarch objects.
17830         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
17831         (__libc_ifunc_impl_list): Likewise.
17832
17833         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
17834         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
17835         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
17836         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
17837         multiarch bzero for PPC32.
17838         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
17839         file.
17840         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
17841         file.
17842         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
17843         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
17844         file: multiarch memset for PPC32.
17845         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
17846         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
17847         memset multiarch objects.
17848         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
17849         (__libc_ifunc_impl_list): Likewise.
17850
17851         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
17852         file.
17853         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
17854         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
17855         memcmp for PPC32.
17856         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
17857         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
17858         multiarch objects.
17859         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
17860         (__libc_ifunc_impl_list): Likewise.
17861
17862         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
17863         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
17864         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
17865         file.
17866         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
17867         file.
17868         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
17869         file.
17870         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
17871         multiarch memcpy for PPC32.
17872         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
17873         multiarch objects.
17874         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
17875         (__libc_ifunc_impl_list): Likewise.
17876
17877         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
17878         support multiarch for POWER/PPC32.
17879         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
17880         Likewise.
17881         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
17882         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
17883         Implies file to make multiarch folder appers before the fpu and
17884         default folder for power4 configuration.
17885
17886 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
17887
17888         * scripts/bench.pl: Append volatile keyword to type.
17889
17890 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17891
17892         * sysdeps/sh/sotruss-lib.c: New file.
17893         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
17894
17895 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17896
17897         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17898
17899 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
17900
17901         [BZ #6810]
17902         * math/w_tgamma.c: Include <errno.h>.
17903         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
17904         * math/w_tgammaf.c: Include <errno.h>.
17905         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
17906         * math/w_tgammal.c: Include <errno.h>.
17907         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
17908         * math/auto-libm-test-in: Do not allow missing errno on tgamma
17909         underflow.  Add more tgamma tests.
17910         * math/auto-libm-test-out: Regenerated.
17911         * sysdeps/i386/fpu/libm-test-ulps: Update.
17912         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17913
17914         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
17915         sin, sinh, tan, tanh, tgamma, y0 and y1.
17916         * math/auto-libm-test-out: Regenerated.
17917         * math/libm-test.inc (TEST_COND_x86_64): New macro.
17918         (TEST_COND_x86): Likewise.
17919         (M_E2l): Remove macro.
17920         (M_E3l): Likewise.
17921         (M_2_SQRT_PIl): Likewise.
17922         (M_SQRT_PIl): Likewise.
17923         (M_1_DIV_El): Likewise.
17924         (log_test_data): Use AUTO_TESTS_f_f.
17925         (log10_test_data): Likewise.
17926         (log1p_test_data): Likewise.
17927         (log2_test_data): Likewise.
17928         (sin_test_data): Likewise.
17929         (sin_tonearest_test_data): Likewise.
17930         (sin_towardzero_test_data): Likewise.
17931         (sin_downward_test_data): Likewise.
17932         (sin_upward_test_data): Likewise.
17933         (sinh_test_data): Likewise.
17934         (sinh_tonearest_test_data): Likewise.
17935         (sinh_towardzero_test_data): Likewise.
17936         (sinh_downward_test_data): Likewise.
17937         (sinh_upward_test_data): Likewise.
17938         (tan_test_data): Likewise.
17939         (tan_tonearest_test_data): Likewise.
17940         (tan_towardzero_test_data): Likewise.
17941         (tan_downward_test_data): Likewise.
17942         (tan_upward_test_data): Likewise.
17943         (tanh_test_data): Likewise.
17944         (tgamma_test_data): Likewise.
17945         (y0_test_data): Likewise.
17946         (y1_test_data): Likewise.
17947         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
17948         (special_real_inputs): Add pi/4.
17949         * sysdeps/i386/fpu/libm-test-ulps: Update.
17950         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17951
17952 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17953
17954         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
17955         "longjmp_target" static probes.
17956         (__longjmp): Rename to __longjmp_symbol.
17957         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
17958         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
17959         on which longjmp to generate.
17960         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
17961         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
17962         probe.
17963         (__sigsetjmp): Rename to __sigsetjmp_symbol.
17964         (__sigjmp_save): Rename to __sigjmp_save_symbol.
17965         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
17966         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
17967         and __sigjmp_save_symbol based on which sigsetjmp to generated.
17968         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
17969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
17970         __longjmp_symbol based on which __longjmp to generate.
17971         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
17972         probe.
17973         (setjmp): Rename to setjmp_symbol.
17974         (__sigsetjmp): Rename to __sigsetjmp_symbol.
17975         (_setjmp): Rename to _setjmp_symbol.
17976         (__sigsetjmp): Rename to __sigsetjmp_symbol.
17977         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
17978         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
17979         which setjmp to generate.
17980         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
17981         "longjmp_target" static probes.
17982
17983 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
17984
17985         * benchtests/README: Add note about output arguments.
17986         * benchtests/bench-sincos.c: Remove file.
17987         * benchtests/sincos-inputs: New file.
17988         * scripts/bench.pl: Identify output arguments and define
17989         static variables for them.
17990
17991         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
17992
17993         [BZ #15941]
17994         * Makefile (INSTALL): Add install-plain.texi as the primary
17995         dependency.
17996         * manual/install-plain.texi: New file.
17997         * manual/install.texi: Include node directive only for
17998         non-plaintext output.
17999
18000 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
18001
18002         * stdlib/longlong.h: Update from GCC.
18003
18004         [BZ #6807]
18005         [BZ #15901]
18006         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
18007         * math/w_j0f.c (y0f): Likewise.
18008         * math/w_j0l.c (__y0l): Likewise.
18009         * math/w_j1.c (y1): Likewise.
18010         * math/w_j1f.c (y1f): Likewise.
18011         * math/w_j1l.c (__y1l): Likewise
18012         * math/w_jn.c (yn): Likewise.
18013         * math/w_jnf.c (ynf): Likewise.
18014         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
18015         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
18016         value for Bessel function domain errors outside _SVID_ mode.
18017         Adjust sign of return value for yn (negative integer, 0).
18018         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
18019         by zero in return for negative x and set sign appropriately for
18020         negative n.
18021         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
18022         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
18023         * math/libm-test.inc (y0_test_data): Add more tests and adjust
18024         expectations in error cases.
18025         (y1_test_data): Likewise.
18026         (yn_test_data): Likewise.
18027         * sysdeps/i386/fpu/libm-test-ulps: Update.
18028         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18029
18030 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18031
18032         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
18033         "64" to "64-v1".  Add "64-v2".
18034         (abi-64-options): Rename to ...
18035         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
18036         (abi-64-condition): Rename to ...
18037         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
18038         (abi-64-ld-soname): Rename to ...
18039         (abi-64-v1-ld-soname): ... this.
18040         (abi-64-v2-options): Define.
18041         (abi-64-v2-condition): Likewise.
18042         (abi-64-v2-ld-soname): Likewise.
18043         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
18044         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
18045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
18046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
18047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
18048
18049 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18050             Alan Modra  <amodra@gmail.com>
18051
18052         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
18053         New versions for use with the ELFv2 ABI.
18054         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
18055         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
18056         declaration.
18057         (struct La_ppc64v2_retval): Likewise.
18058         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
18059         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
18060         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
18061         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
18062         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
18063         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18064         Do not save or restore CR.
18065         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
18066         (_dl_profile_resolve): Do no save or restore CR.  Support extended
18067         return values for ELFv2 ABI.  Fix location of FPR return registers.
18068         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
18069         updated values for _CALL_ELF == 2.
18070         (La_regs, La_retval, int_retval): Likewise.
18071
18072 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18073
18074         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
18075         (FRAME_MIN_SIZE_PARM): Likewise.
18076         (FRAME_BACKCHAIN): Likewise.
18077         (FRAME_CR_SAVE): Likewise.
18078         (FRAME_LR_SAVE): Likewise.
18079         (FRAME_TOC_SAVE): Likewise.
18080         (FRAME_PARM_SAVE): Likewise.
18081         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
18082         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
18083         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
18084         (call_mcount_parm_offset): New macro.
18085         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
18086         (PROF): Use symbolic stack frame offsets.
18087         (TAIL_CALL_SYSCALL_ERROR): Likewise.
18088         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
18089         Redefine in terms of FRAME_MIN_SIZE.
18090         (_dl_runtime_resolve): Use symbolic stack frame offsets.
18091         (_dl_profile_resolve): Likewise.  Update comment.
18092         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
18093         symbols stack frame offsets.
18094         (__sigsetjmp): Likewise.
18095         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
18096         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
18097         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
18098         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
18099
18100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
18101         (FRAME_BACKCHAIN): Remove.
18102         (FRAME_CR_SAVE): Likewise.
18103         (FRAME_LR_SAVE): Likewise.
18104         (FRAME_COMPILER_DW): Likewise.
18105         (FRAME_LINKER_DW): Likewise.
18106         (FRAME_TOC_SAVE): Likewise.
18107         (FRAME_PARM_SAVE): Likewise.
18108         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
18109         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
18110         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
18111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
18112         (CHECK_SP): Use symbolic stack frame offsets.
18113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
18114         zone" instead of caller's parameter save area for temp storage.
18115         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18116         Likewise.  Also, use symbolic stack frame offsets.
18117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
18118         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
18119         our own stack frame instead of the caller's.
18120         (__socket): Use symbolic stack frame offsets.
18121
18122 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18123             Alan Modra  <amodra@gmail.com>
18124
18125         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
18126         Define.
18127         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
18128         (PPC64_LOCAL_ENTRY_OFFSET): Define.
18129         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
18130         New function.
18131         (elf_machine_fixup_plt): Call it.
18132         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
18133         reloc arguments.
18134         (elf_machine_rela): Update call to elf_machine_plt_conflict.
18135         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
18136         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
18137         r2 before calling target.
18138
18139 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18140             Alan Modra  <amodra@gmail.com>
18141
18142         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
18143         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
18144         versions of macros to support ELFv2 ABI.
18145         (LOCALENTRY): New macro.
18146         (ENTRY, EALIGN): Use it.
18147         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
18148         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
18149         fall through into ENTRY entry point.
18150         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
18151         Only define if _CALL_ELF != 2.
18152
18153         (elf_machine_matches_host): Verify ABI version matches.
18154         (RTLD_START): Use LOCALENTRY.
18155         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
18156         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
18157         (PLT_ENTRY_WORDS): New macro.
18158         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
18159         (elf_machine_runtime_setup): Support ELFv2 ABI.
18160         (elf_machine_fixup_plt): Likewise.
18161         (elf_machine_plt_conflict): Likewise.
18162         (resolve_ifunc): Likewise.
18163         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
18164         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
18165         Likewise.
18166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
18167         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
18168         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18169         (makecontext): Support ELFv2 ABI.
18170         * elf/elf.h (EF_PPC64_ABI): Define.
18171
18172 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18173
18174         * sysdeps/powerpc/powerpc64/sysdep.h
18175         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
18176         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
18177         (ENTRY) [ASSEMBLER]: ... but instead here ...
18178         (EALIGN) [ASSEMBLER]: ... and here.
18179         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
18180         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
18181         (ENTRY_2) [!ASSEMBLER]: Use it.
18182         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
18183         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
18184         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
18185         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
18186         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
18187         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
18188         Use PPC64_LOAD_FUNCPTR.
18189
18190         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
18191
18192 2013-12-04  Alan Modra  <amodra@gmail.com>
18193
18194         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
18195         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
18196         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
18197         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
18198
18199         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
18200         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
18201         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
18202         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
18203         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
18204         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
18205
18206 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18207
18208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18209         (__makecontext): Fix incorrect CFI when backtracing out of
18210         context created via makecontext.
18211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
18212         (__setcontext): Fix incorrect CFI during switch to new context.
18213         (__novec_setcontext): Likewise.
18214
18215 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
18216
18217         [BZ #4772]
18218         * time/strptime_l.c (__strptime_internal): Allow modifiers
18219         in strptime.
18220         * time/tst-strptime.c (day_tests): Add testcase.
18221
18222 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
18223
18224         * scripts/bench.pl: Skip over blank lines.
18225
18226 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
18227
18228         [BZ #926]
18229         * manual/time.texi (Calendar Time): Clarify what timezone functions
18230         use.
18231
18232 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18233
18234         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18235
18236 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
18237
18238         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
18239         implementation.
18240         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
18241         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
18242         * debug/memset_chk.c (__memset_chk): Likewise.
18243         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
18244         * debug/strncpy_chk.c: Likewise.
18245
18246 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
18247
18248         [BZ #15268]
18249         [BZ #15425]
18250         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
18251         (__ieee754_exp): For possibly underflowing results, check size of
18252         result and force underflow exception if required.
18253         * math/auto-libm-test-in: Add more tests of exp.
18254         * math/auto-libm-test-out: Regenerated.
18255         * sysdeps/i386/fpu/libm-test-ulps: Update.
18256         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18257
18258         [BZ #16283]
18259         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
18260         * math/w_exp2f.c (__exp2f): Likewise.
18261         * math/w_exp2l.c (__exp2l): Likewise.
18262         * math/auto-libm-test-in: Do not allow missing errno on exp2
18263         underflow.
18264         * math/auto-libm-test-out: Regenerated.
18265
18266 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
18267
18268         [BZ #16274]
18269         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
18270         handle filename validation.
18271         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
18272         (do_open): Delete.
18273
18274 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
18275
18276         [BZ #6786]
18277         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
18278         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
18279         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
18280         <float.h>.
18281         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
18282         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
18283         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
18284         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
18285         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
18286         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
18287         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
18288         * math/auto-libm-test-in: Don't allow missing errno from erfc.
18289         Add more erfc tests.
18290         * math/auto-libm-test-out: Regenerated.
18291         * sysdeps/i386/fpu/libm-test-ulps: Update.
18292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18293
18294         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
18295         exp2, expm1, j0 and j1.
18296         * math/auto-libm-test-out: Regenerated.
18297         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
18298         (erfc_test_data): Likewise.
18299         (exp_test_data): Likewise.
18300         (exp_tonearest_test_data): Likewise.
18301         (exp_towardzero_test_data): Likewise.
18302         (exp_downward_test_data): Likewise.
18303         (exp_upward_test_data): Likewise.
18304         (exp10_test_data): Likewise.
18305         (exp2_test_data): Likewise.
18306         (expm1_test_data): Likewise.
18307         (j0_test_data): Likewise.
18308         (j1_test_data): Likewise.
18309         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
18310         (input_flag_type): Add flag_xfail_rounding.
18311         (input_flags): Add xfail-rounding.
18312         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
18313         (output_for_one_input_case): Handle flag_xfail_rounding.
18314         * sysdeps/i386/fpu/libm-test-ulps: Update.
18315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18316
18317 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
18318
18319         [BZ #16289]
18320         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
18321         division by 0.
18322
18323 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
18324
18325         [BZ #16195]
18326         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
18327         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
18328         (STAP_PROBE0): New macro.
18329         (STAP_PROBE1): Likewise.
18330         (STAP_PROBE2): Likewise.
18331         (STAP_PROBE3): Likewise.
18332         (STAP_PROBE4): Likewise.
18333
18334 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
18335
18336         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
18337
18338 2013-12-02  Steve Ellcey  <sellcey@mips.com>
18339
18340         * benchtests/Makefile (bench): Add sqrt.
18341         (LDLIBS-bench-sqrt): New.
18342         * benchtests/sqrt-input: New.
18343
18344 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
18345
18346         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
18347         (GAIH_EAI): Likewise.
18348         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
18349         (gaih_inet): Likewise.
18350         (getaddrinfo): Don't use GAIH_EAI.
18351
18352         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
18353         (struct gaih): Remove definition.
18354
18355 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
18356
18357         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
18358         Use HERRNOP directly.
18359
18360 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18361
18362         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18363
18364 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
18365
18366         * math/gen-auto-libm-tests.c (test_functions): Add more
18367         single-argument functions.
18368         (special_fill_pi_2): New function.
18369         (special_fill_minus_pi_2): Likewise.
18370         (special_fill_pi_6): Likewise.
18371         (special_fill_minus_pi_6): Likewise.
18372         (special_fill_pi_3): Likewise.
18373         (special_fill_2pi_3): Likewise.
18374         (special_fill_e): Likewise.
18375         (special_fill_1_e): Likewise.
18376         (special_fill_e_minus_1): Likewise.
18377         (special_real_inputs): Add more special inputs.
18378         (output_for_one_input_case): Do not require ERANGE on underflow to
18379         zero if round-to-nearest result does not underflow to zero, unless
18380         exact results required.
18381         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
18382         atan, atanh, cbrt, cos and cosh.
18383         * math/auto-libm-test-out: Regenerated.
18384         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
18385         (acos_tonearest_test_data): Likewise.
18386         (acos_towardzero_test_data): Likewise.
18387         (acos_downward_test_data): Likewise.
18388         (acos_upward_test_data): Likewise.
18389         (acosh_test_data): Likewise.
18390         (asin_test_data): Likewise.
18391         (asin_tonearest_test_data): Likewise.
18392         (asin_towardzero_test_data): Likewise.
18393         (asin_upward_test_data): Likewise.
18394         (asinh_test_data): Likewise.
18395         (atan_test_data): Likewise.
18396         (atanh_test_data): Likewise.
18397         (cbrt_test_data): Likewise.
18398         (cos_test_data): Likewise.
18399         (cos_tonearest_test_data): Likewise.
18400         (cos_towardzero_test_data): Likewise.
18401         (cos_downward_test_data): Likewise.
18402         (cos_upward_test_data): Likewise.
18403         (cosh_test_data): Likewise.
18404         (cosh_tonearest_test_data): Likewise.
18405         (cosh_towardzero_test_data): Likewise.
18406         (cosh_downward_test_data): Likewise.
18407         (cosh_upward_test_data): Likewise.
18408         * sysdeps/i386/fpu/libm-test-ulps: Update.
18409         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18410
18411 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
18412
18413         [BZ #6787]
18414         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
18415         * math/w_exp10f.c (__exp10f): Likewise.
18416         * math/w_exp10l.c (__exp10l): Likewise.
18417         * math/libm-test.inc (exp10_test_data): Add more tests and expect
18418         errno settings in existing tests.
18419
18420         [BZ #14032]
18421         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
18422         precision control set to double precision.
18423         * sysdeps/i386/fpu/w_sqrt.c: New file.
18424         * math/auto-libm-test-in: Add more tests.
18425         * math/auto-libm-test-out: Update.
18426
18427         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
18428         (sqrt_test_tonearest): New function.
18429         (sqrt_towardzero_test_data): New variable.
18430         (sqrt_test_towardzero): New function.
18431         (sqrt_downward_test_data): New variable.
18432         (sqrt_test_downward): New function.
18433         (sqrt_upward_test_data): New variable.
18434         (sqrt_test_upward): New function.
18435         (main): Call the new functions.
18436
18437         * math/gen-auto-libm-tests.c: New file.
18438         * math/auto-libm-test-in: Likewise.
18439         * math/auto-libm-test-out: New generated file.
18440         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
18441         variables.
18442         (%beautify): Add generated representations of zero.
18443         (top level): Set $auto_input and call parse_auto_input.
18444         (beautify): Remove trailing "f" from hex float constants.
18445         (parse_args): Handle XFAIL_TEST.
18446         (convert_condition): New function.
18447         (or_value): Likewise.
18448         (or_cond_value): Likewise.
18449         (generate_testfile): Handle AUTO_TESTS_* lines.
18450         (parse_auto_input): New function.
18451         * math/libm-test.inc (XFAIL_TEST): New macro.
18452         (ERRNO_UNCHANGED): Update value.
18453         (ERRNO_EDOM): Likewise.
18454         (ERRNO_ERANGE): Likewise.
18455         (IGNORE_RESULT): Likewise.
18456         (TEST_COND_flt_32): New macro.
18457         (TEST_COND_dbl_64): Likewise.
18458         (TEST_COND_ldbl_96_intel): Likewise.
18459         (TEST_COND_ldbl_96_m68k): Likewise.
18460         (TEST_COND_ldbl_128): Likewise.
18461         (TEST_COND_ldbl_128ibm): Likewise.
18462         (TEST_COND_long32): Likewise.
18463         (TEST_COND_long64): Likewise.
18464         (TEST_COND_before_rounding): Likewise.
18465         (TEST_COND_after_rounding): Likewise.
18466         (enable_test): Handle XFAIL_TEST flag.
18467         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
18468         with finite results.
18469         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
18470         auto-libm-test-out.
18471
18472 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
18473             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18474
18475         [BZ #16214]
18476         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
18477         __tls_get_addr_internal instead of __tls_get_offset in order to
18478         avoid GOT pointer dependency.  Make rtld export
18479         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
18480         __tls_get_addr since we are a __tls_get_offset platform.
18481         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
18482         GOT pointer being set up before.
18483         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
18484
18485 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
18486
18487         * manual/math.texi (Errors in Math Functions): Document accuracy
18488         goals.
18489
18490         [BZ #15004]
18491         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
18492         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
18493         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
18494         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
18495         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
18496         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
18497         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
18498         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
18499         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
18500         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
18501         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
18502         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
18503         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
18504         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
18505         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
18506         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
18507
18508         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
18509         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
18510         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
18511         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
18512         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
18513         Likewise.
18514         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
18515         Likewise.
18516         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
18517         Likewise.
18518         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
18519         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
18520         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
18521         atomic-feupdateenv and flt-rounds.
18522         * sysdeps/powerpc/nofpu/Versions (libc): Add
18523         __atomic_feholdexcept, __atomic_feclearexcept,
18524         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
18525         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
18526         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
18527         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
18528         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
18529         here.
18530         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
18531         Update.
18532
18533         * manual/arith.texi (FP Exceptions): Document that exceptions may
18534         not be raised when matherr is used.
18535         (Math Error Reporting): Document overflow in directed rounding
18536         modes.  Document that errno may not be set when finite values are
18537         returned on overflow.  Document intent to set errno on underflow
18538         only for underflow to zero.
18539
18540         [BZ #16271]
18541         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
18542         round-to-nearest then adjust result for other rounding modes.
18543         * include/fenv.h (fegetround): Use libm_hidden_proto.
18544         * math/fegetround.c (fegetround): Use libm_hidden_def.
18545         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
18546         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
18547         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
18548         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
18549         Likewise.
18550         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
18551         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
18552         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
18553         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
18554
18555 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
18556
18557         [BZ #16077]
18558         * nss/Versions (libnss_files): Add
18559         _nss_files_gethostbyname3_r.
18560         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
18561         New function.
18562         (HOST_DB_LOOKUP): Remove macro.
18563         (_nss_files_gethostbyname_r): Implement function without the
18564         HOST_DB_LOOKUP macro.
18565         (_nss_files_gethostbyname2_r): Likewise.
18566
18567 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
18568
18569         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
18570
18571 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
18572
18573         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
18574         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
18575         warning.
18576
18577 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18578
18579         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
18580         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
18581         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
18582         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
18583         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
18584         __fe_nomask_env_priv and attribute_hidden.
18585         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
18586         (libc_feupdateenv_test_ppc): Likewise.
18587         (libc_feresetround_ppc): Likewise.
18588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
18589         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
18590         compat_symbol macro.
18591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
18592         (__fe_nomask_env): Likewise.
18593         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
18594
18595 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
18596
18597         * string/Makefile: Remove ifunc tests.
18598         * string/test-string.h: Define TEST_IFUNC.
18599         * string/test-bcopy-ifunc.c: Remove.
18600         * string/test-bzero-ifunc.c: Likewise.
18601         * string/test-memccpy-ifunc.c: Likewise.
18602         * string/test-memchr-ifunc.c: Likewise.
18603         * string/test-memcmp-ifunc.c: Likewise.
18604         * string/test-memcpy-ifunc.c: Likewise.
18605         * string/test-memmem-ifunc.c: Likewise.
18606         * string/test-memmove-ifunc.c: Likewise.
18607         * string/test-mempcpy-ifunc.c: Likewise.
18608         * string/test-memrchr-ifunc.c: Likewise.
18609         * string/test-memset-ifunc.c: Likewise.
18610         * string/test-rawmemchr-ifunc.c: Likewise.
18611         * string/test-stpcpy-ifunc.c: Likewise.
18612         * string/test-stpncpy-ifunc.c: Likewise.
18613         * string/test-strcasecmp-ifunc.c: Likewise.
18614         * string/test-strcasestr-ifunc.c: Likewise.
18615         * string/test-strcat-ifunc.c: Likewise.
18616         * string/test-strchr-ifunc.c: Likewise.
18617         * string/test-strchrnul-ifunc.c: Likewise.
18618         * string/test-strcmp-ifunc.c: Likewise.
18619         * string/test-strcpy-ifunc.c: Likewise.
18620         * string/test-strcspn-ifunc.c: Likewise.
18621         * string/test-strlen-ifunc.c: Likewise.
18622         * string/test-strncasecmp-ifunc.c: Likewise.
18623         * string/test-strncat-ifunc.c: Likewise.
18624         * string/test-strncmp-ifunc.c: Likewise.
18625         * string/test-strncpy-ifunc.c: Likewise.
18626         * string/test-strnlen-ifunc.c: Likewise.
18627         * string/test-strpbrk-ifunc.c: Likewise.
18628         * string/test-strrchr-ifunc.c: Likewise.
18629         * string/test-strspn-ifunc.c: Likewise.
18630         * string/test-strstr-ifunc.c: Likewise.
18631
18632 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
18633
18634         * benchtests/Makefile: Remove ifunc tests.
18635         * benchtests/bench-string.h: Define TEST_IFUNC.
18636         * benchtests/bench-bcopy-ifunc.c: Remove.
18637         * benchtests/bench-bzero-ifunc.c: Likewise.
18638         * benchtests/bench-memccpy-ifunc.c: Likewise.
18639         * benchtests/bench-memchr-ifunc.c: Likewise.
18640         * benchtests/bench-memcmp-ifunc.c: Likewise.
18641         * benchtests/bench-memcpy-ifunc.c: Likewise.
18642         * benchtests/bench-memmem-ifunc.c: Likewise.
18643         * benchtests/bench-memmove-ifunc.c: Likewise.
18644         * benchtests/bench-mempcpy-ifunc.c: Likewise.
18645         * benchtests/bench-memrchr-ifunc.c: Likewise.
18646         * benchtests/bench-memset-ifunc.c: Likewise.
18647         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
18648         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
18649         * benchtests/bench-stpcpy-ifunc.c: Likewise.
18650         * benchtests/bench-stpncpy-ifunc.c: Likewise.
18651         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
18652         * benchtests/bench-strcasestr-ifunc.c: Likewise.
18653         * benchtests/bench-strcat-ifunc.c: Likewise.
18654         * benchtests/bench-strchr-ifunc.c: Likewise.
18655         * benchtests/bench-strchrnul-ifunc.c: Likewise.
18656         * benchtests/bench-strcmp-ifunc.c: Likewise.
18657         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
18658         * benchtests/bench-strcpy-ifunc.c: Likewise.
18659         * benchtests/bench-strcspn-ifunc.c: Likewise.
18660         * benchtests/bench-strlen-ifunc.c: Likewise.
18661         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
18662         * benchtests/bench-strncat-ifunc.c: Likewise.
18663         * benchtests/bench-strncmp-ifunc.c: Likewise.
18664         * benchtests/bench-strncpy-ifunc.c: Likewise.
18665         * benchtests/bench-strnlen-ifunc.c: Likewise.
18666         * benchtests/bench-strpbrk-ifunc.c: Likewise.
18667         * benchtests/bench-strrchr-ifunc.c: Likewise.
18668         * benchtests/bench-strsep-ifunc.c: Likewise.
18669         * benchtests/bench-strspn-ifunc.c: Likewise.
18670         * benchtests/bench-strstr-ifunc.c: Likewise.
18671
18672 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
18673
18674         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
18675
18676 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
18677
18678         * resolv/netdb.h: Use __glibc_reserved instead __unused.
18679         * rt/aio.h: Likewise.
18680         * sysdeps/gnu/bits/utmp.h: Likewise.
18681         * sysdeps/gnu/bits/utmpx.h: Likewise.
18682         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
18683         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
18684         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
18685         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
18686         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
18687         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
18688         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
18689         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
18690         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
18691         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
18692         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
18693         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
18694         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
18695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
18696         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
18697         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
18698         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
18699         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
18700         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
18701         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
18702         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
18703         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
18704         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
18705         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
18706         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
18707         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
18708         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
18709         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
18710         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
18711         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
18712         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
18713         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
18714         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
18715         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
18716         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
18717         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
18718         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
18719         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
18720         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
18721         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
18722         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
18723         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
18724
18725 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
18726
18727         [BZ #16245]
18728         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
18729         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
18730
18731 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
18732
18733         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
18734         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
18735         Likewise.
18736
18737 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18738
18739         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
18740         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
18741         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
18742         (__fesetround): Remove define.
18743         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
18744         rounding and exceptions handling.
18745         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
18746         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
18747         (__fe_nomask_env): Likewise.
18748         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
18749         __fegetround instead of fegetround.
18750         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
18751         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
18752
18753 2013-11-21  Roland McGrath  <roland@hack.frob.com>
18754
18755         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
18756         it's there.
18757
18758         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
18759
18760 2013-11-21  Meador Inge  <meadori@codesourcery.com>
18761
18762         [BZ #11157]
18763         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
18764         (encrypt_r): Likewise.
18765         * malloc/obstack.h (obstack_free): Likewise.
18766         * posix/unistd.h (encrypt): Likewise.
18767
18768 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
18769
18770         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
18771         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
18772         DL_CALL_DT_FINI() that call the functions directly.
18773         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
18774         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
18775         * elf/dl-fini.c: Likewise.
18776
18777 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
18778
18779         * malloc/hooks.c (memalign_check): Add alignment rounding.
18780         * malloc/malloc.c (_mid_memalign): New function.
18781         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
18782         Implement by calling _mid_memalign.
18783         * manual/probes.texi (Memory Allocation Probes): Remove
18784         memory_valloc_retry and memory_pvalloc_retry.
18785
18786 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
18787
18788         * locale/programs/locarchive.c (open_archive): Add const
18789         qualifier to ARCHIVEFNAME and copy default fname to
18790         DEFAULT_FNAME.
18791
18792         [BZ #15601]
18793         * libio/tst-widetext.input: Rename Oriya to Odia.
18794         * locale/iso-639.def: Likewise.
18795
18796         * manual/probes.texi (Mathematical Function Probes): Add
18797         documentation for sin, cos, asin and acos probes.
18798         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
18799         (__sin32): Add slowasin probe.
18800         (__cos32): Add slowacos probe.
18801         (__mpsin): Add slowsin probe.
18802         (__mpcos): Add slowcos probe.
18803
18804 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
18805
18806         [BZ #15483]
18807         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
18808         thread-local __sim_exceptions_thread and global
18809         __sim_exceptions_global.
18810         (__sim_disabled_exceptions): Change to thread-local
18811         __sim_disabled_exceptions_thread and global
18812         __sim_disabled_exceptions_global.
18813         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
18814         and global __sim_round_mode_global.
18815         (__simulate_exceptions): Use thread-local floating-point state and
18816         set global state from it as needed.
18817         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
18818         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
18819         __sim_round_mode_thread.
18820         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
18821         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
18822         and global __sim_exceptions_global.
18823         (__sim_disabled_exceptions): Change to thread-local
18824         __sim_disabled_exceptions_thread and global
18825         __sim_disabled_exceptions_global.
18826         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
18827         and global __sim_round_mode_global.
18828         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
18829         (SIM_SET_GLOBAL): Likewise.
18830         * sysdeps/powerpc/soft-fp/sfp-machine.h
18831         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
18832         __sim_round_mode_thread.
18833         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
18834         __sim_disabled_exceptions_thread.
18835         (__sim_exceptions): Change to __sim_exceptions_thread.
18836         (__sim_disabled_exceptions): Change to
18837         __sim_disabled_exceptions_thread.
18838         (__sim_round_mode): Change to __sim_round_mode_thread.
18839         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
18840         thread-local floating-point state and set global state from it as
18841         needed.
18842         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
18843         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
18844         (__sim_disabled_exceptions): Remove extern declaration.
18845         (feenableexcept): Use thread-local floating-point state and set
18846         global state from it as needed.
18847         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
18848         extern declaration.
18849         (__sim_disabled_exceptions): Likewise.
18850         (__sim_round_mode): Likewise.
18851         (__fegetenv): Use thread-local floating-point state.
18852         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
18853         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
18854         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
18855         floating-point state and set global state from it as needed.
18856         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
18857         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
18858         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
18859         Likewise.
18860         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
18861         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
18862         Likewise.
18863         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
18864         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
18865         Use __sim_round_mode_thread.
18866         * math/test-fenv-tls.c: New file.
18867         * math/Makefile (tests): Add test-fenv-tls.
18868         ($(objpfx)test-fenv-tls): Depend on
18869         $(common-objpfx)nptl/libpthread.so.
18870
18871 2013-11-19  Andreas Schwab  <schwab@suse.de>
18872
18873         * locale/programs/locale.c (show_info): Decode wordarray elements.
18874         * locale/categories.def (LC_MONETARY): Add element for
18875         _NL_MONETARY_CRNCYSTR.
18876         * locale/C-monetary.c (conversion_rate): New variable.
18877         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
18878         element.
18879
18880 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
18881
18882         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
18883         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
18884
18885 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
18886
18887         * elf/Makefile (tst-auxv): New test.
18888         * elf/tst-auxv.c: New
18889         * elf/rtld.c (dl_main): Adjust AT_EXECFN
18890
18891 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
18892
18893         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
18894         (hidden_proto): Caller changed.
18895         (hidden_tls_proto): New macro.
18896         (libc_hidden_tls_proto): Likewise.
18897         (rtld_hidden_tls_proto): Likewise.
18898         (libm_hidden_tls_proto): Likewise.
18899         (libresolv_hidden_tls_proto): Likewise.
18900         (librt_hidden_tls_proto): Likewise.
18901         (libdl_hidden_tls_proto): Likewise.
18902         (libnss_files_hidden_tls_proto): Likewise.
18903         (libnsl_hidden_tls_proto): Likewise.
18904         (libnss_nisplus_hidden_tls_proto): Likewise.
18905         (libutil_hidden_tls_proto): Likewise.
18906
18907 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
18908
18909         [BZ #10253]
18910         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
18911         (decompose_rpath): Defer expansion to fillin_rpath.
18912         (_dl_init_paths): Pass linkmap to fillin_rpath.
18913
18914 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
18915
18916         * benchtests/Makefile: Add strsep.
18917         * benchtests/bench-strsep.c: New file: strsep benchtest.
18918         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
18919
18920 2013-11-18  Andreas Schwab  <schwab@suse.de>
18921
18922         * locale/programs/locale.c (show_info) [case byte]: Check for
18923         '\377' instead of '\177'.
18924         * locale/C-monetary.c (not_available): Always use "\377".
18925         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
18926         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
18927         detect unavailable sign_posn locale elements.
18928         * locale/localeconv.c (__localeconv): For grouping and
18929         mon_grouping handle "\177" and "\377" like no grouping.
18930         (INT_ELEM): New macro.  Use it to set all numeric members.
18931         * locale/programs/ld-monetary.c (monetary_read)
18932         <tok_mon_grouping>: Normalize single -1 to the empty string.
18933         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
18934         Likewise.
18935
18936 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
18937
18938         [BZ #16055]
18939         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
18940         when we match (nil).
18941         * stdio-common/tst-sscanf.c (struct test): Add testcase.
18942
18943 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
18944
18945         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
18946         (NO_TEST_INLINE): Update value.
18947         (ERRNO_UNCHANGED): Likewise.
18948         (ERRNO_EDOM): Likewise.
18949         (ERRNO_ERANGE): Likewise.
18950         (IGNORE_RESULT): Likewise.
18951         (check_float_internal): Check signs of NaN results if
18952         TEST_NAN_SIGN used.
18953         (check_complex): Pass TEST_NAN_SIGN flag through to second
18954         check_float_internal call.
18955         (copysign_test_data): Add tests with quiet NaNs as second
18956         argument.  Use TEST_NAN_SIGN.
18957         (fabs_test_data): Add test of negative quiet NaN argument.  Use
18958         TEST_NAN_SIGN.
18959         (signbit_test_data): Add tests of quiet NaN argument.
18960         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
18961
18962         * math/gen-libm-test.pl (show_exceptions): Take extra argument
18963         $ignore_result.
18964         (parse_args): Handle function results specified as IGNORE.
18965         * math/libm-test.inc (IGNORE_RESULT): New macro.
18966         (check_float_internal): Do not check numerical result if flag
18967         IGNORE_RESULT set.
18968         (check_complex): Pass through IGNORE_RESULT to second
18969         check_float_internal call.
18970         (check_int): Do not check numerical result if flag IGNORE_RESULT
18971         set.
18972         (check_long): Likewise.
18973         (check_bool): Likewise.
18974         (check_longlong): Likewise.
18975         (lrint_test_data): Add tests of infinite and NaN arguments.
18976         (lrint_tonearest_test_data): Likewise.
18977         (lrint_towardzero_test_data): Likewise.
18978         (lrint_downward_test_data): Likewise.
18979         (lrint_upward_test_data): Likewise.
18980         (llrint_test_data): Likewise.
18981         (llrint_tonearest_test_data): Likewise.
18982         (llrint_towardzero_test_data): Likewise.
18983         (llrint_downward_test_data): Likewise.
18984         (llrint_upward_test_data): Likewise.
18985         (lround_test_data): Likewise.
18986         (llround_test_data): Likewise.
18987
18988         * math/libm-test.inc (NO_TEST_INLINE): New macro.
18989         (ERRNO_UNCHANGED): Update value.
18990         (ERRNO_EDOM): Likewise.
18991         (ERRNO_ERANGE): Likewise.
18992         (NO_TEST_INLINE_FLOAT): New macro.
18993         (NO_TEST_INLINE_DOUBLE): Likewise.
18994         (enable_test): New function.
18995         (RUN_TEST_f_f): Check enable_test before running test.
18996         (RUN_TEST_2_f): Likewise.
18997         (RUN_TEST_fff_f): Likewise.
18998         (RUN_TEST_c_f): Likewise.
18999         (RUN_TEST_f_f1): Likewise.
19000         (RUN_TEST_fF_f1): Likewise.
19001         (RUN_TEST_fI_f1): Likewise.
19002         (RUN_TEST_ffI_f1): Likewise.
19003         (RUN_TEST_c_c): Likewise.
19004         (RUN_TEST_cc_c): Likewise.
19005         (RUN_TEST_f_i): Likewise.
19006         (RUN_TEST_f_i_tg): Likewise.
19007         (RUN_TEST_ff_i_tg): Likewise.
19008         (RUN_TEST_f_b): Likewise.
19009         (RUN_TEST_f_b_tg): Likewise.
19010         (RUN_TEST_f_l): Likewise.
19011         (RUN_TEST_f_L): Likewise.
19012         (RUN_TEST_fFF_11): Likewise.
19013         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
19014         conditionals.
19015         (cosh_test_data): Likewise.
19016         (exp_test_data): Likewise.
19017         (expm1_test_data): Likewise.
19018         (hypot_test_data): Likewise.
19019         (pow_test_data): Likewise.
19020         (sinh_test_data): Likewise.
19021         (tanh_test_data): Likewise.
19022         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
19023         flags argument.
19024
19025         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
19026         tests with quiet NaN input and output.
19027         (acosh_test_data): Likewise.
19028         (asin_test_data): Likewise.
19029         (asinh_test_data): Likewise.
19030         (atan_test_data): Likewise.
19031         (atanh_test_data): Likewise.
19032         (atan2_test_data): Likewise.
19033         (cbrt_test_data): Likewise.
19034         (cos_test_data): Likewise.
19035         (cosh_test_data): Likewise.
19036         (erf_test_data): Likewise.
19037         (erfc_test_data): Likewise.
19038         (exp_test_data): Likewise.
19039         (exp10_test_data): Likewise.
19040         (exp2_test_data): Likewise.
19041         (expm1_test_data): Likewise.
19042         (hypot_test_data): Likewise.
19043         (j0_test_data): Likewise.
19044         (j1_test_data): Likewise.
19045         (jn_test_data): Likewise.
19046         (lgamma_test_data): Likewise.
19047         (log_test_data): Likewise.
19048         (log10_test_data): Likewise.
19049         (log1p_test_data): Likewise.
19050         (log2_test_data): Likewise.
19051         (pow_test_data): Likewise.
19052         (scalb_test_data): Likewise.
19053         (sin_test_data): Likewise.
19054         (sincos_test_data): Likewise.
19055         (sinh_test_data): Likewise.
19056         (tan_test_data): Likewise.
19057         (tanh_test_data): Likewise.
19058         (tgamma_test_data): Likewise.
19059         (y0_test_data): Likewise.
19060         (y1_test_data): Likewise.
19061         (yn_test_data): Likewise.
19062
19063         [BZ #16167]
19064         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
19065         argument being NaN and avoid computations with second argument in
19066         that case.
19067         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
19068         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
19069         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
19070
19071 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
19072
19073         * locale/iso-639.def: Add Chitwani Tharu (the).
19074
19075 2013-11-14  Andreas Schwab  <schwab@suse.de>
19076
19077         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
19078         word instead of empty string.
19079
19080 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19081
19082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
19083         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
19084         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
19085         (__fe_nomask_env): Likewise.
19086
19087 2013-11-13  Steve Ellcey  <sellcey@mips.com>
19088
19089         * benchtests/bench-timing.h: Include time.h.
19090
19091 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
19092
19093         [BZ #15997]
19094         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
19095         to 3.4.0 for x32.
19096         * sysdeps/unix/sysv/linux/configure: Regenerated.
19097
19098 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
19099
19100         [BZ #16151]
19101         * stdlib/strtod_l.c (round_and_return): Do not consider
19102         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
19103         exponent one less than half the least subnormal exponent.
19104         * stdlib/test-strtod-round-data: Add more tests.
19105         * stdlib/tst-strtod-round.c (tests): Regenerated.
19106
19107 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19108
19109         [BZ #14143]
19110         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
19111         (__fe_mask_env): Likewise.
19112         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
19113         libm_hidden_proto and add function prototype.
19114         (__fe_mask_env): Add function prototype.
19115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
19116         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
19117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
19118         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
19119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
19120         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
19121
19122 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19123
19124         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
19125         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
19126
19127 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
19128
19129         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
19130         of htab_find_slot().
19131
19132 2013-11-11  David S. Miller  <davem@davemloft.net>
19133
19134         [BZ #16150]
19135         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
19136         symbol in the non-vis3 case in static builds.
19137         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
19138         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
19139         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
19140         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
19141
19142 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
19143
19144         [BZ #387]
19145         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
19146         it is empty.
19147
19148 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19149
19150         * benchtests/Makefile: Add bench-strtod.
19151         * benchtests/bench-strtod.c: New file: strtod benchtest
19152
19153 2013-11-11  Andreas Schwab  <schwab@suse.de>
19154
19155         [BZ #16153]
19156         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
19157         terminating NUL in key length.
19158
19159 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19160
19161         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
19162         Add artificial ODP entry for vDSO symbol for PPC64.
19163         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
19164         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
19165
19166 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
19167
19168         [BZ #15374]
19169         * nss/getent.c (services_keys): Recognize services starting with digit.
19170
19171 2013-11-06  David S. Miller  <davem@davemloft.net>
19172
19173         [BZ #15985]
19174         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
19175         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
19176
19177 2013-11-06  Will Newton  <will.newton@linaro.org>
19178
19179         * manual/memory.texi (Malloc Examples): Remove register
19180         keyword from examples.
19181
19182 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
19183
19184         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
19185
19186 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
19187
19188         [BZ #6981]
19189         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
19190         depending on [__GCC_IEC_559 > 0].
19191         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
19192         depending on [__GCC_IEC_559_COMPLEX > 0].
19193
19194 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
19195
19196         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
19197         to iso-639.def.
19198
19199 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
19200
19201         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
19202
19203 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
19204
19205         [BZ #16112]
19206         * malloc/malloc (malloc_info): Do not handle first bin as
19207         special case.
19208
19209 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
19210
19211         * locale/iso-639.def: Add Central Nahuatl (nhn).
19212
19213 2013-11-01  Bruno Haible  <bruno@clisp.org>
19214
19215         [BZ #7003]
19216         * manual/math.texi (BSD Random): Specify range upper bound as
19217         in POSIX.
19218
19219 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
19220
19221         * locale/iso-639.def: Add Meadow Mari (mhr).
19222
19223 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
19224
19225         [BZ #14752], [BZ #15763]
19226         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
19227         Validate name.
19228         * rt/tst_shm.c: Add test for escaping directory.
19229
19230 2013-10-31  Andreas Schwab  <schwab@suse.de>
19231
19232         [BZ #15917]
19233         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
19234         followed by 'x' as part of digit sequence.
19235         * stdio-common/tst-sscanf.c (double_tests2): New tests.
19236
19237 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
19238
19239         [BZ #16037]
19240         * configure.ac: allow GNU Make 4.0 and greater.
19241         * configure: Regenerated.
19242
19243 2013-10-30  Will Newton  <will.newton@linaro.org>
19244
19245         [BZ #16038]
19246         * malloc/hooks.c (memalign_check): Limit alignment to the
19247         maximum representable power of two.
19248         * malloc/malloc.c (__libc_memalign): Likewise.
19249         * malloc/tst-memalign.c (do_test): Add test for very
19250         large alignment values.
19251         * malloc/tst-posix_memalign.c (do_test): Likewise.
19252
19253 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
19254
19255         [BZ #11087]
19256         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
19257         (munmap_chunk): Likewise.
19258         (mremap_chunk): Likewise.
19259
19260 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
19261
19262         [BZ #15799]
19263         * stdlib/div.c (div): Remove obsolete code.
19264         * stdlib/ldiv.c (ldiv): Likewise.
19265         * stdlib/lldiv.c (lldiv): Likewise.
19266
19267 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
19268
19269         [BZ #16071]
19270         * nss/nss_files/files-XXX.c (get_contents_ret): New
19271         enumerator.
19272         (get_contents): New function.
19273         (internal_getent): Use it.  Expand size of LINEBUFLEN.
19274
19275 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
19276
19277         * configure.in: Moved to ...
19278         * configure.ac: ... here. Change reference to configure.in
19279         to configure.ac.
19280         * sysdeps/arm/preconfigure.ac: ... here.
19281         configure.in to configure.ac.
19282         * sysdeps/gnu/configure.in: Moved to ...
19283         * sysdeps/gnu/configure.ac: ... here.
19284         * sysdeps/i386/configure.in: Moved to ...
19285         * sysdeps/i386/configure.ac: ... here.
19286         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
19287         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
19288         * sysdeps/mach/configure.in: Moved to ...
19289         * sysdeps/mach/configure.ac: ... here.
19290         * sysdeps/mach/hurd/configure.in: Moved to ...
19291         * sysdeps/mach/hurd/configure.ac: ... here.
19292         * sysdeps/powerpc/configure.in: Moved to ...
19293         * sysdeps/powerpc/configure.ac: ... here.
19294         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
19295         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
19296         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
19297         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
19298         * sysdeps/s390/s390-32/configure.in: Moved to ...
19299         * sysdeps/s390/s390-32/configure.ac: ... here.
19300         * sysdeps/s390/s390-64/configure.in: Moved to ...
19301         * sysdeps/s390/s390-64/configure.ac: ... here.
19302         * sysdeps/sh/configure.in: Moved to ...
19303         * sysdeps/sh/configure.ac: ... here.
19304         * sysdeps/sparc/configure.in: Moved to ...
19305         * sysdeps/sparc/configure.ac: ... here.
19306         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
19307         * sysdeps/unix/sysv/linux/configure.ac: ... here.
19308         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
19309         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
19310         * sysdeps/x86_64/configure.in: Moved to ...
19311         * sysdeps/x86_64/configure.ac: ... here.
19312         * sysdeps/x86_64/preconfigure.in: Moved to ...
19313         * sysdeps/x86_64/preconfigure.ac: ... here.
19314         * aclocal.m4: Change reference to configure.in to configure.ac.
19315         * config.h.in: Likewise.
19316         * manual/install.texi: Likewise.
19317         * manual/maint.texi: Likewise.
19318         * Makefile: Likewise.
19319         * malloc/Makefile: Likewise.
19320         * nscd/Makefile: Likewise.
19321         * Makeconfig: Change reference to configure.in and
19322         preconfigure.in to configure.ac and preconfigure.ac
19323         respectively.
19324         * INSTALL: Regenerated.
19325         * configure: Likewise.
19326         * sysdeps/gnu/configure: Likewise.
19327         * sysdeps/i386/configure: Likewise.
19328         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
19329         * sysdeps/mach/configure: Likewise.
19330         * sysdeps/mach/hurd/configure: Likewise.
19331         * sysdeps/powerpc/configure: Likewise.
19332         * sysdeps/powerpc/powerpc32/configure: Likewise.
19333         * sysdeps/powerpc/powerpc64/configure: Likewise.
19334         * sysdeps/s390/s390-32/configure: Likewise.
19335         * sysdeps/s390/s390-64/configure: Likewise.
19336         * sysdeps/sh/configure: Likewise.
19337         * sysdeps/sparc/configure: Likewise.
19338         * sysdeps/unix/sysv/linux/configure: Likewise.
19339         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
19340         * sysdeps/x86_64/configure: Likewise.
19341         * sysdeps/x86_64/preconfigure: Likewise.
19342
19343 2013-10-29  Andreas Schwab  <schwab@suse.de>
19344
19345         * stdio-common/Makefile (tst-swscanf-ENV): Define.
19346
19347 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
19348
19349         * benchtests/pow-inputs: Add new inputs.
19350
19351         * benchtests/exp-inputs: Add new inputs.
19352
19353         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
19354         conditional check for return value.
19355         (__cos32): Likewise.
19356
19357 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19358
19359         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
19360         to provide a boost for large inputs with word alignment.
19361         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
19362         implementation based on optimized PPC64 strcpy.
19363         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
19364         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
19365         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
19366         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
19367
19368 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
19369
19370         [BZ #2801]
19371         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
19372
19373 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
19374
19375         [BZ #14876]
19376         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
19377         * time/tst-strptime.c (day_tests): Add testcase.
19378
19379 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
19380
19381         [BZ #14029]
19382         * manual/pattern.texi: Acknowledge that fnmatch can fail.
19383
19384 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
19385
19386         [BZ #16074]
19387         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
19388         MAP_FAILED on error.
19389
19390 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
19391
19392         [BZ #16072]
19393         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
19394         heap for large requests.
19395
19396 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
19397
19398         [BZ #9954]
19399         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
19400         result if the result has no associated interface.
19401         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
19402         interface for all 127.X.Y.Z addresses.
19403
19404 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
19405
19406         * locale/iso-639.def: Add Ligurian (lij)
19407
19408 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
19409
19410         [BZ #15825]
19411         * sunrpc/rpc_main.c: Document rpcgen -5.
19412
19413 2013-10-19  Michael Stahl  <mstahl@redhat.com>
19414
19415         * elf/rtld.c (do_preload): Print the reason why preloading failed.
19416
19417 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
19418
19419         [BZ #10278]
19420         * posix/glob.c: Match only directories when trailing slash is present.
19421         * posix/tst-gnuglob.c (my_opendir): Do not open files.
19422         (main): Add testcase.
19423
19424 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
19425
19426         [BZ #15670]
19427         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
19428
19429 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
19430
19431         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
19432         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
19433         AUTH_DES and cindex for FIPS 140-2.
19434         (DES Encryption): Add cindex FIPS 46-3.
19435
19436         * locale/locarchive.h (struct locarhandle): Add fname.
19437         * locale/programs/localedef.c (main): Pass ARGV[remaining]
19438         if an optional argument was specified to --list-archive,
19439         otherwise NULL.
19440         * locale/programs/locarchive.c (show_archive_content): Take new
19441         argument fname and pass it via ah.fname to open_archive.
19442         * locale/programs/localedef.h: Update decl.
19443         (open_archive): If AH->fname is non-null, open that file
19444         rather than the default file name, and don't ignore ENOENT.
19445         (create_archive): Set AH.fname to NULL.
19446         (delete_locales_from_archive): Likewise.
19447         (add_locales_to_archive): Likewise.
19448         * locale/programs/locfile.c (write_all_categories): Likewise.
19449
19450 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
19451             Aldy Hernandez  <aldyh@redhat.com>
19452
19453         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
19454         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
19455         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
19456         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
19457         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
19458         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
19459         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
19460         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
19461         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
19462         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
19463         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
19464         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
19465         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
19466         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
19467         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
19468         Likewise.
19469         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
19470         Likewise.
19471         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
19472         Likewise.
19473         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
19474         Likewise.
19475         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
19476         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
19477         Likewise.
19478         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
19479         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
19480         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
19481         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
19482         Likewise.
19483         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
19484         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
19485         * sysdeps/powerpc/preconfigure: Likewise.
19486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
19487         Likewise.
19488         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
19489         Replace contents of file by #include of <fenv_libc.h>.
19490         * sysdeps/powerpc/soft-fp/sfp-machine.h
19491         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
19492         and <sys/prctl.h>.
19493         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
19494         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
19495         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
19496         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
19497         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
19498         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
19499         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
19500         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
19501         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
19502         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
19503         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
19504         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
19505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
19506         Allow copysignl PLT reference to be missing.
19507
19508 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
19509             Joseph Myers  <joseph@codesourcery.com
19510
19511         [BZ #15948]
19512         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
19513         single character.
19514         (add_to_tablewc): Assert sequence of wide characters is nonempty.
19515
19516 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
19517
19518         * elf/tst-tls-dlinfo.c: Don't include tls.h.
19519         * elf/tst-tls1.c: Likewise.
19520         * elf/tst-tls10.h: Likewise.
19521         * elf/tst-tls14.c: Likewise.
19522         * elf/tst-tls2.c: Likewise.
19523         * elf/tst-tls3.c: Likewise.
19524         * elf/tst-tls4.c: Likewise.
19525         * elf/tst-tls5.c: Likewise.
19526         * elf/tst-tls6.c: Likewise.
19527         * elf/tst-tls7.c: Likewise.
19528         * elf/tst-tls8.c: Likewise.
19529         * elf/tst-tls9.c: Likewise.
19530         * elf/tst-tlsmod1.c: Likewise.
19531         * elf/tst-tlsmod13.c: Likewise.
19532         * elf/tst-tlsmod13a.c: Likewise.
19533         * elf/tst-tlsmod14a.c: Likewise.
19534         * elf/tst-tlsmod16a.c: Likewise.
19535         * elf/tst-tlsmod16b.c: Likewise.
19536         * elf/tst-tlsmod2.c: Likewise.
19537         * elf/tst-tlsmod3.c: Likewise.
19538         * elf/tst-tlsmod4.c: Likewise.
19539         * elf/tst-tlsmod5.c: Likewise.
19540         * elf/tst-tlsmod6.c: Likewise.
19541
19542 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
19543
19544         [BZ #12486]
19545         * malloc/malloc.c: remove checks for statistics.
19546
19547 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
19548
19549         [BZ #15277]
19550         * inet/inet_net.c (inet_network): Detect additional invalid strings.
19551         * inet/tst-network.c: Add testcase.
19552
19553 2013-10-17  Andreas Schwab  <schwab@suse.de>
19554
19555         [BZ #15218]
19556         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
19557         to determine canonical name.
19558
19559 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
19560
19561         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
19562         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
19563         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
19564         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
19565         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
19566         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
19567         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
19568         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
19569         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
19570         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
19571         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
19572         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
19573         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
19574         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
19575         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
19576         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
19577         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
19578         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
19579         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
19580         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
19581         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
19582         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
19583         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19584         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
19585         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
19586         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
19587         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
19588         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
19589         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
19590         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
19591         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
19592         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
19593         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
19594         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
19595         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19596         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19597         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
19598         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19599         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19600         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19601         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19602         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
19603         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
19604         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19605         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
19606         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
19607         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19608         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
19609         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
19610         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19611         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
19612         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
19613         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
19614         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
19615         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
19616         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
19617         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
19618         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19619
19620 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
19621
19622         [BZ #16041]
19623         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
19624         make result into a quiet NaN.
19625
19626 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
19627
19628         * soft-fp/adddf3.c: Fix horizontal whitespace.
19629         * soft-fp/addsf3.c: Likewise.
19630         * soft-fp/addtf3.c: Likewise.
19631         * soft-fp/divdf3.c: Likewise.
19632         * soft-fp/divsf3.c: Likewise.
19633         * soft-fp/divtf3.c: Likewise.
19634         * soft-fp/double.h: Likewise.
19635         * soft-fp/eqdf2.c: Likewise.
19636         * soft-fp/eqsf2.c: Likewise.
19637         * soft-fp/eqtf2.c: Likewise.
19638         * soft-fp/extenddftf2.c: Likewise.
19639         * soft-fp/extended.h: Likewise.
19640         * soft-fp/extendsfdf2.c: Likewise.
19641         * soft-fp/extendsftf2.c: Likewise.
19642         * soft-fp/extendxftf2.c: Likewise.
19643         * soft-fp/fixdfdi.c: Likewise.
19644         * soft-fp/fixdfsi.c: Likewise.
19645         * soft-fp/fixdfti.c: Likewise.
19646         * soft-fp/fixsfdi.c: Likewise.
19647         * soft-fp/fixsfsi.c: Likewise.
19648         * soft-fp/fixsfti.c: Likewise.
19649         * soft-fp/fixtfdi.c: Likewise.
19650         * soft-fp/fixtfsi.c: Likewise.
19651         * soft-fp/fixtfti.c: Likewise.
19652         * soft-fp/fixunsdfdi.c: Likewise.
19653         * soft-fp/fixunsdfsi.c: Likewise.
19654         * soft-fp/fixunsdfti.c: Likewise.
19655         * soft-fp/fixunssfdi.c: Likewise.
19656         * soft-fp/fixunssfsi.c: Likewise.
19657         * soft-fp/fixunssfti.c: Likewise.
19658         * soft-fp/fixunstfdi.c: Likewise.
19659         * soft-fp/fixunstfsi.c: Likewise.
19660         * soft-fp/fixunstfti.c: Likewise.
19661         * soft-fp/floatdidf.c: Likewise.
19662         * soft-fp/floatdisf.c: Likewise.
19663         * soft-fp/floatditf.c: Likewise.
19664         * soft-fp/floatsidf.c: Likewise.
19665         * soft-fp/floatsisf.c: Likewise.
19666         * soft-fp/floatsitf.c: Likewise.
19667         * soft-fp/floattidf.c: Likewise.
19668         * soft-fp/floattisf.c: Likewise.
19669         * soft-fp/floattitf.c: Likewise.
19670         * soft-fp/floatundidf.c: Likewise.
19671         * soft-fp/floatundisf.c: Likewise.
19672         * soft-fp/floatunditf.c: Likewise.
19673         * soft-fp/floatunsidf.c: Likewise.
19674         * soft-fp/floatunsisf.c: Likewise.
19675         * soft-fp/floatunsitf.c: Likewise.
19676         * soft-fp/floatuntidf.c: Likewise.
19677         * soft-fp/floatuntisf.c: Likewise.
19678         * soft-fp/floatuntitf.c: Likewise.
19679         * soft-fp/fmadf4.c: Likewise.
19680         * soft-fp/fmasf4.c: Likewise.
19681         * soft-fp/fmatf4.c: Likewise.
19682         * soft-fp/gedf2.c: Likewise.
19683         * soft-fp/gesf2.c: Likewise.
19684         * soft-fp/getf2.c: Likewise.
19685         * soft-fp/ledf2.c: Likewise.
19686         * soft-fp/lesf2.c: Likewise.
19687         * soft-fp/letf2.c: Likewise.
19688         * soft-fp/muldf3.c: Likewise.
19689         * soft-fp/mulsf3.c: Likewise.
19690         * soft-fp/multf3.c: Likewise.
19691         * soft-fp/negdf2.c: Likewise.
19692         * soft-fp/negsf2.c: Likewise.
19693         * soft-fp/negtf2.c: Likewise.
19694         * soft-fp/op-1.h: Likewise.
19695         * soft-fp/op-2.h: Likewise.
19696         * soft-fp/op-4.h: Likewise.
19697         * soft-fp/op-8.h: Likewise.
19698         * soft-fp/op-common.h: Likewise.
19699         * soft-fp/quad.h: Likewise.
19700         * soft-fp/single.h: Likewise.
19701         * soft-fp/soft-fp.h: Likewise.
19702         * soft-fp/sqrtdf2.c: Likewise.
19703         * soft-fp/sqrtsf2.c: Likewise.
19704         * soft-fp/sqrttf2.c: Likewise.
19705         * soft-fp/subdf3.c: Likewise.
19706         * soft-fp/subsf3.c: Likewise.
19707         * soft-fp/subtf3.c: Likewise.
19708         * soft-fp/truncdfsf2.c: Likewise.
19709         * soft-fp/trunctfdf2.c: Likewise.
19710         * soft-fp/trunctfsf2.c: Likewise.
19711         * soft-fp/trunctfxf2.c: Likewise.
19712         * soft-fp/unorddf2.c: Likewise.
19713         * soft-fp/unordsf2.c: Likewise.
19714         * soft-fp/unordtf2.c: Likewise.
19715
19716 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
19717
19718         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
19719         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
19720
19721 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
19722
19723         * elf/dl-libc.c: Clear initfini list after freeing.
19724
19725 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
19726
19727         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
19728         * soft-fp/addsf3.c: Likewise.
19729         * soft-fp/addtf3.c: Likewise.
19730         * soft-fp/divdf3.c: Likewise.
19731         * soft-fp/divsf3.c: Likewise.
19732         * soft-fp/divtf3.c: Likewise.
19733         * soft-fp/double.h: Likewise.
19734         * soft-fp/eqdf2.c: Likewise.
19735         * soft-fp/eqsf2.c: Likewise.
19736         * soft-fp/eqtf2.c: Likewise.
19737         * soft-fp/extenddftf2.c: Likewise.
19738         * soft-fp/extended.h: Likewise.
19739         * soft-fp/extendsfdf2.c: Likewise.
19740         * soft-fp/extendsftf2.c: Likewise.
19741         * soft-fp/extendxftf2.c: Likewise.
19742         * soft-fp/fixdfdi.c: Likewise.
19743         * soft-fp/fixdfsi.c: Likewise.
19744         * soft-fp/fixdfti.c: Likewise.
19745         * soft-fp/fixsfdi.c: Likewise.
19746         * soft-fp/fixsfsi.c: Likewise.
19747         * soft-fp/fixsfti.c: Likewise.
19748         * soft-fp/fixtfdi.c: Likewise.
19749         * soft-fp/fixtfsi.c: Likewise.
19750         * soft-fp/fixtfti.c: Likewise.
19751         * soft-fp/fixunsdfdi.c: Likewise.
19752         * soft-fp/fixunsdfsi.c: Likewise.
19753         * soft-fp/fixunsdfti.c: Likewise.
19754         * soft-fp/fixunssfdi.c: Likewise.
19755         * soft-fp/fixunssfsi.c: Likewise.
19756         * soft-fp/fixunssfti.c: Likewise.
19757         * soft-fp/fixunstfdi.c: Likewise.
19758         * soft-fp/fixunstfsi.c: Likewise.
19759         * soft-fp/fixunstfti.c: Likewise.
19760         * soft-fp/floatdidf.c: Likewise.
19761         * soft-fp/floatdisf.c: Likewise.
19762         * soft-fp/floatditf.c: Likewise.
19763         * soft-fp/floatsidf.c: Likewise.
19764         * soft-fp/floatsisf.c: Likewise.
19765         * soft-fp/floatsitf.c: Likewise.
19766         * soft-fp/floattidf.c: Likewise.
19767         * soft-fp/floattisf.c: Likewise.
19768         * soft-fp/floattitf.c: Likewise.
19769         * soft-fp/floatundidf.c: Likewise.
19770         * soft-fp/floatundisf.c: Likewise.
19771         * soft-fp/floatunsidf.c: Likewise.
19772         * soft-fp/floatunsisf.c: Likewise.
19773         * soft-fp/floatuntidf.c: Likewise.
19774         * soft-fp/floatuntisf.c: Likewise.
19775         * soft-fp/floatuntitf.c: Likewise.
19776         * soft-fp/fmadf4.c: Likewise.
19777         * soft-fp/fmasf4.c: Likewise.
19778         * soft-fp/fmatf4.c: Likewise.
19779         * soft-fp/gedf2.c: Likewise.
19780         * soft-fp/gesf2.c: Likewise.
19781         * soft-fp/getf2.c: Likewise.
19782         * soft-fp/ledf2.c: Likewise.
19783         * soft-fp/lesf2.c: Likewise.
19784         * soft-fp/letf2.c: Likewise.
19785         * soft-fp/muldf3.c: Likewise.
19786         * soft-fp/mulsf3.c: Likewise.
19787         * soft-fp/multf3.c: Likewise.
19788         * soft-fp/negdf2.c: Likewise.
19789         * soft-fp/negsf2.c: Likewise.
19790         * soft-fp/negtf2.c: Likewise.
19791         * soft-fp/op-1.h: Likewise.
19792         * soft-fp/op-2.h: Likewise.
19793         * soft-fp/op-4.h: Likewise.
19794         * soft-fp/op-8.h: Likewise.
19795         * soft-fp/op-common.h: Likewise.
19796         * soft-fp/quad.h: Likewise.
19797         * soft-fp/single.h: Likewise.
19798         * soft-fp/soft-fp.h: Likewise.
19799         * soft-fp/sqrtdf2.c: Likewise.
19800         * soft-fp/sqrtsf2.c: Likewise.
19801         * soft-fp/sqrttf2.c: Likewise.
19802         * soft-fp/subdf3.c: Likewise.
19803         * soft-fp/subsf3.c: Likewise.
19804         * soft-fp/subtf3.c: Likewise.
19805         * soft-fp/truncdfsf2.c: Likewise.
19806         * soft-fp/trunctfdf2.c: Likewise.
19807         * soft-fp/trunctfsf2.c: Likewise.
19808         * soft-fp/trunctfxf2.c: Likewise.
19809         * soft-fp/unorddf2.c: Likewise.
19810         * soft-fp/unordsf2.c: Likewise.
19811         * soft-fp/unordtf2.c: Likewise.
19812
19813 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
19814
19815         [BZ #15672]
19816         * misc/error.c (error_tail): Fix possible buffer overflow.
19817
19818 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
19819
19820         [BZ #13028]
19821         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
19822         address.
19823
19824 2013-10-14  P. J. McDermott  <pj@pehjota.net>
19825
19826         [BZ #832]
19827         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
19828         testing pipefail option.
19829
19830 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
19831
19832         * soft-fp/double.h: Indent preprocessor directives inside #if.
19833         * soft-fp/extended.h: Likewise.
19834         * soft-fp/op-2.h: Likewise.
19835         * soft-fp/op-4.h: Likewise.
19836         * soft-fp/op-common.h: Likewise.
19837         * soft-fp/quad.h: Likewise.
19838         * soft-fp/single.h: Likewise.
19839         * soft-fp/soft-fp.h: Likewise.
19840
19841 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
19842
19843         * iconv/iconv_prog.c: Fix typos.
19844         * stdio-common/psiginfo-data.h: Likewise.
19845
19846 2013-10-12   Reuben Thomas <rrt@sc3d.org>
19847
19848         [BZ #15764]
19849         * locale/setlocale.c: Fix typo.
19850
19851 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
19852
19853         [BZ #16036]
19854         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
19855         signaling NaN arguments.
19856         * soft-fp/unordsf2.c (__unordsf2): Likewise.
19857         * soft-fp/unordtf2.c (__unordtf2): Likewise.
19858
19859         [BZ #14910]
19860         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
19861         unordered operands.
19862         * soft-fp/gesf2.c (__gesf2): Likewise.
19863         * soft-fp/getf2.c (__getf2): Likewise.
19864         * soft-fp/ledf2.c (__ledf2): Likewise.
19865         * soft-fp/lesf2.c (__lesf2): Likewise.
19866         * soft-fp/letf2.c (__letf2): Likewise.
19867
19868         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
19869         * soft-fp/eqsf2.c (__eqsf2): Likewise.
19870         * soft-fp/eqtf2.c (__eqtf2): Likewise.
19871         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
19872         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
19873         * soft-fp/fixdfti.c (__fixdfti): Likewise.
19874         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
19875         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
19876         * soft-fp/fixsfti.c (__fixsfti): Likewise.
19877         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
19878         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
19879         * soft-fp/fixtfti.c (__fixtfti): Likewise.
19880         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
19881         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
19882         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
19883         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
19884         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
19885         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
19886         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
19887         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
19888         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
19889         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
19890         * soft-fp/floatdisf.c (__floatdisf): Likewise.
19891         * soft-fp/floatsisf.c (__floatsisf): Likewise.
19892         * soft-fp/floattidf.c (__floattidf): Likewise.
19893         * soft-fp/floattisf.c (__floattisf): Likewise.
19894         * soft-fp/floattitf.c (__floattitf): Likewise.
19895         * soft-fp/floatundidf.c (__floatundidf): Likewise.
19896         * soft-fp/floatundisf.c (__floatundisf): Likewise.
19897         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
19898         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
19899         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
19900         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
19901         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
19902         * soft-fp/gesf2.c (__gesf2): Likewise.
19903         * soft-fp/getf2.c (__getf2): Likewise.
19904         * soft-fp/ledf2.c (__ledf2): Likewise.
19905         * soft-fp/lesf2.c (__lesf2): Likewise.
19906         * soft-fp/letf2.c (__letf2): Likewise.
19907
19908         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
19909         Undefine and redefine.
19910         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
19911         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
19912         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
19913         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
19914         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
19915         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
19916         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
19917         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
19918         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
19919         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
19920         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
19921         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
19922         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
19923         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
19924         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
19925
19926         [BZ #16032]
19927         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
19928         without decrementing exponent if mantissa >= that for the
19929         denominator, not >.
19930         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
19931         denominator, not >.  Decrement exponent in < case instead of
19932         incrementing in >= case.
19933         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
19934         without decrementing exponent if mantissa >= that for the
19935         denominator, not >.
19936
19937         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
19938         computing saturated result for unsigned overflow.
19939
19940 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
19941             Jeff Law  <law@redhat.com>
19942
19943         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
19944         (atan2Mp): Add systemtap probe marker.
19945         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
19946         (__ieee754_log): Add systemtap probe marker.
19947         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
19948         (atanMp): Add systemtap probe marker.
19949         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
19950         (tanMp): Add systemtap probe marker.
19951         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
19952         (__slowexp): Add systemtap probe marker.
19953         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
19954         (__slowpow): Add systemtap probe marker.
19955         * manual/probes.texi: Document probes.
19956
19957 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
19958
19959         [BZ #15362]
19960         * libio/fileops.c (_IO_new_file_write): Return count of bytes
19961         written.
19962         (_IO_new_file_xsputn): Don't return EOF if nothing has been
19963         written.
19964         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
19965         written to buffer but not flushed.
19966         * libio/iofwrite_u.c:  Likewise.
19967         * libio/iopadn.c:  Return bytes returned even if EOF was
19968         encountered.
19969         * libio/iowpadn.c:  Likewise.
19970         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
19971         if _IO_padn does not write the whole buffer.
19972         [!COMPILE_WPRINTF] (PAD): Likewise.
19973
19974 2013-10-10  David S. Miller  <davem@davemloft.net>
19975
19976         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
19977         directory block.
19978
19979 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
19980
19981         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
19982         instead of FSF address.
19983         * soft-fp/fixdfti.c: Likewise.
19984         * soft-fp/fixsfti.c: Likewise.
19985         * soft-fp/fixtfti.c: Likewise.
19986         * soft-fp/fixunsdfti.c: Likewise.
19987         * soft-fp/fixunssfti.c: Likewise.
19988         * soft-fp/fixunstfti.c: Likewise.
19989         * soft-fp/floattidf.c: Likewise.
19990         * soft-fp/floattisf.c: Likewise.
19991         * soft-fp/floattitf.c: Likewise.
19992         * soft-fp/floatuntidf.c: Likewise.
19993         * soft-fp/floatuntisf.c: Likewise.
19994         * soft-fp/floatuntitf.c: Likewise.
19995         * soft-fp/trunctfxf2.c: Likewise.
19996
19997         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
19998         * soft-fp/fixdfti.c: Likewise.
19999         * soft-fp/fixsfti.c: Likewise.
20000         * soft-fp/fixtfti.c: Likewise.
20001         * soft-fp/fixunsdfti.c: Likewise.
20002         * soft-fp/fixunssfti.c: Likewise.
20003         * soft-fp/fixunstfti.c: Likewise.
20004         * soft-fp/floattidf.c: Likewise.
20005         * soft-fp/floattisf.c: Likewise.
20006         * soft-fp/floattitf.c: Likewise.
20007         * soft-fp/floatuntidf.c: Likewise.
20008         * soft-fp/floatuntisf.c: Likewise.
20009         * soft-fp/floatuntitf.c: Likewise.
20010         * soft-fp/trunctfxf2.c: Likewise.
20011
20012 2013-10-10  David S. Miller  <davem@davemloft.net>
20013
20014         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20015
20016 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
20017
20018         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
20019         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
20020         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
20021         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
20022         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
20023         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
20024         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
20025
20026         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
20027         for NaNs before doing comparisons on argument.
20028         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
20029         Likewise.
20030
20031 2013-10-10  Will Newton  <will.newton@linaro.org>
20032
20033         * malloc/hooks.c (memalign_check): Ensure the value of bytes
20034         passed to _int_memalign does not overflow.
20035
20036 2013-10-10  Torvald Riegel  <triegel@redhat.com>
20037
20038         * scripts/bench.pl: Add include-sources directive.
20039         * benchtests/README: Update documentation.
20040
20041 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
20042
20043         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
20044         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
20045         instead of FP_INIT_ROUNDMODE.
20046         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
20047         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
20048
20049         [BZ #16034]
20050         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
20051         copy class of input value.
20052         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
20053         not handle exceptions.
20054         * soft-fp/negsf2.c (__negsf2): Likewise.
20055         * soft-fp/negtf2.c (__negtf2): Likewise.
20056         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
20057
20058 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
20059
20060         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
20061         semicolon.  From Linux kernel.
20062
20063 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
20064
20065         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
20066
20067 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
20068
20069         [BZ #156]
20070         * manual/socket.texi: Added statement about buffer
20071         for gethostbyname2_r.
20072
20073 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
20074
20075         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
20076         Use .p2align directive instead, throughout.
20077         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
20078         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
20079         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
20080         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
20081         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
20082         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
20083         * sysdeps/x86_64/strchr.S: Likewise.
20084         * sysdeps/x86_64/strrchr.S: Likewise.
20085
20086 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
20087
20088         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
20089
20090         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
20091
20092         * sysdeps/generic/math_private.h (__mpsin1): Remove
20093         declaration.
20094         (__mpcos1): Likewise.
20095         (__mpsin): New argument __range_reduce.
20096         (__mpcos): Likewise.
20097         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20098         (slow): Use __mpsin and __mpcos.
20099         (slow1): Likewise.
20100         (slow2): Likewise.
20101         (sloww): Likewise.
20102         (sloww1): Likewise.
20103         (sloww2): Likewise.
20104         (bsloww): Likewise.
20105         (bsloww1): Likewise.
20106         (bsloww2): Likewise.
20107         (cslow2): Likewise.
20108         (csloww): Likewise.
20109         (csloww1): Likewise.
20110         (csloww2): Likewise.
20111         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
20112         range_reduce.  Merge in __mpsin1.
20113         (__mpcos): Likewise.
20114         (__mpsin1): Remove.
20115         (__mpcos1): Likewise.
20116
20117 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
20118
20119         * locale/loadlocale.c (_nl_intern_locale_data): Use
20120         LOCFILE_ALIGNED_P.
20121         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
20122         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
20123         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
20124         obstack data is appropriately aligned.
20125         (obstack_int32_grow_fast): Likewise.
20126         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
20127         * locale/programs/locfile.c (add_locale_uint32): Likewise.
20128         (add_locale_uint32_array): Likewise.
20129
20130 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
20131
20132         * benchtests/Makefile: Remove ARGLIST and RET variables.
20133         ($(objpfx)bench-%.c): Pass only function name to the script.
20134         * benchtests/README: Update documentation.
20135         * benchtests/acos-inputs: Add new directives.
20136         * benchtests/acosh-inputs: Likewise.
20137         * benchtests/asin-inputs: Likewise.
20138         * benchtests/asinh-inputs: Likewise.
20139         * benchtests/atan-inputs: Likewise.
20140         * benchtests/atanh-inputs: Likewise.
20141         * benchtests/cos-inputs: Likewise.
20142         * benchtests/cosh-inputs: Likewise.
20143         * benchtests/exp-inputs: Likewise.
20144         * benchtests/log-inputs: Likewise.
20145         * benchtests/pow-inputs: Likewise.
20146         * benchtests/rint-inputs: Likewise.
20147         * benchtests/sin-inputs: Likewise.
20148         * benchtests/sinh-inputs: Likewise.
20149         * benchtests/tan-inputs: Likewise.
20150         * benchtests/tanh-inputs: Likewise.
20151         * scripts/bench.pl: Add support for new directives.
20152
20153 2013-10-07  Alan Modra  <amodra@gmail.com>
20154
20155         * README: Fix careless merge.
20156
20157 2013-10-05  Alan Modra  <amodra@gmail.com>
20158
20159         * NEWS: Mention powerpc64le support and bugs fixed.
20160         * README: Both big-endian and little-endian powerpc64 supported.
20161
20162 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20163
20164         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
20165         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
20166         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
20167         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
20168
20169 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
20170
20171         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
20172         match prototype.
20173
20174 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
20175
20176         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
20177         Move -mhard-float appending from
20178         ports/sysdeps/powerpc/powerpc32/Makefile.
20179         [$(with-fp) = yes] (ASFLAGS): Likewise.
20180         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
20181         * sysdeps/powerpc/nofpu: Move directory from
20182         ports/sysdeps/powerpc/nofpu.
20183         * sysdeps/powerpc/soft-fp: Move directory from
20184         ports/sysdeps/powerpc/soft-fp.
20185         * sysdeps/powerpc/powerpc32/405: Move directory from
20186         ports/sysdeps/powerpc/powerpc32/405.
20187         * sysdeps/powerpc/powerpc32/440: Move directory from
20188         ports/sysdeps/powerpc/powerpc32/440.
20189         * sysdeps/powerpc/powerpc32/464: Move directory from
20190         ports/sysdeps/powerpc/powerpc32/464.
20191         * sysdeps/powerpc/powerpc32/476: Move directory from
20192         ports/sysdeps/powerpc/powerpc32/476.
20193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
20194         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
20195         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
20196         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
20197         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
20198         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
20199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
20200         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
20201         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
20202         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
20203         * README: Update for powerpc-*-linux-gnu software floating point
20204         support in libc.
20205
20206         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
20207         case to powerpc/powerpc32*.
20208         * sysdeps/unix/sysv/linux/configure: Regenerated.
20209
20210         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
20211         (_FPU_MASK_OM): Define as 0x04.
20212         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
20213         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
20214         0x00c10080.
20215         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
20216         0x0000003c.
20217         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
20218
20219         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
20220         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
20221         getcontext_e500.
20222         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
20223         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
20224         setcontext_e500.
20225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
20226         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
20227         and setcontext_e500.
20228
20229 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
20230
20231         * locale/iso-3166.def: Update iso-1366.def and related occurrences
20232
20233 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
20234
20235         * manual/threads.texi (Default Thread Attributes): Fix typo.
20236
20237 2013-10-04  Will Newton  <will.newton@linaro.org>
20238
20239         * malloc/Makefile: Add tst-memalign.
20240         * malloc/tst-memalign.c: New file.
20241
20242         * malloc/tst-posix_memalign.c: Add comments.
20243         (do_test): Add comments and call free on all potentially
20244         allocated pointers. Add space after cast.
20245
20246         * malloc/tst-pvalloc.c: Add comments.
20247         (do_test): Add comments and call free on all potentially
20248         allocated pointers. Remove duplicate check for NULL pointer.
20249         Add space after cast.
20250
20251         * malloc/tst-valloc.c: Add comments.
20252         (do_test): Add comments and call free on all potentially
20253         allocated pointers. Remove duplicate check for NULL pointer.
20254         Add space after cast.
20255
20256 2013-10-04  Alan Modra  <amodra@gmail.com>
20257
20258         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
20259         Use stdint types in rather than __attribute__((mode())).
20260         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
20261
20262 2013-10-04  Alan Modra  <amodra@gmail.com>
20263
20264         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
20265         Correct handling of unaligned relocs for little-endian.
20266         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
20267
20268 2013-10-04  Alan Modra  <amodra@gmail.com>
20269
20270         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
20271         * configure: Regenerate.
20272         * nptl/shlib-versions: Powerpc*le starts at 2.18.
20273         * shlib-versions: Likewise.
20274
20275 2013-10-04  Alan Modra  <amodra@gmail.com>
20276
20277         * string/tester.c (test_memrchr): Increment reported test cycle.
20278
20279 2013-10-04  Alan Modra  <amodra@gmail.com>
20280
20281         * string/test-memcpy.c (do_one_test): When reporting errors, print
20282         string address and don't overrun end of string.
20283
20284 2013-10-04  Alan Modra  <amodra@gmail.com>
20285
20286         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
20287         insrdi.  Make better use of reg selection to speed exit slightly.
20288         Schedule entry path a little better.  Remove useless "are we done"
20289         checks on entry to main loop.  Handle wrapping around zero address.
20290         Correct main loop count.  Handle single left-over word from main
20291         loop inline rather than by using loop_small.  Remove extra word
20292         case in loop_small caused by wrong loop count.  Add little-endian
20293         support.
20294         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
20295         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
20296         cache hint.
20297         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
20298         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
20299         support.  Avoid rlwimi.
20300         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
20301
20302 2013-10-04  Alan Modra  <amodra@gmail.com>
20303
20304         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
20305         insrdi.  Formatting.
20306         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
20307         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
20308         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
20309         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
20310         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
20311         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
20312
20313 2013-10-04  Alan Modra  <amodra@gmail.com>
20314
20315         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
20316         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
20317         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
20318         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
20319         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
20320         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
20321         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
20322         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
20323         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
20324         use of regs.  Use power7 mtocrf.  Tidy function tails.
20325
20326 2013-10-04  Alan Modra  <amodra@gmail.com>
20327
20328         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
20329         Formatting.  Consistently use rXXX register defines or rN defines.
20330         Use early exit labels that avoid restoring unused non-volatile regs.
20331         Make cr field use more consistent with rWORDn compares.  Rename
20332         regs used as shift registers for unaligned loop, using rN defines
20333         for short lifetime/multiple use regs.
20334         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
20335         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
20336         addi 1,1,64 to pop stack frame.  Simplify return value code.
20337         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
20338
20339 2013-10-04  Alan Modra  <amodra@gmail.com>
20340
20341         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
20342         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
20343         rather than rlwimi.
20344         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
20345         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
20346         little-endian support.  Correct typos.
20347         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
20348         rather than rlwimi.
20349         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
20350         in loop and entry code to keep "and." results.
20351         (strchr): Add little-endian support.  Comment.  Move cntlzd
20352         earlier in tail.
20353         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
20354
20355 2013-10-04  Alan Modra  <amodra@gmail.com>
20356
20357         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
20358         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
20359         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
20360         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
20361
20362 2013-10-04  Alan Modra  <amodra@gmail.com>
20363
20364         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
20365         (rTMP): Define as r11.
20366         (strcmp): Add little-endian support.  Optimise tail.
20367         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
20368         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
20369         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
20370         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
20371         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
20372         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
20373         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
20374
20375 2013-10-04  Alan Modra  <amodra@gmail.com>
20376
20377         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
20378         little-endian support.  Remove unnecessary "are we done" tests.
20379         Handle "s" wrapping around zero and extremely large "size".
20380         Correct main loop count.  Handle single left-over word from main
20381         loop inline rather than by using small_loop.  Correct comments.
20382         Delete "zero" tail, use "end_max" instead.
20383         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
20384
20385 2013-10-04  Alan Modra  <amodra@gmail.com>
20386
20387         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
20388         support.  Don't branch over align.
20389         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
20390         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
20391         support.  Rearrange tmp reg use to suit.  Comment.
20392         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
20393
20394 2013-10-04  Alan Modra  <amodra@gmail.com>
20395
20396         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
20397
20398 2013-10-04  Alan Modra  <amodra@gmail.com>
20399
20400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
20401         conditional form of branch and link when obtaining pc.
20402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
20403
20404 2013-10-04  Alan Modra  <amodra@gmail.com>
20405
20406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
20407         HIWORD/LOWORD.
20408         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
20409         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
20410
20411 2013-10-04  Alan Modra  <amodra@gmail.com>
20412
20413         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
20414         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
20415         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
20416         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
20417         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
20418         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
20419         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
20420         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
20421         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
20422         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
20423
20424 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
20425             Alistair Popple <alistair@ozlabs.au.ibm.com>
20426             Alan Modra <amodra@gmail.com>
20427
20428         [BZ #15723]
20429         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
20430         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
20431         _dl_hwcap access for little-endian.
20432         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
20433         destroy vmx regs when saving unaligned.
20434         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
20435         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
20436         destroy vmx regs when saving unaligned.
20437
20438 2013-10-04  Alan Modra  <amodra@gmail.com>
20439
20440         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
20441         Don't use a union to pack hi/low value.
20442
20443 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
20444
20445         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
20446         for little-endian.
20447         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
20448         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
20449         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
20450         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
20451         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
20452
20453 2013-10-04  Alan Modra  <amodra@gmail.com>
20454
20455         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
20456         constants to usual value for .cst8 section, and remove redundant
20457         high address load.
20458         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
20459         constant for 0x1p52.  Load little-endian words of double from
20460         correct stack offsets.
20461
20462 2013-10-04  Alan Modra  <amodra@gmail.com>
20463
20464         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
20465         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
20466         words of double from correct stack offsets.
20467         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
20468         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
20469         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
20470         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
20471         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
20472         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
20473         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
20474         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
20475         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
20476         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
20477         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
20478         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
20479         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
20480         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
20481         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
20482         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
20483         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
20484
20485 2013-10-04  Alan Modra  <amodra@gmail.com>
20486
20487         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
20488         64-bit int/double union.
20489         (_FPU_SETCW): Likewise.
20490         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
20491         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
20492
20493 2013-10-04  Alan Modra  <amodra@gmail.com>
20494
20495         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
20496         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
20497
20498 2013-10-04  Alan Modra  <amodra@gmail.com>
20499
20500         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
20501         use vector int constants.
20502         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
20503
20504 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
20505
20506         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
20507         array with long long.
20508         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
20509         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
20510         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
20511         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
20512         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
20513         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
20514         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
20515         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
20516         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
20517         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
20518         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
20519         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
20520         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
20521
20522 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
20523
20524         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
20525         (__signbit): Likewise.  Correct for little-endian.
20526         (__signbitl): Call __signbit.
20527         (lrint): Correct for little-endian.
20528         (lrintf): Call lrint.
20529
20530 2013-10-04  Alan Modra  <amodra@gmail.com>
20531
20532         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
20533         union 32-bit int array member with 64-bit int array.
20534         (t515, tm256): Double rather than long double.
20535         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
20536
20537 2013-10-04  Alan Modra  <amodra@gmail.com>
20538
20539         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
20540         Delete.
20541         (IEEE854_LONG_DOUBLE_BIAS): Delete.
20542         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
20543         version of math_ldbl.h.
20544
20545 2013-10-04  Alan Modra  <amodra@gmail.com>
20546
20547         [BZ #15734], [BZ #15735]
20548         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
20549         all uses of ieee875 long double macros and unions.  Simplify test
20550         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
20551         ldbl_extract_mantissa value for ix,iy exponents.  Properly
20552         normalize after ldbl_extract_mantissa, and don't add hidden bit
20553         already handled.  Don't treat low word of ieee854 mantissa like
20554         low word of IBM long double and mask off bit when testing for
20555         zero.
20556         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
20557         all uses of ieee875 long double macros and unions.  Simplify tests
20558         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
20559         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
20560         two1022, instead use their values.  Recognise that tests for large
20561         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
20562         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
20563         Rewrite all uses of ieee875 long double macros and unions.  Simplify
20564         test for 0.0L and nan.  Correct negation.
20565         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
20566         ieee875 long double macros and unions.  Correct output for large
20567         magnitude x.  Correct absolute value calculation.
20568         (__erfcl): Likewise.
20569         * math/libm-test.inc: Add tests for errors discovered in IBM long
20570         double versions of fmodl, remainderl, erfl and erfcl.
20571
20572 2013-10-04  Alan Modra  <amodra@gmail.com>
20573
20574         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
20575         all uses of ieee854 long double macros and unions.  Simplify tests
20576         for long doubles that are fully specified by the high double.
20577         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
20578         Likewise.
20579         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
20580         Remove dead code too.
20581         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
20582         (__ieee754_ynl): Likewise.
20583         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
20584         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
20585         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
20586         Remove dead code too.
20587         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
20588         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
20589         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
20590         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
20591         Simplify.
20592         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
20593         Simplify.
20594         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
20595         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
20596         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
20597         Comment on variable precision.
20598         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
20599         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
20600         Likewise.
20601         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
20602         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
20603         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
20604         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
20605         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
20606
20607 2013-10-04  Alan Modra  <amodra@gmail.com>
20608
20609         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
20610         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
20611         all uses of ieee854 long double macros and unions.
20612         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
20613         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20614         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
20615         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
20616         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
20617         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
20618         Likewise.
20619         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
20620         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
20621         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
20622         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
20623         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
20624         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
20625         Simplify sign and nan test too.
20626         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
20627         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
20628         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
20629         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
20630         Likewise.
20631         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
20632         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
20633         Likewise.
20634         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
20635         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
20636         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
20637         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
20638         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
20639         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
20640
20641 2013-10-04  Alan Modra  <amodra@gmail.com>
20642
20643         * stdio-common/printf_size.c (__printf_size): Don't use
20644         union ieee854_long_double in fpnum union.
20645         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
20646         signbit macro to retrieve sign from long double.
20647         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
20648         retrieve sign from long double.
20649         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
20650         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
20651         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
20652         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
20653         * math/test-misc.c (main): Don't use union ieee854_long_double.
20654
20655 2013-10-04  Alan Modra  <amodra@gmail.com>
20656
20657         [BZ #15680]
20658         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
20659         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
20660         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
20661         calculation.  Remove unnecessary test for denormal exponent.
20662         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
20663         Correct handling of denormals.  Avoid undefined shift behaviour.
20664         Correct normalisation of low mantissa when low double is denormal.
20665         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
20666         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
20667         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
20668         Correct normalisation of low mantissa.  Test for overflow of high
20669         mantissa and normalise.
20670         (ldbl_nearbyint): Use more readable constant for two52.
20671         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
20672         (__mpn_construct_long_double): Fix test for overflow of high
20673         mantissa and correct normalisation.  Avoid undefined shift.
20674
20675 2013-10-04  Alan Modra  <amodra@gmail.com>
20676
20677         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
20678         (union ibm_extended_long_double): Define as an array of ieee754_double.
20679         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
20680         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
20681         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
20682         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
20683         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
20684         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
20685         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
20686         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
20687         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
20688         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
20689         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
20690
20691 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
20692
20693         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
20694         page size instead of calling getpagesize.
20695
20696         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
20697         (LOCFILE_ALIGN_MASK): Likewise.
20698         (LOCFILE_ALIGN_UP): Likewise.
20699         (LOCFILE_ALIGNED_P): Likewise.
20700         * locale/programs/ld-collate.c (collate_output): Use the new
20701         macros instead of __alignof__ (int32_t).
20702         * locale/weight.h (findidx): Likewise.
20703
20704 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
20705
20706         [BZ #431]
20707         * manual/string.texi: Fix strncat and wcsncat.
20708
20709 2013-10-03  Brooks Moses  <bmoses@google.com>
20710
20711         [BZ #15915]
20712         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
20713         * Makerules: ...here, and adjust associated comments.
20714
20715 2013-10-02  Will Newton  <will.newton@linaro.org>
20716
20717         * malloc/Makefile: Add tst-pvalloc.
20718         * malloc/tst-pvalloc.c: New file.
20719
20720 2013-10-02  Will Newton  <will.newton@linaro.org>
20721
20722         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
20723         improve test coverage.
20724
20725 2013-10-02  Will Newton  <will.newton@linaro.org>
20726
20727         * malloc/Makefile: Add tst-posix_memalign.
20728         * malloc/tst-posix_memalign.c: New file.
20729
20730 2013-10-01  Eric Blake  <eblake@redhat.com>
20731
20732         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
20733         Use __THROWNL rather than __THROW on static functions.
20734
20735 2013-09-30  Petr Machata  <pmachata@redhat.com>
20736
20737         * elf/elf.h (R_AARCH64_ABS16): New macro.
20738         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
20739         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
20740         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
20741         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
20742         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
20743         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
20744         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
20745         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
20746         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
20747         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
20748         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
20749         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
20750         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
20751         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
20752         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
20753         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
20754         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
20755         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
20756         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
20757         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
20758         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
20759         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
20760         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
20761         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
20762         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
20763         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
20764         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
20765         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
20766         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
20767         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
20768         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
20769         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
20770         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
20771         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
20772         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
20773         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
20774         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
20775         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
20776         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
20777         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
20778         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
20779         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
20780         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
20781         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
20782         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
20783         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
20784         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
20785         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
20786         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
20787         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
20788         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
20789         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
20790         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
20791         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
20792         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
20793         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
20794         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
20795         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
20796         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
20797         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
20798         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
20799         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
20800         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
20801         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
20802         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
20803         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
20804         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
20805         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
20806         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
20807         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
20808         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
20809         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
20810         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
20811         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
20812         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
20813         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
20814         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
20815         (R_AARCH64_TLSDESC_LDR): Likewise.
20816         (R_AARCH64_TLSDESC_ADD): Likewise.
20817         (R_AARCH64_TLSDESC_CALL): Likewise.
20818
20819 2013-09-30  Andreas Schwab  <schwab@suse.de>
20820
20821         [BZ #15048]
20822         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
20823         the nss database lookup.
20824         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20825         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
20826
20827 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
20828
20829         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
20830
20831 2013-09-28  P. J. McDermott  <pj@pehjota.net>
20832
20833         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
20834         ${Bash-specific parameter/pattern/string} parameter expansion.
20835         * sysdeps/unix/make-syscalls.sh: Likewise.
20836
20837 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
20838
20839         * sysdeps/sh/stackguard-macros.h: New file.
20840
20841 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
20842
20843         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
20844         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
20845         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
20846         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
20847         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
20848         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
20849
20850 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20851
20852         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
20853         Fix thread ID register.
20854
20855 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
20856
20857         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
20858         [POSIX || UNIX98]: Require rather than permitting all symbols from
20859         <time.h>.
20860         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
20861         element of struct sched_param.
20862         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
20863         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
20864         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
20865         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
20866         constant.
20867
20868 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
20869
20870         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
20871         argument calculation.
20872
20873 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
20874
20875         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
20876         Expect macro.
20877         [POSIX] (pthread_attr_t): Do not require type.
20878         [POSIX] (pthread_cond_t): Likewise.
20879         [POSIX] (pthread_condattr_t): Likewise.
20880         [POSIX] (pthread_key_t): Likewise.
20881         [POSIX] (pthread_mutex_t): Likewise.
20882         [POSIX] (pthread_mutexattr_t): Likewise.
20883         [POSIX] (pthread_once_t): Likewise.
20884         [POSIX] (pthread_t): Likewise.
20885         [POSIX-based standards] (pthread_atfork): Expect function.
20886
20887 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
20888             Richard Sandiford  <richard@codesourcery.com>
20889
20890         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
20891         (swap_endianness_p): New extern variable.
20892         (set_big_endian): New inline function.
20893         (maybe_swap_uint32): Likewise.
20894         (maybe_swap_uint32_array): Likewise.
20895         (maybe_swap_uint32_obstack): Likewise.
20896         * locale/programs/locfile.c: Include <stdbool.h>.
20897         (swap_endianness_p): New variable.
20898         (add_locale_uint32): Call maybe_swap_uint32.
20899         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
20900         (write_locale_data): Call maybe_swap_uint32_array.
20901         * locale/programs/ld-collate.c (obstack_int32_grow): Call
20902         maybe_swap_uint32.
20903         (obstack_int32_grow_fast): Likewise.
20904         (output_weightwc): Call maybe_swap_uint32_obstack.
20905         (collate_output): Likewise.
20906         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
20907         (OPT_LITTLE_ENDIAN): Likewise.
20908         (options): Add --little-endian and --big-endian options.
20909         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
20910         * locale/programs/locarchive.c: Include "locfile.h".
20911         (GET): New macro.
20912         (SET): Likewise.
20913         (INC): Likewise.
20914         (create_archive): Use the new macros to access fields of
20915         structures directly mapped from or written to locale archives.
20916         (oldlocrecentcmp): Likewise.
20917         (enlarge_archive): Likewise.
20918         (insert_name): Likewise.
20919         (add_alias): Likewise.
20920         (add_locale): Likewise.
20921         (delete_locales_from_archive): Likewise.
20922         (show_archive_content): Likewise.
20923         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
20924         locale data.
20925
20926 2013-09-24  Roland McGrath  <roland@hack.frob.com>
20927
20928         * manual/freemanuals.texi: Updated from (newly) canonical copy at
20929         http://www.gnu.org/doc/freemanuals.texi.
20930         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
20931
20932 2013-09-24  Will Newton  <will.newton@linaro.org>
20933
20934         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
20935         macro.
20936
20937 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
20938
20939         * locale/hashval.h (compute_hashval): Interpret bytes of key as
20940         unsigned char.
20941
20942 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
20943
20944         * manual/threads.texi (POSIX Threads): Fix a typo.
20945
20946 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20947
20948         [BZ #14547]
20949         * string/tst-strcoll-overflow.c: New test case.
20950         * string/Makefile (xtests): Add tst-strcoll-overflow.
20951         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
20952         cache if string sizes may cause integer overflow.
20953
20954         [BZ #14547]
20955         * string/strcoll_l.c (coll_seq): New members rule, idx,
20956         save_idx and back_us.
20957         (get_next_seq_nocache): New function.
20958         (do_compare_nocache): New function.
20959         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
20960         when malloc fails.
20961
20962 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
20963
20964         [BZ #15754]
20965         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
20966         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
20967         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
20968
20969         [BZ #15754]
20970         * elf/Makefile (tests): Add tst-ptrguard1.
20971         (tests-static): Add tst-ptrguard1-static.
20972         (tst-ptrguard1-ARGS): Define.
20973         (tst-ptrguard1-static-ARGS): Define.
20974         * elf/tst-ptrguard1.c: New file.
20975         * elf/tst-ptrguard1-static.c: New file.
20976         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
20977         * sysdeps/i386/stackguard-macros.h: Likewise.
20978         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
20979         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
20980         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
20981         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
20982         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
20983         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
20984
20985 2013-09-23  Hector Marco  <hecmargi@upv.es>
20986             Ismael Ripoll  <iripoll@disca.upv.es>
20987             Carlos O'Donell  <carlos@redhat.com>
20988
20989         [BZ #15754]
20990         * sysdeps/generic/stackguard-macros.h: Define
20991         __pointer_chk_guard_local and POINTER_CHK_GUARD.
20992         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
20993         Define __pointer_chk_guard_local.
20994         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
20995         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
20996
20997 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
20998
20999         [BZ #15859]
21000         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
21001
21002 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
21003
21004         * include/string.h (__ffs): Declare as hidden.
21005         * string/ffs.c (__ffs): Define as hidden.
21006         * sysdeps/i386/ffs.c (__ffs): Likewise.
21007         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
21008         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
21009         * sysdeps/s390/ffs.c (__ffs): Likewise.
21010         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
21011
21012 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
21013
21014         * NEWS: Mention malloc probes.
21015
21016         * malloc/arena.c (new_heap): New memory_heap_new probe.
21017         (grow_heap): New memory_heap_more probe.
21018         (shrink_heap): New memory_heap_less probe.
21019         (heap_trim): New memory_heap_free probe.
21020         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
21021         (systrim): New memory_sbrk_less probe.
21022         * manual/probes.texi: Document them.
21023
21024         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
21025         * manual/probes.texi: Document it.
21026
21027         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
21028         (__libc_realloc): Add memory_realloc_retry probe.
21029         (__libc_memalign): Add memory_memalign_retry probe.
21030         (__libc_valloc): Add memory_valloc_retry probe.
21031         (__libc_pvalloc): Add memory_pvalloc_retry probe.
21032         (__libc_calloc): Add memory_calloc_retry probe.
21033         * manual/probes.texi: Document them.
21034
21035         * malloc/arena.c (get_free_list): Add probe
21036         memory_arena_reuse_free_list.
21037         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
21038         and memory_arena_reuse.
21039         (arena_get2) [!PER_THREAD]: Likewise.
21040         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
21041         memory_arena_reuse_realloc.
21042         * manual/probes.texi: Document them.
21043
21044         * malloc/malloc.c (__libc_free): Add
21045         memory_mallopt_free_dyn_thresholds probe.
21046         (__libc_mallopt): Add multiple memory_mallopt probes.
21047         * manual/probes.texi: Document them.
21048
21049         * malloc/malloc.c: Include stap-probe.h.
21050         (__libc_mallopt): Add memory_mallopt probe.
21051         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
21052         * manual/probes.texi: New.
21053         * manual/Makefile (chapters): Add probes.
21054         * manual/threads.texi: Set next node.
21055
21056 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
21057
21058         [BZ #15963, #13985]
21059         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
21060         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
21061         Add `Chinese' to `nan' entry name.
21062
21063 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21064
21065         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
21066         (POLYNOMIAL): Likewise.
21067         (TAYLOR_SINCOS): Likewise.
21068         (TAYLOR_SLOW): Likewise.
21069         (__sin): Use TAYLOR_SINCOS.
21070         (__cos): Likewise.
21071         (slow): Use TAYLOR_SLOW.
21072         (sloww): Likewise.
21073         (bsloww): Likewise.
21074         (csloww): Likewise.
21075
21076 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21077
21078         * stdlib/strtod_l.c: Fix buffer overrun.
21079
21080 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21081
21082         * benchtests/Makefile (bench): Add sincos.
21083         * benchtests/bench-sincos.c: New file.
21084
21085         * math/libm-test.inc (cos_test_data): New test inputs.
21086         (sin_test_data): Likewise.
21087
21088         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
21089         macro.
21090         (__sin): Use it.
21091         (__cos): Likewise.
21092         (slow1): Likewise.
21093         (slow2): Likewise.
21094         (sloww1): Likewise.
21095         (sloww2): Likewise.
21096         (bsloww1): Likewise.
21097         (bsloww2): Likewise.
21098         (cslow2): Likewise.
21099         (csloww1): Likewise.
21100         (csloww2): Likewise.
21101
21102         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
21103         function.
21104         (__sin): Use it.
21105         (__cos): Likewise.
21106
21107         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
21108         gotos.
21109         (__cos): Likewise.
21110
21111 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
21112
21113         * config.h.in (HAVE_MIPS_NAN2008): New macro.
21114         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
21115         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
21116         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
21117         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
21118         * elf/cache.c (print_entry): Handle the new cache flags.
21119
21120 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
21121             Aldy Hernandez  <aldyh@redhat.com>
21122
21123         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
21124         Change condition to [_SOFT_FLOAT].
21125         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
21126         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
21127         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
21128         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
21129         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
21130         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
21131         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
21132         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
21133         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
21134         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
21135         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
21136         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
21137         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
21138         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
21139         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
21140         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
21141         declaration.
21142
21143 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
21144
21145         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
21146         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
21147         (__longjmp): Use LOAD_GP to load saved GPRs.
21148         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
21149         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
21150         (__sigsetjmp): Use SAVE_GP to save GPRs.
21151
21152         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
21153         Do not append -msoft-float.
21154         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
21155
21156 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
21157
21158         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
21159
21160 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
21161
21162         [BZ #15966]
21163         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
21164         (_FPU_GETCW): Use initial "__" on variable and field names but not
21165         on macro parameter name.
21166         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
21167         parentheses around reference to macro parameter.
21168
21169 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
21170
21171         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
21172         prototype.
21173         (ctype_startup): Use uint32_t in cast and sizeof for
21174         ctype->charnames.
21175
21176 2013-09-11  Jia Liu  <proljc@gmail.com>
21177
21178         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
21179         __daddr_t_defined.
21180         [__FreeBSD__]: Likewise.
21181
21182 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
21183
21184         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
21185         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
21186         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
21187         (strchr): Remove __strchr_sse42 ifunc selection.
21188         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
21189         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
21190
21191 2013-09-11  Will Newton  <will.newton@linaro.org>
21192
21193         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
21194         parameter to RES. Remove hardcoded 1000 value.
21195         * benchtests/bench-skeleton.c (main): Pass RES parameter
21196         to TIMING_INIT and multiply result by 1000.
21197
21198 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21199
21200         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21201
21202 2013-09-11  Andreas Schwab  <schwab@suse.de>
21203
21204         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
21205         if not defined.
21206         (O_TMPFILE) [__USE_GNU]: Define.
21207         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
21208         Define.
21209
21210 2013-09-11  Will Newton  <will.newton@linaro.org>
21211
21212         [BZ #15857]
21213         * malloc/malloc.c (__libc_memalign): Check the value of bytes
21214         does not overflow.
21215
21216 2013-09-11  Will Newton  <will.newton@linaro.org>
21217
21218         [BZ #15856]
21219         * malloc/malloc.c (__libc_valloc): Check the value of bytes
21220         does not overflow.
21221
21222 2013-09-11  Will Newton  <will.newton@linaro.org>
21223
21224         [BZ #15855]
21225         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
21226         does not overflow.
21227
21228 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
21229
21230         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
21231         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
21232         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
21233         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
21234         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
21235
21236 2013-09-10  Allan McRae  <allan@archlinux.org>
21237
21238         [BZ #15748]
21239         * manual/arith.texi (Parsing of Floats): Clarify
21240         cross-reference.
21241
21242         [BZ #15849]
21243         * manual/install.texi (Running make install): Mention
21244         --enable-pt-chown.
21245         * INSTALL: Regenerated.
21246
21247 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
21248
21249         * csu/init-first.c (_init): Remove the !SHARED condition around
21250         FPU control word initialization.
21251         * elf/dl-support.c (_dl_fpu_control): New variable.
21252         (_dl_aux_init) <AT_FPUCW>: Initialize it.
21253         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
21254         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
21255         * math/test-fpucw-static.c: New file.
21256         * math/test-fpucw-ieee.c: New file.
21257         * math/test-fpucw-ieee-static.c: New file.
21258         * math/Makefile (tests): Add `test-fpucw-ieee' and
21259         `$(tests-static)'.
21260         (tests-static): New variable.
21261         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
21262         dependency to...
21263         [($(build-shared),yes)]
21264         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
21265         ... this.
21266         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
21267         New dependency.
21268
21269 2013-09-09  Allan McRae  <allan@archlinux.org>
21270
21271         [BZ #15939]
21272         * manual/string.texi (Collation Functions): Fix typo in
21273         strcoll example.
21274         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
21275
21276         [BZ #15893]
21277         * stdlib/isomac.c (get_null_defines): Fix memory leak.
21278
21279         [BZ #15892]
21280         * libio/memstream.c (open_memstream): Fix memory leak.
21281         * libio/wmemstream.c (open_wmemstream): Likewise.
21282
21283         [BZ #15895]
21284         * nscd/netgroupcache.c: Fix nesting of ifdefs.
21285
21286 2013-09-09  Will Newton  <will.newton@linaro.org>
21287
21288         * malloc/Makefile: Add tst-realloc to tests.
21289         * malloc/tst-realloc.c: New file.
21290
21291 2013-09-09  Allan McRae  <allan@archlinux.org>
21292
21293         [BZ #15844]
21294         * COPYING: Update from GNU website to fix FSF address.
21295         * COPYING.LIB: Likewise.
21296
21297 2013-09-06  David S. Miller  <davem@davemloft.net>
21298
21299         * po/zh_TW.po: Update Chinese (traditional) translation from
21300         translation project.
21301
21302 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
21303             Joseph Myers  <joseph@codesourcery.com>
21304
21305         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
21306         "localeinfo.h".
21307         (obstack_chunk_alloc): New macro.
21308         (obstack_chunk_free): Likewise.
21309         (record_offset): New function.
21310         (init_locale_data): Likewise.
21311         (align_locale_data): Likewise.
21312         (add_locale_empty): Likewise.
21313         (add_locale_raw_data): Likewise.
21314         (add_locale_raw_obstack): Likewise.
21315         (add_locale_string): Likewise.
21316         (add_locale_wstring): Likewise.
21317         (add_locale_uint32): Likewise.
21318         (add_locale_uint32_array): Likewise.
21319         (add_locale_char): Likewise.
21320         (start_locale_structure): Likewise.
21321         (end_locale_structure): Likewise.
21322         (start_locale_prelude): Likewise.
21323         (end_locale_prelude): Likewise.
21324         (write_locale_data): Take locale_file structure rather than an
21325         iovec.
21326         * locale/programs/locfile.h: Include "obstack.h".
21327         (struct locale_file): Change to store locale file contents instead
21328         of header.
21329         (init_locale_data): New prototype.
21330         (align_locale_data): Likewise.
21331         (add_locale_empty): Likewise.
21332         (add_locale_raw_data): Likewise.
21333         (add_locale_raw_obstack): Likewise.
21334         (add_locale_string): Likewise.
21335         (add_locale_wstring): Likewise.
21336         (add_locale_uint32): Likewise.
21337         (add_locale_uint32_array): Likewise.
21338         (add_locale_char): Likewise.
21339         (start_locale_structure): Likewise.
21340         (end_locale_structure): Likewise.
21341         (start_locale_prelude): Likewise.
21342         (end_locale_prelude): Likewise.
21343         (write_locale_data): Update prototype.
21344         * locale/programs/3level.h (struct TABLE): Remove result field.
21345         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
21346         Use new locale_file interface.
21347         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
21348         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
21349         * locale/programs/ld-address.c (address_output): Use new
21350         locale_file interface.
21351         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
21352         NO_ADD_LOCALE.
21353         (collate_finish): Don't call collseq_table_finalize.
21354         (collate_output): Use new locale_file interface.
21355         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
21356         in file.
21357         (NO_FINALIZE): Change to NO_ADD_LOCALE.
21358         (TABLE): Move defines earlier in file.
21359         (ELEMENT): Likewise.
21360         (DEFAULT): Likewise.
21361         (wctrans_table_add): Move macro and inline function earlier in
21362         file.
21363         (struct wctype_table): Move type earlier in file.
21364         (add_locale_wctype_table): New static prototype.
21365         (struct locale_ctype_t): Use logical types instead of struct iovec
21366         pointers for members.
21367         (ctype_output): Use new locale_file interface.
21368         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
21369         new locale_file interface.
21370         (allocate_arrays): Update for use of new locale_file interface.
21371         * locale/programs/ld-identification.c (identification_output): Use
21372         new locale_file interface.
21373         * locale/programs/ld-measurement.c (measurement_output): Likewise.
21374         * locale/programs/ld-messages.c (messages_output): Likewise.
21375         * locale/programs/ld-monetary.c (monetary_output): Likewise.
21376         * locale/programs/ld-name.c (name_output): Likewise.
21377         * locale/programs/ld-numeric.c (numeric_output): Likewise.
21378         * locale/programs/ld-paper.c (paper_output): Likewise.
21379         * locale/programs/ld-telephone.c (telephone_output): Likewise.
21380         * locale/programs/ld-time.c (time_output): Likewise.
21381
21382 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21383
21384         * benchtests/Makefile: Add memrchr benchmark.
21385         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
21386         benchmark as memrchr.
21387         * benchtests/bench-memrchr-ifunc.c: New file.
21388         * benchtests/bench-memrchr.c: New file.
21389
21390 2013-09-06   Will Newton  <will.newton@linaro.org>
21391
21392         * benchtests/Makefile (string-bench): Add memcpy.
21393
21394 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
21395             Cong Wang  <amwang@redhat.com>
21396
21397         [BZ #15850]
21398         * sysdeps/unix/sysv/linux/bits/in.h
21399         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
21400         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
21401         before __USE_KERNEL_IPV6_DEFS uses.
21402         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
21403         IPPROTO_BEETPH.
21404         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
21405         sockaddr_in6, or ipv6_mreq.
21406
21407 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21408
21409         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
21410         memory access for final bytes in some large inputs.
21411         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
21412
21413 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21414
21415         * string/test-memrchr.c: New file.
21416         * string/test-memrchr-ifunc.c: New file.
21417         * string/Makefile: Add new memrchr testcase.
21418
21419 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
21420
21421         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
21422         fanotify_init returns EPERM.
21423
21424 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
21425
21426         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
21427         errors.
21428         (top level): Treat second token from macro or constant entries for
21429         allowed headers as allowed.
21430         * include/complex.h: Condition internal declarations on
21431         [!_ISOMAC].
21432         * include/fenv.h: Condition include of <stdbool.h> and internal
21433         declarations on [!_ISOMAC].
21434
21435 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
21436
21437         [BZ #15923]
21438         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
21439
21440 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
21441
21442         * configure.in (--enable-versioning): Remove configure option.
21443         (libc_cv_asm_symver_directive): Remove configure test.
21444         (libc_cv_ld_version_script_option): Likewise.
21445         (VERSIONING): Remove variable and AC_SUBST.
21446         (DO_VERSIONING): Remove AC_DEFINE.
21447         * configure: Regenerated.
21448         * config.h.in (DO_VERSIONING): Remove macro.
21449         * Makerules [$(versioning) = yes]: Change conditionals to
21450         [$(build-shared) = yes].
21451         * config.make.in (versioning): Remove variable.
21452         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
21453         [$(build-shared) = yes].
21454         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
21455         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
21456         * elf/Makefile [$(versioning) = yes]: Change conditionals to
21457         [$(build-shared) = yes].
21458         * extra-lib.mk [$(versioning) = yes]: Likewise.
21459         * hurd/Makefile [$(versioning) = yes]: Likewise.
21460         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
21461         [SHARED].
21462         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
21463         [SHARED].
21464         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
21465         [SHARED && !NO_HIDDEN].
21466         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
21467         [SHARED].
21468         [SHARED && DO_VERSIONING]: Likewise..
21469         * libio/Makefile [$(versioning) = yes]: Change conditionals to
21470         [$(build-shared) = yes].
21471         * manual/install.texi (--disable-versioning): Remove
21472         documentation.
21473         * INSTALL: Regenerated.
21474         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
21475         to [SHARED].
21476         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
21477         [$(build-shared) = yes].
21478         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
21479         * sysdeps/i386/i686/multiarch/strstr-c.c
21480         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
21481         [SHARED && !NO_HIDDEN].
21482         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
21483         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
21484         * sysdeps/powerpc/powerpc32/dl-machine.c
21485         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
21486         * sysdeps/powerpc/powerpc32/sysdep.h
21487         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
21488         to [SHARED && PIC && !NO_HIDDEN].
21489         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
21490         conditional to [SHARED].
21491
21492 2013-09-04   Will Newton  <will.newton@linaro.org>
21493
21494         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
21495         * benchtests/bench-string.h: Include bench-timing.h instead
21496         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
21497         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
21498         call to HP_TIMING_DIFF_INIT.
21499         * benchtests/bench-memccpy.c: Use bench-timing.h macros
21500         instead of hp-timing.h macros.
21501         * benchtests/bench-memchr.c: Likewise.
21502         * benchtests/bench-memcmp.c: Likewise.
21503         * benchtests/bench-memcpy.c: Likewise.
21504         * benchtests/bench-memmem.c: Likewise.
21505         * benchtests/bench-memmove.c: Likewise.
21506         * benchtests/bench-memset.c: Likewise.
21507         * benchtests/bench-rawmemchr.c: Likewise.
21508         * benchtests/bench-strcasecmp.c: Likewise.
21509         * benchtests/bench-strcasestr.c: Likewise.
21510         * benchtests/bench-strcat.c: Likewise.
21511         * benchtests/bench-strchr.c: Likewise.
21512         * benchtests/bench-strcmp.c: Likewise.
21513         * benchtests/bench-strcpy.c: Likewise.
21514         * benchtests/bench-strcpy_chk.c: Likewise.
21515         * benchtests/bench-strlen.c: Likewise.
21516         * benchtests/bench-strncasecmp.c: Likewise.
21517         * benchtests/bench-strncat.c: Likewise.
21518         * benchtests/bench-strncmp.c: Likewise.
21519         * benchtests/bench-strncpy.c: Likewise.
21520         * benchtests/bench-strnlen.c: Likewise.
21521         * benchtests/bench-strpbrk.c: Likewise.
21522         * benchtests/bench-strrchr.c: Likewise.
21523         * benchtests/bench-strspn.c: Likewise.
21524         * benchtests/bench-strstr.c: Likewise.
21525
21526 2013-09-04  Will Newton  <will.newton@linaro.org>
21527
21528         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
21529
21530 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
21531
21532         [BZ #15427]
21533         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
21534         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
21535         * math/libm-test.inc (lgamma_test_data): Add more tests.
21536         * sysdeps/i386/fpu/libm-test-ulps: Update.
21537         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21538
21539 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
21540
21541         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
21542         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
21543         Add ifunc.
21544         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
21545         Add strcmp-sse2-unaligned
21546         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
21547
21548 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
21549
21550         * Versions.def (libc): Add GLIBC_2.19.
21551
21552 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
21553
21554         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
21555         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
21556
21557 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
21558
21559         [BZ #14155]
21560         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
21561         intermediate calculations in recurrence.
21562         (__ieee754_ynf): Likewise.
21563         * math/libm-test.inc (jn_test_data): Do not allow spurious
21564         underflow exception.  Add more tests.
21565         (yn_test_data): Add more tests.
21566         * sysdeps/i386/fpu/libm-test-ulps: Update.
21567         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21568
21569 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
21570
21571         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
21572
21573 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
21574
21575         * csu/init-first.c: Fix then/than typos.
21576         * locale/programs/ld-collate.c: Likewise.
21577         * locale/programs/linereader.h: Likewise.
21578         * manual/charset.texi: Likewise.
21579         * manual/filesys.texi: Likewise.
21580         * manual/stdio.texi: Likewise.
21581         * manual/string.texi: Likewise.
21582         * stdlib/fmtmsg.c: Likewise.
21583         * sysdeps/i386/stpncpy.S: Likewise.
21584         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
21585         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
21586         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
21587         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
21588
21589 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
21590
21591         * elf/dl-open.c: Fix typos.
21592         * iconvdata/gbbig5.c: Likewise.
21593         * iconvdata/iso-2022-jp.c: Likewise.
21594         * iconv/gconv_int.h: Likewise.
21595         * iconv/loop.c: Likewise.
21596         * nis/rpcsvc/nis.h: Likewise.
21597         * resolv/ns_name.c: Likewise.
21598         * stdio-common/vfscanf.c: Likewise.
21599         * streams/stropts.h: Likewise.
21600         * sunrpc/rpc_thread.c: Likewise.
21601         * sysdeps/i386/strpbrk.S: Likewise.
21602         * sysdeps/ieee754/k_standard.c: Likewise.
21603         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
21604         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
21605         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
21606         * sysdeps/mach/hurd/profil.c: Likewise.
21607         * sysdeps/s390/dl-procinfo.h: Likewise.
21608         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
21609         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
21610         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
21611         * sysdeps/x86_64/dl-trampoline.S: Likewise.
21612         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
21613
21614 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
21615
21616         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
21617         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
21618
21619 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
21620
21621         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
21622         aix specific files.
21623         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
21624         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
21625         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
21626         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
21627         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
21628         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
21629         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
21630         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
21631
21632 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
21633             Roland McGrath  <roland@hack.frob.com>
21634
21635         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
21636         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
21637
21638 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21639
21640         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
21641         __executable_start symbol instead of _start.
21642
21643 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
21644
21645         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
21646         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
21647         Move macros to...
21648         * sysdeps/gnu/ldsodefs.h: ... this new file.
21649
21650         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
21651         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
21652         instead of ELFOSABI_LINUX.
21653
21654         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
21655         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
21656         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
21657         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
21658         Likewise.
21659         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
21660         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
21661         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
21662         Likewise.
21663         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
21664         (ibm_extended_long_double): Add ieee_nan member.
21665         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
21666         (do_test): New function.
21667
21668         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
21669         TEST_TRUNC.
21670         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
21671         functions, renamed from truncdfsf_test, trunctfsf_test,
21672         trunctfdf_test.
21673         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
21674         functions.
21675         (do_test): Run all these.
21676
21677 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
21678
21679         * argp/argp-help.c: Fix typos.
21680         * argp/argp-parse.c: Likewise.
21681         * debug/backtracesyms.c: Likewise.
21682         * elf/elf.h: Likewise.
21683         * malloc/malloc.c: Likewise.
21684         * nis/nis_print.c: Likewise.
21685         * resolv/res_comp.c: Likewise.
21686         * stdlib/stdlib.h: Likewise.
21687         * sunrpc/clnt_tcp.c: Likewise.
21688         * sunrpc/clnt_udp.c: Likewise.
21689         * sunrpc/clnt_unix.c: Likewise.
21690         * sysdeps/unix/bsd/ptsname.c: Likewise.
21691         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
21692         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
21693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
21694         Likewise.
21695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
21696         Likewise.
21697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
21698         Likewise.
21699         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
21700
21701 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21702
21703         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
21704         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
21705
21706 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
21707
21708         [BZ #15897]
21709         * dlfcn/Makefile (tests): Add bug-dl-leaf.
21710         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
21711         ($(objpfx)bug-dl-leaf): New rule.
21712         ($(objpfx)bug-dl-leaf.so): Likewise.
21713         ($(objpfx)bug-dl-leaf.out): Likewise.
21714         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
21715         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
21716         * dlfcn/bug-dl-leaf.c: New test.
21717         * dlfcn/bug-dl-leaf-lib.c: Likewise.
21718         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
21719         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
21720         (dlclose): Likewise.
21721         (dlmopen): Likewise.
21722
21723 2013-08-27  Roland McGrath  <roland@hack.frob.com>
21724
21725         * include/netdb.h [!_ISOMAC]:
21726         Don't include <tls.h>.
21727         (h_errno, __libc_h_errno): Move declaration and macros out of
21728         [_LIBC_REENTRANT].
21729
21730         * include/resolv.h [_RESOLV_H_]:
21731         Don't include <tls.h>.
21732         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
21733         * resolv/res_libc.c: Don't include <tls.h>.
21734         (_res): Use __attribute__ ((nocommon)) in place of
21735         __attribute__ ((section (".bss"))).
21736
21737         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
21738         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
21739
21740         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
21741
21742         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
21743         only under [SIOCGIFCONF && SIOCGIFNETMASK].
21744
21745         * resolv/res_mkquery.c: Include <sys/time.h>.
21746
21747         * inet/ifreq.c: Moved to ...
21748         * sysdeps/unix/ifreq.c: ... here.
21749         * inet/ifreq.c: New file, true stub version.
21750
21751         * socket/sa_len.c: New file.
21752         * socket/Makefile (aux): Add it.
21753         * sysdeps/unix/sysv/linux/Makefile
21754         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
21755         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
21756         and #include <socket/sa_len.c>.
21757         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
21758         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
21759
21760         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
21761         * bits/socket.h: ... here.
21762
21763         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
21764         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
21765         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
21766
21767 2013-08-27  Andreas Schwab  <schwab@suse.de>
21768
21769         [BZ #15736]
21770         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
21771         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
21772         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
21773         * string/test-strcasecmp.c (test_main): Run tests in several
21774         locales.
21775         * string/test-strncasecmp.c (test_main): Likewise.
21776
21777         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
21778         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
21779         to __strcasecmp_nonascii and __strncasecmp_nonascii.
21780         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
21781         (__strncasecmp_ssse3) [PIC]: Likewise.
21782
21783 2013-08-26  Roland McGrath  <roland@hack.frob.com>
21784
21785         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
21786
21787         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
21788         instead of explicitly declaring xdecrypt.
21789         * nis/nss_nis/nis-publickey.c: Likewise.
21790
21791 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21792
21793         [BZ #15890]
21794         * nscd/aicache.c: Include res_hconf.h.
21795         (addhstaiX): Initialize res_hconf.
21796
21797 2013-08-26  Andreas Schwab  <schwab@suse.de>
21798
21799         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
21800         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
21801
21802 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21803
21804         * nscd/aicache.c (addhstaiX): Fix indentation.
21805
21806 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
21807
21808         * configure.ac: Quote $build_pt_chown test.
21809         * configure: Regenerated.
21810
21811 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
21812
21813         [BZ #15532]
21814         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
21815         * math/s_cexpf.c (__cexpf): Likewise.
21816         * math/s_cexpl.c (__cexpl): Likewise.
21817         * math/libm-test.inc (cexp_test_data): Correct expected return
21818         value for NaN + i0.  Add another test.
21819
21820 2013-08-22  David S. Miller  <davem@davemloft.net>
21821
21822         * po/ca.po: Update Catalan translation from translation project.
21823         * po/uk.po: Add Ukrainian translations from translation project.
21824
21825 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
21826
21827         [BZ #15797]
21828         * math/s_fdim.c (__fdim): Check for infinite arguments if result
21829         is infinite, not alongside NaN test.
21830         * math/s_fdimf.c (__fdimf): Likewise.
21831         * math/s_fdiml.c (__fdiml): Likewise.
21832         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
21833         errno is unchanged.
21834
21835 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
21836
21837         * argp/argp-help.c: Fix typos.
21838         * crypt/speeds.c: Likewise.
21839         * csu/check_fds.c: Likewise.
21840         * elf/dl-load.c: Likewise.
21841         * elf/dl-open.c: Likewise.
21842         * elf/reldep3.c: Likewise.
21843         * elf/reldep.c: Likewise.
21844         * elf/sprof.c: Likewise.
21845         * iconv/iconv_charmap.c: Likewise.
21846         * iconv/skeleton.c: Likewise.
21847         * iconv/strtab.c: Likewise.
21848         * io/lockf64.c: Likewise.
21849         * libio/libioP.h: Likewise.
21850         * resolv/gai_notify.c: Likewise.
21851         * resolv/ns_name.c: Likewise.
21852         * resolv/ns_samedomain.c: Likewise.
21853         * resolv/res_send.c: Likewise.
21854         * stdlib/random.c: Likewise.
21855         * sunrpc/rpc/xdr.h: Likewise.
21856         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
21857         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
21858         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
21859         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
21860         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
21861         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
21862         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
21863         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
21864         * sysdeps/mach/hurd/check_fds.c: Likewise.
21865         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
21866         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
21867         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
21868         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
21869         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
21870         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
21871         * sysdeps/pthread/aio_notify.c: Likewise.
21872         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
21873         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
21874         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
21875         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
21876         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
21877
21878 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
21879
21880         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
21881         version if bit_Slow_SSE4_2 is set.
21882         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
21883         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
21884
21885 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21886
21887         [BZ #15867]
21888         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
21889         trampoline stack frame information.
21890         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
21891         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
21892         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
21893         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
21894         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
21895         * sysdeps/unix/sysv/linux/powerpc/init-first.c
21896         (_libc_vdso_platform_setup): Initialize the signal trampolines.
21897         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
21898         sa_flags value.
21899         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
21900         interrupting a syscall and set with option SA_SIGINFO.
21901
21902 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
21903
21904         [BZ #15531]
21905         * math/s_cproj.c (__cproj): Only return an infinity if one part of
21906         argument is infinite.
21907         * math/s_cprojf.c (__cprojf): Likewise.
21908         * math/s_cprojl.c (__cprojl): Likewise.
21909         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
21910         * math/libm-test.inc (cproj_test_data): Add more tests.
21911
21912         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
21913
21914         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
21915         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
21916         size.  Use __ffs to determine corresponding shift.
21917
21918 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
21919             Roland McGrath  <roland@hack.frob.com>
21920
21921         * Makefile (INSTALL): Remove trailing blank lines from output of
21922         makeinfo.
21923
21924 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21925
21926         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
21927         Align 32 bit compat elf_greg to 8 bytes.
21928
21929 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
21930
21931         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
21932
21933 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
21934
21935         * string/strcoll_l.c (coll_seq): New structure.
21936         (get_next_seq_cached): New function.
21937         (get_next_seq): New function.
21938         (do_compare): New function.
21939         (STRCOLL): Use GNU style definition.  Simplify implementation
21940         by using get_next_seq, get_next_seq_cached and do_compare.
21941
21942 2013-08-16  Florian Weimer  <fweimer@redhat.com>
21943
21944         [BZ #14699]
21945         CVE-2013-4237
21946         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
21947         member.
21948         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
21949         member.
21950         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
21951         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
21952         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
21953         conditional.
21954         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
21955         GETDENTS_64BIT_ALIGNED.
21956         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
21957         * manual/filesys.texi (Reading/Closing Directory): Document
21958         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
21959         strongly.
21960         * manual/conf.texi (Limits for Files): Add portability note to
21961         NAME_MAX, PATH_MAX.
21962         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
21963
21964 2013-08-13  Andreas Schwab  <schwab@suse.de>
21965
21966         [BZ #15749]
21967         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
21968         of fabs.
21969         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
21970         LDBL_MAX_EXP >= 16384]: Add tests for it.
21971
21972 2013-08-12  David S. Miller  <davem@davemloft.net>
21973
21974         * version.h (RELEASE): Set to "development".
21975         (VERSION): Set to "2.18.90".
21976         * NEWS: Add 2.19 section.
21977
21978 2013-08-03  David S. Miller  <davem@davemloft.net>
21979
21980         * po/ko.po: Update Korean translation from translation project.
21981
21982 2013-08-01  David S. Miller  <davem@davemloft.net>
21983
21984         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
21985         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
21986         Bilka.
21987
21988 2013-07-30  David S. Miller  <davem@davemloft.net>
21989
21990         * po/fr.po: Update French translation from translation project.
21991
21992 2013-07-28  David S. Miller  <davem@davemloft.net>
21993
21994         * po/cs.po: Update Czech translation from translation project.
21995
21996         * po/sv.po: Update Swedish translation from translation project.
21997
21998 2013-07-27  David S. Miller  <davem@davemloft.net>
21999
22000         * po/eo.po: Update Esperanto translation from translation project.
22001
22002         * po/vi.po: Update Vietnamese translation from translation project.
22003
22004         * po/de.po: Update German translation from translation project.
22005
22006 2013-07-26  David S. Miller  <davem@davemloft.net>
22007
22008         * po/bg.po: Update Bulgarian translation from translation project.
22009
22010         * po/nl.po: Update Dutch translation from translation project.
22011         * po/pl.po: Update Polish translation from translation project.
22012         * po/ru.po: Update Russian translation from translation project.
22013
22014 2013-07-24  David S. Miller  <davem@davemloft.net>
22015
22016         * po/libc.pot: Update.
22017
22018 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22019
22020         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
22021         variable page size.
22022         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
22023         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
22024         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
22025
22026 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22027
22028         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
22029
22030 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
22031             Andreas Schwab  <schwab@suse.de>
22032             Roland McGrath  <roland@hack.frob.com>
22033             Joseph Myers  <joseph@codesourcery.com>
22034             Carlos O'Donell  <carlos@redhat.com>
22035
22036         [BZ #15755]
22037         * config.h.in: Define HAVE_PT_CHOWN.
22038         * config.make.in (build-pt-chown): New variable.
22039         * configure.in (--enable-pt_chown): New configure option.
22040         * configure: Regenerate.
22041         * login/Makefile: Include Makeconfig.  Build pt_chown only if
22042         build-pt-chown is enabled.
22043         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
22044         pt_chown to fix pty ownership.
22045         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
22046         CLOSE_ALL_FDS.
22047         * manual/install.texi (Configuring and compiling): Mention
22048         --enable-pt_chown. Add @findex for grantpt.
22049         * INSTALL: Regenerate.
22050
22051 2013-07-20  David S. Miller  <davem@davemloft.net>
22052
22053         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
22054         difference between 32-bit and 64-bit.
22055
22056 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
22057
22058         [BZ #15711]
22059         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
22060         Avoid system header dependency with -ffreestanding.
22061         ($(objpfx)bits/syscall%d): Likewise.
22062
22063 2013-07-13  David S. Miller  <davem@davemloft.net>
22064
22065         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
22066         underflows from atanl/atan2l due to bug 15319.
22067         (casinh_test_data): Likewise.
22068
22069 2013-07-07  David S. Miller  <davem@davemloft.net>
22070
22071         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
22072
22073 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
22074
22075         * sysdeps/i386/fpu/libm-test-ulps: Update.
22076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22077
22078 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
22079
22080         * configure.in (--enable-lock-elision): Fix message text.
22081         * INSTALL: Regenerate.
22082         * configure: Regenerate.
22083
22084 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22085
22086         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22087
22088 2013-07-03  Andreas Jaeger  <aj@suse.de>
22089
22090         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
22091         define.
22092         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
22093         (ptrace_peeksiginfo_args): Add.
22094         (__ptrace_peeksiginfo_flags): Add.
22095         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
22096         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
22097         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
22098
22099 2013-07-03  Allan McRae  <allan@archlinux.org>
22100
22101         * sysdeps/i386/fpu/libm-test-ulps: Update.
22102
22103 2013-07-02  David S. Miller  <davem@davemloft.net>
22104
22105         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22106
22107 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
22108
22109         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22110
22111 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
22112
22113         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
22114         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22115
22116 2013-07-02  Andi Kleen <ak@linux.intel.com>
22117
22118         * config.h.in (ENABLE_LOCK_ELISION): Add.
22119         * configure.in (--enable-lock-elision): Add option.
22120         * manual/install.texi: Document --enable lock elision.
22121         * configure: Regenerate
22122         * INSTALL: Regenerate.
22123
22124 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
22125
22126         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
22127         SSE4.2 strcasecmp for libc.a.
22128         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
22129
22130 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
22131
22132         [BZ #13304]
22133         * soft-fp/op-common.h (_FP_FMA): New macro.
22134         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
22135         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
22136         (_FP_MUL_MEAT_1_imm): ... here.
22137         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
22138         (_FP_MUL_MEAT_1_wide): ... here.
22139         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
22140         (_FP_MUL_MEAT_1_hard): ... here.
22141         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
22142         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
22143         (_FP_MUL_MEAT_2_wide): ... here.
22144         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
22145         (_FP_MUL_MEAT_2_wide_3mul): ... here.
22146         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
22147         (_FP_MUL_MEAT_2_gmp): ... here.
22148         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
22149         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
22150         (_FP_MUL_MEAT_4_wide): ... here.
22151         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
22152         (_FP_MUL_MEAT_4_gmp): ... here.
22153         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
22154         (_FP_WFRACBITS_DW_S): Likewise.
22155         (_FP_WFRACXBITS_DW_S): Likewise.
22156         (_FP_HIGHBIT_DW_S): Likewise.
22157         (FP_FMA_S): Likewise.
22158         (_FP_FRAC_HIGH_DW_S): Likewise.
22159         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
22160         (_FP_WFRACBITS_DW_D): Likewise.
22161         (_FP_WFRACXBITS_DW_D): Likewise.
22162         (_FP_HIGHBIT_DW_D): Likewise.
22163         (FP_FMA_D): Likewise.
22164         (_FP_FRAC_HIGH_DW_D): Likewise.
22165         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
22166         (_FP_WFRACBITS_DW_E): Likewise.
22167         (_FP_WFRACXBITS_DW_E): Likewise.
22168         (_FP_HIGHBIT_DW_E): Likewise.
22169         (FP_FMA_E): Likewise.
22170         (_FP_FRAC_HIGH_DW_E): Likewise.
22171         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
22172         (_FP_WFRACBITS_DW_Q): Likewise.
22173         (_FP_WFRACXBITS_DW_Q): Likewise.
22174         (_FP_HIGHBIT_DW_Q): Likewise.
22175         (FP_FMA_Q): Likewise.
22176         (_FP_FRAC_HIGH_DW_Q): Likewise.
22177         * soft-fp/fmasf4.c: New file.
22178         * soft-fp/fmadf4.c: Likewise.
22179         * soft-fp/fmatf4.c: Likewise.
22180
22181 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22182
22183         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
22184         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
22185         Silvermont.
22186         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
22187         macro.
22188         (index_Slow_SSE4_2): Likewise.
22189         (index_Prefer_PMINUB_for_stringop): Likewise.
22190         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
22191         bit_Slow_SSE4_2 is set.
22192         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
22193         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
22194
22195 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22196
22197         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
22198         rtld_global._dl_hwcap2.
22199         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
22200         POWER8.
22201         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
22202         POWER8 feature descriptions defined in _dl_hwcap2.
22203         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
22204         string handling for POWER8 feature bits.
22205         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
22206         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
22207         _dl_powerpc_cap_flags.
22208         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
22209         * sysdeps/powerpc/rtld-global-offsets.sym
22210         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
22211         _dl_hwcap2 in the rtld_global_ro structure.
22212
22213 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22214
22215         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
22216         hardware capabilities in support of AT_HWCAP2.
22217         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
22218         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
22219         GLRO(dl_hwcap2).
22220         (_dl_show_auxv): Add support for calling _dl_procinfo to display
22221         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
22222         explicitly the unknown a_type display mechanism is used.
22223         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
22224         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
22225         struct member.
22226         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
22227         to macro prototype for AT_HWCAP2 support.
22228         * sysdeps/i386/dl-procinfo.h: Likewise.
22229         * sysdeps/s390/dl-procinfo.h: Likewise.
22230         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
22231         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
22232         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
22233         return -1 for unknown a_type display fallback.
22234         * sysdeps/sparc/dl-procinfo.h: Likewise.
22235         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
22236         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
22237
22238 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
22239
22240         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
22241         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
22242
22243 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
22244
22245         [BZ #12492]
22246         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
22247         mprotect making __stack_prot writable.
22248
22249 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
22250             Joseph Myers  <joseph@codesourcery.com>
22251
22252         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
22253         as being properly aligned.
22254
22255 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
22256
22257         * dlfcn/modstatic5.c: New file.
22258         * dlfcn/tststatic5.c: New file.
22259         * dlfcn/Makefile (tests): Add tststatic5.
22260         (tests-static): Likewise.
22261         (modules-names): Add modstatic5.
22262         (tststatic5-ENV): New variable.
22263         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
22264
22265         [BZ #15022]
22266         * elf/dl-support.c (_dl_main_map): New variable.
22267         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
22268         (_dl_nns, _dl_load_adds): Set to 1.
22269         (_dl_initial_searchlist): Refer to _dl_main_map.
22270         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
22271         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
22272         call to _dl_get_origin.
22273         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
22274         around call_map.
22275         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
22276         * dlfcn/modstatic3.c: New file.
22277         * dlfcn/tststatic3.c: New file.
22278         * dlfcn/tststatic4.c: New file.
22279         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
22280         (tests-static): Likewise.
22281         (modules-names): Add modstatic3.
22282         (tststatic3-ENV, tststatic4-ENV): New variables.
22283         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
22284         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
22285
22286 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
22287
22288         * configure.in (CC): Require GCC version 4.4 or later.
22289         * configure: Regenerated.
22290         * manual/install.texi (Tools for Compilation): Update GCC version
22291         requirement.
22292         * INSTALL: Regenerated.
22293
22294 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22295
22296         [BZ #15674]
22297         * string/test-memcmp.c (check2): New.
22298         (main): Call check2.
22299
22300         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
22301
22302 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
22303
22304         [BZ #15022]
22305         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
22306         over to...
22307         (dl_open_worker) [!SHARED]: ... here.
22308
22309 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22310
22311         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
22312
22313 2013-06-25  Richard Henderson  <rth@redhat.com>
22314
22315         * locale/programs/locarchive.c: Include <libc-internal.h>
22316
22317 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
22318
22319         * manual/texinfo.tex: Update to version 2013-06-21.17, with
22320         trailing whitespace removed.
22321
22322 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
22323
22324         [BZ #10283]
22325         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
22326         * locale/programs/locarchive.c: Include libc-mmap.h.
22327         (prepare_address_space): Take two new outputs (the mmap base and len).
22328         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
22329         values.
22330         (create_archive): Declare new mmap base and len values for
22331         prepare_address_space, and store the result in ah.
22332         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
22333         (enlarge_archive): If ah->mmap_base is not NULL, use that and
22334         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
22335         Declare new mmap base and len values for
22336         prepare_address_space, and store the result in new_ah.
22337         (open_archive): Declare new mmap base and len values for
22338         prepare_address_space, and store the result in ah.
22339         (close_archive): If ah->mmap_base is not NULL, use that and
22340         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
22341         * sysdeps/generic/libc-mmap.h: New file.
22342
22343 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
22344
22345         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
22346         (ALIGN_UP): Likewise.
22347         (PTR_ALIGN_DOWN): Likewise.
22348         (PTR_ALIGN_UP): Likewise.
22349
22350 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22351
22352         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
22353         entry mapped to PPC_PLATFORM_POWER8.
22354         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
22355         POWER8.
22356         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
22357         (_dl_string_platform): Add case for exporting platform position for
22358         POWER8.
22359         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
22360         search path to sysdeps/powerpc/powerpc32/power8 directory.
22361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
22362         search path to sysdeps/powerpc/powerpc64/power8 directory.
22363         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
22364         power7 directories.
22365         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
22366         power7 directories.
22367
22368 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
22369
22370         * INSTALL: Regenerate.
22371
22372         * nscd/connections.c (nscd_init): Fix comment.
22373
22374 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
22375
22376         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
22377
22378         [BZ #15667]
22379         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
22380         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
22381
22382 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
22383
22384         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
22385         DL_DST_REQ_STATIC.
22386         (DL_DST_REQ_STATIC): Remove macro.
22387
22388 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
22389
22390         [BZ #7006]
22391         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
22392         with a shift of 0 bits.
22393
22394 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
22395
22396         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
22397         $(tststatic-ENV).
22398
22399 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
22400
22401         [BZ #15655]
22402         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
22403
22404 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22405
22406         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
22407         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
22408         accepts -fno-tree-loop-distribute-patterns.
22409         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
22410         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
22411         recursive call.
22412         * string/memset.c (memset): Likewise.
22413         * string/test-memmove.c (simple_memmove): Disable loop transformation
22414         to library calls.
22415         * string/test-memset.c (simple_memset): Likewise.
22416         * benchtests/bench-memmove.c (simple_memmove): Likewise.
22417         * benchtests/bench-memset.c (simple_memset): Likewise.
22418         * configure: Regenerated.
22419
22420 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
22421
22422         * math/test-misc.c (main): Ignore fesetround failure when failures
22423         of subsequent rounding tests would be ignored.
22424
22425         [BZ #15654]
22426         * math/fedisblxcpt.c (fedisableexcept): Return 0.
22427         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
22428         * math/fegetenv.c (__fegetenv): Return 0.
22429         * math/fegetexcept.c (fegetexcept): Return 0.
22430         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
22431         FE_TONEAREST.
22432         * math/feholdexcpt.c (feholdexcept): Return 0.
22433         * math/fesetenv.c (__fesetenv): Return 0.
22434         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
22435         argument FE_TONEAREST.
22436         * math/feupdateenv.c (__feupdateenv): Return 0.
22437         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
22438
22439 2013-06-18  Roland McGrath  <roland@hack.frob.com>
22440
22441         * elf/rtld-Rules (rtld-compile-command.S): New variable.
22442         (rtld-compile-command.s, rtld-compile-command.c): New variables.
22443         ($(objpfx)rtld-%.os rules): Use them.
22444
22445 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22446
22447         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
22448         fields.
22449
22450 2013-06-17  Roland McGrath  <roland@hack.frob.com>
22451
22452         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
22453         length of target pattern, then descending length of dependency pattern.
22454         * configure.in (AWK): Require gawk 3.1.2 or newer.
22455         * manual/install.texi (Tools for Compilation): Say that we do.
22456         * configure: Regenerated.
22457
22458         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
22459         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
22460         * scripts/sysd-rules.awk: ... this new script.
22461         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
22462         than a glob-style pattern.
22463
22464 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
22465
22466         * math/test-misc.c (main): Do not treat incorrectly rounded
22467         conversions as failure unless ROUNDING_TESTS passes.
22468
22469 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
22470
22471         [BZ #15631]
22472         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
22473         restore exception state around main square root computation, then
22474         check for inexactness explicitly.
22475
22476         * math/libm-test.inc (fma_test_data): Add another test.
22477
22478 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
22479
22480         * manual/threads.texi (Non-POSIX Extensions): New document
22481         node.  Document pthread_getattr_default_np and
22482         pthread_setattr_default_np.
22483
22484         * Versions.def (libpthread): Add GLIBC_2.18.
22485         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
22486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
22487         Likewise.
22488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
22489         Likewise.
22490         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
22491         Likewise.
22492         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
22493         Likewise.
22494         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
22495         Likewise.
22496         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
22497         Likewise.
22498         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
22499         Likewise.
22500         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
22501         Likewise.
22502         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
22503         Likewise.
22504
22505 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22506
22507         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
22508         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
22509
22510 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
22511             H.J. Lu  <hjl.tools@gmail.com>
22512
22513         [BZ #15627]
22514         * sysdeps/x86_64/rtld-memset.c: Remove file.
22515         * sysdeps/x86_64/rtld-memset.S: New file.
22516
22517 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
22518
22519         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
22520         (test_in_one_mode): Take arguments for whether the rounding mode
22521         is supported for each floating-point type.
22522         (do_test): Pass new arguments to test_in_one_mode using
22523         ROUNDING_TESTS.
22524
22525 2013-06-13  Roland McGrath  <roland@hack.frob.com>
22526
22527         * posix/tst-waitid.c (do_test): Distinguish different instances of
22528         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
22529         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
22530         before entering the kernel for waitpid.
22531
22532 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22533
22534         * NEWS: Fix note on clock function precision.  Text by Roland
22535         McGrath.
22536
22537 2013-06-13  Roland McGrath  <roland@hack.frob.com>
22538
22539         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
22540         it into place only when and if the sanity check passes.
22541
22542 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
22543
22544         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
22545         output for whether conversion result is exact.  Take argument
22546         indicating whether type is IBM long double.
22547         (round_for_all): Change need_exact field to ibm_ld.
22548         * stdlib/tst-strtod-round.c (struct exactness): New type.
22549         (struct test): Change bool ld_ok field to struct exactness exact.
22550         (TEST): Update all definitions for change to field.
22551         (tests): Regenerate array contents.
22552         (test_in_one_mode): Take pointer to new field instead of old ld_ok
22553         field value.  Check for IBM long double here.
22554         (do_test): Update calls to test_in_one_mode.
22555
22556 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
22557
22558         [BZ #12515]
22559         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
22560         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
22561
22562 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22563
22564         [BZ #15605]
22565         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
22566         generated by the compiler on loop optimizations.
22567         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
22568         general definitions.
22569
22570 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
22571
22572         * math/bug-nextafter.c: Include <math-tests.h>.
22573         (main): Only test for exceptions if EXCEPTION_TESTS is true for
22574         the relevant type.
22575         * math/bug-nexttoward.c: Include <math-tests.h>.
22576         (main): Only test for exceptions if EXCEPTION_TESTS is true for
22577         the relevant type.
22578         * math/test-misc.c: Include <math-tests.h>.
22579         (main): Only test for exceptions if EXCEPTION_TESTS is true for
22580         the relevant type.
22581
22582 2013-06-12  Andreas Jaeger  <aj@suse.de>
22583
22584         * po/ia.po: Update Interlingua translation from translation
22585         project.
22586
22587 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
22588
22589         * include/fenv.h: Include stdbool.h.
22590         (struct rm_ctx): New structure.
22591         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
22592         Define macro.
22593         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
22594         (SET_RESTORE_ROUNDF): Likewise.
22595         (SET_RESTORE_ROUNDL): Likewise.
22596         (SET_RESTORE_ROUND_NOEX): Likewise.
22597         (SET_RESTORE_ROUND_NOEXF): Likewise.
22598         (SET_RESTORE_ROUND_NOEXL): Likewise.
22599         (SET_RESTORE_ROUND_53BIT): Likewise.
22600         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
22601         (libc_feresetround_noexf_ctx): Likewise.
22602         (libc_feresetround_noexl_ctx): Likewise.
22603         (libc_feholdsetround_53bit_ctx): Likewise.
22604         (libc_feresetround_53bit_ctx): Likewise.
22605         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
22606         (libc_feholdexcept_setround_sse_ctx): New function.
22607         (libc_fesetenv_sse_ctx): Likewise.
22608         (libc_feupdateenv_sse_ctx): Likewise.
22609         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
22610         (libc_feholdexcept_setround_387_ctx): Likewise.
22611         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
22612         (libc_feholdsetround_387_prec_ctx): Likewise.
22613         (libc_feholdsetround_387_ctx): Likewise.
22614         (libc_feholdsetround_387_53bit_ctx): Likewise.
22615         (libc_feholdsetround_sse_ctx): Likewise.
22616         (libc_feresetround_sse_ctx): Likewise.
22617         (libc_feresetround_387_ctx): Likewise.
22618         (libc_feupdateenv_387_ctx): Likewise.
22619         (libc_feholdexcept_setroundf_ctx): Define macro.
22620         (libc_fesetenvf_ctx): Likewise.
22621         (libc_feupdateenvf_ctx): Likewise.
22622         (libc_feholdsetroundf_ctx): Likewise.
22623         (libc_feresetroundf_ctx): Likewise.
22624         (libc_feholdexcept_setround_ctx): Likewise.
22625         (libc_fesetenv_ctx): Likewise.
22626         (libc_feupdateenv_ctx): Likewise.
22627         (libc_feholdsetround_ctx): Likewise.
22628         (libc_feresetround_ctx): Likewise.
22629         (libc_feholdexcept_setroundl_ctx): Likewise.
22630         (libc_feupdateenvl_ctx): Likewise.
22631         (libc_feholdsetroundl_ctx): Likewise.
22632         (libc_feresetroundl_ctx): Likewise.
22633         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
22634         (libc_feresetround_53bit_ctx): Likewise.
22635
22636 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
22637
22638         * locale/iso-639.def: Convert to UTF-8.
22639
22640 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
22641
22642         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
22643         (EXCEPTION_TESTS_double): Likewise.
22644         (EXCEPTION_TESTS_long_double): Likewise.
22645         (EXCEPTION_TESTS): Likewise.
22646         * math/libm-test.inc (test_exceptions): Only test exceptions if
22647         EXCEPTION_TESTS (FLOAT).
22648
22649 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
22650
22651         * benchtests/Makefile (string-bench): Add strcpy_chk and
22652         stpcpy_chk.
22653         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
22654         * benchtests/bench-stpcpy_chk.c: New file.
22655         * benchtests/bench-strcpy_chk-ifunc.c: New file.
22656         * benchtests/bench-strcpy_chk.c: New file.
22657         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
22658         code.
22659         (do_test): Likewise.
22660
22661 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
22662
22663         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
22664         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
22665         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
22666         with tabs where appropriate.
22667         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
22668         dl-procinfo.h.
22669         [PPC_PLATFORM_PPC440]: Likewise.
22670         [PPC_PLATFORM_PPC464]: Likewise.
22671         [PPC_PLATFORM_PPC476]: Likewise.
22672         (_dl_string_platform): Add support for detecting ppc405, ppc440,
22673         ppc464, and ppc476 platform strings merging from ports/
22674         dl-procinfo.h.
22675
22676 2013-06-11  Andreas Schwab  <schwab@suse.de>
22677
22678         [BZ #14991]
22679         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
22680         (from_ucs4_idx): Regenerate.
22681         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
22682         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
22683         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
22684         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
22685         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
22686         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
22687         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
22688         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
22689         from FROM_LOOP and TO_LOOP specific macros.
22690         (BODY): Handle combining characters.
22691         * iconvdata/BIG5HKSCS.irreversible: Update.
22692         * iconvdata/BIG5HKSCS.precomposed: New file.
22693         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
22694         characters.
22695         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
22696
22697 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
22698
22699         * include/sys/time.h: Fix indentation and add copyright header.
22700
22701         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
22702         (do_test): Likewise.
22703         * string/test-memchr.c (do_one_test): Likewise.
22704         (do_test): Likewise.
22705         * string/test-memcmp.c (do_one_test): Likewise.
22706         (do_test): Likewise.
22707         * string/test-memcpy.c (do_one_test): Likewise.
22708         (do_test): Likewise.
22709         * string/test-memmem.c (do_one_test): Likewise.
22710         (do_test): Likewise.
22711         (do_random_tests): Likewise.
22712         * string/test-memmove.c (do_one_test): Likewise.
22713         (do_test): Likewise.
22714         * string/test-memset.c (do_one_test): Likewise.
22715         (do_test): Likewise.
22716         * string/test-rawmemchr.c (do_one_test): Likewise.
22717         (do_test): Likewise.
22718         * string/test-strcasecmp.c (do_one_test): Likewise.
22719         (do_test): Likewise.
22720         * string/test-strcasestr.c (do_one_test): Likewise.
22721         (do_test): Likewise.
22722         * string/test-strcat.c (do_one_test): Likewise.
22723         (do_test): Likewise.
22724         * string/test-strchr.c (do_one_test): Likewise.
22725         (do_test): Likewise.
22726         * string/test-strcmp.c (do_one_test): Likewise.
22727         (do_test): Likewise.
22728         * string/test-strcpy.c (do_one_test): Likewise.
22729         (do_test): Likewise.
22730         * string/test-string.h: Likewise.
22731         (test_init): Likewise.
22732         * string/test-strlen.c (do_one_test): Likewise.
22733         (do_test): Likewise.
22734         * string/test-strncasecmp.c (do_one_test): Likewise.
22735         (do_test): Likewise.
22736         * string/test-strncat.c (do_one_test): Likewise.
22737         (do_test): Likewise.
22738         * string/test-strncmp.c (do_one_test): Likewise.
22739         (do_test_limit): Likewise.
22740         (do_test): Likewise.
22741         * string/test-strncpy.c (do_one_test): Likewise.
22742         (do_test): Likewise.
22743         * string/test-strnlen.c (do_one_test): Likewise.
22744         (do_test): Likewise.
22745         * string/test-strpbrk.c (do_one_test): Likewise.
22746         (do_test): Likewise.
22747         * string/test-strrchr.c (do_one_test): Likewise.
22748         (do_test): Likewise.
22749         * string/test-strspn.c (do_one_test): Likewise.
22750         (do_test): Likewise.
22751         * string/test-strstr.c (do_one_test): Likewise.
22752         (do_test): Likewise.
22753
22754         * benchtests/Makefile (string-bench): Add string benchmarks.
22755         * benchtests/bench-bcopy-ifunc.c: New file.
22756         * benchtests/bench-bcopy.c: New file.
22757         * benchtests/bench-bzero-ifunc.c: New file.
22758         * benchtests/bench-bzero.c: New file.
22759         * benchtests/bench-memccpy-ifunc.c: New file.
22760         * benchtests/bench-memccpy.c: New file.
22761         * benchtests/bench-memchr-ifunc.c: New file.
22762         * benchtests/bench-memchr.c: New file.
22763         * benchtests/bench-memcmp-ifunc.c: New file.
22764         * benchtests/bench-memcmp.c: New file.
22765         * benchtests/bench-memmem-ifunc.c: New file.
22766         * benchtests/bench-memmem.c: New file.
22767         * benchtests/bench-memmove-ifunc.c: New file.
22768         * benchtests/bench-memmove.c: New file.
22769         * benchtests/bench-mempcpy-ifunc.c: New file.
22770         * benchtests/bench-mempcpy.c: New file.
22771         * benchtests/bench-memset-ifunc.c: New file.
22772         * benchtests/bench-memset.c: New file.
22773         * benchtests/bench-rawmemchr-ifunc.c: New file.
22774         * benchtests/bench-rawmemchr.c: New file.
22775         * benchtests/bench-stpcpy-ifunc.c: New file.
22776         * benchtests/bench-stpcpy.c: New file.
22777         * benchtests/bench-stpncpy-ifunc.c: New file.
22778         * benchtests/bench-stpncpy.c: New file.
22779         * benchtests/bench-strcasecmp-ifunc.c: New file.
22780         * benchtests/bench-strcasecmp.c: New file.
22781         * benchtests/bench-strcasestr-ifunc.c: New file.
22782         * benchtests/bench-strcasestr.c: New file.
22783         * benchtests/bench-strcat-ifunc.c: New file.
22784         * benchtests/bench-strcat.c: New file.
22785         * benchtests/bench-strchr-ifunc.c: New file.
22786         * benchtests/bench-strchr.c: New file.
22787         * benchtests/bench-strchrnul-ifunc.c: New file.
22788         * benchtests/bench-strchrnul.c: New file.
22789         * benchtests/bench-strcmp-ifunc.c: New file.
22790         * benchtests/bench-strcmp.c: New file.
22791         * benchtests/bench-strcpy-ifunc.c: New file.
22792         * benchtests/bench-strcpy.c: New file.
22793         * benchtests/bench-strcspn-ifunc.c: New file.
22794         * benchtests/bench-strcspn.c: New file.
22795         * benchtests/bench-strlen-ifunc.c: New file.
22796         * benchtests/bench-strlen.c: New file.
22797         * benchtests/bench-strncasecmp-ifunc.c: New file.
22798         * benchtests/bench-strncasecmp.c: New file.
22799         * benchtests/bench-strncat-ifunc.c: New file.
22800         * benchtests/bench-strncat.c: New file.
22801         * benchtests/bench-strncmp-ifunc.c: New file.
22802         * benchtests/bench-strncmp.c: New file.
22803         * benchtests/bench-strncpy-ifunc.c: New file.
22804         * benchtests/bench-strncpy.c: New file.
22805         * benchtests/bench-strnlen-ifunc.c: New file.
22806         * benchtests/bench-strnlen.c: New file.
22807         * benchtests/bench-strpbrk-ifunc.c: New file.
22808         * benchtests/bench-strpbrk.c: New file.
22809         * benchtests/bench-strrchr-ifunc.c: New file.
22810         * benchtests/bench-strrchr.c: New file.
22811         * benchtests/bench-strspn-ifunc.c: New file.
22812         * benchtests/bench-strspn.c: New file.
22813         * benchtests/bench-strstr-ifunc.c: New file.
22814         * benchtests/bench-strstr.c: New file.
22815
22816         * benchtests/Makefile: Disable parallel execution of targets.
22817         (string-bench): Add memcpy.
22818         (benchset): New variable to store a list of benchmark sets.
22819         (bench-func): Renamed from bench.
22820         (bench-set): New target.
22821         (bench): Depend on bench-func and bench-set.
22822         * benchtests/README: Add section on benchmark sets.
22823         * benchtests/bench-memcpy-ifunc.c: New file.
22824         * benchtests/bench-memcpy.c: New file.
22825         * benchtests/bench-string.h: New file.
22826
22827 2013-06-11  Andreas Schwab  <schwab@suse.de>
22828
22829         [BZ #15577]
22830         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
22831         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
22832         values in the triple.
22833         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
22834         terminator in the group key.
22835
22836 2013-06-11  Andreas Jaeger  <aj@suse.de>
22837
22838         * po/zh_TW.po: Update Chinese (traditional) translation from
22839         translation project.
22840
22841 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
22842
22843         * include/time.h (__clock_gettime): Add libc_hidden_proto.
22844         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
22845         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
22846         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
22847         (clock_getcpuclockid): Likewise.
22848         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
22849         Add weak_alias and libc_hidden_def.
22850         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
22851         * rt/clock_gettime.c (clock_gettime): Rename to
22852         __clock_gettime.  Add weak_alias and libc_hidden_def.
22853         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
22854         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
22855         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
22856         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
22857         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
22858         Likewise.
22859         * rt/clock_settime.c (clock_settime): Rename to
22860         __clock_settime.  Add weak_alias and libc_hidden_def.
22861         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
22862
22863 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
22864
22865         * mach/err_boot.sub: Remove trailing whitespace.
22866         * mach/err_ipc.sub: Likewise.
22867         * mach/err_mach.sub: Likewise.
22868
22869         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
22870         (ROUNDING_TESTS_double): Likewise.
22871         (ROUNDING_TESTS_long_double): Likewise.
22872         (ROUNDING_TESTS): Likewise.
22873         * math/libm-test.inc: Include <math-tests.h>.
22874         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
22875         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
22876         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
22877         (IF_ROUND_INIT_FE_UPWARD): Likewise.
22878
22879 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22880
22881         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
22882         of assigning.
22883
22884 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
22885
22886         * sysdeps/gnu/errlist.awk: Do not generate space at end of
22887         otherwise empty TRANS lines.
22888         * sysdeps/gnu/errlist.c: Regenerated.
22889
22890         * catgets/gencat.c (error_print): Use (void) in function
22891         definition.
22892         * crypt/crypt_util.c (__init_des): Likewise.
22893         * crypt/speeds.c (Stop): Likewise.
22894         (main): Likewise.
22895         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
22896         * inet/ruserpass.c (token): Likewise.
22897         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
22898         * intl/localealias.c (extend_alias_table): Likewise.
22899         * intl/plural-exp.c (init_germanic_plural): Likewise.
22900         * libio/fcloseall.c (__fcloseall): Likewise.
22901         * libio/genops.c (_IO_flush_all): Likewise.
22902         (_IO_flush_all_linebuffered): Likewise.
22903         (_IO_cleanup): Likewise.
22904         (_IO_iter_begin): Likewise.
22905         (_IO_iter_end): Likewise.
22906         (_IO_list_lock): Likewise.
22907         (_IO_list_unlock): Likewise.
22908         (_IO_list_resetlock): Likewise.
22909         * libio/getchar.c (getchar): Likewise.
22910         * libio/getchar_u.c (getchar_unlocked): Likewise.
22911         * libio/getwchar.c (getwchar): Likewise.
22912         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
22913         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
22914         * login/getpt.c (__getpt): Likewise.
22915         * login/tst-utmp.c (main): Likewise.
22916         * malloc/hooks.c (__malloc_check_init): Likewise.
22917         * malloc/malloc.c (__malloc_stats): Likewise.
22918         * malloc/mtrace.c (tr_break): Likewise.
22919         (mtrace): Likewise.
22920         (muntrace): Likewise.
22921         * misc/fstab.c (endfsent): Likewise.
22922         * misc/getclktck.c (__getclktck): Likewise.
22923         * misc/getdtsz.c (__getdtablesize): Likewise.
22924         * misc/gethostid.c (gethostid): Likewise.
22925         * misc/getpagesize.c (__getpagesize): Likewise.
22926         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
22927         (__get_nprocs): Likewise.
22928         (__get_phys_pages): Likewise.
22929         (__get_avphys_pages): Likewise.
22930         * misc/getttyent.c (getttyent): Likewise.
22931         (setttyent): Likewise.
22932         (endttyent): Likewise.
22933         * misc/getusershell.c (getusershell): Likewise.
22934         (endusershell): Likewise.
22935         (setusershell): Likewise.
22936         (initshells): Likewise.
22937         * misc/hsearch.c (__hdestroy): Likewise.
22938         * misc/sync.c (sync): Likewise.
22939         * misc/syslog.c (closelog_internal): Likewise.
22940         (closelog): Likewise.
22941         * misc/ttyslot.c (ttyslot): Likewise.
22942         * misc/vhangup.c (vhangup): Likewise.
22943         * posix/fork.c (__fork): Likewise.
22944         * posix/getegid.c (__getegid): Likewise.
22945         * posix/geteuid.c (__geteuid): Likewise.
22946         * posix/getgid.c (__getgid): Likewise.
22947         * posix/getpid.c (__getpid): Likewise.
22948         * posix/getppid.c (__getppid): Likewise.
22949         * posix/getuid.c (__getuid): Likewise.
22950         * posix/pause.c (pause): Likewise.
22951         * posix/setpgrp.c (setpgrp): Likewise.
22952         * posix/setsid.c (__setsid): Likewise.
22953         * posix/test-vfork.c (noop): Likewise.
22954         * resolv/gethnamaddr.c (_endhtent): Likewise.
22955         (_gethtent): Likewise.
22956         (ht_endhostent): Likewise.
22957         (gethostent): Likewise.
22958         (dns_service): Likewise.
22959         * stdlib/drand48.c (drand48): Likewise.
22960         * stdlib/lrand48.c (lrand48): Likewise.
22961         * stdlib/mrand48.c (mrand48): Likewise.
22962         * stdlib/rand.c (rand): Likewise.
22963         * stdlib/random.c (__random): Likewise.
22964         * stdlib/setenv.c (clearenv): Likewise.
22965         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
22966         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
22967         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
22968         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
22969         (__get_nprocs): Likewise.
22970         (__get_phys_pages): Likewise.
22971         (__get_avphys_pages): Likewise.
22972         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
22973         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
22974         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
22975         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
22976         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
22977         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
22978         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
22979         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
22980         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
22981         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
22982         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
22983         * sysdeps/mach/hurd/sync.c (sync): Likewise.
22984         * sysdeps/posix/clock.c (clock): Likewise.
22985         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
22986         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
22987         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
22988         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
22989         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
22990         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
22991         (__get_nprocs_conf): Likewise.
22992         (__get_phys_pages): Likewise.
22993         (__get_avphys_pages): Likewise.
22994         * time/clock.c (clock): Likewise.
22995         * time/tzset.c (__tzname_max): Likewise.
22996
22997 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
22998
22999         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
23000         (__bswap_32): Do not use "register".
23001         * crypt/crypt.c (_ufc_doit_r): Likewise.
23002         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
23003         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
23004         * gmon/gmon.c (__monstartup): Likewise.
23005         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
23006         * hurd/hurdmalloc.c (more_memory): Likewise.
23007         (malloc): Likewise.
23008         (free): Likewise.
23009         (realloc): Likewise.
23010         (malloc_fork_prepare): Likewise.
23011         (malloc_fork_parent): Likewise.
23012         (malloc_fork_child): Likewise.
23013         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
23014         (_svcauth_des): Likewise.
23015         * inet/inet_lnaof.c (inet_lnaof): Likewise.
23016         * inet/inet_net.c (inet_network): Likewise.
23017         * inet/inet_netof.c (inet_netof): Likewise.
23018         * inet/rcmd.c (__validuser2_sa): Likewise.
23019         * io/fts.c (fts_open): Likewise.
23020         (fts_load): Likewise.
23021         (fts_close): Likewise.
23022         (fts_read): Likewise.
23023         (fts_children): Likewise.
23024         (fts_build): Likewise.
23025         (fts_stat): Likewise.
23026         (fts_sort): Likewise.
23027         (fts_alloc): Likewise.
23028         (fts_lfree): Likewise.
23029         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
23030         (_IO_file_xsgetn): Likewise.
23031         (_IO_file_xsgetn_mmap): Likewise.
23032         * libio/iofopncook.c (_IO_cookie_read): Likewise.
23033         (_IO_cookie_write): Likewise.
23034         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
23035         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
23036         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
23037         * malloc/obstack.c (_obstack_begin): Likewise.
23038         (_obstack_begin_1): Likewise.
23039         (_obstack_newchunk): Likewise.
23040         (_obstack_allocated_p): Likewise.
23041         (obstack_free): Likewise.
23042         (_obstack_memory_used): Likewise.
23043         * misc/getttyent.c (getttynam): Likewise.
23044         (getttyent): Likewise.
23045         (skip): Likewise.
23046         (value): Likewise.
23047         * misc/getusershell.c (initshells): Likewise.
23048         * misc/syslog.c (__vsyslog_chk): Likewise.
23049         * misc/ttyslot.c (ttyslot): Likewise.
23050         * nis/nis_hash.c (__nis_hash): Likewise.
23051         * posix/fnmatch_loop.c (FCT): Likewise.
23052         * posix/getconf.c (print_all): Likewise.
23053         (main): Likewise.
23054         * posix/getopt.c (exchange): Likewise.
23055         * posix/glob.c (globfree): Likewise.
23056         (prefix_array): Likewise.
23057         (__glob_pattern_type): Likewise.
23058         * resolv/arpa/nameser.h (NS_GET16): Likewise.
23059         (NS_GET32): Likewise.
23060         (NS_PUT16): Likewise.
23061         (NS_PUT32): Likewise.
23062         * resolv/gethnamaddr.c (getanswer): Likewise.
23063         (gethostbyname2): Likewise.
23064         (gethostbyaddr): Likewise.
23065         (_gethtent): Likewise.
23066         (_gethtbyname2): Likewise.
23067         (_gethtbyaddr): Likewise.
23068         * resolv/ns_print.c (dst_s_get_int16): Likewise.
23069         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
23070         * resolv/res_init.c (__res_vinit): Likewise.
23071         (net_mask): Likewise.
23072         * resolv/res_mkquery.c (outchar): Likewise.
23073         (PRINT): Likewise.
23074         * stdio-common/printf_fp.c (outchar): Likewise.
23075         (PRINT): Likewise.
23076         * stdio-common/printf_fphex.c (outchar): Likewise.
23077         (PRINT): Likewise.
23078         * stdio-common/printf_size.c (outchar): Likewise.
23079         (PRINT): Likewise.
23080         * stdio-common/test_rdwr.c (main): Likewise.
23081         * stdio-common/tfformat.c (matches): Likewise.
23082         * stdio-common/vfprintf.c (outchar): Likewise.
23083         (printf_unknown): Likewise.
23084         (buffered_vfprintf): Likewise.
23085         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
23086         * stdio-common/xbug.c (AppendToBuffer): Likewise.
23087         (ReadFile): Likewise.
23088         * stdlib/qsort.c (SWAP): Likewise.
23089         (_quicksort): Likewise.
23090         * stdlib/setenv.c (__add_to_environ): Likewise.
23091         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
23092         * stdlib/strtol_l.c (__strtol_l): Likewise.
23093         * stdlib/tst-strtod.c (main): Likewise.
23094         * stdlib/tst-strtol.c (main): Likewise.
23095         * stdlib/tst-strtoll.c (main): Likewise.
23096         * string/bits/string2.h (__strcmp_cc): Likewise.
23097         (__strcmp_cg): Likewise.
23098         (__strcspn_c1): Likewise.
23099         (__strcspn_c2): Likewise.
23100         (__strcspn_c3): Likewise.
23101         (__strspn_c1): Likewise.
23102         (__strspn_c2): Likewise.
23103         (__strspn_c3): Likewise.
23104         (__strsep_1c): Likewise.
23105         (__strsep_2c): Likewise.
23106         (__strsep_3c): Likewise.
23107         * string/memccpy.c (__memccpy): Likewise.
23108         * string/stpcpy.c (__stpcpy): Likewise.
23109         * string/strcmp.c (strcmp): Likewise.
23110         * string/strrchr.c (strrchr): Likewise.
23111         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
23112         Likewise.
23113         * sysdeps/mach/hurd/getcwd.c
23114         (_hurd_canonicalize_directory_name_internal): Likewise.
23115         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
23116         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
23117         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
23118         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
23119         Likewise, in both definitions.
23120         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
23121         definitions.
23122         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
23123         64] (__bswap_64): Likewise.
23124         * time/test_time.c (main): Likewise.
23125         * time/tzfile.c (__tzfile_read): Likewise.
23126         (__tzfile_compute): Likewise.
23127         * time/tzset.c (__tzset_parse_tz): Likewise.
23128         (tzset_internal): Likewise.
23129         (compute_change): Likewise.
23130         * wcsmbs/wcscat.c (__wcscat): Likewise.
23131         * wcsmbs/wcschr.c (wcschr): Likewise.
23132         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
23133         * wcsmbs/wcscspn.c (wcscspn): Likewise.
23134         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
23135         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
23136         * wcsmbs/wcsspn.c (wcsspn): Likewise.
23137         * wcsmbs/wcsstr.c (wcsstr): Likewise.
23138         * wcsmbs/wmemchr.c (wmemchr): Likewise.
23139         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
23140         * wcsmbs/wmemset.c (wmemset): Likewise.
23141
23142 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
23143
23144         * scripts/config.guess: Update to version 2013-05-16.
23145         * scripts/config.sub: Update to version 2013-04-24.
23146         * scripts/install-sh: Update to version 2011-11-20.07.
23147         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
23148         * scripts/move-if-change: Update to version 2012-01-06 07:23.
23149
23150 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
23151
23152         * debug/fgetws_u_chk.c: Fix leading whitespaces.
23153         * elf/sln.c: Likewise.
23154         * hurd/hurd/ioctl.h: Likewise.
23155         * hurd/hurdmalloc.c: Likewise.
23156         * hurd/xattr.c: Likewise.
23157         * include/shlib-compat.h: Likewise.
23158         * inet/ruserpass.c: Likewise.
23159         * libio/iofgets_u.c: Likewise.
23160         * libio/iofgetws_u.c: Likewise.
23161         * locale/programs/ld-identification.c: Likewise.
23162         * locale/programs/ld-time.c: Likewise.
23163         * mach/msg-destroy.c: Likewise.
23164         * nss/nss_files/files-netgrp.c: Likewise.
23165         * resolv/res_data.c: Likewise.
23166         * soft-fp/op-1.h: Likewise.
23167         * soft-fp/op-2.h: Likewise.
23168         * soft-fp/op-4.h: Likewise.
23169         * soft-fp/op-common.h: Likewise.
23170         * stdio-common/printf_fphex.c: Likewise.
23171         * stdlib/strtod_l.c: Likewise.
23172         * sunrpc/rpc/clnt.h: Likewise.
23173         * sysdeps/generic/framestate.c: Likewise.
23174         * sysdeps/i386/bsd-_setjmp.S: Likewise.
23175         * sysdeps/i386/bsd-setjmp.S: Likewise.
23176         * sysdeps/i386/__longjmp.S: Likewise.
23177         * sysdeps/i386/setjmp.S: Likewise.
23178         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
23179         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
23180         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
23181         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
23182         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
23183         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
23184         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
23185         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
23186         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23187         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
23188         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
23189         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
23190         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
23191         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
23192         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
23193         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
23194         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
23195         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
23196         * sysdeps/ieee754/support.c: Likewise.
23197         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
23198         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
23199         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
23200         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
23201         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
23202         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
23203         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
23204         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
23205         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
23206         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
23207         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
23208         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
23209         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
23210         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
23211         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
23212         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
23213         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
23214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
23215
23216 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
23217
23218         * posix/transbug.c: Remove executable mode.
23219
23220 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
23221
23222         * crypt/speeds.c: Remove trailing whitespace.
23223         * dlfcn/default.c: Likewise.
23224         * elf/ifuncdep2.c: Likewise.
23225         * elf/ifuncmain1.c: Likewise.
23226         * elf/ifuncmain1vis.c: Likewise.
23227         * elf/testobj.h: Likewise.
23228         * elf/tst-stackguard1.c: Likewise.
23229         * gmon/sys/gmon.h: Likewise.
23230         * hurd/hurdmsg.c: Likewise.
23231         * hurd/new-fd.c: Likewise.
23232         * hurd/ports-get.c: Likewise.
23233         * iconvdata/ibm1008_420.c: Likewise.
23234         * inet/tst-getni1.c: Likewise.
23235         * inet/tst-getni2.c: Likewise.
23236         * libio/ioungetc.c: Likewise.
23237         * libio/wfiledoalloc.c: Likewise.
23238         * manual/libm-err-tab.pl: Likewise.
23239         * math/w_dremf.c: Likewise.
23240         * misc/ftruncate.c: Likewise.
23241         * posix/bug-glob2.c: Likewise.
23242         * posix/tst-pcre.c: Likewise.
23243         * posix/wait4.c: Likewise.
23244         * resolv/README: Likewise.
23245         * resolv/res_debug.h: Likewise.
23246         * resolv/tst-inet_ntop.c: Likewise.
23247         * setjmp/bug269-setjmp.c: Likewise.
23248         * soft-fp/extended.h: Likewise.
23249         * soft-fp/op-1.h: Likewise.
23250         * soft-fp/op-2.h: Likewise.
23251         * soft-fp/op-4.h: Likewise.
23252         * soft-fp/op-8.h: Likewise.
23253         * soft-fp/testit.c: Likewise.
23254         * stdio-common/bug16.c: Likewise.
23255         * stdlib/random.c: Likewise.
23256         * sunrpc/rpcsvc/rquota.x: Likewise.
23257         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
23258         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
23259         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
23260         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
23261         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
23262         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
23263         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
23264         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
23265         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
23266         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
23267         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
23268         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
23269         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
23270         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
23271         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
23272         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
23273         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
23274         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
23275         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
23276         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
23277         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
23278         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
23279         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
23280         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
23281         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
23282         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
23283         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
23284         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
23285         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
23286         * sysdeps/ieee754/s_lib_version.c: Likewise.
23287         * sysdeps/mach/hurd/check_fds.c: Likewise.
23288         * sysdeps/mach/hurd/getsockname.c: Likewise.
23289         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
23290         * sysdeps/mach/hurd/recvfrom.c: Likewise.
23291         * sysdeps/powerpc/bits/link.h: Likewise.
23292         * sysdeps/powerpc/dl-procinfo.c: Likewise.
23293         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
23294         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
23295         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
23296         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
23297         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
23298         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
23299         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
23300         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
23301         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
23302         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
23303         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
23304         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
23305         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
23306         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
23307         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
23308         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
23309         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
23310         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
23311         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
23312         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
23313         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
23314         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
23315         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
23316         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
23317         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
23318         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
23319         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
23320         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
23321         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
23322         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
23323         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
23324         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
23325         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
23326         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
23327         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
23328         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
23329         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
23330         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
23331         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
23332         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
23333         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
23334         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
23335         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
23336         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
23337         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
23338         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
23339         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
23340         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
23341         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
23342         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
23343         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
23344         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
23345         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
23346         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
23347         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
23348         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
23349         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
23350         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
23351         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
23352         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
23353         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
23354         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
23355         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
23356         * sysdeps/powerpc/sysdep.h: Likewise.
23357         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
23358         * sysdeps/s390/s390-64/sub_n.S: Likewise.
23359         * sysdeps/sh/dl-trampoline.S: Likewise.
23360         * sysdeps/sh/memset.S: Likewise.
23361         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
23362         * sysdeps/sh/strlen.S: Likewise.
23363         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
23364         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
23365         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
23366         * sysdeps/sparc/sparc32/rem.S: Likewise.
23367         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
23368         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
23369         * sysdeps/sparc/sparc32/strchr.S: Likewise.
23370         * sysdeps/sparc/sparc32/udiv.S: Likewise.
23371         * sysdeps/sparc/sparc32/urem.S: Likewise.
23372         * sysdeps/sparc/sparc64/add_n.S: Likewise.
23373         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
23374         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
23375         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
23376         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
23377         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
23378         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
23379         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
23380         * sysdeps/unix/bsd/times.c: Likewise.
23381         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
23382         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
23383         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
23384         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
23385         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
23386         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
23387         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
23388         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
23389         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
23390         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
23391         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
23392         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
23393         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
23394         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
23395         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
23396         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
23397         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
23398         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
23399         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
23400         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
23401         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
23402         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
23403         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
23404         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
23405         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
23406         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
23407         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
23408         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23409         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
23410         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
23411         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
23412         * sysdeps/x86_64/strcspn.S: Likewise.
23413
23414 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
23415
23416         * locale/C-translit.h: Revert #include <stdint.h> because this is a
23417         generated file.  Regenerate properly from gen-translit.pl.
23418         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
23419         locale/C-translit.h.
23420
23421 2013-06-05  Andreas Schwab  <schwab@suse.de>
23422
23423         [BZ #15100]
23424         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
23425         week as 6 instead of -1.
23426         * time/tst-strptime.c (day_tests): Add test case.
23427
23428 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
23429
23430         * sysdeps/generic/math_private.h
23431         (libc_feholdexcept_setround_53bit): Replace with
23432         libc_feholdsetround_53bit.
23433         (libc_feupdateenv_53bit): Replace with
23434         libc_feresetround_53bit.
23435         (SET_RESTORE_ROUND_53BIT): Adjust.
23436
23437 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
23438
23439         * string/test-strchrnul.c: Add copyright header.
23440
23441         * posix/tst-getaddrinfo4.c: Increase test timeout.
23442
23443 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
23444
23445         [BZ #15536]
23446         * math/libm-test.inc (MAX_EXP): Remove
23447         (MIN_EXP): Define.
23448         (ulp): Use MIN_EXP - MANT_DIG.
23449         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
23450
23451 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
23452
23453         * po/be.po: Revert last change.
23454         * po/zh_CN.po: Likewise.
23455         * po/header.pot: Likewise.
23456
23457 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
23458
23459         * Makefile ($(common-objpfx)linkobj/libc.so): Define
23460         link-libc-deps to empty as target-specific variable.
23461         * Makerules (link-libc-args): New variable.
23462         (libc-for-link): Likewise.
23463         (link-libc-deps): Likewise.
23464         (lib%.so): Depend on $(link-libc-deps).  Link with
23465         $(link-libc-args).
23466         (build-module): Link with $(link-libc-args).
23467         (build-module-asneeded): Likewise.
23468         (build-module-helper-objlist): Filter out $(link-libc-deps) from
23469         list of objects.
23470         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
23471         target-specific variable.
23472         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
23473         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
23474         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
23475         libc.
23476         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
23477         libc and ld.so.
23478         ($(objpfx)libpcprofile.so): Likewise.
23479         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
23480         libc_nonshared.a.
23481         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
23482         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
23483         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
23484         $(link-libc-deps).
23485         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
23486         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
23487         * login/Makefile ($(objpfx)libutil.so): Likewise.
23488         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
23489         * math/Makefile ($(objpfx)libm.so): Likewise.
23490         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
23491         $(objpfx)libnsl.so): Define libc-for-link as target-specific
23492         variable instead of depending directly on libc.
23493         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
23494         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
23495         $(link-libc-deps).
23496         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
23497         libc.
23498         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
23499         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
23500         ($(objpfx)libanl.so): Likewise.
23501         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
23502         ld.so.
23503         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
23504         $(link-libc-deps).
23505         * sysdeps/i386/fpu/Makefile: Remove file.
23506         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
23507         ($(objpfx)libm.so): Remove dependency on ld.so.
23508
23509 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
23510
23511         [BZ # 15553]
23512         * nis/yp_xdr.c (XDRMAXNAME): Define.
23513         (XDRMAXRECORD): Define.
23514         (xdr_domainname): Use XDRMAXNAME.
23515         (xdr_mapname): Likewise.
23516         (xdr_peername): Likewise.
23517         (xdr_keydat): Use XDRMAXRECORD.
23518         (xdr_valdat): Likewise.
23519
23520 2013-05-30  Jeff Law  <law@redhat.com>
23521
23522         [BZ #14256]
23523         * manual/errno.texi (ESTALE): Update to account for more than
23524         just NFS file systems.
23525         * sysdeps/gnu/errlist.c: Regenerated.
23526
23527 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
23528
23529         [BZ #15465]
23530         * elf/Makefile (tests): Add tst-null-argv.
23531         (modules-names):  Add tst-null-argv-lib.
23532         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
23533         (tst-null-argv-ENV): Set environment for tst-null-argv.
23534         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
23535         (RTLD_PROGNAME): New macro.
23536         * elf/tst-null-argv.c: New test case.
23537         * elf/tst-null-argv-lib.c: Library for test case.
23538         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
23539         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
23540         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
23541         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
23542         * elf/dl-init.c (call_init): Likewise.
23543         (_dl_init): Likewise.
23544         * elf/dl-load.c (print_search_path): Likewise.
23545         (_dl_map_object): Likewise.
23546         * elf/dl-lookup.c (do_lookup_x): Likewise.
23547         (add_dependency): Likewise.
23548         (_dl_lookup_symbol_x): Likewise.
23549         (_dl_debug_bindings): Likewise.
23550         * elf/dl-open.c (_dl_show_scope): Likewise.
23551         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
23552         * elf/dl-version.c (match_symbol): Likewise.
23553         (_dl_check_map_versions): Likewise.
23554         * elf/rtld.c (dl_main): Likewise.
23555         (print_unresolved): Use RTLD_PROGNAME.
23556         (print_missing_version): Likewise.
23557         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
23558         (elf_machine_rela): Likewise.
23559         * sysdeps/powerpc/powerpc32/dl-machine.c
23560         (__process_machine_rela): Likewise.
23561         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
23562         Likewise.
23563         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
23564         Likewise.
23565         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
23566         Likewise.
23567         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
23568         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
23569         Likewise.
23570         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
23571         Likewise.
23572         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
23573
23574 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
23575
23576         * po/be.po: Add descriptive title.
23577         * po/zh_CN.po: Likewise.
23578         * po/header.pot: Likewise.
23579
23580 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
23581
23582         * locale/programs/locarchive.c (create_archive): Inlucde fname in
23583         error message.
23584         (enlarge_archive): Likewise.
23585
23586 2013-05-28  Ben North  <ben@redfrontdoor.org>
23587
23588         * manual/arith.texi (frexp): It is the magnitude of the return
23589         value which lies in [0.5, 1), not the return value itself.
23590
23591 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23592
23593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23594
23595 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
23596
23597         * stdio-common/bug26.c (main): Correct fscanf template.
23598
23599         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
23600         declare _dl_skip_args.
23601
23602         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
23603         Don't declare.
23604
23605         * manual/platform.texi: Add missing @end deftypefun.
23606
23607 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
23608
23609         [BZ #15529]
23610         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
23611         bit of mantissa of 2^16382.
23612         * math/libm-test.inc (hypot_test_data): Add more tests.
23613
23614         * math/libm-test.inc: Add drem and pow10 to list of tested
23615         functions.
23616         (pow10_test): New function.
23617         (drem_test): Likewise.
23618         (drem_test_tonearest): Likewise.
23619         (drem_test_towardzero): Likewise.
23620         (drem_test_downward): Likewise.
23621         (drem_test_upward): Likewise.
23622         (main): Call the new functions.
23623
23624         * math/libm-test.inc (finite_test_data): Remove.
23625         (finite_test): Run tests from isfinite_test_data.
23626         (gamma_test_data): Remove.
23627         (gamma_test): Run tests from lgamma_test_data.
23628         * sysdeps/i386/fpu/libm-test-ulps: Update.
23629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23630
23631 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23632
23633         * manual/platform.texi: Add PowerPC PPR function set documentation.
23634         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
23635         implementation.
23636
23637 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
23638
23639         * math/libm-test.inc (MAX_EXP): Define.
23640         (ULPDIFF): Define.
23641         (ulp): New function.
23642         (check_float_internal): Use ULPDIFF.
23643         (cpow_test): Disable failing test.
23644         (check_ulp): Test ulp() implemetnation.
23645         (main): Call check_ulp before starting tests.
23646
23647 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
23648
23649         * math/gen-libm-test.pl (generate_testfile): Do not handle
23650         START_DATA and END_DATA.
23651         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
23652         END_DATA.
23653         (acos_tonearest_test_data): Likewise.
23654         (acos_towardzero_test_data): Likewise.
23655         (acos_downward_test_data): Likewise.
23656         (acos_upward_test_data): Likewise.
23657         (acosh_test_data): Likewise.
23658         (asin_test_data): Likewise.
23659         (asin_tonearest_test_data): Likewise.
23660         (asin_towardzero_test_data): Likewise.
23661         (asin_downward_test_data): Likewise.
23662         (asin_upward_test_data): Likewise.
23663         (asinh_test_data): Likewise.
23664         (atan_test_data): Likewise.
23665         (atanh_test_data): Likewise.
23666         (atan2_test_data): Likewise.
23667         (cabs_test_data): Likewise.
23668         (cacos_test_data): Likewise.
23669         (cacosh_test_data): Likewise.
23670         (carg_test_data): Likewise.
23671         (casin_test_data): Likewise.
23672         (casinh_test_data): Likewise.
23673         (catan_test_data): Likewise.
23674         (catanh_test_data): Likewise.
23675         (cbrt_test_data): Likewise.
23676         (ccos_test_data): Likewise.
23677         (ccosh_test_data): Likewise.
23678         (ceil_test_data): Likewise.
23679         (cexp_test_data): Likewise.
23680         (cimag_test_data): Likewise.
23681         (clog_test_data): Likewise.
23682         (clog10_test_data): Likewise.
23683         (conj_test_data): Likewise.
23684         (copysign_test_data): Likewise.
23685         (cos_test_data): Likewise.
23686         (cos_tonearest_test_data): Likewise.
23687         (cos_towardzero_test_data): Likewise.
23688         (cos_downward_test_data): Likewise.
23689         (cos_upward_test_data): Likewise.
23690         (cosh_test_data): Likewise.
23691         (cosh_tonearest_test_data): Likewise.
23692         (cosh_towardzero_test_data): Likewise.
23693         (cosh_downward_test_data): Likewise.
23694         (cosh_upward_test_data): Likewise.
23695         (cpow_test_data): Likewise.
23696         (cproj_test_data): Likewise.
23697         (creal_test_data): Likewise.
23698         (csin_test_data): Likewise.
23699         (csinh_test_data): Likewise.
23700         (csqrt_test_data): Likewise.
23701         (ctan_test_data): Likewise.
23702         (ctan_tonearest_test_data): Likewise.
23703         (ctan_towardzero_test_data): Likewise.
23704         (ctan_downward_test_data): Likewise.
23705         (ctan_upward_test_data): Likewise.
23706         (ctanh_test_data): Likewise.
23707         (ctanh_tonearest_test_data): Likewise.
23708         (ctanh_towardzero_test_data): Likewise.
23709         (ctanh_downward_test_data): Likewise.
23710         (ctanh_upward_test_data): Likewise.
23711         (erf_test_data): Likewise.
23712         (erfc_test_data): Likewise.
23713         (exp_test_data): Likewise.
23714         (exp_tonearest_test_data): Likewise.
23715         (exp_towardzero_test_data): Likewise.
23716         (exp_downward_test_data): Likewise.
23717         (exp_upward_test_data): Likewise.
23718         (exp10_test_data): Likewise.
23719         (exp2_test_data): Likewise.
23720         (expm1_test_data): Likewise.
23721         (fabs_test_data): Likewise.
23722         (fdim_test_data): Likewise.
23723         (finite_test_data): Likewise.
23724         (floor_test_data): Likewise.
23725         (fma_test_data): Likewise.
23726         (fma_towardzero_test_data): Likewise.
23727         (fma_downward_test_data): Likewise.
23728         (fma_upward_test_data): Likewise.
23729         (fmax_test_data): Likewise.
23730         (fmin_test_data): Likewise.
23731         (fmod_test_data): Likewise.
23732         (fpclassify_test_data): Likewise.
23733         (frexp_test_data): Likewise.
23734         (gamma_test_data): Likewise.
23735         (hypot_test_data): Likewise.
23736         (ilogb_test_data): Likewise.
23737         (isfinite_test_data): Likewise.
23738         (isgreater_test_data): Likewise.
23739         (isgreaterequal_test_data): Likewise.
23740         (isinf_test_data): Likewise.
23741         (isless_test_data): Likewise.
23742         (islessequal_test_data): Likewise.
23743         (islessgreater_test_data): Likewise.
23744         (isnan_test_data): Likewise.
23745         (isnormal_test_data): Likewise.
23746         (issignaling_test_data): Likewise.
23747         (isunordered_test_data): Likewise.
23748         (j0_test_data): Likewise.
23749         (j1_test_data): Likewise.
23750         (jn_test_data): Likewise.
23751         (ldexp_test_data): Likewise.
23752         (lgamma_test_data): Likewise.
23753         (lrint_test_data): Likewise.
23754         (lrint_tonearest_test_data): Likewise.
23755         (lrint_towardzero_test_data): Likewise.
23756         (lrint_downward_test_data): Likewise.
23757         (lrint_upward_test_data): Likewise.
23758         (llrint_test_data): Likewise.
23759         (llrint_tonearest_test_data): Likewise.
23760         (llrint_towardzero_test_data): Likewise.
23761         (llrint_downward_test_data): Likewise.
23762         (llrint_upward_test_data): Likewise.
23763         (log_test_data): Likewise.
23764         (log10_test_data): Likewise.
23765         (log1p_test_data): Likewise.
23766         (log2_test_data): Likewise.
23767         (logb_test_data): Likewise.
23768         (logb_downward_test_data): Likewise.
23769         (lround_test_data): Likewise.
23770         (llround_test_data): Likewise.
23771         (modf_test_data): Likewise.
23772         (nearbyint_test_data): Likewise.
23773         (nextafter_test_data): Likewise.
23774         (nexttoward_test_data): Likewise.
23775         (pow_test_data): Likewise.
23776         (pow_tonearest_test_data): Likewise.
23777         (pow_towardzero_test_data): Likewise.
23778         (pow_downward_test_data): Likewise.
23779         (pow_upward_test_data): Likewise.
23780         (remainder_test_data): Likewise.
23781         (remainder_tonearest_test_data): Likewise.
23782         (remainder_towardzero_test_data): Likewise.
23783         (remainder_downward_test_data): Likewise.
23784         (remainder_upward_test_data): Likewise.
23785         (remquo_test_data): Likewise.
23786         (rint_test_data): Likewise.
23787         (rint_tonearest_test_data): Likewise.
23788         (rint_towardzero_test_data): Likewise.
23789         (rint_downward_test_data): Likewise.
23790         (rint_upward_test_data): Likewise.
23791         (round_test_data): Likewise.
23792         (scalb_test_data): Likewise.
23793         (scalbn_test_data): Likewise.
23794         (scalbln_test_data): Likewise.
23795         (signbit_test_data): Likewise.
23796         (sin_test_data): Likewise.
23797         (sin_tonearest_test_data): Likewise.
23798         (sin_towardzero_test_data): Likewise.
23799         (sin_downward_test_data): Likewise.
23800         (sin_upward_test_data): Likewise.
23801         (sincos_test_data): Likewise.
23802         (sinh_test_data): Likewise.
23803         (sinh_tonearest_test_data): Likewise.
23804         (sinh_towardzero_test_data): Likewise.
23805         (sinh_downward_test_data): Likewise.
23806         (sinh_upward_test_data): Likewise.
23807         (sqrt_test_data): Likewise.
23808         (tan_test_data): Likewise.
23809         (tan_tonearest_test_data): Likewise.
23810         (tan_towardzero_test_data): Likewise.
23811         (tan_downward_test_data): Likewise.
23812         (tan_upward_test_data): Likewise.
23813         (tanh_test_data): Likewise.
23814         (tgamma_test_data): Likewise.
23815         (trunc_test_data): Likewise.
23816         (y0_test_data): Likewise.
23817         (y1_test_data): Likewise.
23818         (yn_test_data): Likewise.
23819         (significand_test_data): Likewise.
23820
23821         * math/gen-libm-test.pl (@functions): Remove variable.
23822         (generate_testfile): Don't handle START and END lines.
23823         * math/libm-test.inc (START): New macro.
23824         (END): Likewise.
23825         (END_COMPLEX): Likewise.
23826         (acos_test): Use END macro without arguments.
23827         (acos_test_tonearest): Likewise.
23828         (acos_test_towardzero): Likewise.
23829         (acos_test_downward): Likewise.
23830         (acos_test_upward): Likewise.
23831         (acosh_test): Likewise.
23832         (asin_test): Likewise.
23833         (asin_test_tonearest): Likewise.
23834         (asin_test_towardzero): Likewise.
23835         (asin_test_downward): Likewise.
23836         (asin_test_upward): Likewise.
23837         (asinh_test): Likewise.
23838         (atan_test): Likewise.
23839         (atanh_test): Likewise.
23840         (atan2_test): Likewise.
23841         (cabs_test): Likewise.
23842         (cacos_test): Use END_COMPLEX macro without arguments.
23843         (cacosh_test): Likewise.
23844         (carg_test): Use END macro without arguments.
23845         (casin_test): Use END_COMPLEX macro without arguments.
23846         (casinh_test): Likewise.
23847         (catan_test): Likewise.
23848         (catanh_test): Likewise.
23849         (cbrt_test): Use END macro without arguments.
23850         (ccos_test): Use END_COMPLEX macro without arguments.
23851         (ccosh_test): Likewise.
23852         (ceil_test): Use END macro without arguments.
23853         (cexp_test): Use END_COMPLEX macro without arguments.
23854         (cimag_test): Use END macro without arguments.
23855         (clog_test): Use END_COMPLEX macro without arguments.
23856         (clog10_test): Likewise.
23857         (conj_test): Likewise.
23858         (copysign_test): Use END macro without arguments.
23859         (cos_test): Likewise.
23860         (cos_test_tonearest): Likewise.
23861         (cos_test_towardzero): Likewise.
23862         (cos_test_downward): Likewise.
23863         (cos_test_upward): Likewise.
23864         (cosh_test): Likewise.
23865         (cosh_test_tonearest): Likewise.
23866         (cosh_test_towardzero): Likewise.
23867         (cosh_test_downward): Likewise.
23868         (cosh_test_upward): Likewise.
23869         (cpow_test): Use END_COMPLEX macro without arguments.
23870         (cproj_test): Likewise.
23871         (creal_test): Use END macro without arguments.
23872         (csin_test): Use END_COMPLEX macro without arguments.
23873         (csinh_test): Likewise.
23874         (csqrt_test): Likewise.
23875         (ctan_test): Likewise.
23876         (ctan_test_tonearest): Likewise.
23877         (ctan_test_towardzero): Likewise.
23878         (ctan_test_downward): Likewise.
23879         (ctan_test_upward): Likewise.
23880         (ctanh_test): Likewise.
23881         (ctanh_test_tonearest): Likewise.
23882         (ctanh_test_towardzero): Likewise.
23883         (ctanh_test_downward): Likewise.
23884         (ctanh_test_upward): Likewise.
23885         (erf_test): Use END macro without arguments.
23886         (erfc_test): Likewise.
23887         (exp_test): Likewise.
23888         (exp_test_tonearest): Likewise.
23889         (exp_test_towardzero): Likewise.
23890         (exp_test_downward): Likewise.
23891         (exp_test_upward): Likewise.
23892         (exp10_test): Likewise.
23893         (exp2_test): Likewise.
23894         (expm1_test): Likewise.
23895         (fabs_test): Likewise.
23896         (fdim_test): Likewise.
23897         (finite_test): Likewise.
23898         (floor_test): Likewise.
23899         (fma_test): Likewise.
23900         (fma_test_towardzero): Likewise.
23901         (fma_test_downward): Likewise.
23902         (fma_test_upward): Likewise.
23903         (fmax_test): Likewise.
23904         (fmin_test): Likewise.
23905         (fmod_test): Likewise.
23906         (fpclassify_test): Likewise.
23907         (frexp_test): Likewise.
23908         (gamma_test): Likewise.
23909         (hypot_test): Likewise.
23910         (ilogb_test): Likewise.
23911         (isfinite_test): Likewise.
23912         (isgreater_test): Likewise.
23913         (isgreaterequal_test): Likewise.
23914         (isinf_test): Likewise.
23915         (isless_test): Likewise.
23916         (islessequal_test): Likewise.
23917         (islessgreater_test): Likewise.
23918         (isnan_test): Likewise.
23919         (isnormal_test): Likewise.
23920         (issignaling_test): Likewise.
23921         (isunordered_test): Likewise.
23922         (j0_test): Likewise.
23923         (j1_test): Likewise.
23924         (jn_test): Likewise.
23925         (ldexp_test): Likewise.
23926         (lgamma_test): Likewise.
23927         (lrint_test): Likewise.
23928         (lrint_test_tonearest): Likewise.
23929         (lrint_test_towardzero): Likewise.
23930         (lrint_test_downward): Likewise.
23931         (lrint_test_upward): Likewise.
23932         (llrint_test): Likewise.
23933         (llrint_test_tonearest): Likewise.
23934         (llrint_test_towardzero): Likewise.
23935         (llrint_test_downward): Likewise.
23936         (llrint_test_upward): Likewise.
23937         (log_test): Likewise.
23938         (log10_test): Likewise.
23939         (log1p_test): Likewise.
23940         (log2_test): Likewise.
23941         (logb_test): Likewise.
23942         (logb_test_downward): Likewise.
23943         (lround_test): Likewise.
23944         (llround_test): Likewise.
23945         (modf_test): Likewise.
23946         (nearbyint_test): Likewise.
23947         (nextafter_test): Likewise.
23948         (nexttoward_test): Likewise.
23949         (pow_test): Likewise.
23950         (pow_test_tonearest): Likewise.
23951         (pow_test_towardzero): Likewise.
23952         (pow_test_downward): Likewise.
23953         (pow_test_upward): Likewise.
23954         (remainder_test): Likewise.
23955         (remainder_test_tonearest): Likewise.
23956         (remainder_test_towardzero): Likewise.
23957         (remainder_test_downward): Likewise.
23958         (remainder_test_upward): Likewise.
23959         (remquo_test): Likewise.
23960         (rint_test): Likewise.
23961         (rint_test_tonearest): Likewise.
23962         (rint_test_towardzero): Likewise.
23963         (rint_test_downward): Likewise.
23964         (rint_test_upward): Likewise.
23965         (round_test): Likewise.
23966         (scalb_test): Likewise.
23967         (scalbn_test): Likewise.
23968         (scalbln_test): Likewise.
23969         (signbit_test): Likewise.
23970         (sin_test): Likewise.
23971         (sin_test_tonearest): Likewise.
23972         (sin_test_towardzero): Likewise.
23973         (sin_test_downward): Likewise.
23974         (sin_test_upward): Likewise.
23975         (sincos_test): Likewise.
23976         (sinh_test): Likewise.
23977         (sinh_test_tonearest): Likewise.
23978         (sinh_test_towardzero): Likewise.
23979         (sinh_test_downward): Likewise.
23980         (sinh_test_upward): Likewise.
23981         (sqrt_test): Likewise.
23982         (tan_test): Likewise.
23983         (tan_test_tonearest): Likewise.
23984         (tan_test_towardzero): Likewise.
23985         (tan_test_downward): Likewise.
23986         (tan_test_upward): Likewise.
23987         (tanh_test): Likewise.
23988         (tgamma_test): Likewise.
23989         (trunc_test): Likewise.
23990         (y0_test): Likewise.
23991         (y1_test): Likewise.
23992         (yn_test): Likewise.
23993         (significand_test): Likewise.
23994
23995 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
23996
23997         [BZ #15381]
23998         * libio/genops.c (_IO_no_init): Initialize wide struct info.
23999
24000 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
24001
24002         [BZ #14894]
24003         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
24004         __ppc_mdoio and __ppc_mdoom.
24005         * manual/platform.texi: Document new functions __ppc_yield,
24006         __ppc_mdoio and __ppc_mdoom.
24007
24008 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
24009
24010         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
24011         (main): Mention "tls" pseudo-hwcap is legacy.
24012         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
24013
24014 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
24015
24016         * math/gen-libm-test.pl (parse_args): Output only string of
24017         arguments as text for test name, not full call or descriptions of
24018         tests for extra outputs.
24019         (generate_testfile): Do not pass function name to parse_args.
24020         Generate this_func variable from START.
24021         * math/libm-test.inc (struct test_f_f_data): Rename test_name
24022         field to arg_str.
24023         (struct test_ff_f_data): Likewise.
24024         (test_ff_f_data_nexttoward): Likewise.
24025         (struct test_fi_f_data): Likewise.
24026         (struct test_fl_f_data): Likewise.
24027         (struct test_if_f_data): Likewise.
24028         (struct test_fff_f_data): Likewise.
24029         (struct test_c_f_data): Likewise.
24030         (struct test_f_f1_data): Likewise.  Remove field extra_name.
24031         (struct test_fF_f1_data): Likewise.
24032         (struct test_ffI_f1_data): Likewise.
24033         (struct test_c_c_data): Rename test_name field to arg_str.
24034         (struct test_cc_c_data): Likewise.
24035         (struct test_f_i_data): Likewise.
24036         (struct test_ff_i_data): Likewise.
24037         (struct test_f_l_data): Likewise.
24038         (struct test_f_L_data): Likewise.
24039         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
24040         and extra2_name.
24041         (COMMON_TEST_SETUP): New macro.
24042         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
24043         (COMMON_TEST_CLEANUP): Likewise.
24044         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
24045         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
24046         macros.
24047         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
24048         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
24049         macros.
24050         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
24051         (RUN_TEST_fff_f): Take argument string.  Call new setup and
24052         cleanup macros.
24053         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
24054         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
24055         macros.
24056         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
24057         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
24058         macros.
24059         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
24060         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
24061         cleanup macros.
24062         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
24063         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
24064         cleanup macros.
24065         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
24066         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
24067         cleanup macros.
24068         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
24069         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
24070         macros.
24071         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
24072         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
24073         macros.
24074         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
24075         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
24076         macros.
24077         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
24078         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
24079         cleanup macros.
24080         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
24081         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
24082         cleanup macros.
24083         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
24084         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
24085         macros.
24086         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
24087         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
24088         cleanup macros.
24089         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
24090         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
24091         macros.
24092         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
24093         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
24094         macros.
24095         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
24096         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
24097         cleanup macros.
24098         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
24099
24100 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
24101
24102         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
24103         to _sifields.sigfault.
24104         (si_addr_lsb): Define new macro.
24105         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
24106         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
24107         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
24108
24109 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
24110
24111         [BZ #15441]
24112         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
24113         returns -1.
24114         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
24115         null return -1.
24116         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
24117         loading the domain.
24118
24119 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
24120
24121         * math/gen-libm-test.pl (parse_args): Do not include expected
24122         result in test name.
24123         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
24124         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
24125         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
24126         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
24127         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
24128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24129
24130 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
24131
24132         * benchtests/Makefile: Sort function entries.
24133
24134         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
24135         tanh, asinh, acosh, atanh.
24136         * benchtests/acos-inputs: New file.
24137         * benchtests/acosh-inputs: New file.
24138         * benchtests/asin-inputs: New file.
24139         * benchtests/asinh-inputs: New file.
24140         * benchtests/atanh-inputs: New file.
24141         * benchtests/cosh-inputs: New file.
24142         * benchtests/log-inputs: New file.
24143         * benchtests/sinh-inputs: New file.
24144         * benchtests/tanh-inputs: New file.
24145
24146 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
24147
24148         [BZ #15339]
24149         * posix/tst-getaddrinfo4.c: New test.
24150         * posix/Makefile (tests): Add it.
24151
24152 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
24153
24154         [BZ #15339]
24155         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
24156         when no services were used.
24157         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
24158         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
24159
24160 2013-05-21  Andreas Schwab  <schwab@suse.de>
24161
24162         [BZ #15014]
24163         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
24164         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
24165         successful.
24166         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
24167         redundant variable declarations and reallocation of buffer when
24168         parsing as IPv6 address.  Always set NSS status when called from
24169         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
24170         buffer too small.  Correct computation of needed size.
24171         * nss/Makefile (tests): Add test-digits-dots.
24172         * nss/test-digits-dots.c: New test.
24173
24174 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
24175
24176         * benchtests/Makefile: Remove instructions for adding
24177         benchmark tests.
24178         * benchtests/README: New file to explain how to execute and
24179         enhance the benchmark tests.
24180
24181 2013-05-21  Andreas Schwab  <schwab@suse.de>
24182
24183         [BZ #15493]
24184         * setjmp/Makefile (tests): Add tst-sigsetjmp.
24185         * setjmp/tst-sigsetjmp.c: New test.
24186
24187 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
24188
24189         * sysdeps/x86_64/memset.S (memset): New implementation.
24190         (__bzero): Likewise.
24191         (__memset_tail): New function.
24192
24193 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
24194
24195         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
24196         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
24197         __memcpy_sse2_unaligned ifunc selection.
24198         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
24199         Add memcpy-sse2-unaligned.S.
24200         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
24201         Add: __memcpy_sse2_unaligned.
24202
24203 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
24204
24205         [BZ #15490]
24206         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
24207         math_force_eval before restoring floating-point envrionment.
24208         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
24209         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
24210         Likewise.
24211         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
24212         <math_private.h>.
24213         (__nearbyintl): Use math_force_eval before restoring
24214         floating-point environment.
24215         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
24216
24217         * math/gen-libm-test.pl (special_functions): Remove.
24218         (parse_args): Don't handle TEST_extra.  Handle functions with no
24219         return value.
24220         * math/libm-test.inc (struct test_sincos_data): Replace with
24221         struct test_fFF_11_data.
24222         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
24223         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
24224         (sincos_test_data): Change element type to struct
24225         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
24226         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
24227         RUN_TEST_LOOP_sincos.
24228         * math/README.libm-test: Don't mention special handling of
24229         individual functions.
24230         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
24231         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
24232         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
24233         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
24234         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
24235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24236
24237         * math/gen-libm-test.pl (get_variable): Remove function.
24238         (parse_args): Don't show pointer parameters to call in test
24239         names.  Use "extra output N" in test names for extra outputs
24240         rather than naming variables.
24241
24242 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
24243
24244         [BZ #15488]
24245         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
24246         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
24247         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
24248         double tests.
24249         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
24250         disable.
24251         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
24252         check_long_double.
24253
24254         * math/gen-libm-test.pl (@tests): Remove variable.
24255         ($count): Likewise.
24256         (new_test): Remove function.
24257         (show_exceptions): New function.
24258         (special_functions): Use show_exceptions instead of new_test.
24259         (parse_args): Likewise.
24260         (generate_testfile): Pass only function name in generated call to
24261         print_max_error or print_complex_max_error.
24262         (get_ulps): Do not handle complex tests specially.
24263         (output_test): Rename to ...
24264         (get_all_ulps_for_test): ... this.  Return a string rather than
24265         printing to a file.  Require ulps to be present.
24266         (output_ulps): Generate arrays rather than #defines.
24267         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
24268         (struct ulp_data): New type.
24269         (BUILD_COMPLEX_ULP): Remove macro.
24270         (compare_ulp_data): New function.
24271         (find_ulps): Likewise.
24272         (find_test_ulps): Likewise.
24273         (find_function_ulps): Likewise.
24274         (find_complex_function_ulps): Likewise.
24275         (print_max_error): Determine allowed ulps using
24276         find_function_ulps.
24277         (print_complex_max_error): Determine allowed ulps using
24278         find_complex_function_ulps.
24279         (check_float_internal): Determine max ulps using find_test_ulps.
24280         (check_float): Do not take max_ulp parameter.  Update call to
24281         check_float_internal.
24282         (check_complex): Likewise.
24283         (check_int): Do not take max_ulp parameter.
24284         (check_long): Likewise.
24285         (check_bool): Likewise.
24286         (check_longlong): Likewise.
24287         (struct test_f_f_data): Remove max_ulp field.
24288         (struct test_ff_f_data): Likewise.
24289         (struct test_ff_f_data_nexttoward): Likewise.
24290         (struct test_fi_f_data): Likewise.
24291         (struct test_fl_f_data): Likewise.
24292         (struct test_if_f_data): Likewise.
24293         (struct test_fff_f_data): Likewise.
24294         (struct test_c_f_data): Likewise.
24295         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
24296         (struct test_fF_f1_data): Likewise.
24297         (struct test_ffI_f1_data): Likewise.
24298         (struct test_c_c_data): Remove max_ulp field.
24299         (struct test_cc_c_data): Likewise.
24300         (struct test_f_i_data): Likewise.
24301         (struct test_ff_i_data): Likewise.
24302         (struct test_f_l_data): Likewise.
24303         (struct test_f_L_data): Likewise.
24304         (struct test_sincos_data): Likewise.
24305         (RUN_TEST_f_f): Do not handle ulps.
24306         (RUN_TEST_LOOP_f_f): Likewise.
24307         (RUN_TEST_2_f): Likewise.
24308         (RUN_TEST_LOOP_2_f): Likewise.
24309         (RUN_TEST_fff_f): Likewise.
24310         (RUN_TEST_LOOP_fff_f): Likewise.
24311         (RUN_TEST_c_f): Likewise.
24312         (RUN_TEST_LOOP_c_f): Likewise.
24313         (RUN_TEST_f_f1): Likewise.
24314         (RUN_TEST_LOOP_f_f1): Likewise.
24315         (RUN_TEST_fF_f1): Likewise.
24316         (RUN_TEST_LOOP_fF_f1): Likewise.
24317         (RUN_TEST_fI_f1): Likewise.
24318         (RUN_TEST_LOOP_fI_f1): Likewise.
24319         (RUN_TEST_ffI_f1): Likewise.
24320         (RUN_TEST_LOOP_ffI_f1): Likewise.
24321         (RUN_TEST_c_c): Likewise.
24322         (RUN_TEST_LOOP_c_c): Likewise.
24323         (RUN_TEST_cc_c): Likewise.
24324         (RUN_TEST_LOOP_cc_c): Likewise.
24325         (RUN_TEST_f_i): Likewise.
24326         (RUN_TEST_LOOP_f_i): Likewise.
24327         (RUN_TEST_f_i_tg): Likewise.
24328         (RUN_TEST_LOOP_f_i_tg): Likewise.
24329         (RUN_TEST_ff_i_tg): Likewise.
24330         (RUN_TEST_LOOP_ff_i_tg): Likewise.
24331         (RUN_TEST_f_b): Likewise.
24332         (RUN_TEST_LOOP_f_b): Likewise.
24333         (RUN_TEST_f_b_tg): Likewise.
24334         (RUN_TEST_LOOP_f_b_tg): Likewise.
24335         (RUN_TEST_f_l): Likewise.
24336         (RUN_TEST_LOOP_f_l): Likewise.
24337         (RUN_TEST_f_L): Likewise.
24338         (RUN_TEST_LOOP_f_L): Likewise.
24339         (RUN_TEST_sincos): Likewise.
24340         (RUN_TEST_LOOP_sincos): Likewise.
24341
24342 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
24343
24344         [BZ #15480]
24345         [BZ #15485]
24346         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
24347         main case of finite arguments, set rounding mode to FE_TONEAREST
24348         and discard exceptions.
24349         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
24350         exceptions.
24351         (remainder_tonearest_test_data): New variable.
24352         (remainder_test_tonearest): New function.
24353         (remainder_towardzero_test_data): New variable.
24354         (remainder_test_towardzero): New function.
24355         (remainder_downward_test_data): New variable.
24356         (remainder_test_downward): New function.
24357         (remainder_upward_test_data): New variable.
24358         (remainder_test_upward): New function.
24359         (main): Call the new test functions.
24360
24361         * math/libm-test.inc (struct test_f_f1_data): Remove field
24362         extra_init.
24363         (struct test_fF_f1_data): Likewise.
24364         (struct test_ffI_f1_data): Likewise.
24365         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
24366         based on value of EXTRA_EXPECTED.
24367         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
24368         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
24369         EXTRA_VAR based on value of EXTRA_EXPECTED.
24370         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
24371         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
24372         EXTRA_VAR based on value of EXTRA_EXPECTED.
24373         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
24374         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
24375         EXTRA_VAR based on value of EXTRA_EXPECTED.
24376         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
24377         * math/gen-libm-test.pl (parse_args): Don't output initializers
24378         for extra output values.
24379
24380         * math/libm-test.inc (check_int): Expect result to be exactly
24381         equal to expected value and do not handle ulps.
24382         (check_long): Likewise.
24383         (check_longlong): Likewise.
24384
24385         * math/libm-test.inc (ceil_test_data): Test for "inexact"
24386         exceptions.
24387         (cimag_test_data): Likewise.
24388         (conj_test_data): Likewise.
24389         (copysign_test_data): Likewise.
24390         (cproj_test_data): Likewise.
24391         (creal_test_data): Likewise.
24392         (fabs_test_data): Likewise.
24393         (fdim_test_data): Likewise.
24394         (finite_test_data): Likewise.
24395         (floor_test_data): Likewise.
24396         (fmax_test_data): Likewise.
24397         (fmin_test_data): Likewise.
24398         (fmod_test_data): Likewise.
24399         (fpclassify_test_data): Likewise.
24400         (frexp_test_data): Likewise.
24401         (ilogb_test_data): Likewise.
24402         (isfinite_test_data): Likewise.
24403         (isgreater_test_data): Likewise.
24404         (isgreaterequal_test_data): Likewise.
24405         (isinf_test_data): Likewise.
24406         (isless_test_data): Likewise.
24407         (islessequal_test_data): Likewise.
24408         (islessgreater_test_data): Likewise.
24409         (isnan_test_data): Likewise.
24410         (isnormal_test_data): Likewise.
24411         (issignaling_test_data): Likewise.
24412         (isunordered_test_data): Likewise.
24413         (ldexp_test_data): Likewise.
24414         (lrint_test_data): Likewise.
24415         (lrint_test_data) [TEST_FLOAT]: Disable one test.
24416         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
24417         (lrint_tonearest_test_data): Test for "inexact" exceptions.
24418         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
24419         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
24420         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
24421         test input.
24422         (lrint_towardzero_test_data): Test for "inexact" exceptions.
24423         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
24424         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
24425         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
24426         that test input.
24427         (lrint_downward_test_data): Test for "inexact" exceptions.
24428         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
24429         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
24430         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
24431         test input.
24432         (lrint_upward_test_data): Test for "inexact" exceptions.
24433         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
24434         test input.
24435         (llrint_test_data): Test for "inexact" exceptions.
24436         (llrint_test_data) [TEST_FLOAT]: Disable one test.
24437         (llrint_tonearest_test_data): Test for "inexact" exceptions.
24438         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
24439         (llrint_towardzero_test_data): Test for "inexact" exceptions.
24440         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
24441         (llrint_downward_test_data): Test for "inexact" exceptions.
24442         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
24443         (llrint_upward_test_data): Test for "inexact" exceptions.
24444         (logb_test_data): Likewise.
24445         (logb_downward_test_data): Likewise.
24446         (nextafter_test_data): Likewise.
24447         (nexttoward_test_data): Likewise.
24448         (remainder_test_data): Likewise.
24449         (remquo_test_data): Likewise.
24450         (scalbn_test_data): Likewise.
24451         (scalbln_test_data): Likewise.
24452         (signbit_test_data): Likewise.
24453         (sqrt_test_data): Likewise.
24454         (significand_test_data): Likewise.
24455
24456 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
24457
24458         [BZ #15424]
24459         * benchtests/bench-modf.c (struct args): Mark arg0 as
24460         volatile.
24461         * scripts/bench.pl: Mark members of struct args as volatile.
24462
24463 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24464
24465         [BZ # 15497]
24466         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
24467         negative infinity on POWER6 or lower.
24468         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
24469
24470 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
24471
24472         [BZ #15442]
24473         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
24474         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
24475         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
24476         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
24477         (_FP_SETQNAN): New macro.
24478         (_FP_SETQNAN_SEMIRAW): Likewise.
24479         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
24480         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
24481         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
24482         (FP_EXTEND): Use _FP_FRAC_SNANP.
24483         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
24484         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
24485         into account.
24486         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
24487         New macro.
24488         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
24489         Likewise.
24490
24491 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
24492
24493         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
24494         with DIVIDE_BY_ZERO_EXCEPTION.
24495         (gamma_test_data): Likewise.
24496         (lgamma_test_data): Likewise.
24497         (log_test_data): Likewise.
24498         (log10_test_data): Likewise.
24499         (log2_test_data): Likewise.
24500         (tgamma_test_data): Likewise.
24501
24502         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
24503         (acos_test_tonearest): Likewise.
24504         (acos_test_towardzero): Likewise.
24505         (acos_test_downward): Likewise.
24506         (acos_test_upward): Likewise.
24507         (acosh_test): Likewise.
24508         (asin_test): Likewise.
24509         (asin_test_tonearest): Likewise.
24510         (asin_test_towardzero): Likewise.
24511         (asin_test_downward): Likewise.
24512         (asin_test_upward): Likewise.
24513         (asinh_test): Likewise.
24514         (atan_test): Likewise.
24515         (atanh_test): Likewise.
24516         (atan2_test): Likewise.
24517         (cabs_test): Likewise.
24518         (cacos_test): Likewise.
24519         (cacosh_test): Likewise.
24520         (casin_test): Likewise.
24521         (casinh_test): Likewise.
24522         (catan_test): Likewise.
24523         (catanh_test): Likewise.
24524         (cbrt_test): Likewise.
24525         (ccos_test): Likewise.
24526         (ccosh_test): Likewise.
24527         (cexp_test): Likewise.
24528         (clog_test): Likewise.
24529         (clog10_test): Likewise.
24530         (cos_test): Likewise.
24531         (cos_test_tonearest): Likewise.
24532         (cos_test_towardzero): Likewise.
24533         (cos_test_downward): Likewise.
24534         (cos_test_upward): Likewise.
24535         (cosh_test): Likewise.
24536         (cosh_test_tonearest): Likewise.
24537         (cosh_test_towardzero): Likewise.
24538         (cosh_test_downward): Likewise.
24539         (cosh_test_upward): Likewise.
24540         (cpow_test): Likewise.
24541         (csin_test): Likewise.
24542         (csinh_test): Likewise.
24543         (csqrt_test): Likewise.
24544         (ctan_test): Likewise.
24545         (ctan_test_tonearest): Likewise.
24546         (ctan_test_towardzero): Likewise.
24547         (ctan_test_downward): Likewise.
24548         (ctan_test_upward): Likewise.
24549         (ctanh_test): Likewise.
24550         (ctanh_test_tonearest): Likewise.
24551         (ctanh_test_towardzero): Likewise.
24552         (ctanh_test_downward): Likewise.
24553         (ctanh_test_upward): Likewise.
24554         (erf_test): Likewise.
24555         (erfc_test): Likewise.
24556         (exp_test): Likewise.
24557         (exp_test_tonearest): Likewise.
24558         (exp_test_towardzero): Likewise.
24559         (exp_test_downward): Likewise.
24560         (exp_test_upward): Likewise.
24561         (exp10_test): Likewise.
24562         (exp2_test): Likewise.
24563         (expm1_test): Likewise.
24564         (fmod_test): Likewise.
24565         (gamma_test): Likewise.
24566         (hypot_test): Likewise.
24567         (j0_test): Likewise.
24568         (j1_test): Likewise.
24569         (jn_test): Likewise.
24570         (lgamma_test): Likewise.
24571         (log_test): Likewise.
24572         (log10_test): Likewise.
24573         (log1p_test): Likewise.
24574         (log2_test): Likewise.
24575         (logb_test_downward): Likewise.
24576         (pow_test): Likewise.
24577         (pow_test_tonearest): Likewise.
24578         (pow_test_towardzero): Likewise.
24579         (pow_test_downward): Likewise.
24580         (pow_test_upward): Likewise.
24581         (remainder_test): Likewise.
24582         (remquo_test): Likewise.
24583         (sin_test): Likewise.
24584         (sin_test_tonearest): Likewise.
24585         (sin_test_towardzero): Likewise.
24586         (sin_test_downward): Likewise.
24587         (sin_test_upward): Likewise.
24588         (sincos_test): Likewise.
24589         (sinh_test): Likewise.
24590         (sinh_test_tonearest): Likewise.
24591         (sinh_test_towardzero): Likewise.
24592         (sinh_test_downward): Likewise.
24593         (sinh_test_upward): Likewise.
24594         (sqrt_test): Likewise.
24595         (tan_test): Likewise.
24596         (tan_test_tonearest): Likewise.
24597         (tan_test_towardzero): Likewise.
24598         (tan_test_downward): Likewise.
24599         (tan_test_upward): Likewise.
24600         (tanh_test): Likewise.
24601         (tgamma_test): Likewise.
24602         (y0_test): Likewise.
24603         (y1_test): Likewise.
24604         (yn_test): Likewise.
24605
24606         * math/gen-libm-test.pl (adjust_arg): Remove function.
24607         (special_function): Remove argument $in_func.  Only handle
24608         generating output for tables of tests, not inside functions.
24609         (parse_args): Likewise.
24610         (generate_testfile): Remove variable $in_func.  Update call to
24611         parse_args.
24612         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
24613         (MINUS_ZERO_INIT): Rename macro to minus_zero.
24614         (PLUS_INFTY_INIT): Rename macro to plus_infty.
24615         (MINUS_INFTY_INIT): Rename macro to minus_infty.
24616         (QNAN_VALUE_INIT): Rename macro to qnan_value.
24617         (MAX_VALUE_INIT): Rename macro to max_value.
24618         (MIN_VALUE_INIT): Rename macro to min_value.
24619         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
24620         (plus_zero): Remove variable.
24621         (minus_zero): Likewise.
24622         (plus_infty): Likewise.
24623         (minus_infty): Likewise.
24624         (qnan_value): Likewise.
24625         (max_value): Likewise.
24626         (min_value): Likewise.
24627         (min_subnorm_value): Likewise.
24628
24629 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
24630
24631         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
24632         uint64_t or uint32_t usage.
24633         * crypt/sha256-block.c: Likewise.
24634         * crypt/sha256-crypt.c: Likewise.
24635         * crypt/sha256.c: Likewise.
24636         * crypt/sha512-block.c: Likewise.
24637         * crypt/sha512-crypt.c: Likewise.
24638         * crypt/sha512.c: Likewise.
24639         * debug/backtrace-tst.c: Likewise.
24640         * debug/pcprofiledump.c: Likewise.
24641         * elf/cache.c: Likewise.
24642         * elf/dl-cache.c: Likewise.
24643         * elf/dl-misc.c: Likewise.
24644         * elf/dl-profile.c: Likewise.
24645         * elf/dl-support.c: Likewise.
24646         * elf/ldconfig.c: Likewise.
24647         * elf/sprof.c: Likewise.
24648         * iconv/dummy-repertoire.c: Likewise.
24649         * iconv/iconv_charmap.c: Likewise.
24650         * iconv/skeleton.c: Likewise.
24651         * iconvdata/8bit-generic.c: Likewise.
24652         * iconvdata/cp737.h: Likewise.
24653         * iconvdata/cp775.h: Likewise.
24654         * iconvdata/ibm1008.h: Likewise.
24655         * iconvdata/ibm1025.h: Likewise.
24656         * iconvdata/ibm1046.h: Likewise.
24657         * iconvdata/ibm1097.h: Likewise.
24658         * iconvdata/ibm1112.h: Likewise.
24659         * iconvdata/ibm1122.h: Likewise.
24660         * iconvdata/ibm1123.h: Likewise.
24661         * iconvdata/ibm1124.h: Likewise.
24662         * iconvdata/ibm1129.h: Likewise.
24663         * iconvdata/ibm1130.h: Likewise.
24664         * iconvdata/ibm1132.h: Likewise.
24665         * iconvdata/ibm1133.h: Likewise.
24666         * iconvdata/ibm1137.h: Likewise.
24667         * iconvdata/ibm1140.h: Likewise.
24668         * iconvdata/ibm1141.h: Likewise.
24669         * iconvdata/ibm1142.h: Likewise.
24670         * iconvdata/ibm1143.h: Likewise.
24671         * iconvdata/ibm1144.h: Likewise.
24672         * iconvdata/ibm1145.h: Likewise.
24673         * iconvdata/ibm1146.h: Likewise.
24674         * iconvdata/ibm1147.h: Likewise.
24675         * iconvdata/ibm1148.h: Likewise.
24676         * iconvdata/ibm1149.h: Likewise.
24677         * iconvdata/ibm1153.h: Likewise.
24678         * iconvdata/ibm1154.h: Likewise.
24679         * iconvdata/ibm1155.h: Likewise.
24680         * iconvdata/ibm1156.h: Likewise.
24681         * iconvdata/ibm1157.h: Likewise.
24682         * iconvdata/ibm1158.h: Likewise.
24683         * iconvdata/ibm1160.h: Likewise.
24684         * iconvdata/ibm1161.h: Likewise.
24685         * iconvdata/ibm1162.h: Likewise.
24686         * iconvdata/ibm1163.h: Likewise.
24687         * iconvdata/ibm1164.h: Likewise.
24688         * iconvdata/ibm1166.h: Likewise.
24689         * iconvdata/ibm1167.h: Likewise.
24690         * iconvdata/ibm12712.h: Likewise.
24691         * iconvdata/ibm1390.h: Likewise.
24692         * iconvdata/ibm1399.h: Likewise.
24693         * iconvdata/ibm16804.h: Likewise.
24694         * iconvdata/ibm4517.h: Likewise.
24695         * iconvdata/ibm4899.h: Likewise.
24696         * iconvdata/ibm4909.h: Likewise.
24697         * iconvdata/ibm4971.h: Likewise.
24698         * iconvdata/ibm5347.h: Likewise.
24699         * iconvdata/ibm803.h: Likewise.
24700         * iconvdata/ibm856.h: Likewise.
24701         * iconvdata/ibm901.h: Likewise.
24702         * iconvdata/ibm902.h: Likewise.
24703         * iconvdata/ibm9030.h: Likewise.
24704         * iconvdata/ibm9066.h: Likewise.
24705         * iconvdata/ibm921.h: Likewise.
24706         * iconvdata/ibm922.h: Likewise.
24707         * iconvdata/ibm9448.h: Likewise.
24708         * iconvdata/isiri-3342.h: Likewise.
24709         * iconvdata/jis0201.h: Likewise.
24710         * include/link.h: Likewise.
24711         * include/netdb.h: Likewise.
24712         * inet/check_native.c: Likewise.
24713         * inet/check_pf.c: Likewise.
24714         * inet/getipv4sourcefilter.c: Likewise.
24715         * inet/getnameinfo.c: Likewise.
24716         * inet/getsourcefilter.c: Likewise.
24717         * inet/htonl.c: Likewise.
24718         * inet/setipv4sourcefilter.c: Likewise.
24719         * inet/setsourcefilter.c: Likewise.
24720         * inet/test-inet6_opt.c: Likewise.
24721         * inet/tst-network.c: Likewise.
24722         * locale/C-collate.c: Likewise.
24723         * locale/C-ctype.c: Likewise.
24724         * locale/C-time.c: Likewise.
24725         * locale/C-translit.h: Likewise.
24726         * locale/loadarchive.c: Likewise.
24727         * locale/programs/3level.h: Likewise.
24728         * locale/programs/charmap.c: Likewise.
24729         * locale/programs/charmap.h: Likewise.
24730         * locale/programs/ld-address.c: Likewise.
24731         * locale/programs/ld-collate.c: Likewise.
24732         * locale/programs/ld-ctype.c: Likewise.
24733         * locale/programs/ld-identification.c: Likewise.
24734         * locale/programs/ld-measurement.c: Likewise.
24735         * locale/programs/ld-messages.c: Likewise.
24736         * locale/programs/ld-monetary.c: Likewise.
24737         * locale/programs/ld-name.c: Likewise.
24738         * locale/programs/ld-numeric.c: Likewise.
24739         * locale/programs/ld-paper.c: Likewise.
24740         * locale/programs/ld-telephone.c: Likewise.
24741         * locale/programs/ld-time.c: Likewise.
24742         * locale/programs/linereader.c: Likewise.
24743         * locale/programs/locale.c: Likewise.
24744         * locale/programs/locarchive.c: Likewise.
24745         * locale/programs/locfile.h: Likewise.
24746         * locale/programs/repertoire.c: Likewise.
24747         * locale/programs/simple-hash.c: Likewise.
24748         * locale/programs/simple-hash.h: Likewise.
24749         * malloc/memusage.c: Likewise.
24750         * malloc/memusagestat.c: Likewise.
24751         * nis/nis_defaults.c: Likewise.
24752         * nis/nis_hash.c: Likewise.
24753         * nis/nis_print.c: Likewise.
24754         * nis/nis_xdr.c: Likewise.
24755         * nscd/connections.c: Likewise.
24756         * nscd/hstcache.c: Likewise.
24757         * nscd/nscd_gethst_r.c: Likewise.
24758         * nscd/nscd_getserv_r.c: Likewise.
24759         * nscd/nscd_helper.c: Likewise.
24760         * nscd/servicescache.c: Likewise.
24761         * nss/makedb.c: Likewise.
24762         * nss/nss_db/db-XXX.c: Likewise.
24763         * nss/nss_db/db-initgroups.c: Likewise.
24764         * nss/nss_db/db-netgrp.c: Likewise.
24765         * nss/nss_files/files-network.c: Likewise.
24766         * nss/nss_files/files-parse.c: Likewise.
24767         * posix/bug-regex5.c: Likewise.
24768         * posix/fnmatch_loop.c: Likewise.
24769         * posix/regcomp.c: Likewise.
24770         * posix/regexec.c: Likewise.
24771         * posix/tst-rfc3484-2.c: Likewise.
24772         * posix/tst-rfc3484-3.c: Likewise.
24773         * posix/tst-rfc3484.c: Likewise.
24774         * resolv/nss_dns/dns-canon.c: Likewise.
24775         * resolv/nss_dns/dns-network.c: Likewise.
24776         * resolv/res_init.c: Likewise.
24777         * resolv/res_mkquery.c: Likewise.
24778         * resolv/tst-aton.c: Likewise.
24779         * stdlib/cxa_atexit.c: Likewise.
24780         * stdlib/cxa_finalize.c: Likewise.
24781         * stdlib/gen-fpioconst.c: Likewise.
24782         * stdlib/strtol_l.c: Likewise.
24783         * string/tst-endian.c: Likewise.
24784         * sunrpc/auth_des.c: Likewise.
24785         * sunrpc/clnt_udp.c: Likewise.
24786         * sunrpc/rtime.c: Likewise.
24787         * sunrpc/svcauth_des.c: Likewise.
24788         * sunrpc/xdr.c: Likewise.
24789         * sunrpc/xdr_intXX_t.c: Likewise.
24790         * sunrpc/xdr_rec.c: Likewise.
24791         * sysdeps/generic/ldconfig.h: Likewise.
24792         * sysdeps/generic/ldsodefs.h: Likewise.
24793         * sysdeps/generic/memusage.h: Likewise.
24794         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
24795         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
24796         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
24797         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
24798         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
24799         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
24800         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
24801         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
24802         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
24803         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
24804         * sysdeps/posix/getaddrinfo.c: Likewise.
24805         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
24806         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
24807         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
24808         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
24809         * sysdeps/powerpc/test-gettimebase.c: Likewise.
24810         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
24811         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
24812         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
24813         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
24814         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
24815         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
24816         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
24817         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
24818         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
24819         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
24820         * sysdeps/x86_64/dl-tls.h: Likewise.
24821         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
24822         * time/alt_digit.c: Likewise.
24823         * time/era.c: Likewise.
24824         * wcsmbs/tst-c16c32-1.c: Likewise.
24825
24826 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
24827
24828         * math/libm-test.inc (struct test_sincos_data): New type.
24829         (RUN_TEST_LOOP_sincos): New macro.
24830         (sincos_test_data): New variable.
24831         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
24832
24833 2013-05-16  Richard Henderson  <rth@redhat.com>
24834
24835         * math/atest-exp2.c (LIMB64): New macro.
24836         (CONSTSZ): New macro.
24837         (mp_exp1, mp_exp_m1, mp_log2): New variables.
24838         (hexdig): Move ...
24839         (print_mpn_fp): ... to function scope.
24840         (read_mpn_hex): Remove.
24841         (get_log2): Remove.
24842         (exp2_mpn): Use mp_log2.
24843         (main): Use mp_exp1.
24844
24845 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
24846
24847         * math/libm-test.inc: Remove comment about not testing "inexact"
24848         exceptions.
24849         (INEXACT_EXCEPTION): New macro.
24850         (NO_INEXACT_EXCEPTION): Likewise.
24851         (INVALID_EXCEPTION_OK): Update value.
24852         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
24853         (OVERFLOW_EXCEPTION_OK): Likewise.
24854         (UNDERFLOW_EXCEPTION_OK): Likewise.
24855         (IGNORE_ZERO_INF_SIGN): Likewise.
24856         (ERRNO_UNCHANGED): Likewise.
24857         (ERRNO_EDOM): Likewise.
24858         (ERRNO_ERANGE): Likewise.
24859         (test_exceptions): Handle testing "inexact" exceptions.
24860         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
24861         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
24862         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
24863         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
24864         INEXACT_EXCEPTION.
24865         (rint_towardzero_test_data): Likewise.
24866         (rint_downward_test_data): Likewise.
24867         (rint_upward_test_data): Likewise.
24868
24869         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
24870         with OVERFLOW_EXCEPTION.
24871         (exp10_test_data): Likewise.
24872         (exp2_test_data): Likewise.
24873         (expm1_test_data): Likewise.
24874         (lgamma_test_data): Likewise.
24875         (pow_test_data): Likewise.
24876         (tgamma_test_data): Likewise.
24877         (yn_test_data): Remove duplicate test of overflow.
24878
24879         * math/libm-test.inc (struct test_cc_c_data): New type.
24880         (RUN_TEST_LOOP_cc_c): New macro.
24881         (cpow_test_data): New variable.
24882         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
24883
24884         * math/libm-test.inc (struct test_f_L_data): New type.
24885         (RUN_TEST_LOOP_f_L): New macro.
24886         (llrint_test_data): New variable.
24887         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
24888         (llrint_tonearest_test_data): New variable.
24889         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
24890         (llrint_towardzero_test_data): New variable.
24891         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
24892         (llrint_downward_test_data): New variable.
24893         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
24894         (llrint_upward_test_data): New variable.
24895         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
24896         (llround_test_data): New variable.
24897         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
24898
24899 2013-05-13  Peter Collingbourne  <pcc@google.com>
24900
24901         * math/atest-exp2.c (get_log2): Remove const attribute.
24902
24903 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
24904
24905         * math/libm-test.inc (struct test_f_l_data): New type.
24906         (RUN_TEST_LOOP_f_l): New macro.
24907         (lrint_test_data): New variable.
24908         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
24909         (lrint_tonearest_test_data): New variable.
24910         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
24911         (lrint_towardzero_test_data): New variable.
24912         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
24913         (lrint_downward_test_data): New variable.
24914         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
24915         (lrint_upward_test_data): New variable.
24916         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
24917         (lround_test_data): New variable.
24918         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
24919
24920 2013-05-15  Peter Collingbourne  <pcc@google.com>
24921
24922         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
24923         (EXTRACT_WORDS64) Use where appropriate.
24924         (INSERT_WORDS64) Likewise.
24925
24926         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
24927         constraints with x constraints.
24928         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
24929
24930         * malloc/obstack.c (_obstack_compat): Add initializer.
24931
24932 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
24933
24934         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
24935         si_trapno and add si_addr_lsb to _sifields.sigfault.
24936         (si_trapno): Remove macro.
24937         (si_addr_lsb): Define new macro.
24938         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
24939
24940 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
24941
24942         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
24943         instead of TEST_f_l.
24944         (llrint_test_tonearest): Likewise.
24945         (llrint_test_towardzero): Likewise.
24946         (llrint_test_downward): Likewise.
24947         (llrint_test_upward): Likewise.
24948         (llround_test): Likewise.
24949
24950         * math/libm-test.inc (struct test_f_i_data): Add comment.
24951         (RUN_TEST_LOOP_f_b): New macro.
24952         (RUN_TEST_LOOP_f_b_tg): Likewise.
24953         (finite_test_data): New variable.
24954         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
24955         (isfinite_test_data): New variable.
24956         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
24957         (isinf_test_data): New variable.
24958         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
24959         (isnan_test_data): New variable.
24960         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
24961         (isnormal_test_data): New variable.
24962         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
24963         (issignaling_test_data): New variable.
24964         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
24965         (signbit_test_data): New variable.
24966         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
24967
24968         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
24969         with INVALID_EXCEPTION.
24970         (acosh_test_data): Likewise.
24971         (asin_test_data): Likewise.
24972         (atanh_test_data): Likewise.
24973         (fmod_test_data): Likewise.
24974         (log_test_data): Likewise.
24975         (log10_test_data): Likewise.
24976         (log2_test_data): Likewise.
24977         (pow_test_data): Likewise.
24978         (sqrt_test_data): Likewise.
24979         (y0_test_data): Likewise.
24980         (y1_test_data): Likewise.
24981         (yn_test_data): Likewise.
24982
24983         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
24984         function contents.
24985
24986         * math/libm-test.inc (struct test_ff_i_data): New type.
24987         (RUN_TEST_LOOP_ff_i_tg): New macro.
24988         (isgreater_test_data): New variable.
24989         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
24990         (isgreaterequal_test_data): New variable.
24991         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
24992         (isless_test_data): New variable.
24993         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
24994         (islessequal_test_data): New variable.
24995         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
24996         (islessgreater_test_data): New variable.
24997         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
24998         (isunordered_test_data): New variable.
24999         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
25000
25001 2013-05-14  David S. Miller  <davem@davemloft.net>
25002
25003         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25004
25005 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
25006
25007         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
25008
25009         * math/libm-test.inc (struct test_fF_f1_data): Change type of
25010         extra_test to int.
25011         (struct test_f_i_data): Change type of max_ulp to int.
25012
25013         * math/libm-test.inc (test_ffI_f1_data): New type.
25014         (RUN_TEST_LOOP_ffI_f1): New macro.
25015         (remquo_test_data): New variable.
25016         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
25017
25018         * setjmp/tst-setjmp-fp.c: New file.
25019         * setjmp/Makefile (tests): Add tst-setjmp-fp.
25020         (link-libm): New variable.
25021         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
25022
25023         * math/libm-test.inc (struct test_f_i_data): New type.
25024         (RUN_TEST_LOOP_f_i): New macro.
25025         (RUN_TEST_LOOP_f_i_tg): Likewise.
25026         (fpclassify_test_data): New variable.
25027         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
25028         (ilogb_test_data): New variable.
25029         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
25030
25031         * math/libm-test.inc (scalbln_test): Correct function name in END
25032         call.
25033
25034         * math/libm-test.inc (struct test_f_f1_data): Add comment.
25035         (RUN_TEST_LOOP_fI_f1): New macro.
25036         (frexp_test_data): New variable.
25037         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
25038
25039         * math/libm-test.inc (struct test_fF_f1_data): New type.
25040         (RUN_TEST_LOOP_fF_f1): New macro.
25041         (modf_test_data): New variable.
25042         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
25043
25044         * math/libm-test.inc (struct test_f_f1_data): New type.
25045         (RUN_TEST_LOOP_f_f1): New macro.
25046         (gamma_test_data): New variable.
25047         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
25048         (lgamma_test_data): New variable.
25049         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
25050
25051 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
25052
25053         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
25054         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
25055         (main): Comment "tls" pseudo-hwcap.
25056
25057 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
25058
25059         * math/libm-test.inc (struct test_fl_f_data): New type.
25060         (RUN_TEST_LOOP_fl_f): New variable.
25061         (scalbln_test_data): New variable.
25062         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
25063
25064         * math/libm-test.inc (struct test_fi_f_data): New type.
25065         (RUN_TEST_LOOP_fi_f): New macro.
25066         (ldexp_test_data): New variable.
25067         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
25068         (scalbn_test_data): New variable.
25069         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
25070
25071         * math/libm-test.inc (struct test_c_f_data): New type.
25072         (RUN_TEST_LOOP_c_f): New macro.
25073         (cabs_test_data): New variable.
25074         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
25075         (carg_test_data): New variable.
25076         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
25077         (cimag_test_data): New variable.
25078         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
25079         (creal_test_data): New variable.
25080         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
25081
25082         * math/libm-test.inc (struct test_if_f_data): New type.
25083         (RUN_TEST_LOOP_if_f): New macro.
25084         (jn_test_data): New variable.
25085         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
25086         (yn_test_data): New variable.
25087         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
25088
25089         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
25090
25091 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25092
25093         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
25094         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
25095
25096 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
25097
25098         * benchtests/Makefile (CPPFLAGS-nonlib): Add
25099         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
25100         (bench-deps): Add bench-timing.h.
25101         * benchtests-bench-skeleton.c: Include bench-timing.h.
25102         (main): Use TIMING_* macros instead of clock_gettime.
25103         * benchtests/bench-timing.h: New file.
25104
25105         [BZ #14582]
25106         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
25107         Renamed from _LIB_VERSION.
25108         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
25109
25110 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
25111
25112         * math/libm-test.inc (struct test_fff_f_data): New type.
25113         (RUN_TEST_LOOP_fff_f): New macro.
25114         (fma_test_data): New variable.
25115         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
25116         (fma_towardzero_test_data): New variable.
25117         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
25118         (fma_downward_test_data): New variable.
25119         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
25120         (fma_upward_test_data): New variable.
25121         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
25122
25123         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
25124         (struct test_c_c_data): New type.
25125         (RUN_TEST_LOOP_c_c): New macro.
25126         (cacos_test_data): New variable.
25127         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
25128         (cacosh_test_data): New variable.
25129         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
25130         (casin_test_data): New variable.
25131         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
25132         (casinh_test_data): New variable.
25133         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
25134         (catan_test_data): New variable.
25135         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
25136         (catanh_test_data): New variable.
25137         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
25138         (ccos_test_data): New variable.
25139         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
25140         (ccosh_test_data): New variable.
25141         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
25142         (cexp_test_data): New variable.
25143         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
25144         (clog_test_data): New variable.
25145         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
25146         (clog10_test_data): New variable.
25147         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
25148         (conj_test_data): New variable.
25149         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
25150         (cproj_test_data): New variable.
25151         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
25152         (csin_test_data): New variable.
25153         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
25154         (csinh_test_data): New variable.
25155         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
25156         (csqrt_test_data): New variable.
25157         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
25158         (ctan_test_data): New variable.
25159         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
25160         (ctan_tonearest_test_data): New variable.
25161         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
25162         (ctan_towardzero_test_data): New variable.
25163         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
25164         (ctan_downward_test_data): New variable.
25165         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
25166         (ctan_upward_test_data): New variable.
25167         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
25168         (ctanh_test_data): New variable.
25169         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
25170         (ctanh_tonearest_test_data): New variable.
25171         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
25172         (ctanh_towardzero_test_data): New variable.
25173         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
25174         (ctanh_downward_test_data): New variable.
25175         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
25176         (ctanh_upward_test_data): New variable.
25177         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
25178         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
25179         of BUILD_COMPLEX.
25180
25181         * math/libm-test.inc (struct test_ff_f_data): New type.
25182         (struct test_ff_f_data_nexttoward): Likewise.
25183         (RUN_TEST_LOOP_2_f): New macro.
25184         (RUN_TEST_LOOP_ff_f): Likewise.
25185         (atan2_test_data): New variable.
25186         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
25187         (copysign_test_data): New variable.
25188         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
25189         (fdim_test_data): New variable.
25190         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
25191         (fmax_test_data): New variable.
25192         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
25193         (fmin_test_data): New variable.
25194         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
25195         (fmod_test_data): New variable.
25196         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
25197         (hypot_test_data): New variable.
25198         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
25199         (nextafter_test_data): New variable.
25200         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
25201         (nexttoward_test_data): New variable.
25202         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
25203         (pow_test_data): New variable.
25204         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
25205         (pow_tonearest_test_data): New variable.
25206         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
25207         (pow_towardzero_test_data): New variable.
25208         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
25209         (pow_downward_test_data): New variable.
25210         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
25211         (pow_upward_test_data): New variable.
25212         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
25213         (remainder_test_data): New variable.
25214         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
25215         (scalb_test_data): New variable.
25216         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
25217         * sysdeps/i386/fpu/libm-test-ulps: Update.
25218
25219 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
25220
25221         * math/libm-test.inc (fma_test): Use max_value instead of local
25222         variable fltmax.
25223         (nextafter_test): Likewise.
25224
25225         * math/libm-test.inc (acos_towardzero_test_data): New variable.
25226         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25227         (acos_downward_test_data): New variable.
25228         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25229         (acos_upward_test_data): New variable.
25230         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25231         (acosh_test_data): New variable.
25232         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
25233         (asin_test_data): New variable.
25234         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
25235         (asin_tonearest_test_data): New variable.
25236         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25237         (asin_towardzero_test_data): New variable.
25238         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25239         (asin_downward_test_data): New variable.
25240         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25241         (asin_upward_test_data): New variable.
25242         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25243         (asinh_test_data): New variable.
25244         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
25245         (atan_test_data): New variable.
25246         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
25247         (atanh_test_data): New variable.
25248         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
25249         (cbrt_test_data): New variable.
25250         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
25251         (ceil_test_data): New variable.
25252         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
25253         (cos_test_data): New variable.
25254         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
25255         (cos_tonearest_test_data): New variable.
25256         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25257         (cos_towardzero_test_data): New variable.
25258         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25259         (cos_downward_test_data): New variable.
25260         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25261         (cos_upward_test_data): New variable.
25262         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25263         (cosh_test_data): New variable.
25264         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
25265         (cosh_tonearest_test_data): New variable.
25266         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25267         (cosh_towardzero_test_data): New variable.
25268         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25269         (cosh_downward_test_data): New variable.
25270         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25271         (cosh_upward_test_data): New variable.
25272         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25273         (erf_test_data): New variable.
25274         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
25275         (erfc_test_data): New variable.
25276         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
25277         (exp_test_data): New variable.
25278         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
25279         (exp_tonearest_test_data): New variable.
25280         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25281         (exp_towardzero_test_data): New variable.
25282         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25283         (exp_downward_test_data): New variable.
25284         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25285         (exp_upward_test_data): New variable.
25286         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25287         (exp10_test_data): New variable.
25288         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
25289         (exp2_test_data): New variable.
25290         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
25291         (expm1_test_data): New variable.
25292         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
25293         (fabs_test_data): New variable.
25294         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
25295         (floor_test_data): New variable.
25296         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
25297         (j0_test_data): New variable.
25298         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
25299         (j1_test_data): New variable.
25300         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
25301         (log_test_data): New variable.
25302         (log_test): Run tests with RUN_TEST_LOOP_f_f.
25303         (log10_test_data): New variable.
25304         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
25305         (log1p_test_data): New variable.
25306         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
25307         (log2_test_data): New variable.
25308         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
25309         (logb_test_data): New variable.
25310         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
25311         (logb_downward_test_data): New variable.
25312         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25313         (nearbyint_test_data): New variable.
25314         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
25315         (rint_test_data): New variable.
25316         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
25317         (rint_tonearest_test_data): New variable.
25318         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25319         (rint_towardzero_test_data): New variable.
25320         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25321         (rint_downward_test_data): New variable.
25322         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25323         (rint_upward_test_data): New variable.
25324         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25325         (round_test_data): New variable.
25326         (round_test): Run tests with RUN_TEST_LOOP_f_f.
25327         (sin_test_data): New variable.
25328         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
25329         (sin_tonearest_test_data): New variable.
25330         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25331         (sin_towardzero_test_data): New variable.
25332         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25333         (sin_downward_test_data): New variable.
25334         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25335         (sin_upward_test_data): New variable.
25336         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25337         (sinh_test_data): New variable.
25338         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
25339         (sinh_tonearest_test_data): New variable.
25340         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25341         (sinh_towardzero_test_data): New variable.
25342         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25343         (sinh_downward_test_data): New variable.
25344         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25345         (sinh_upward_test_data): New variable.
25346         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25347         (sqrt_test_data): New variable.
25348         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
25349         (tan_test_data): New variable.
25350         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
25351         (tan_tonearest_test_data): New variable.
25352         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25353         (tan_towardzero_test_data): New variable.
25354         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
25355         (tan_downward_test_data): New variable.
25356         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
25357         (tan_upward_test_data): New variable.
25358         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
25359         (tanh_test_data): New variable.
25360         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
25361         (tgamma_test_data): New variable.
25362         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
25363         (trunc_test_data): New variable.
25364         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
25365         (y0_test_data): New variable.
25366         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
25367         (y1_test_data): New variable.
25368         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
25369         (significand_test_data): New variable.
25370         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
25371
25372 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
25373
25374         [BZ #12387]
25375         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
25376
25377 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
25378
25379         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
25380
25381 2013-05-10  Andreas Jaeger  <aj@suse.de>
25382
25383         [BZ #15448]
25384         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
25385         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
25386
25387 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
25388
25389         * math/gen-libm-test.pl (adjust_arg): New function.
25390         (special_functions): Handle generating output in both functions
25391         and arrays.
25392         (parse_args): Likewise.
25393         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
25394         $in_func argument to parse_args.
25395         * math/libm-test.inc (struct test_f_f_data): New type.
25396         (IF_ROUND_INIT_): New macro.
25397         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
25398         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
25399         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
25400         (IF_ROUND_INIT_FE_UPWARD): Likewise.
25401         (ROUND_RESTORE_): Likewise.
25402         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
25403         (ROUND_RESTORE_FE_TONEAREST): Likewise.
25404         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
25405         (ROUND_RESTORE_FE_UPWARD): Likewise.
25406         (RUN_TEST_LOOP_f_f): New macro.
25407         (acos_test_data): New variable.
25408         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
25409         (acos_tonearest_test_data): New variable.
25410         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
25411
25412 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
25413
25414         * benchtests/bench-skeleton.c (startup): Fix coding style.
25415
25416 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
25417
25418         [BZ #6809]
25419         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
25420         negative infinity argument.
25421         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
25422         negative infinity argument.
25423         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
25424         negative infinity argument.
25425         * math/libm-test.inc (tgamma_test): Expect errno to be set for
25426         domain errors.
25427
25428 2013-05-10  Florian Weimer  <fweimer@redhat.com>
25429
25430         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
25431         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
25432         * iconv/iconv_prog.c (main): Likewise.
25433         * locale/programs/charmap-dir.c (charmap_readdir)
25434         (fopen_uncompressed): Likewise.
25435         * locale/programs/locfile.c (siblings_uncached)
25436         (write_locale_data): Use lstat64 instead of lstat.
25437         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
25438         stat.
25439
25440 2013-05-10  Andreas Jaeger  <aj@suse.de>
25441
25442         [BZ #15395]
25443         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
25444         localization.
25445         Include <locale.h>.
25446
25447 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
25448
25449         * elf/dl-close.c (_dl_close_worker): Add comments.
25450
25451 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
25452
25453         [BZ #15359]
25454         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
25455         high part of pi/2.
25456         (__ieee754_rem_pio2l): Update comments.
25457
25458         [BZ #15429]
25459         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
25460         high part of pi/2.
25461         (__ieee754_rem_pio2l): Update comments.
25462
25463         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
25464         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
25465
25466         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
25467         M_PI_4l.
25468
25469         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
25470         (M_PI_34_LOG10El): Likewise.
25471         (M_PI2_LOG10El): Likewise.
25472         (M_PI4_LOG10El): Likewise.
25473         (M_PI_LOG10El): Likewise.
25474
25475 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25476
25477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25478
25479 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
25480
25481         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
25482         (MINUS_ZERO_INIT): Likewise.
25483         (PLUS_INFTY_INIT): Likewise.
25484         (MINUS_INFTY_INIT): Likewise.
25485         (QNAN_VALUE_INIT): Likewise.
25486         (MAX_VALUE_INIT): Likewise.
25487         (MIN_VALUE_INIT): Likewise.
25488         (MIN_SUBNORM_VALUE_INIT): Likewise.
25489         (plus_zero): Initialize with PLUS_ZERO_INIT.
25490         (minus_zero): Initialize with MINUS_ZERO_INIT.
25491         (plus_infty): Initialize with PLUS_INFTY_INIT.
25492         (minus_infty): Initialize with MINUS_INFTY_INIT.
25493         (qnan_value): Initialize with QNAN_VALUE_INIT.
25494         (max_value): Initialize with MAX_VALUE_INIT.
25495         (min_value): Initialize with MIN_VALUE_INIT.
25496         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
25497
25498         * math/libm-test.inc (RUN_TEST_if_f): New macro.
25499         (jn_test): Use TEST_if_f instead of TEST_ff_f.
25500         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
25501         (yn_test): Use TEST_if_f instead of TEST_ff_f.
25502
25503         * math/libm-test.inc (RUN_TEST_f_f): New macro.
25504         (RUN_TEST_2_f): Likewise.
25505         (RUN_TEST_ff_f): Likewise.
25506         (RUN_TEST_fi_f): Likewise.
25507         (RUN_TEST_fl_f): Likewise.
25508         (RUN_TEST_fff_f): Likewise.
25509         (RUN_TEST_c_f): Likewise.
25510         (RUN_TEST_f_f1): Likewise.
25511         (RUN_TEST_fF_f1): Likewise.
25512         (RUN_TEST_fI_f1): Likewise.
25513         (RUN_TEST_ffI_f1): Likewise.
25514         (RUN_TEST_c_c): Likewise.
25515         (RUN_TEST_cc_c): Likewise.
25516         (RUN_TEST_f_i): Likewise.
25517         (RUN_TEST_f_i_tg): Likewise.
25518         (RUN_TEST_ff_i_tg): Likewise.
25519         (RUN_TEST_f_b): Likewise.
25520         (RUN_TEST_f_b_tg): Likewise.
25521         (RUN_TEST_f_l): Likewise.
25522         (RUN_TEST_f_L): Likewise.
25523         (RUN_TEST_sincos): Likewise.
25524         * math/gen-libm-test.pl (new_test): Take new argument to indicate
25525         whether to show exceptions.  Do not include ");\n" in return
25526         value.
25527         (special_functions): Output call to RUN_TEST_sincos instead of
25528         check_float calls.  Update calls to new_test.
25529         (parse_args): Output call to single RUN_TEST_* macro instead of
25530         check_* calls and other assignments.  Update calls to new_test.
25531
25532         [BZ #2546]
25533         [BZ #2560]
25534         [BZ #5159]
25535         [BZ #15426]
25536         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
25537         input to result for tgamma overflow.
25538         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
25539         (gamma_coeff): New variable.
25540         (NCOEFF): New macro.
25541         (gamma_positive): New function.
25542         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
25543         underflow here.  Use gamma_positive instead of exp (lgamma) for
25544         other arguments.
25545         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
25546         (gamma_coeff): New variable.
25547         (NCOEFF): New macro.
25548         (gammaf_positive): New function.
25549         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
25550         underflow here.  Use gamma_positive instead of exp (lgamma) for
25551         other arguments.
25552         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
25553         (gamma_coeff): New variable.
25554         (NCOEFF): New macro.
25555         (gammal_positive): New function.
25556         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
25557         underflow here.  Use gamma_positive instead of exp (lgamma) for
25558         other arguments.
25559         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
25560         (gamma_coeff): New variable.
25561         (NCOEFF): New macro.
25562         (gammal_positive): New function.
25563         (__ieee754_gammal_r): Handle positive infinity, overflow and
25564         underflow here.  Handle NaN the same as positive infinity.  Remove
25565         check x < 0xffffffff for negative integers.  Use gamma_positive
25566         instead of exp (lgamma) for other arguments.
25567         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
25568         (gamma_coeff): New variable.
25569         (NCOEFF): New macro.
25570         (gammal_positive): New function.
25571         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
25572         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
25573         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
25574         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
25575         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
25576         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
25577         * sysdeps/generic/math_private.h (__gamma_productf): New
25578         prototype.
25579         (__gamma_product): Likewise.
25580         (__gamma_productl): Likewise.
25581         * math/Makefile (libm-calls): Add gamma_product.
25582         * math/libm-test.inc (tgamma_test): Add more tests.
25583         * sysdeps/i386/fpu/libm-test-ulps: Update.
25584         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25585
25586 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
25587
25588         * benchtests/bench-skeleton.c (main): Preheat CPU.
25589
25590 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
25591
25592         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
25593
25594 2013-05-07  Roland McGrath  <roland@hack.frob.com>
25595
25596         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
25597         and _dl_skip_args_internal.
25598
25599 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
25600
25601         * manual/message.texi (Message Translation): Talk about users.
25602         Message to key mapping impacts design.
25603
25604 2013-05-06  Roland McGrath  <roland@hack.frob.com>
25605
25606         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
25607
25608         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
25609
25610         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
25611         * sysdeps/wordsize-64/glob64.c: ... here.
25612
25613         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
25614         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
25615         New macros.
25616
25617         * debug/getlogin_r_chk.c: Moved to ...
25618         * login/getlogin_r_chk.c: ... here.
25619         * debug/Makefile (routines): Move getlogin_r_chk to ...
25620         * login/Makefile (routines): ... here.
25621         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
25622         * login/Versions (libc: GLIBC_2.4): ... here.
25623
25624         * io/poll.c (__poll): Renamed from poll.
25625         Add libc_hidden_def.
25626         (poll): Define as weak alias.
25627
25628         * debug/ptsname_r_chk.c: Moved to ...
25629         * login/ptsname_r_chk.c: ... here.
25630         * debug/Makefile (routines): Move ptsname_r_chk to ...
25631         * login/Makefile (routines): ... here.
25632         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
25633         * login/Versions (libc: GLIBC_2.4): ... here.
25634
25635         * posix/getlogin.c: Moved to ...
25636         * login/getlogin.c: ... here.
25637         * posix/getlogin_r.c: Moved to ...
25638         * login/getlogin_r.c: ... here.
25639         * posix/getlogin_r.c: Moved to ...
25640         * login/getlogin_r.c: ... here.
25641         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
25642         * login/Makefile (routines): ... here.
25643         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
25644         * login/Versions (libc: GLIBC_2.0): ... here.
25645
25646         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
25647         (setrlimit): Define as weak alias.
25648
25649         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
25650         Call __ names for open, ftruncate, and close.
25651         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
25652         (truncate): Define as weak alias.
25653
25654 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
25655
25656         * math/gen-libm-test.pl (parse_args): Initialize x before each
25657         test of frexp, modf and remquo.
25658
25659         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
25660         test signgam value.
25661
25662 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25663
25664         [BZ #15418]
25665         [BZ #15419]
25666         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
25667         internal tests.
25668         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
25669
25670 2013-05-06  Roland McGrath  <roland@hack.frob.com>
25671
25672         * elf/dl-writev.h: New file.
25673         * elf/dl-misc.c: Include it.
25674         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
25675         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
25676
25677 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
25678
25679         * math/libm-test.inc (noXFails): Remove variable.
25680         (noXPasses): Likewise.
25681         (BUILD_COMPLEX_INT): Remove macro.
25682         (print_screen): Remove xfail argument.
25683         (print_screen_max_error): Likewise.
25684         (update_stats): Likewise.
25685         (print_max_error): Likewise.  Update calls to other affected
25686         functions.
25687         (print_complex_max_error): Likewise.
25688         (test_single_exception): Update calls to print_screen.
25689         (test_single_errno): Likewise.
25690         (check_float_internal): Remove xfail argument.  Update calls to
25691         other affected functions.
25692         (check_float): Likewise.
25693         (check_complex): Likewise.
25694         (check_int): Likewise.
25695         (check_long): Likewise.
25696         (check_bool): Likewise.
25697         (check_longlong): Likewise.
25698         (main): Don't print noXFails and noXPasses.
25699         * math/gen-libm-test.pl (top level): Don't mention expected
25700         failure handling in comment.
25701         (new_test): Don't handle expected failures.
25702         (parse_args): Don't mention expected failure handling in comment.
25703         (generate_testfile): Don't handle expected failures.
25704         (parse_ulps): Likewise.
25705         (print_ulps_file): Likewise.
25706         (get_failure): Remove function.
25707         (output_test): Don't handle expected failures.
25708         * make/README.libm-test: Don't mention expected failure handling.
25709
25710         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
25711         (minus_zero): Likewise.
25712         (plus_infty): Likewise.
25713         (minus_infty): Likewise.
25714         (qnan_value): Likewise.
25715         (max_value): Likewise.
25716         (min_value): Likewise.
25717         (min_subnorm_value): Likewise.
25718         (initialize): Do not initialize those variables dynamically.
25719
25720 2013-05-03  Roland McGrath  <roland@hack.frob.com>
25721
25722         * io/open.c (__open_2): Moved to ...
25723         * io/open_2.c: ... this new file.
25724         * io/open64.c (__open64_2): Moved to ...
25725         * io/open64_2.c: ... this new file.
25726         * io/openat.c (__openat_2): Moved to ...
25727         * io/openat_2.c: ... this new file.
25728         * io/openat64.c (__openat64_2): Moved to ...
25729         * io/openat64_2.c: ... this new file.
25730         * io/Makefile (routines): Add them.
25731         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
25732         * sysdeps/unix/sysv/linux/open_2.c: File removed.
25733         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
25734         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
25735         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
25736         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
25737         (__openat64): Add hidden_ver.
25738         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
25739         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
25740
25741         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
25742         Separately conditionalize setting of GLRO(dl_sysinfo) so
25743         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
25744         as well, but the actual setting is only under [NEED_DL_SYSINFO].
25745
25746 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25747
25748         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
25749         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
25750         definition.
25751         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
25752         * sysdeps/unix/sysv/linux/powerpc/init-first.c
25753         (_libc_vdso_platform_setup): Add __vdso_time initialization.
25754         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
25755         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
25756
25757 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
25758
25759         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
25760         test signgam value.
25761
25762         * math/libm-test.inc (hypot_test): Do not use
25763         IGNORE_ZERO_INF_SIGN.
25764
25765 2013-05-03  Andreas Jaeger  <aj@suse.de>
25766
25767         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
25768         Linux 3.9.
25769         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
25770         (PF_MAX): Adjust for VSOCK change.
25771
25772 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25773
25774         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25775
25776 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
25777
25778         [BZ #15264]
25779         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
25780         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
25781         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
25782
25783 2013-05-02  David S. Miller  <davem@davemloft.net>
25784
25785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25786
25787 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
25788
25789         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
25790
25791 2013-05-01  Roland McGrath  <roland@hack.frob.com>
25792
25793         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
25794
25795 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
25796
25797         [BZ #14952]
25798         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
25799         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
25800         Use __attribute__ ((__gnu_inline__)).
25801         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
25802         Don't use __attribute__ ((__gnu_inline__)).
25803
25804 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
25805
25806         [BZ #15423]
25807         * math/s_catan.c (__catan): Handle small real or imaginary part of
25808         input specially to avoid spurious underflow.
25809         * math/s_catanf.c (__catanf): Likewise.
25810         * math/s_catanh.c (__catanh): Likewise.
25811         * math/s_catanhf.c (__catanhf): Likewise.
25812         * math/s_catanhl.c (__catanhl): Likewise.
25813         * math/s_catanl.c (__catanl): Likewise.
25814         * math/libm-test.inc (catan_test): Add more tests.
25815         (catanh_test): Likewise.
25816         * sysdeps/i386/fpu/libm-test-ulps: Update.
25817         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25818
25819 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25820
25821         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25822
25823 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
25824
25825         [BZ #15416]
25826         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
25827         accurately for denominator in atan2.
25828         * math/s_catanf.c (__catanf): Likewise.
25829         * math/s_catanh.c (__catanh): Likewise.
25830         * math/s_catanhf.c (__catanhf): Likewise.
25831         * math/s_catanhl.c (__catanhl): Likewise.
25832         * math/s_catanl.c (__catanl): Likewise.
25833         * math/libm-test.inc (catan_test): Add more tests.
25834         (catanh_test): Likewise.
25835         * sysdeps/i386/fpu/libm-test-ulps: Update.
25836         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25837
25838 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
25839
25840         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
25841
25842         * benchtests/Makefile (bench): Remove slow benchmarks.
25843         * benchtests/atan-inputs: Add slow benchmark inputs.
25844         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
25845         (BENCH_FUNC): Accept variant offset.
25846         (VARIANT): Define.
25847         * benchtests/bench-skeleton.c (main): Run benchmark for each
25848         variant.
25849         * benchtests/cos-inputs: Add slow benchmark inputs.
25850         * benchtests/exp-inputs: Likewise.
25851         * benchtests/pow-inputs: Likewise.
25852         * benchtests/sin-inputs: Likewise.
25853         * benchtests/slowatan-inputs: Remove.
25854         * benchtests/slowatan.c: Remove.
25855         * benchtests/slowcos-inputs: Remove.
25856         * benchtests/slowcos.c: Remove.
25857         * benchtests/slowexp-inputs: Remove.
25858         * benchtests/slowexp.c: Remove.
25859         * benchtests/slowpow-inputs: Remove.
25860         * benchtests/slowpow.c: Remove.
25861         * benchtests/slowsin-inputs: Remove.
25862         * benchtests/slowsin.c: Remove.
25863         * benchtests/slowtan-inputs: Remove.
25864         * benchtests/slowtan.c: Remove.
25865         * benchtests/tan-inputs: Add slow benchmark inputs.
25866         * scripts/bench.pl: Parse comments and directives.
25867
25868         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
25869         in CPPFLAGS.
25870         ($(objpfx)bench-%.c): Remove *-ITER.
25871         * benchtests/bench-modf.c: Remove definition of ITER.
25872         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
25873         (main): Loop for DURATION seconds instead of fixed number of
25874         iterations.
25875         * scripts/bench.pl: Don't expect iterations in parameters.
25876
25877 2013-04-29  Roland McGrath  <roland@hack.frob.com>
25878
25879         * io/fchdir.c (__fchdir): Renamed from fchdir.
25880         (fchdir): Define as weak alias.
25881
25882 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
25883
25884         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
25885         (ERRNO_EDOM): Likewise.
25886         (ERRNO_ERANGE): Likewise.
25887         (noErrnoTests): New variable.
25888         (init_max_error): Set errno to 0.
25889         (test_single_errno): New function.
25890         (test_errno): Likewise.
25891         (check_float_internal): Call test_errno.  Set errno to 0.
25892         (check_complex): Refer to errno tests in comment.
25893         (check_int): Call test_errno.  Set errno to 0.
25894         (check_long): Likewise.
25895         (check_bool): Likewise.
25896         (check_longlong): Likewise.
25897         (cos_test): Use ERRNO_* flags for errno tests instead of
25898         check_int.
25899         (expm1_test): Likewise.
25900         (fmod_test): Likewise.
25901         (ilogb_test): Likewise.
25902         (lgamma_test): Likewise.
25903         (pow_test): Likewise.
25904         (remainder_test): Likewise.
25905         (sin_test): Likewise.
25906         (tan_test): Likewise.
25907         (yn_test): Likewise.
25908         (initialize): Set errno to 0.
25909         (main): Print number of errno tests.
25910         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
25911
25912 2013-04-29  Andreas Jaeger  <aj@suse.de>
25913
25914         [BZ #15084]
25915         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
25916         and RES_USEVC.
25917
25918         [BZ #15085]
25919         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
25920         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
25921         unimplemented.
25922
25923         [BZ #15380]
25924         * stdlib/random.c (__initstate): Return NULL if
25925         __initstate fails.
25926
25927         [BZ #15086]
25928         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
25929         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
25930         RES_SNGLKUPREOP.
25931
25932 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25933
25934         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25935
25936 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
25937
25938         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
25939         of individual tests.
25940         (casin_test): Likewise.
25941         (casinh_test): Likewise.
25942
25943 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
25944
25945         [BZ #15409]
25946         * math/s_catan.c (__catan): Handle arguments with large real or
25947         imaginary part separately without squaring.
25948         * math/s_catanf.c (__catanf): Likewise.
25949         * math/s_catanh.c (__catanh): Likewise.
25950         * math/s_catanhf.c (__catanhf): Likewise.
25951         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
25952         and redefine.
25953         (__catanhl): Handle arguments with large real or imaginary part
25954         separately without squaring.
25955         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
25956         and redefine.
25957         (__catanl): Handle arguments with large real or imaginary part
25958         separately without squaring.
25959         * math/libm-test.inc (catan_test): Add more tests.
25960         (catanh_test): Likewise.
25961         * sysdeps/i386/fpu/libm-test-ulps: Update.
25962         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25963
25964 2013-04-27  Andreas Jaeger  <aj@suse.de>
25965
25966         [BZ #15007]
25967         * stdlib/stdlib.h: Update guards for qecvt.
25968         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
25969         <stdlib.h>.
25970
25971 2013-04-27  Allan McRae  <allan@archlinux.org>
25972
25973         * sysdeps/i386/fpu/libm-test-ulps: Update.
25974
25975 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
25976
25977         [BZ #15406]
25978         * math/s_catan.c: Include <float.h>.
25979         (__catan): Ensure underflow exception occurs for underflowed
25980         result.
25981         * math/s_catanf.c: Include <float.h>.
25982         (__catanf): Ensure underflow exception occurs for underflowed
25983         result.
25984         * math/s_catanh.c: Include <float.h>.
25985         (__catanh): Ensure underflow exception occurs for underflowed
25986         result.
25987         * math/s_catanhf.c: Include <float.h>.
25988         (__catanhf): Ensure underflow exception occurs for underflowed
25989         result.
25990         * math/s_catanhl.c: Include <float.h>.
25991         (__catanhl): Ensure underflow exception occurs for underflowed
25992         result.
25993         * math/s_catanl.c: Include <float.h>.
25994         (__catanl): Ensure underflow exception occurs for underflowed
25995         result.
25996         * math/libm-test.inc (catan_test): Add more tests.
25997         (catanh_test): Likewise.
25998
25999         [BZ #15405]
26000         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
26001         underflowed result.
26002         * math/s_ccoshf.c (__ccoshf): Likewise.
26003         * math/s_ccoshl.c (__ccoshl): Likewise.
26004         * math/s_csin.c (__csin): Likewise.
26005         * math/s_csinf.c (__csinf): Likewise.
26006         * math/s_csinh.c (__csinh): Likewise.
26007         * math/s_csinhf.c (__csinhf): Likewise.
26008         * math/s_csinhl.c (__csinhl): Likewise.
26009         * math/s_csinl.c (__csinl): Likewise.
26010         * math/libm-test.inc (ccos_test): Add more tests.
26011         (ccosh_test): Likewise.
26012         (csin_test): Likewise.
26013         (csinh_test): Likewise.
26014
26015 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26016
26017         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
26018         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
26019         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
26020         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
26021         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
26022         powerpc/power5+/fpu folders.
26023         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
26024
26025
26026 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
26027
26028         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26029
26030 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
26031
26032         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
26033         additions to variable.
26034         [$(config-machine) = x86_64] (modules-names): Likewise.
26035         ($(objpfx)tst-audit3): Remove dependency.
26036         ($(objpfx)tst-audit3.out): Likewise.
26037         ($(objpfx)tst-audit4): Likewise.
26038         ($(objpfx)tst-audit4.out): Likewise.
26039         ($(objpfx)tst-audit5): Likewise.
26040         ($(objpfx)tst-audit5.out): Likewise.
26041         ($(objpfx)tst-audit6): Likewise.
26042         ($(objpfx)tst-audit6.out): Likewise.
26043         ($(objpfx)tst-audit7): Likewise.
26044         ($(objpfx)tst-audit7.out): Likewise.
26045         (tst-audit3-ENV): Remove variable.
26046         (tst-audit4-ENV): Likewise.
26047         (tst-audit5-ENV): Likewise.
26048         (tst-audit6-ENV): Likewise.
26049         (tst-audit7-ENV): Likewise.
26050         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
26051         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
26052         addition to variable.
26053         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
26054         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
26055         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
26056         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
26057         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
26058         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
26059         tst-audit3, tst-audit4 and tst-audit5.
26060         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
26061         tst-audit6 and tst-audit7.
26062         [$(subdir) = elf] (modules-names): Add audit modules for those
26063         tests.
26064         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
26065         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
26066         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
26067         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
26068         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
26069         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
26070         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
26071         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
26072         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
26073         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
26074         [$(subdir) = elf] (tst-audit3-ENV): New variable.
26075         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
26076         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
26077         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
26078         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
26079         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
26080         Likewise.
26081         [$(subdir) = elf && $(config-cflags-avx) = yes]
26082         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
26083         [$(subdir) = elf && $(config-cflags-avx) = yes]
26084         (CFLAGS-tst-auditmod4a.c): Likewise.
26085         [$(subdir) = elf && $(config-cflags-avx) = yes]
26086         (CFLAGS-tst-auditmod4b.c): Likewise.
26087         [$(subdir) = elf && $(config-cflags-avx) = yes]
26088         (CFLAGS-tst-auditmod6b.c): Likewise.
26089         [$(subdir) = elf && $(config-cflags-avx) = yes]
26090         (CFLAGS-tst-auditmod6c.c): Likewise.
26091         [$(subdir) = elf && $(config-cflags-avx) = yes]
26092         (CFLAGS-tst-auditmod7b.c): Likewise.
26093         * elf/tst-audit3.c: Move to ...
26094         * sysdeps/x86_64/tst-audit3.c: ... here.
26095         * elf/tst-audit4.c: Move to ...
26096         * sysdeps/x86_64/tst-audit4.c: ... here.
26097         * elf/tst-audit5.c: Move to ...
26098         * sysdeps/x86_64/tst-audit5.c: ... here.
26099         * elf/tst-audit6.c: Move to ...
26100         * sysdeps/x86_64/tst-audit6.c: ... here.
26101         * elf/tst-audit7.c: Move to ...
26102         * sysdeps/x86_64/tst-audit7.c: ... here.
26103         * elf/tst-auditmod3a.c: Move to ...
26104         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
26105         * elf/tst-auditmod3b.c: Move to ...
26106         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
26107         * elf/tst-auditmod4a.c: Move to ...
26108         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
26109         * elf/tst-auditmod4b.c: Move to ...
26110         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
26111         * elf/tst-auditmod5a.c: Move to ...
26112         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
26113         * elf/tst-auditmod5b.c: Move to ...
26114         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
26115         * elf/tst-auditmod6a.c: Move to ...
26116         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
26117         * elf/tst-auditmod6b.c: Move to ...
26118         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
26119         * elf/tst-auditmod6c.c: Move to ...
26120         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
26121         * elf/tst-auditmod7a.c: Move to ...
26122         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
26123         * elf/tst-auditmod7b.c: Move to ...
26124         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
26125
26126 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
26127
26128         [BZ #15366]
26129         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
26130         define unconditionally.
26131         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
26132         define unconditionally.
26133         (INT8_C, INT16_C, etc.): Likewise.
26134
26135 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
26136
26137         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
26138         __ehdr_start with hidden visibility.
26139
26140         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
26141
26142 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
26143
26144         * math/libm-test.inc (cos_test): Use accurate hex constants.
26145         (sincost_test): Likewise.
26146
26147 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
26148
26149         * math/libm-test.inc (catan_test): Add more tests.
26150         (catanh_test): Likewise.
26151
26152         * math/s_catanf.c (__catanf): Use suffixed floating-point
26153         constants.
26154         * math/s_catanhf.c (__catanhf): Likewise.
26155         * math/s_catanhl.c (__catanhl): Likewise.
26156         * math/s_catanl.c (__catanl): Likewise.
26157
26158         [BZ #15394]
26159         * math/s_catan.c (__catan): Calculate imaginary part of result
26160         with log1p not log unless computing log of number close to 0.
26161         * math/s_catanf.c (__catanf): Likewise.
26162         * math/s_catanl.c (__catanl): Likewise.
26163         * math/s_catanh.c (__catanh): Calculate real part of result with
26164         log1p not log unless computing log of number close to 0.
26165         * math/s_catanhf.c (__catanhf): Likewise.
26166         * math/s_catanhl.c (__catanhl): Likewise.
26167         * math/libm-test.inc (catan_test): Add more tests.
26168         (catanh_test): Likewise.
26169         * sysdeps/i386/fpu/libm-test-ulps: Update.
26170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26171
26172 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
26173
26174         * benchtests/Makefile: Mention files in which fast and slow
26175         paths of math functions are implemented.
26176
26177 2013-04-23  Roland McGrath  <roland@hack.frob.com>
26178
26179         * sysdeps/posix/timespec_get.c: New file.
26180
26181 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26182
26183         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
26184         POWER.
26185         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
26186         for POWER.
26187         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
26188         powerpc/power5/fpu folders.
26189         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
26190         * benchtests/Makefile: Add modf testcase.
26191         * benchtests/bench-modf.c: New file: Benchmark test for mo
26192
26193 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
26194
26195         [BZ #14888]
26196         * time/Makefile (tests): Add tst-strptime-whitespace.
26197         * time/strptime_l.c (get_number): Use ISSPACE.
26198         (__strptime_internal): Likewise.
26199         * time/tst-strptime-whitespace.c: New test case.
26200
26201 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
26202
26203         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
26204         member.
26205         (_nss_files_init): Set it here.
26206
26207 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
26208
26209         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
26210         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
26211         unsigned.
26212
26213 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
26214
26215         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
26216
26217 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
26218
26219         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
26220         size just once.
26221
26222 2013-04-21  David S. Miller  <davem@davemloft.net>
26223
26224         * po/ru.po: Update Russion translation from translation project.
26225
26226 2013-04-17  Adam Conrad  <adconrad@0c3.net>
26227
26228         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
26229         and setfsgid.
26230
26231 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
26232
26233         * configure.in: Remove i386 configure warning. Remove i386 case.
26234         * configure: Regenerate.
26235         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
26236         Add example to error message.
26237         * sysdeps/i386/configure: Regenerate.
26238
26239 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
26240
26241         * benchtests/Makefile (bench): Add cos, tan, slowcos and
26242         slowtan.
26243         * benchtests/cos-inputs: New file.
26244         * benchtests/slowcos-inputs: New file.
26245         * benchtests/slowcos.c: New file.
26246         * benchtests/slowtan-inputs: New file.
26247         * benchtests/slowtan.c: New file.
26248         * benchtests/tan-inputs: New file.
26249
26250 2013-04-16  Roland McGrath  <roland@hack.frob.com>
26251
26252         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
26253         considered kosher.
26254
26255 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26256
26257         * benchtests/Makefile: Include cppflags-iterator.mk to add
26258         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
26259
26260         * Makefile.in (bench-clean): New target.
26261         * benchtests/Makefile (bench-clean): Likewise.
26262
26263 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
26264
26265         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
26266
26267 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
26268
26269         * stdio-common/tstdiomisc.c: Fix coding-style violation.
26270
26271 2013-04-15  Andreas Schwab  <schwab@suse.de>
26272
26273         * nscd/grpcache.c (cache_addgr): Properly check for short write.
26274         * nscd/initgrcache.c (addinitgroupsX): Likewise.
26275         * nscd/pwdcache.c (cache_addpw): Likewise.
26276         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
26277         more than recsize.
26278
26279 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26280
26281         * benchtests/Makefile (bench): Write all output to
26282         bench-out.tmp together.
26283
26284 2013-04-15  Andreas Schwab  <schwab@suse.de>
26285
26286         * nscd/nscd.c (main): Don't fork again after closing files.
26287
26288 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
26289
26290         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
26291
26292         * benchtests/Rules (bench-deps): Collect dependencies into a
26293         single variable.  Add Makefile to dependencies.
26294         ($(objpfx)bench-%.c): Depend on bench-deps.
26295
26296 2013-04-12  Roland McGrath  <roland@hack.frob.com>
26297             Xavier Roche  <roche+kml2@exalead.com>
26298
26299         [BZ #15361]
26300         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
26301         just that it's a file descriptor.
26302         * manual/llio.texi (Synchronizing AIO Operations): Update description
26303         for EBADF error from aio_fsync.
26304
26305 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
26306
26307         * Rules (bench): Move target definition...
26308         * benchtests/Makefile: ... here.
26309
26310 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
26311
26312         * math/libm-test.inc (cos_test): Fix PI/2 test.
26313         (sincos_test): Likewise.
26314         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
26315         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
26316
26317 2013-04-11  Andreas Schwab  <schwab@suse.de>
26318
26319         [BZ #13988]
26320         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
26321         accept exponent character only when digits were seen.
26322         * stdio-common/Makefile (tests): Add bug26.
26323         * stdio-common/bug26.c: New file.
26324
26325         [BZ #14293]
26326         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
26327         non-freeable.
26328
26329 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
26330
26331         * Makeconfig (rtld-prefix): Define built linker prefix.
26332         * Rules (run-bench): Use it.
26333         * math/Makefile (run-regen-ulps): Likewise.
26334
26335         * Rules (bench): Remove eval.
26336
26337 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
26338             Roland McGrath  <roland@hack.frob.com>
26339             Ondrej Bilka  <neleai@seznam.cz>
26340
26341         [BZ #15346]
26342         * time/getdate.c: Include ctype.h and alloca.h.
26343         (__getdate_r): Trim leading and trailing spaces of input.
26344         * time/tst-getdate.c (tests): Add tests with leading and
26345         trailing spaces.
26346
26347 2013-04-08  Roland McGrath  <roland@hack.frob.com>
26348
26349         [BZ #14280]
26350         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
26351         when computing value.
26352
26353 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
26354
26355         * math/README.libm-test (How can I generate "libm-test-ulps"?):
26356         Use testrun.sh to run libm tests.
26357
26358         [BZ #15309]
26359         * elf/dl-open.c (dl_open_worker): memset all of seen array.
26360
26361 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
26362
26363         [BZ #15264]
26364         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
26365
26366 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
26367
26368         * Makefile.in (regen-ulps): New target.
26369         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
26370         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
26371         [ifneq (no,$(PERL)] (regen-ulps): New target.
26372         [ifeq (no,$(PERL)] (regen-ulps): New target.
26373         * math/libm-test.inc (ulps_file_name): Define.
26374         (output_dir): New variable.
26375         (options): Add "output-dir" option.
26376         (parse_opt): Handle 'o' case.
26377         (main): If output_dir is non-NULL use it as a prefix
26378         otherwise use "".
26379         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
26380
26381 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
26382
26383         [BZ #10060, #10062]
26384         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
26385         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
26386         fail configure if __sync_val_compare_and_swap is not inlined.
26387         * sysdeps/i386/configure: Regenerate.
26388         * configure.in: Build for i686 when configured for i386.
26389         * configure: Regenerate.
26390         * README: Remove i386 reference.
26391
26392 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
26393
26394         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
26395         * sysdeps/s390/s390-64/sysdep.h: Likewise.
26396
26397 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
26398
26399         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
26400         (lmsnanval): New variables.
26401         (F): Add conversion tests.
26402         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
26403         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
26404
26405         * stdio-common/tstdiomisc.c (F): Properly collect individual
26406         tests' results.
26407
26408         [BZ #14686, #15336]
26409         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
26410         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
26411         Instead, use input NaN values or generate a qNaN by arithmetic
26412         operation.  Also fix bugs to comply with the standard.
26413         * math/libm-test.inc (remainder_test): Add more tests.
26414
26415         [BZ #15335, #15342]
26416         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
26417         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
26418         input NaN values or generate a qNaN by arithmetic operation.
26419
26420         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
26421         unreachable code.
26422
26423         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
26424         definitions.
26425
26426 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
26427
26428         [BZ #14478]
26429         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
26430         underflowed result.
26431         * math/s_cexpf.c (__cexpf): Likewise.
26432         * math/s_cexpl.c (__cexpl): Likewise.
26433         * math/libm-test.inc (cexp_test): Add more tests.
26434
26435 2013-04-03  Andreas Schwab  <schwab@suse.de>
26436
26437         [BZ #15330]
26438         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
26439         order arrays from heap if bigger than alloca cutoff.
26440
26441 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
26442
26443         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
26444         (SNAN_TESTS_double): Refer to GCC PR56831.
26445         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
26446         GCC PR56828.
26447
26448 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
26449
26450         * Rules (bench): Move bench.out after the run is complete.
26451
26452         * Rules (bench): Echo currently running benchmark.
26453
26454         * benchtests/Makefile (bench): Add atan and slowatan.
26455         * benchtests/atan-inputs: New file.
26456         * benchtests/slowatan-inputs: New file.
26457         * benchtests/slowatan.c: New file.
26458
26459         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
26460         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
26461         its value.
26462
26463         [BZ #15305]
26464         * sysdeps/unix/sysv/linux/kernel-features.h
26465         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
26466         __ASSUME_XFS_RESTRICTED_CHOWN.
26467         * sysdeps/unix/sysv/linux/pathconf.c
26468         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
26469         Save and restore errno.
26470
26471 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
26472
26473         [BZ #15327]
26474         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
26475         arguments using __kernel_casinh.
26476         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
26477         arguments using __kernel_casinhf.
26478         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
26479         arguments using __kernel_casinhl.
26480         * math/libm-test.inc (cacosh_test): Add more tests.
26481         * sysdeps/i386/fpu/libm-test-ulps: Update.
26482         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26483
26484 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
26485
26486         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
26487         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
26488
26489         * bench/Makefile (bench): Add sin and slowsin.
26490         * benchtests/sin-inputs: New file.
26491         * benchtests/slowsin-inputs: New file.
26492         * benchtests/slowsin.c: New file.
26493
26494         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
26495         (bench): Add slowexp and slowpow.
26496         (exp-ITER): Increase iterations.
26497         (pow-ITER): Likewise.
26498         * benchtests/exp-inputs: Change input.
26499         * benchtests/pow-inputs: Likewise.
26500         * benchtests/slowexp-inputs: New file.
26501         * benchtests/slowexp.c: New file.
26502         * benchtests/slowpow-inputs: New file.
26503         * benchtests/slowpow.c: New file.
26504
26505 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26506
26507         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
26508         instructions.
26509         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
26510         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
26511         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
26512         * benchtests/Makefile: Add rint benchtest.
26513         * benchtests/rint-inputs: Input for rint benchtest.
26514
26515 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
26516
26517         * Versions.def (libm): Add GLIBC_2.18.
26518         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
26519         hidden libm prototypes.
26520         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
26521         * math/Makefile (libm-calls): Add s_issignaling.
26522         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
26523         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
26524         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
26525         declaration.
26526         * math/math.h [__USE_GNU] (issignaling): New macro.
26527         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
26528         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
26529         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
26530         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
26531         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
26532         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
26533         * manual/arith.texi (issignaling): New section.
26534         * manual/libm-err-tab.pl (@all_functions): Update comment.
26535         * math/gen-libm-test.pl (parse_args): Apply special handling for
26536         issignaling.
26537         * math/libm-test.inc (print_float, issignaling_test): New
26538         functions.
26539         (check_float_internal): Add issignaling checks.
26540         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
26541         default definition.
26542         * sysdeps/powerpc/math-tests.h: New file.
26543         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
26544         tests.
26545         * math/test-snan.c (TEST_FUNC): Likewise.
26546
26547 2013-03-30  David S. Miller  <davem@davemloft.net>
26548
26549         * po/de.po: Update from translation team.
26550
26551 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
26552
26553         [BZ #10357]
26554         * math/k_casinh.c (__kernel_casinh): Handle arguments with
26555         imaginary part less than 1.0 and real part less than 0.5
26556         specially.
26557         * math/k_casinhf.c (__kernel_casinhf): Likewise.
26558         * math/k_casinhl.c (__kernel_casinhl): Likewise.
26559         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
26560         (cacos_test): Add more tests.
26561         (casin_test): Likewise.
26562         (casinh_test): Likewise.
26563         * sysdeps/i386/fpu/libm-test-ulps: Update.
26564         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26565
26566 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
26567
26568         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
26569         ONE with its value.
26570
26571         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
26572         (__pow_mp): Replace ONE and MONE with their values.
26573         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
26574         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
26575         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
26576         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
26577         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
26578         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
26579
26580         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
26581
26582         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
26583         (__pow_mp): Replace ZERO and MZERO with their values.
26584         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
26585         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
26586         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
26587         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
26588         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
26589         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
26590         (__sqr): Likewise.
26591
26592         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
26593
26594         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
26595
26596 2013-03-28  Roland McGrath  <roland@hack.frob.com>
26597
26598         * include/stdlib.h [!SHARED] (__call_tls_dtors):
26599         Declare with __attribute__ ((weak)).
26600         * stdlib/exit.c (__libc_atexit) [!SHARED]:
26601         Call __call_tls_dtors only if it's not NULL.
26602
26603 2013-03-28  Roland McGrath  <roland@hack.frob.com>
26604
26605         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
26606         didn't do it already, then set _dl_phdr and _dl_phnum based on the
26607         magic __ehdr_start linker symbol if it's defined.
26608         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
26609         them up here if it was already done.
26610
26611         * elf/dl-support.c (_dl_phdr): Make pointer to const.
26612         (_dl_aux_init): Use const in cast when setting it.
26613         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
26614         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
26615         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
26616
26617         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
26618         Declare them here.
26619         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
26620         * csu/libc-tls.c: Nor here.
26621         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
26622
26623         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
26624         (__libc_message): Never call vsyslog.
26625
26626 2013-03-28  Alan Modra  <amodra@gmail.com>
26627
26628         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
26629         Define as empty.
26630         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
26631         Likewise.
26632
26633 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26634
26635         [BZ #15214]
26636         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
26637         underflow.
26638         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26639
26640 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
26641
26642         [BZ #15304]
26643         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
26644         Don't add gid passed as argument.
26645
26646         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
26647
26648 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
26649
26650         [BZ #15307]
26651         * math/k_casinh.c (__kernel_casinh): Handle arguments with
26652         imaginary part between 1.0 and 1.5 and real part less than 0.5
26653         specially.
26654         * math/k_casinhf.c (__kernel_casinhf): Likewise.
26655         * math/k_casinhl.c (__kernel_casinhl): Likewise.
26656         * math/libm-test.inc (cacos_test): Add more tests.
26657         (casin_test): Likewise.
26658         (casinh_test): Likewise.
26659         * sysdeps/i386/fpu/libm-test-ulps: Update.
26660         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26661
26662 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
26663
26664         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
26665         constants.
26666         (norm): Likewise.
26667         (denorm): Likewise.
26668         (__dbl_mp): Likewise.
26669         (add_magnitudes): Likewise.
26670         (sub_magnitudes): Likewise.
26671         (__add): Likewise.
26672         (__sub): Likewise.
26673         (__mul): Likewise.
26674         (__sqr): Likewise.
26675         (__inv): Likewise.
26676         (__dvd): Likewise.
26677
26678         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
26679         commented code.
26680         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
26681         (__dubcos): Likewise.
26682         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
26683         (__ieee754_acos): Likewise.
26684         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
26685         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
26686         (__exp1): Likewise.
26687         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
26688         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
26689         (log1): Likewise.
26690         (my_log2): Likewise.
26691         (checkint): Likewise.
26692         * sysdeps/ieee754/dbl-64/e_remainder.c
26693         (__ieee754_remainder): Likewise.
26694         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
26695         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
26696         (bsloww): Likewise.
26697         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
26698
26699         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
26700         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
26701         MANTISSA_STORE_T to store computations on mantissa.  Use
26702         macros for rounding and division.
26703         (denorm): Likewise.
26704         (__dbl_mp): Likewise.
26705         (add_magnitudes): Likewise.
26706         (sub_magnitudes): Likewise.
26707         (__mul): Likewise.
26708         (__sqr): Likewise.
26709         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
26710         powers of two in terms of TWOPOW macro.
26711         (mp_no): Make type of mantissa as MANTISSA_T.
26712         [!RADIXI]: Define RADIXI.
26713         [!TWO52]: Define TWO52.
26714         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
26715
26716 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26717
26718         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
26719         llroundl symbol when building for PPC32.
26720
26721 2013-03-24  Mark H Weaver  <mhw@netris.org>
26722
26723         * manual/arith.texi (Normalization Functions): Fix prototypes for
26724         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
26725
26726 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26727
26728         [BZ #13889]
26729         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
26730         high value to check if expl overflow.
26731         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
26732         to check for underflow and overflow.
26733         * math/libm-test.inc: Add exp test.
26734
26735 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
26736
26737         [BZ #11120]
26738         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
26739         with NOT_IN_libc.
26740
26741 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26742
26743         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
26744         symbol.
26745
26746 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
26747
26748         * math/gen-libm-test.pl (parse_args, special_functions): Properly
26749         wrap blocks consisting of several statements.
26750
26751         * sysdeps/generic/math-tests.h: New file.
26752         * sysdeps/i386/fpu/math-tests.h: Likewise.
26753         * math/test-snan.c: Include it.
26754         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
26755
26756 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
26757
26758         [BZ #15285]
26759         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
26760         (__ieee754_j0l): Do not improve calculations using cos of twice
26761         input for inputs above LDBL_MAX / 2.0L.
26762         (__ieee754_y0l): Likewise.
26763         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
26764         (__ieee754_j1l): Do not improve calculations using cos of twice
26765         input for inputs above LDBL_MAX / 2.0L.
26766         (__ieee754_y1l): Likewise.
26767         * math/libm-test.inc (j0_test): Add another test.
26768         (j1_test): Likewise.
26769         (y0_test): Likewise.
26770         (y1_test): Likewise.
26771         * sysdeps/i386/fpu/libm-test-ulps: Update.
26772
26773 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26774
26775         * Rules ($(objpfx)bench-%.c): Include code from a C source
26776         file.
26777
26778 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
26779
26780         [BZ #15287]
26781         * math/k_casinh.c (__kernel_casinh): Handle arguments with
26782         imaginary part 1.0 and real part less than 0.5 specially.
26783         * math/k_casinhf.c (__kernel_casinhf): Likewise.
26784         * math/k_casinhl.c (__kernel_casinhl): Likewise.
26785         * math/libm-test.inc (cacos_test): Add more tests.
26786         (casin_test): Likewise.
26787         (casinh_test): Likewise.
26788         * sysdeps/i386/fpu/libm-test-ulps: Update.
26789         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26790
26791 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
26792
26793         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
26794         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
26795
26796 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
26797
26798         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
26799         * config.make.in (config-cflags-sse4): Remove variable.
26800         (config-cflags-avx): Likewise.
26801         (config-cflags-sse2avx): Likewise.
26802         (config-cflags-novzeroupper): Likewise.
26803         (config-asflags-i686): Likewise.
26804         (have-mfma4): Likewise.
26805         (have-as-vis3): Likewise.
26806         (MIG): Likewise.
26807         * configure.in (MIG): Do not AC_SUBST.
26808         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
26809         (libc_cv_cc_sse4): Do not AC_SUBST.
26810         (libc_cv_cc_avx): Likewise.
26811         (libc_cv_cc_sse2avx): Likewise.
26812         (libc_cv_cc_novzeroupper): Likewise.
26813         (libc_cv_cc_fma4): Likewise.
26814         (libc_cv_as_i686): Likewise.
26815         (libc_cv_sparc_as_vis3): Likewise.
26816         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
26817         LIBC_CONFIG_VAR.
26818         (config-asflags-i686): Likewise.
26819         (config-cflags-avx): Likewise.
26820         (config-cflags-sse2avx): Likewise.
26821         (have-mfma4): Likewise.
26822         (config-cflags-novzeroupper): Likewise.
26823         * sysdeps/mach/configure.in (MIG): Likewise.
26824         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
26825         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
26826         LIBC_CONFIG_VAR.
26827         (config-cflags-avx): Likewise.
26828         (config-cflags-sse2avx): Likewise.
26829         (have-mfma4): Likewise.
26830         (config-cflags-novzeroupper): Likewise.
26831         * configure: Regenerated.
26832         * sysdeps/i386/configure: Likewise.
26833         * sysdeps/mach/configure: Likewise.
26834         * sysdeps/sparc/configure: Likewise.
26835         * sysdeps/x86_64/configure: Likewise.
26836
26837 2013-03-20  Roland McGrath  <roland@hack.frob.com>
26838
26839         [BZ #14812]
26840         * locale/programs/localedef.c (options): Put N_ translation marker
26841         on argument names, not just descriptions.
26842
26843 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26844
26845         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
26846
26847 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
26848
26849         [BZ #14176]
26850         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
26851
26852 2013-03-19  Roland McGrath  <roland@hack.frob.com>
26853
26854         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
26855         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
26856         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
26857         [!BEFORE_ABORT] (before_abort): New function.
26858         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
26859         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
26860         (writev_for_fatal): New function.
26861         (WRITEV_FOR_FATAL): New macro; call that.
26862         (backtrace_and_maps): New function.
26863         (BEFORE_ABORT): New macro; call that.
26864         (struct str_list): Type removed.
26865         (__libc_message, __libc_fatal): Functions removed.
26866         Include <sysdeps/posix/libc_fatal.c> instead.
26867
26868 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
26869
26870         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
26871         constants.
26872         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
26873         double constants.
26874
26875 2013-03-19  Andreas Schwab  <schwab@suse.de>
26876
26877         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
26878         * sysdeps/gnu/configure: Regenerate.
26879
26880         * configure.in: Substitute libc_cv_rtlddir.
26881         * configure: Regenerate.
26882         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
26883         * Makeconfig (rtlddir, inst_rtlddir): New variables.
26884         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
26885         * elf/Makefile (install-others, CFLAGS-interp.c)
26886         (ldso_install, common-ldd-rewrite): Likewise.
26887         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
26888         $(inst_slibdir)/$(rtld-installed-name).
26889         * scripts/rellns-sh: Add -p option.
26890         * Makerules (make-shlib-link): Use rellns-sh to get relative name
26891         for source.
26892
26893 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
26894
26895         * manual/nptl.texi: Renamed to ...
26896         * manual/threads.texi: ... this.
26897         * manual/Makefile (chapters): Update.
26898
26899 2013-03-18  Roland McGrath  <roland@hack.frob.com>
26900
26901         [BZ #14812]
26902         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
26903         on argument names, not just descriptions.
26904         * malloc/memusagestat.c (options): Likewise.
26905         * nss/getent.c (options): Likewise.
26906
26907 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
26908
26909         [BZ #14812]
26910         * iconv/iconv_prog.c (options): Put N_ translation marker
26911         on argument names, not just descriptions.
26912         * iconv/iconvconfig.c (options): Likewise.
26913
26914 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
26915
26916         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
26917         implementation which is faster on all x86_64 architectures.
26918         Tested on AMD, Intel Nehalem, SNB, IVB.
26919         * sysdeps/x86_64/strnlen.S: Likewise.
26920
26921         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
26922         Remove all multiarch strlen and strnlen versions.
26923         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
26924         Remove strlen and strnlen related parts.
26925
26926         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
26927         Inline strlen part.
26928         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
26929
26930         * sysdeps/x86_64/multiarch/strlen.S: Remove.
26931         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
26932         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
26933         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
26934         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
26935         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
26936
26937 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
26938
26939         * manual/memory.texi (Malloc Tunable Parameters):
26940         Sort parameters alphabetically. Add comments for missing entries.
26941
26942 2013-03-17  David S. Miller  <davem@davemloft.net>
26943
26944         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26945
26946 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
26947
26948         [BZ #15283]
26949         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
26950         for arguments at most half maximum finite value.
26951         * math/libm-test.inc (j0_test): Add more tests.
26952         (j1_test): Likewise.
26953         (y0_test): Likewise.
26954         (y1_test): Likewise.
26955         * sysdeps/i386/fpu/libm-test-ulps: Update.
26956         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26957
26958         [BZ #14155]
26959         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
26960         1 / x and functions P and Q for arguments above 0x1p256L.
26961         (__ieee754_y0l): Likewise.
26962         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
26963         (__ieee754_y1l): Likewise.
26964         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
26965         (j1_test): Likewise.
26966         (y0_test): Likewise.
26967         (y1_test): Likewise.
26968
26969 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
26970
26971         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
26972         variable.
26973
26974 2013-03-15  Roland McGrath  <roland@hack.frob.com>
26975
26976         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
26977         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
26978         zero since it's initialized to EXEC_PAGESIZE.
26979
26980         * sysdeps/unix/sysv/linux/ldsodefs.h
26981         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
26982         * sysdeps/generic/ldsodefs.h: ... here.
26983
26984 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
26985
26986         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
26987
26988         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
26989         math/test-snan.c.
26990         * math/test-snan.c: Renamed from
26991         sysdeps/powerpc/fpu/test-powerpc-snan.c.
26992         * math/Makefile (tests): Add test-snan.
26993         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
26994         test-powerpc-snan.
26995
26996         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
26997         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
26998         functions.
26999         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
27000         __builtin_nan family of functions.
27001         * math/libm-test.inc (initialize): Initialize qnan_value with
27002         __builtin_nan family of functions.
27003         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
27004         Remove variables.
27005         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
27006         Remove functions.
27007         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
27008         storage class.  Initialize qNaN_var and sNaN_var with
27009         __builtin_nan and __builtin_nans families of functions,
27010         respectively.
27011
27012         * math/libm-test.inc (acosh_test): Also test with qNaN input.
27013         (sqrt_test): Remove duplicate test with qNaN input.
27014         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
27015         (round_test, signbit_test, significand_test): Note missing +/-Inf
27016         as well as qNaN tests.
27017
27018         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
27019         qNaN_var.  Fix a few strings, too.
27020         * math/libm-test.inc (nan_value): Rename to qnan_value.
27021         * math/gen-libm-test.pl (%beautify): Adjust to that.
27022         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
27023         * math/test-misc.c (main): Likewise.
27024         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
27025         to __qnan_bytes, and __qnan_union, respectively.
27026         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
27027         Likewise.
27028         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
27029         and lqnanval, respectively.
27030         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
27031         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
27032         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
27033         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
27034
27035         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
27036         * math/test-misc.c (main) [__x86_64__]: Enable test for long
27037         doubles.
27038
27039         * math/test-misc.c (main): Fix copy'n'pastos.
27040         * misc/tst-efgcvt.c (special): Likewise.
27041
27042         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
27043         Remove declarations.
27044
27045 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27046
27047         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
27048         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
27049         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
27050         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
27051
27052 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27053
27054         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
27055         macro to return vdso values correctly in IFUNC implementations.
27056         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
27057         Optimization by using IFUNC.
27058
27059 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27060             Richard Henderson  <rth@redhat.com>
27061             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27062
27063         * Makefile.in (bench): New target.
27064         * NEWS: Mention the benchmark framework.
27065         * Rules (bench): Likewise.
27066         (binaries-bench): Generate binaries for functions to
27067         benchmark.
27068         * benchtests/Makefile: New makefile for benchmark tests.
27069         * benchtests/bench-skeleton.c: New skeleton file for benchmark
27070         programs.
27071         * benchtests/exp-inputs: New input file for EXP function.
27072         * benchtests/pow-inputs: New input file for POW function.
27073         * scripts/bench.pl: New script to generate source files for
27074         benchmark programs.
27075
27076 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
27077
27078         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
27079         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
27080         computations on mantissa.  Use macros for rounding and
27081         division.
27082         (denorm): Likewise.
27083         (__dbl_mp): Likewise.
27084         (add_magnitudes): Likewise.
27085         (sub_magnitudes): Likewise.
27086         (__mul): Likewise.
27087         (__sqr): Likewise.
27088         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
27089         powers of two in terms of TWOPOW macro.
27090         (mp_no): Make type of mantissa as MANTISSA_T.
27091         [!RADIXI]: Define RADIXI.
27092         [!TWO52]: Define TWO52.
27093         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
27094
27095         * manual/nptl.texi (cindex): Modify threads to pthreads.
27096
27097 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
27098
27099         * sysdeps/x86_64/preconfigure: Regenerated.
27100
27101 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
27102
27103         [BZ #14155]
27104         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
27105         0x1p28 and above.
27106         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
27107         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
27108         0x1p28 and above.
27109         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
27110         * math/libm-test.inc (j0_test): Do not allow one spurious
27111         underflow exception.
27112         (y1_test): Likewise.
27113
27114 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
27115
27116         * manual/Makefile (chapters): Add nptl.
27117         * manual/debug.texi (Debugging Support): Add link to Threads
27118         chapter.
27119         * manual/nptl.texi: New file.
27120
27121         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
27122
27123 2013-03-14  Petr Baudis  <pasky@ucw.cz>
27124
27125         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
27126         for non-NULL pointer before the memory validity test. Pointed
27127         out by Holger Brunck <holger.brunck@keymile.com>.
27128
27129 2013-03-13  Andreas Schwab  <schwab@suse.de>
27130
27131         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
27132         instead of .os.
27133
27134 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
27135
27136         * timezone/zic.c: Update from tzcode 2013b.
27137
27138 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
27139
27140         * manual/install.texi (Configuring and compiling):
27141         Mention i686 and i586.
27142         * INSTALL: Regenerate.
27143
27144 2013-03-12  Roland McGrath  <roland@hack.frob.com>
27145
27146         * sysdeps/init_array/elf-init.c: New file.
27147         * csu/elf-init.c
27148         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
27149         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
27150
27151         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
27152         __gmon_start__ as global, but as static with a .preinit_array pointer.
27153         * sysdeps/init_array/gmon-start.c: New file.  Use that.
27154         * sysdeps/init_array/crti.S: New file, empty except for comments.
27155         * sysdeps/init_array/crtn.S: Likewise.
27156
27157 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
27158
27159         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
27160         definining bcopy.
27161         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
27162         Remove Prefer_SSE_for_memop.
27163         * sysdeps/x86_64/multiarch/init-arch.h: Remove
27164         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
27165         HAS_PREFER_SSE_FOR_MEMOP.
27166         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
27167         memset-x86-64.
27168         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
27169         Remove bzero, memset ifunc support.
27170         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
27171         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
27172         * sysdeps/x86_64/multiarch/memset.S: Likewise.
27173         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
27174
27175 2013-03-11  Andreas Schwab  <schwab@suse.de>
27176
27177         [BZ #15234]
27178         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
27179         by SHLIB_COMPAT.
27180         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
27181         (GLIBC_2.16): Remove pthread_atfork.
27182
27183 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
27184
27185         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
27186         (ptestcases.h): Likewise.
27187
27188 2013-03-08  Roland McGrath  <roland@hack.frob.com>
27189
27190         * Makeconfig ($(common-objpfx)config.status): Depend on
27191         sysdeps/*/preconfigure{,.in} too.
27192
27193 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
27194
27195         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
27196         (__free_hook): Use void * instead of __malloc_ptr_t.
27197         (__malloc_hook): Likewise.
27198         (__realloc_hook): Likewise.
27199         (__memalign_hook): Likewise.
27200         (__after_morecore_hook): Likewise.
27201         * malloc/arena.c (save_malloc_hook): Likewise.
27202         (save_free_hook): Likewise.
27203         * malloc/hooks.c (malloc_hook_ini): Likewise.
27204         (realloc_hook_ini): Likewise.
27205         (memalign_hook_ini): Likewise.
27206         * malloc/malloc.c (malloc_hook_ini): Likewise.
27207         (realloc_hook_ini): Likewise.
27208         (memalign_hook_ini): Likewise.
27209         (__free_hook): Likewise.
27210         (__malloc_hook): Likewise.
27211         (__realloc_hook): Likewise.
27212         (__memalign_hook): Likewise.
27213         (__libc_malloc): Likewise.
27214         (__libc_free): Likewise.
27215         (__libc_realloc): Likewise.
27216         (__libc_memalign): Likewise.
27217         (__libc_valloc): Likewise.
27218         (__libc_pvalloc): Likewise.
27219         (__libc_calloc): Likewise.
27220         (__posix_memalign): Likewise.
27221         * malloc/morecore.c (__sbrk): Likewise.
27222         (__default_morecore): Likewise.
27223
27224         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
27225
27226         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
27227         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
27228         __malloc_ptrdiff_t.
27229
27230         * malloc/malloc.h (__malloc_size_t): Remove macro.
27231         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
27232         __malloc_size_t.
27233         (old_memalign_hook): Likewise.
27234         (old_realloc_hook): Likewise.
27235         (struct hdr): Likewise.
27236         (flood): Likewise.
27237         (mallochook): Likewise.
27238         (memalignhook): Likewise.
27239         (reallochook): Likewise.
27240         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
27241         (tr_old_realloc_hook): Likewise.
27242         (tr_old_memalign_hook): Likewise.
27243         (tr_mallochook): Likewise.
27244         (tr_reallochook): Likewise.
27245         (tr_memalignhook): Likewise.
27246
27247 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27248
27249         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
27250         default_ldbl_pack and using as default implementation.
27251         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
27252         implementation.
27253         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
27254         redundant definition.
27255         (ldbl_insert_mantissa): Likewise.
27256         (ldbl_canonicalize): Likewise.
27257         (ldbl_nearbyint): Likewise.
27258         (ldbl_pack): Rename to ldbl_pack_ppc.
27259         (ldbl_unpack): Rename to ldbl_unpack_ppc.
27260         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
27261         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
27262
27263 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
27264
27265         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
27266         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
27267         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
27268         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
27269         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
27270         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
27271         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
27272         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
27273
27274 2013-03-07  Andreas Jaeger  <aj@suse.de>
27275
27276         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27277         bits/mman-linux.h.
27278
27279 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
27280
27281         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
27282         Include mpa.h and declare __MPEXP.
27283         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
27284         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
27285         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
27286         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
27287         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
27288         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
27289         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
27290
27291         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
27292         (__slowpow): Use long double EXPL and LOGL functions to
27293         compute POW.
27294         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
27295         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
27296         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
27297         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
27298         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
27299         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
27300
27301         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
27302         intermediate variable to calculate exponent.
27303         (__sqr): Likewise.
27304         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
27305         Likewise.
27306         (__sqr): Likewise.
27307
27308         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
27309         [!NO__SQR]: Define __sqr.
27310         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
27311         and NO__SQR.  Remove all code except __mul and __sqr.  Include
27312         sysdeps/ieee754/dbl-64/mpa.c.
27313         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
27314
27315         [BZ #12723]
27316         * posix/Makefile (tests): Add tst-pathconf.
27317         * posix/tst-pathconf.c: New test case.
27318         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
27319         _PC_PIPE_BUF.
27320         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
27321
27322 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
27323
27324         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
27325
27326 2013-03-06  Andreas Jaeger  <aj@suse.de>
27327
27328         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
27329         definition via __MAP_ANONYMOUS.
27330
27331         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
27332         it's not part of Linux headers.
27333
27334         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
27335         (MAP_HUGE_MASK): Define.
27336
27337         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
27338         Define.
27339         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
27340         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
27341         Define.
27342         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
27343         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
27344         Define.
27345         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
27346         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
27347         Define.
27348         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
27349
27350         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
27351         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
27352         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
27353         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
27354         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
27355         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
27356
27357         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
27358         Handle f2fs.
27359
27360         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
27361         Handle f2fs and efivarfs.
27362
27363         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
27364         f2fs.
27365
27366         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
27367         (EFIVARFS_MAGIC): Add.
27368         (F2FS_LINK_MAX): Add.
27369
27370 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
27371
27372         * stdio-common/vfprintf.c: Replace __builtin_expect with
27373         __glibc_unlikely.
27374
27375 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
27376
27377         [BZ #13550]
27378         * sysdeps/generic/bp-sym.h: Remove file.
27379         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
27380         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
27381         <bp-sym.h> and <bp-asm.h>.
27382         (__longjmp): Don't use BP_SYM.
27383         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
27384         and <bp-asm.h>.
27385         (memcpy): Don't use BP_SYM.
27386         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
27387         <bp-sym.h> and <bp-asm.h>.
27388         (memcpy): Don't use BP_SYM.
27389         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
27390         <bp-asm.h>.
27391         (memcpy): Don't use BP_SYM.
27392         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
27393         <bp-asm.h>.
27394         (memset): Don't use BP_SYM.
27395         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
27396         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
27397         (__bzero): Don't use BP_SYM.
27398         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
27399         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
27400         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
27401         <bp-sym.h> and <bp-asm.h>.
27402         (memcmp): Don't use BP_SYM.  Remove comment about bounded
27403         pointers.
27404         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
27405         <bp-sym.h> and <bp-asm.h>.
27406         (memcpy): Don't use BP_SYM.
27407         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
27408         <bp-sym.h> and <bp-asm.h>.
27409         (memset): Don't use BP_SYM.
27410         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
27411         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
27412         (__bzero): Don't use BP_SYM.
27413         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
27414         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
27415         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
27416         <bp-sym.h> and <bp-asm.h>.
27417         (strncmp): Don't use BP_SYM.  Remove comment about bounded
27418         pointers.
27419         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
27420         <bp-sym.h> and <bp-asm.h>.
27421         (memcpy): Don't use BP_SYM.
27422         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
27423         <bp-sym.h> and <bp-asm.h>.
27424         (memset): Don't use BP_SYM.
27425         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
27426         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
27427         (__bzero): Don't use BP_SYM.
27428         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
27429         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
27430         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
27431         <bp-sym.h> and <bp-asm.h>.
27432         (__memchr): Don't use BP_SYM.
27433         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
27434         <bp-sym.h> and <bp-asm.h>.
27435         (memcmp): Don't use BP_SYM.  Remove comment about bounded
27436         pointers.
27437         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
27438         <bp-sym.h> and <bp-asm.h>.
27439         (memcpy): Don't use BP_SYM.
27440         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
27441         <bp-sym.h> and <bp-asm.h>.
27442         (__mempcpy): Don't use BP_SYM.
27443         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
27444         <bp-sym.h> and <bp-asm.h>.
27445         (__memrchr): Don't use BP_SYM.
27446         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
27447         <bp-sym.h> and <bp-asm.h>.
27448         (memset): Don't use BP_SYM.
27449         (__bzero): Likewise.
27450         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
27451         <bp-sym.h> and <bp-asm.h>.
27452         (__rawmemchr): Don't use BP_SYM.
27453         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
27454         <bp-sym.h> and <bp-asm.h>.
27455         (__STRCMP): Don't use BP_SYM.
27456         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
27457         <bp-sym.h> and <bp-asm.h>.
27458         (strchr): Don't use BP_SYM.
27459         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
27460         <bp-sym.h> and <bp-asm.h>.
27461         (__strchrnul): Don't use BP_SYM.
27462         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
27463         <bp-sym.h> and <bp-asm.h>.
27464         (strlen): Don't use BP_SYM.
27465         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
27466         <bp-sym.h> and <bp-asm.h>.
27467         (strncmp): Don't use BP_SYM.  Remove comment about bounded
27468         pointers.
27469         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
27470         <bp-sym.h> and <bp-asm.h>.
27471         (__strnlen): Don't use BP_SYM.
27472         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
27473         <bp-sym.h> and <bp-asm.h>.
27474         (__GI__setjmp): Don't use BP_SYM.
27475         (_setjmp): Likewise.
27476         (__sigsetjmp): Likewise.
27477         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
27478         (L(start_addresses)): Don't use BP_SYM.
27479         (_start): Likewise.
27480         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
27481         <bp-asm.h>.
27482         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
27483         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
27484         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
27485         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
27486         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
27487         <bp-asm.h>.
27488         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
27489         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
27490         about bounded pointers.
27491         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
27492         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
27493         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
27494         <bp-asm.h>.
27495         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
27496         about bounded pointers.  Remove GKM FIXME comments.
27497         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
27498         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
27499         <bp-asm.h>.
27500         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
27501         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
27502         Remove GKM FIXME comments.
27503         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
27504         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
27505         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
27506         <bp-asm.h>.
27507         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
27508         about bounded pointers.  Remove GKM FIXME comment.
27509         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
27510         and <bp-asm.h>.
27511         (strncmp): Don't use BP_SYM.  Remove comment about bounded
27512         pointers.
27513         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
27514         <bp-sym.h> and <bp-asm.h>.
27515         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
27516         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
27517         <bp-sym.h> and <bp-asm.h>.
27518         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
27519         comment.
27520
27521 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
27522
27523         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
27524         call free(NULL).
27525
27526 2013-03-05  David S. Miller  <davem@davemloft.net>
27527
27528         * po/es.po: Update from translation team.
27529
27530 2013-03-05  Andreas Jaeger  <aj@suse.de>
27531
27532         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
27533         <bits/mman-linux.h>.
27534         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
27535         is fine.
27536         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
27537         <bits/mman-linux.h> to end of file.
27538         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
27539         is fine.
27540         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
27541         <bits/mman-linux.h> to end of file.
27542         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
27543         is fine.
27544         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
27545         <bits/mman-linux.h> to end of file.
27546
27547         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
27548         (MCL_CURRENT, MCL_FUTURE): Define here.
27549
27550 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27551
27552         [BZ #15232]
27553         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
27554         attribute_hidden.
27555         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
27556
27557 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27558
27559         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
27560         fourth parameter needed for rt_sigprocmask syscall.
27561         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
27562         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
27563         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
27564         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
27565         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
27566         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
27567
27568 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
27569
27570         [BZ #13550]
27571         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
27572         comment about bounded pointers.
27573         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
27574         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
27575
27576 2013-03-04  Andreas Jaeger  <aj@suse.de>
27577
27578         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
27579         common definitions.
27580
27581         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
27582         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
27583         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
27584         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
27585         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
27586         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
27587
27588 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27589
27590         [BZ #15055]
27591         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
27592         __ieee754_sqrl instead of __sqrl.
27593
27594 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
27595
27596         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
27597         * sysdeps/powerpc/fpu_control.h: ... here.
27598         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
27599         * sysdeps/powerpc/bits/fenvinline.h: ... here.
27600         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
27601         * sysdeps/powerpc/bits/mathinline.h: ... here.
27602
27603 2013-03-01  Roland McGrath  <roland@hack.frob.com>
27604
27605         * elf/dl-hwcaps.c (_dl_important_hwcaps):
27606         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
27607         to just [NEED_DL_SYSINFO_DSO].
27608         * elf/dl-support.c: Likewise.
27609         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
27610         * elf/rtld.c (dl_main): Likewise.
27611         * elf/setup-vdso.h (setup_vdso): Likewise.
27612         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
27613         * sysdeps/unix/sysv/linux/dl-sysdep.c
27614         (_dl_discover_osversion): Likewise.
27615
27616 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
27617
27618         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
27619         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
27620
27621 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
27622
27623         * NEWS: Mention libm performance improvements and non-x86 PI
27624         futex support.
27625
27626         * csu/libc-start.c (__pthread_initialize_minimal): Change
27627         function arguments.
27628         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
27629
27630 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
27631
27632         [BZ #13550]
27633         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
27634         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
27635         <bp-sym.h> and <bp-asm.h>.
27636         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
27637         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
27638         and <bp-asm.h>.
27639         (memcpy): Don't use BP_SYM.
27640         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
27641         <bp-asm.h>.
27642         (__mpn_add_n): Don't use BP_SYM.
27643         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
27644         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
27645         and <bp-asm.h>.
27646         (__mpn_addmul_1): Don't use BP_SYM.
27647         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
27648         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
27649         <bp-sym.h>.
27650         (_setjmp): Don't use BP_SYM.
27651         (__novmx_setjmp): Likewise.
27652         (__GI__setjmp): Likewise.
27653         (__vmx_setjmp): Likewise.
27654         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
27655         <bp-sym.h>.
27656         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
27657         (__bzero): Don't use BP_SYM.
27658         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
27659         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
27660         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
27661         <bp-sym.h> and <bp-asm.h>.
27662         (memcpy): Don't use BP_SYM.
27663         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
27664         <bp-sym.h> and <bp-asm.h>.
27665         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
27666         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
27667         <bp-sym.h> and <bp-asm.h>.
27668         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
27669         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
27670         <bp-asm.h>.
27671         (__mpn_lshift): Don't use BP_SYM.
27672         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
27673         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
27674         <bp-asm.h>.
27675         (memset): Don't use BP_SYM.
27676         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
27677         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
27678         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
27679         <bp-asm.h>.
27680         (__mpn_mul_1): Don't use BP_SYM.
27681         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
27682         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
27683         <bp-sym.h> and <bp-asm.h>.
27684         (memcmp): Don't use BP_SYM.
27685         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
27686         <bp-sym.h> and <bp-asm.h>.
27687         (memcpy): Don't use BP_SYM.
27688         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
27689         <bp-sym.h> and <bp-asm.h>.
27690         (memset): Don't use BP_SYM.
27691         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
27692         <bp-sym.h> and <bp-asm.h>.
27693         (strncmp): Don't use BP_SYM.
27694         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
27695         <bp-sym.h> and <bp-asm.h>.
27696         (memcpy): Don't use BP_SYM.
27697         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
27698         <bp-sym.h> and <bp-asm.h>.
27699         (memset): Don't use BP_SYM.
27700         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
27701         <bp-sym.h> and <bp-asm.h>.
27702         (__memchr): Don't use BP_SYM.
27703         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
27704         <bp-sym.h> and <bp-asm.h>.
27705         (memcmp): Don't use BP_SYM.
27706         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
27707         <bp-sym.h> and <bp-asm.h>.
27708         (memcpy): Don't use BP_SYM.
27709         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
27710         <bp-sym.h> and <bp-asm.h>.
27711         (__mempcpy): Don't use BP_SYM.
27712         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
27713         <bp-sym.h> and <bp-asm.h>.
27714         (__memrchr): Don't use BP_SYM.
27715         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
27716         <bp-sym.h> and <bp-asm.h>.
27717         (memset): Don't use BP_SYM.
27718         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
27719         <bp-sym.h> and <bp-asm.h>.
27720         (__rawmemchr): Don't use BP_SYM.
27721         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
27722         <bp-sym.h> and <bp-asm.h>.
27723         (__STRCMP): Don't use BP_SYM.
27724         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
27725         <bp-sym.h> and <bp-asm.h>.
27726         (strchr): Don't use BP_SYM.
27727         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
27728         <bp-sym.h> and <bp-asm.h>.
27729         (__strchrnul): Don't use BP_SYM.
27730         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
27731         <bp-sym.h> and <bp-asm.h>.
27732         (strlen): Don't use BP_SYM.
27733         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
27734         <bp-sym.h> and <bp-asm.h>.
27735         (strncmp): Don't use BP_SYM.
27736         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
27737         <bp-sym.h> and <bp-asm.h>.
27738         (__strnlen): Don't use BP_SYM.
27739         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
27740         <bp-asm.h>.
27741         (__mpn_rshift): Don't use BP_SYM.
27742         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
27743         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
27744         <bp-sym.h> and <bp-asm.h>.
27745         (__sigsetjmp): Don't use BP_SYM.
27746         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
27747         (L(start_addresses)): Don't use BP_SYM.
27748         (_start): Likewise.
27749         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
27750         <bp-asm.h>.
27751         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
27752         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
27753         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
27754         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
27755         <bp-asm.h>.
27756         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
27757         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
27758         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
27759         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
27760         <bp-asm.h>.
27761         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
27762         comments.
27763         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
27764         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
27765         <bp-asm.h>.
27766         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
27767         FIXME comments.
27768         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
27769         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
27770         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
27771         <bp-asm.h>.
27772         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
27773         comment.
27774         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
27775         and <bp-asm.h>.
27776         (strncmp): Don't use BP_SYM,
27777         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
27778         <bp-asm.h>.
27779         (__mpn_sub_n): Don't use BP_SYM.
27780         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
27781         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
27782         and <bp-asm.h>.
27783         (__mpn_submul_1): Don't use BP_SYM.
27784         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
27785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
27786         <bp-sym.h> and <bp-asm.h>.
27787         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
27788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
27789         <bp-sym.h> and <bp-asm.h>.
27790         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
27791         comment.
27792
27793 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
27794
27795         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
27796         Use ZK to minimize writes to Z.
27797         (sub_magnitudes): Simplify code a bit.
27798         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
27799         Use ZK to minimize writes to Z.
27800         (sub_magnitudes): Simplify code a bit.
27801
27802 2013-02-27  Roland McGrath  <roland@hack.frob.com>
27803
27804         * csu/gmon-start.c: Add special exception to license text.
27805
27806 2013-02-27  Richard Henderson  <rth@redhat.com>
27807
27808         * scripts/config.guess: Update from config.git.
27809         * scripts/config.sub: Likewise.
27810
27811 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
27812
27813         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
27814
27815         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
27816
27817         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
27818
27819         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
27820
27821         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
27822
27823 2013-02-26  Roland McGrath  <roland@hack.frob.com>
27824
27825         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
27826         [$(build-shared = yes].
27827
27828 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
27829
27830         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
27831         (__mul): Reduce iterations for calculating mantissa.
27832
27833         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
27834         MPTWO.
27835         (__mpranred): Likewise.
27836
27837         [BZ #15160]
27838         * malloc/memusagestat.c (main): Draw graphs for heap and stack
27839         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
27840
27841 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
27842
27843         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
27844         Define __attribute__.
27845
27846 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
27847
27848         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
27849         unused.
27850         * posix/regex_internal.h (__attribute): Remove.
27851         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
27852         (re_string_context_at): Likewise.
27853         (bitset_not): Use __attribute__ and mark function as possibly
27854         unused.
27855         (bitset_merge): Likewise.
27856         (bitset_mask): Likewise.
27857         (re_string_char_size_at): Likewise.
27858         (re_string_wchar_at): Likewise.
27859         (re_string_elem_size_at): Likewise.
27860
27861 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
27862
27863         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
27864         code.
27865         (cc32): Likewise.
27866
27867         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
27868         (__acr): Likewise.
27869         (__cpy): Likewise.
27870         (norm): Likewise.
27871         (denorm): Likewise.
27872         (__dbl_mp): Likewise.
27873         (add_magnitudes): Likewise.
27874         (sub_magnitudes): Likewise.
27875         (__mul): Likewise.
27876         (__inv): Likewise.
27877
27878         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
27879         style.
27880
27881         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
27882         style.
27883
27884         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
27885         code.
27886
27887         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
27888         up changes with default code.
27889         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
27890         Likewise.
27891
27892 2013-02-24  Allan McRae  <allan@archlinux.org>
27893
27894         * manual/socket.texi (The Internet Namespace): Order menu items
27895         to match that in the file.
27896
27897         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
27898         node listing of the info page menu.
27899
27900 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
27901
27902         [BZ #13550]
27903         * sysdeps/i386/bp-asm.h: Remove file.
27904         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
27905         (PARMS): Do not use macros from bp-asm.h.
27906         (S1): Likewise.
27907         (S2): Likewise.
27908         (SIZE): Likewise.
27909         (__mpn_add_n): Do not use BP_SYM
27910         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
27911         "bp-asm.h".
27912         (PARMS): Do not use macros from bp-asm.h.
27913         (S1): Likewise.
27914         (SIZE): Likewise.
27915         (__mpn_addmul_1): Do not use BP_SYM
27916         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
27917         "bp-asm.h".
27918         (PARMS): Do not use macros from bp-asm.h.
27919         (SIGMSK): Likewise.
27920         (_setjmp): Likewise.  Do not use BP_SYM.
27921         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
27922         "bp-asm.h".
27923         (PARMS): Do not use macros from bp-asm.h.
27924         (SIGMSK): Likewise.
27925         (setjmp): Likewise.  Do not use BP_SYM.
27926         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
27927         "bp-asm.h".
27928         (PARMS): Do not use macros from bp-asm.h.
27929         (__frexp): Do not use BP_SYM.
27930         (frexp): Likewise.
27931         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
27932         "bp-asm.h".
27933         (PARMS): Do not use macros from bp-asm.h.
27934         (__frexpf): Do not use BP_SYM.
27935         (frexpf): Likewise.
27936         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
27937         "bp-asm.h".
27938         (PARMS): Do not use macros from bp-asm.h.
27939         (__frexpl): Do not use BP_SYM.
27940         (frexpl): Likewise.
27941         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
27942         "bp-asm.h".
27943         (PARMS): Do not use macros from bp-asm.h.
27944         (__remquo): Do not use BP_SYM.
27945         (remquo): Likewise.
27946         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
27947         "bp-asm.h".
27948         (PARMS): Do not use macros from bp-asm.h.
27949         (__remquof): Do not use BP_SYM.
27950         (remquof): Likewise.
27951         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
27952         "bp-asm.h".
27953         (PARMS): Do not use macros from bp-asm.h.
27954         (__remquol): Do not use BP_SYM.
27955         (remquol): Likewise.
27956         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
27957         "bp-asm.h".
27958         (PARMS): Do not use macros from bp-asm.h.
27959         (DEST): Likewise.
27960         (SRC): Likewise.
27961         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
27962         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
27963         "bp-asm.h".
27964         (PARMS): Do not use macros from bp-asm.h.
27965         (strlen): Do not use BP_SYM.
27966         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
27967         "bp-asm.h".
27968         (PARMS): Do not use macros from bp-asm.h.
27969         (S1): Likewise.
27970         (S2): Likewise.
27971         (SIZE): Likewise.
27972         (__mpn_add_n): Do not use BP_SYM.
27973         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
27974         "bp-asm.h".
27975         (PARMS): Do not use macros from bp-asm.h.
27976         (S1): Likewise.
27977         (SIZE): Likewise.
27978         (__mpn_addmul_1): Do not use BP_SYM.
27979         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
27980         weak_alias.
27981         (bzero): Likewise.
27982         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
27983         "bp-asm.h".
27984         (PARMS): Do not use macros from bp-asm.h.
27985         (S): Likewise.
27986         (SIZE): Likewise.
27987         (__mpn_lshift): Do not use BP_SYM.
27988         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
27989         "bp-asm.h".
27990         (PARMS): Do not use macros from bp-asm.h.
27991         (DEST): Likewise.
27992         (SRC): Likewise.
27993         (LEN): Likewise.
27994         (memcpy): Likewise.  Do not use BP_SYM.
27995         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
27996         libc_hidden_def and weak_alias.
27997         (mempcpy): Do not use BP_SYM in weak_alias.
27998         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
27999         "bp-asm.h".
28000         (PARMS): Do not use macros from bp-asm.h.
28001         (DEST): Likewise.
28002         (LEN): Likewise.
28003         [!BZERO_P] (CHR): Likewise.
28004         (memset): Likewise.  Do not use BP_SYM.
28005         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
28006         "bp-asm.h".
28007         (PARMS): Do not use macros from bp-asm.h.
28008         (S1): Likewise.
28009         (SIZE): Likewise.
28010         (__mpn_mul_1): Do not use BP_SYM.
28011         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
28012         "bp-asm.h".
28013         (PARMS): Do not use macros from bp-asm.h.
28014         (S): Likewise.
28015         (SIZE): Likewise.
28016         (__mpn_rshift): Do not use BP_SYM.
28017         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
28018         "bp-asm.h".
28019         (PARMS): Do not use macros from bp-asm.h.
28020         (STR): Likewise.
28021         (CHR): Likewise.
28022         (strchr): Likewise.  Do not use BP_SYM.
28023         (index): Do not use BP_SYM in weak_alias.
28024         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
28025         "bp-asm.h".
28026         (PARMS): Do not use macros from bp-asm.h.
28027         (DEST): Likewise.
28028         (SRC): Likewise.
28029         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
28030         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
28031         "bp-asm.h".
28032         (PARMS): Do not use macros from bp-asm.h.
28033         (strlen): Do not use BP_SYM.
28034         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
28035         "bp-asm.h".
28036         (PARMS): Do not use macros from bp-asm.h.
28037         (S1): Likewise.
28038         (S2): Likewise.
28039         (SIZE): Likewise.
28040         (__mpn_sub_n): Do not use BP_SYM.
28041         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
28042         "bp-asm.h".
28043         (PARMS): Do not use macros from bp-asm.h.
28044         (S1): Likewise.
28045         (SIZE): Likewise.
28046         (__mpn_submul_1): Do not use BP_SYM.
28047         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
28048         "bp-asm.h".
28049         (PARMS): Do not use macros from bp-asm.h.
28050         (S1): Likewise.
28051         (S2): Likewise.
28052         (SIZE): Likewise.
28053         (__mpn_add_n): Do not use BP_SYM.
28054         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
28055         weak_alias.
28056         (bzero): Likewise.
28057         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
28058         "bp-asm.h".
28059         (PARMS): Do not use macros from bp-asm.h.
28060         (BLK2): Likewise.
28061         (LEN): Likewise.
28062         (memcmp): Do not use BP_SYM.
28063         (bcmp): Do not use BP_SYM in weak_alias.
28064         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
28065         "bp-asm.h".
28066         (PARMS): Do not use macros from bp-asm.h.
28067         (DEST): Likewise.
28068         (SRC): Likewise.
28069         (LEN): Likewise.
28070         (memcpy): Likewise.  Do not use BP_SYM.
28071         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
28072         "bp-asm.h".
28073         (PARMS): Do not use macros from bp-asm.h.
28074         (DEST): Likewise.
28075         (SRC): Likewise.
28076         (LEN): Likewise.
28077         (memmove): Likewise.  Do not use BP_SYM.
28078         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
28079         "bp-asm.h".
28080         (PARMS): Do not use macros from bp-asm.h.
28081         (DEST): Likewise.
28082         (SRC): Likewise.
28083         (LEN): Likewise.
28084         (__mempcpy): Likewise.  Do not use BP_SYM.
28085         (mempcpy): Do not use BP_SYM in weak_alias.
28086         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
28087         "bp-asm.h".
28088         (PARMS): Do not use macros from bp-asm.h.
28089         (DEST): Likewise.
28090         (LEN): Likewise.
28091         [!BZERO_P] (CHR): Likewise.
28092         (memset): Likewise.  Do not use BP_SYM.
28093         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
28094         "bp-asm.h".
28095         (PARMS): Do not use macros from bp-asm.h.
28096         (STR2): Likewise.
28097         (strcmp): Do not use BP_SYM.
28098         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
28099         "bp-asm.h".
28100         (PARMS): Do not use macros from bp-asm.h.
28101         (STR): Likewise.
28102         (DELIM): Likewise.
28103         [USE_AS_STRTOK_R] (SAVE): Likewise.
28104         (FUNCTION): Likewise.  Do not use BP_SYM.
28105         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
28106         aliases.
28107         (strtok_r): Likewise.
28108         (__GI___strtok_r): Likewise.
28109         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
28110         (PARMS): Do not use macros from bp-asm.h.
28111         (S): Likewise.
28112         (SIZE): Likewise.
28113         (__mpn_lshift): Do not use BP_SYM.
28114         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
28115         (PARMS): Do not use macros from bp-asm.h.
28116         (STR): Likewise.
28117         (CHR): Likewise.
28118         (__memchr): Do not use BP_SYM.
28119         (memchr): Do not use BP_SYM in weak_alias.
28120         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
28121         (PARMS): Do not use macros from bp-asm.h.
28122         (BLK2): Likewise.
28123         (LEN): Likewise.
28124         (memcmp): Do not use BP_SYM.
28125         (bcmp): Do not use BP_SYM in weak_alias.
28126         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
28127         (PARMS): Do not use macros from bp-asm.h.
28128         (S1): Likewise.
28129         (SIZE): Likewise.
28130         (__mpn_mul_1): Do not use BP_SYM.
28131         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
28132         "bp-asm.h".
28133         (PARMS): Do not use macros from bp-asm.h.
28134         (STR): Likewise.
28135         (CHR): Likewise.
28136         (__rawmemchr): Do not use BP_SYM.
28137         (rawmemchr): Do not use BP_SYM in weak_alias.
28138         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
28139         (PARMS): Do not use macros from bp-asm.h.
28140         (S): Likewise.
28141         (SIZE): Likewise.
28142         (__mpn_rshift): Do not use BP_SYM.
28143         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
28144         (PARMS): Do not use macros from bp-asm.h.
28145         (SIGMSK): Likewise.
28146         (__sigsetjmp): Likewise.  Do not use BP_SYM.
28147         * sysdeps/i386/start.S: Do not include "bp-sym.h".
28148         (_start): Do not use BP_SYM.
28149         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
28150         (PARMS): Do not use macros from bp-asm.h.
28151         (DEST): Likewise.
28152         (SRC): Likewise.
28153         (__stpcpy): Likewise.  Do not use BP_SYM.
28154         (stpcpy): Do not use BP_SYM in weak_alias.
28155         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
28156         "bp-asm.h".
28157         (PARMS): Do not use macros from bp-asm.h.
28158         (DEST): Likewise.
28159         (SRC): Likewise.
28160         (LEN): Likewise.
28161         (__stpncpy): Likewise.  Do not use BP_SYM.
28162         (stpncpy): Do not use BP_SYM in weak_alias.
28163         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
28164         (PARMS): Do not use macros from bp-asm.h.
28165         (STR): Likewise.
28166         (CHR): Likewise.
28167         (strchr): Likewise.  Do not use BP_SYM.
28168         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
28169         "bp-asm.h".
28170         (PARMS): Do not use macros from bp-asm.h.
28171         (STR): Likewise.
28172         (CHR): Likewise.
28173         (__strchrnul): Likewise.  Do not use BP_SYM.
28174         (strchrnul): Do not use BP_SYM in weak_alias.
28175         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
28176         "bp-asm.h".
28177         (PARMS): Do not use macros from bp-asm.h.
28178         (STOP): Likewise.
28179         (strcspn): Do not use BP_SYM.
28180         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
28181         "bp-asm.h".
28182         (PARMS): Do not use macros from bp-asm.h.
28183         (STR): Likewise.
28184         (STOP): Likewise.
28185         (strpbrk): Likewise.  Do not use BP_SYM.
28186         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
28187         "bp-asm.h".
28188         (PARMS): Do not use macros from bp-asm.h.
28189         (STR): Likewise.
28190         (CHR): Likewise.
28191         (strrchr): Likewise.  Do not use BP_SYM.
28192         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
28193         (PARMS): Do not use macros from bp-asm.h.
28194         (SKIP): Likewise.
28195         (strspn): Do not use BP_SYM.
28196         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
28197         (PARMS): Do not use macros from bp-asm.h.
28198         (STR): Likewise.
28199         (DELIM): Likewise.
28200         (SAVE): Likewise.
28201         (FUNCTION): Likewise.  Do not use BP_SYM.
28202         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
28203         aliases.
28204         (strtok_r): Likewise.
28205         (__GI___strtok_r): Likewise.
28206         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
28207         (PARMS): Do not use macros from bp-asm.h.
28208         (S1): Likewise.
28209         (S2): Likewise.
28210         (SIZE): Likewise.
28211         (__mpn_sub_n): Do not use BP_SYM.
28212         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
28213         "bp-asm.h".
28214         (PARMS): Do not use macros from bp-asm.h.
28215         (S1): Likewise.
28216         (SIZE): Likewise.
28217         (__mpn_submul_1): Do not use BP_SYM.
28218         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
28219         <bp-sym.h>.
28220         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
28221         and <bp-asm.h>.
28222         (PARMS): Do not use macros from bp-asm.h.
28223         (FLAGS): Likewise.
28224         (PTID): Likewise.
28225         (TLS): Likewise.
28226         (CTID): Likewise.
28227         (__clone): Do not use BP_SYM.
28228         (clone): Do not use BP_SYM in weak_alias.
28229         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
28230         and <bp-asm.h>.
28231         (PARMS): Do not use macros from bp-asm.h.
28232         (LEN): Likewise.
28233         (__mmap64): Do not use BP_SYM.
28234         (mmap64): Do not use BP_SYM in weak_alias.
28235         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
28236         <bp-sym.h> and <bp-asm.h>.
28237         (PARMS): Do not use macros from bp-asm.h.
28238         (__posix_fadvise64_l64): Do not use BP_SYM.
28239         * sysdeps/unix/sysv/linux/i386/semtimedop.S
28240         (PARMS): Do not use macros from bp-asm.h.
28241         (NSOPS): Likewise.
28242         (semtimedop): Do not use BP_SYM.
28243         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
28244         and <bp-asm.h>.
28245
28246 2013-02-21  Allan McRae  <allan@archlinux.org>
28247
28248         * manual/message.texi (Charset conversion in gettext):
28249         Move @end statement to beginning of line.
28250
28251 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28252
28253         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
28254         static.
28255         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
28256         Likewise.
28257
28258         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
28259         (denorm): Likewise.
28260         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
28261         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
28262
28263 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28264
28265         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
28266         tail-call to the resolved function if pltexit isn't needed.
28267
28268 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
28269
28270         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
28271         or Y being zero as being unlikely.
28272         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
28273         Likewise.
28274
28275 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
28276
28277         * manual/nss.texi (System Databases and Name Service Switch):
28278         Remove frobnicate @pxref.
28279
28280 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
28281
28282         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
28283         __attribute__ ((unused)) to __attribute__ ((__unused__)).
28284
28285 2013-02-20  Petr Machata  <pmachata@redhat.com>
28286
28287         * elf/elf.h (R_ARM_TARGET1): New macro.
28288         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
28289         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
28290         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
28291         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
28292         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
28293         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
28294         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
28295         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
28296         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
28297         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
28298         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
28299         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
28300         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
28301         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
28302         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
28303         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
28304         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
28305         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
28306         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
28307         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
28308         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
28309         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
28310         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
28311         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
28312         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
28313         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
28314         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
28315         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
28316         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
28317         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
28318         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
28319         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
28320         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
28321         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
28322         (R_ARM_THM_GOT_BREL12): Likewise.
28323         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
28324         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
28325         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
28326         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
28327         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
28328         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
28329         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
28330         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
28331         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
28332
28333 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
28334
28335         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
28336         __attribute_used__ to __attribute__ ((unused)).
28337
28338 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
28339
28340         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
28341         powerpc mpa.c.
28342         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
28343         comment formatting.
28344         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
28345
28346 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
28347
28348         [BZ #13550]
28349         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
28350         Remove macro.
28351         (ENTER): Remove both macro definitions.
28352         (LEAVE): Likewise.
28353         (CHECK_BOUNDS_LOW): Likewise.
28354         (CHECK_BOUNDS_HIGH): Likewise.
28355         (CHECK_BOUNDS_BOTH): Likewise.
28356         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
28357         (RETURN_BOUNDED_POINTER): Likewise.
28358         (RETURN_NULL_BOUNDED_POINTER): Likewise.
28359         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
28360         (POP_ERRNO_LOCATION_RETURN): Likewise.
28361         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
28362         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
28363         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
28364         macros.
28365         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
28366         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
28367         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
28368         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
28369         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
28370         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
28371         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
28372         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
28373         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
28374         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
28375         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
28376         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
28377         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
28378         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
28379         removed macros.
28380         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
28381         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
28382         macros.
28383         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
28384         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
28385         * sysdeps/i386/i586/memset.S (memset): Likewise.
28386         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
28387         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
28388         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
28389         macros.
28390         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
28391         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
28392         Change uses of L(2) to L(out).
28393         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
28394         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
28395         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
28396         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
28397         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
28398         removed macros.
28399         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
28400         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
28401         macros.
28402         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
28403         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
28404         (RETURN): Do not use macro LEAVE.
28405         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
28406         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
28407         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
28408         * sysdeps/i386/i686/memset.S (memset): Likewise.
28409         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
28410         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
28411         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
28412         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
28413         Likewise.
28414         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
28415         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
28416         L(1_2) and L(1_3) into L(1).
28417         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
28418         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
28419         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
28420         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
28421         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
28422         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
28423         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
28424         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
28425         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
28426         macros.
28427         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
28428         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
28429         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
28430         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
28431         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
28432         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
28433         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
28434         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
28435         * sysdeps/i386/strcspn.S (strcspn): Likewise.
28436         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
28437         * sysdeps/i386/strrchr.S (strrchr): Likewise.
28438         * sysdeps/i386/strspn.S (strspn): Likewise.
28439         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
28440         conditional code.
28441         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
28442         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
28443         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
28444         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
28445         L(1_3) into L(1_1).
28446         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
28447         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
28448         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
28449         macros.
28450         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
28451
28452 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
28453
28454         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
28455         macro.
28456
28457 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
28458
28459         * math/atest-exp.c (exp_mpn): Remove ROUND.
28460         * math/atest-exp2.c (exp_mpn): Likewise.
28461         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
28462
28463         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
28464         * stdlib/tst-tls-atexit-lib.c: Likewise.
28465         * stdlib/tst-tls-atexit.c: Likewise.
28466
28467 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
28468
28469         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
28470         and __attribute_alloc_size__.
28471
28472 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
28473
28474         * include/programs/xmalloc.h: Change __attribute_alloc_size to
28475         __attribute_alloc_size__.
28476         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
28477         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
28478
28479 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
28480
28481         * include/programs/xmalloc.h: New file.
28482         * catgets/gencat.c: Include it.
28483         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
28484         * elf/pldd.c: Likewise.
28485         * iconv/iconv_charmap.c: Likewise.
28486         * iconv/iconvconfig.c: Likewise.
28487         * iconv/strtab.c: Likewise.
28488         * locale/programs/locale.c: Likewise.
28489         * locale/programs/localedef.h: Likewise.
28490         * locale/programs/simple-hash.c: Likewise.
28491         * nscd/nscd.h: Likewise.
28492         * nss/makedb.c: Likewise.
28493         * sysdeps/generic/ldconfig.h: Likewise.
28494
28495 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
28496
28497         * Versions.def: Add GLIBC_2.18.
28498         * include/link.h (struct link_map): New member l_tls_dtor_count.
28499         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
28500         (__call_tls_dtors): Likewise.
28501         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
28502         __cxa_thread_atexit_impl.
28503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
28504         Likewise.
28505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
28506         Likewise.
28507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
28508         Likewise.
28509         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
28510         Likewise.
28511         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
28512         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
28513         Likewise.
28514         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
28515         Likewise.
28516         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
28517         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
28518         Likewise.
28519         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
28520         (tests): Add test case tst-tls-atexit.
28521         (modules-names): Add shared library for tst-tls-atexit.
28522         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
28523         (GLIBC_PRIVATE): Add __call_tls_dtors.
28524         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
28525         for libstdc++.
28526         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
28527         * stdlib/tst-tls-atexit.c: New test case.
28528         * stdlib/tst-tls-atexit-lib.c: New test case.
28529
28530         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
28531
28532         * elf/Versions (ld): Add _dl_find_dso_for_object.
28533         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
28534         * elf/dl-open.c (_dl_find_dso_for_object): New function.
28535         (dl_open_worker): Use _dl_find_dso_for_object.
28536         * elf/dl-sym.c (do_sym): Likewise.
28537         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
28538
28539 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28540
28541         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
28542         Syntactic changes only.
28543         (_dl_runtime_profile): Do a tail-call to the resolved function.
28544
28545 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
28546
28547         [BZ #13550]
28548         * sysdeps/x86_64/bp-asm.h: Remove file.
28549         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
28550         <bp-sym.h> and <bp-asm.h>.
28551         (__clone): Do not use BP_SYM.
28552         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
28553         <bp-sym.h> and <bp-asm.h>.
28554         * sysdeps/unix/x86_64/sysdep.S: Likewise.
28555         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
28556         "bp-asm.h".
28557         (_setjmp): Do not use BP_SYM.
28558         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
28559         "bp-asm.h".
28560         (setjmp): Do not use BP_SYM.
28561         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
28562         libc_hidden_def.
28563         (mempcpy): Do not use BP_SYM in weak_alias.
28564         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
28565         "bp-asm.h".
28566         (strchr): Do not use BP_SYM.
28567         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
28568         "bp-asm.h".
28569         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
28570         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
28571         (_start): Do not use BP_SYM.
28572         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
28573         "bp-asm.h".
28574         (strcat): Do not use BP_SYM.
28575         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
28576         "bp-asm.h".
28577         (STRCMP): Do not use BP_SYM.
28578         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
28579         "bp-asm.h".
28580         (STRCPY): Do not use BP_SYM.
28581         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
28582         "bp-asm.h".
28583         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
28584         "bp-asm.h".
28585         (FUNCTION): Do not use BP_SYM.
28586         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
28587         weak_alias.
28588         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
28589
28590 2013-02-17  Andreas Jaeger  <aj@suse.de>
28591
28592         * time/Versions: Sort entries.
28593         * string/Versions: Likewise.
28594         * resolv/Versions: Likewise.
28595         * posix/Versions: Likewise.
28596         * iconv/Versions: Likewise.
28597         * elf/Versions: Likewise.
28598         * wcsmbs/Versions: Likewise.
28599
28600 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
28601
28602         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
28603         loop termination condition.
28604
28605         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
28606         variable to calculate EZ.
28607         (__sqr): Likewise.
28608
28609         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
28610         the lower precision input.
28611
28612 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
28613
28614         [BZ #13550]
28615         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
28616         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
28617         (run-via-rtld-prefix): Do not handle %-bp tests.
28618         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
28619         (all-object-suffixes): Remove .ob.
28620         (bppfx): Remove variable.
28621         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
28622         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
28623         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
28624         [$(build-bounded) = yes] (libtype.ob): Likewise.
28625         * Makerules (elide-routines.ob): Remove variable.
28626         (do-tests-clean): Do not handle *-bp.out.
28627         (common-mostlyclean): Do not handle *-bp and *-bp.out.
28628         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
28629         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
28630         (tests): Do not include $(tests-bp.out).
28631         (xtests): Do not include $(xtests-bp.out).
28632         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
28633         [$(build-bounded) = yes] ($(addprefix
28634         $(objpfx),$(binaries-bounded))): Remove rule.
28635         ($(objpfx)%-bp.out): Remove rule.
28636         * config.make.in (build-bounded): Remove variable.
28637         * crypt/Makefile [$(build-bounded) = yes]
28638         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
28639         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
28640         append to variable.
28641         [$(build-bounded) = yes] (install-lib): Likewise.
28642         [$(build-bounded) = yes] (generated): Likewise.
28643         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
28644         Remove rule.
28645         * intl/Makefile [$(build-bounded) = yes]
28646         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
28647         * math/Makefile [$(build-bounded) = yes]
28648         ($(tests:%=$(objpfx)%-bp): Likewise.
28649         * misc/Makefile [$(build-bounded) = yes]
28650         ($(objpfx)tst-tsearch-bp): Likewise.
28651         * nptl/Makeconfig (bounded-thread-library): Remove variable.
28652         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
28653         Remove dependency.
28654         * string/Makefile (o-objects.ob): Remove variable.
28655         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
28656         (CFLAGS-.ob): Remove variable.
28657         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
28658         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
28659         both definitions of variable.
28660         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
28661         (ASFLAGS-.ob): Remove variable.
28662
28663 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
28664
28665         [BZ #13550]
28666         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
28667         Remove __BOUNDED_POINTERS__ from condition.
28668         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
28669         * string/bits/string2.h [!__NO_STRING_INLINES &&
28670         !__BOUNDED_POINTERS__]: Likewise.
28671         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
28672         Likewise.
28673         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
28674         Remove conditional code.
28675         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
28676         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
28677         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
28678         condition.
28679
28680         [BZ #13550]
28681         * csu/libc-start.c: Do not include <bp-sym.h>.
28682         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
28683         * elf/dl-open.c: Do not include <bp-sym.h>.
28684         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
28685         * math/fegetenv.c: Do not include <bp-sym.h>.
28686         (fegetenv): Do not use BP_SYM in versioned symbols.
28687         * nptl/sysdeps/pthread/bits/libc-lockP.h
28688         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
28689         <bp-sym.h>.
28690         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28691         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
28692         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28693         (__pthread_mutex_destroy): Likewise.
28694         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28695         (__pthread_mutex_lock): Likewise.
28696         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28697         (__pthread_mutex_trylock): Likewise.
28698         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28699         (__pthread_mutex_unlock): Likewise.
28700         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28701         (__pthread_mutexattr_init): Likewise.
28702         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28703         (__pthread_mutexattr_destroy): Likewise.
28704         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28705         (__pthread_mutexattr_settype): Likewise.
28706         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28707         (__pthread_rwlock_init): Likewise.
28708         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28709         (__pthread_rwlock_destroy): Likewise.
28710         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28711         (__pthread_rwlock_rdlock): Likewise.
28712         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28713         (__pthread_rwlock_tryrdlock): Likewise.
28714         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28715         (__pthread_rwlock_wrlock): Likewise.
28716         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28717         (__pthread_rwlock_trywrlock): Likewise.
28718         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28719         (__pthread_rwlock_unlock): Likewise.
28720         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28721         (__pthread_key_create): Likewise.
28722         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28723         (__pthread_setspecific): Likewise.
28724         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28725         (__pthread_getspecific): Likewise.
28726         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
28727         Likewise.
28728         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28729         (_pthread_cleanup_push_defer): Likewise.
28730         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28731         (_pthread_cleanup_pop_restore): Likewise.
28732         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
28733         (pthread_setcancelstate): Likewise.
28734         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
28735         <bp-sym.h>.
28736         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
28737         (memchr): Do not use BP_SYM in weak_alias.
28738         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
28739         (fegetenv): Do not use BP_SYM in versioned symbols.
28740         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
28741         (fesetenv): Do not use BP_SYM in versioned symbols.
28742         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
28743         (feupdateenv): Do not use BP_SYM in versioned symbols.
28744         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
28745         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
28746         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
28747         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
28748         (open64): Do not use BP_SYM in weak_alias.
28749         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
28750         (fegetenv): Do not use BP_SYM in versioned symbols.
28751         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
28752         (fesetenv): Do not use BP_SYM in versioned symbols.
28753         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
28754         (feupdateenv): Do not use BP_SYM in versioned symbols.
28755         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
28756         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
28757         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
28758         (feraiseexcept): Do not use BP_SYM in versioned symbols.
28759         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
28760         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
28761         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
28762         <bp-sym.h>.
28763         (__libc_start_main): Do not use BP_SYM.
28764
28765 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
28766
28767         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
28768         redundant return line.
28769         (norm): Likewise.
28770         (denorm): Likewise.
28771         (dbl_mp): Likewise.
28772         (sub_magnitudes): Likewise.
28773         (__add): Likewise.
28774         (__sub): Likewise.
28775         (__mul): Likewise.
28776         (__inv): Likewise.
28777         (__dvd): Likewise.
28778         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
28779         (norm): Likewise.
28780         (denorm): Likewise.
28781         (dbl_mp): Likewise.
28782         (sub_magnitudes): Likewise.
28783         (__add): Likewise.
28784         (__sub): Likewise.
28785         (__mul): Likewise.
28786         (__inv): Likewise.
28787         (__dvd): Likewise.
28788
28789         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
28790         instead of __mul.
28791         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
28792         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
28793         (cc32): Likewise.
28794
28795         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
28796         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
28797         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
28798         of __mul for squares.
28799         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
28800         function
28801         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
28802         Likewise.
28803         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
28804         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
28805
28806 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
28807
28808         [BZ #13550]
28809         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
28810         code.
28811         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
28812         prototype or function definition.  Rename ubp_* variables and
28813         parameters.  Remove argv definitions conditional on
28814         [__BOUNDED_POINTERS__].
28815         * debug/backtrace.c (__backtrace): Do not use __unbounded.
28816         * elf/dl-runtime.c (_dl_fixup): Likewise.
28817         * include/set-hooks.h (RUN_HOOK): Likewise.
28818         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
28819         definition.
28820         * string/strcpy.c (strcpy): Do not use __unbounded.
28821         * sysdeps/generic/frame.h (struct layout): Likewise.
28822         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
28823         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
28824         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
28825         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
28826         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
28827         (__backtrace): Likewise.
28828         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
28829         use __ptrvalue.
28830         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
28831         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
28832         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
28833         Likewise.
28834         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
28835         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
28836         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
28837         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
28838         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
28839         Do not use __unbounded.
28840         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
28841         Rename __unboundedrlimits parameter to rlimits in prototype.
28842         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
28843         Do not use __unbounded.
28844         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
28845         not use __ptrvalue.
28846         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
28847         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
28848         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
28849         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
28850         __ptrvalue or __unbounded.
28851         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
28852         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
28853         use __unbounded.
28854         (__new_msgctl): Do not use __ptrvalue.
28855         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
28856         __unbounded.
28857         (__libc_msgrcv): Do not use __ptrvalue.
28858         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
28859         startup_info): Do not use __unbounded.
28860         (__libc_start_main): Likewise.  Rename ubp_* variables and
28861         parameters.  Remove argv definitions conditional on
28862         [__BOUNDED_POINTERS__].
28863         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
28864         __ptrvalue.
28865         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
28866         use __unbounded.
28867         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
28868         or __ptrvalue.
28869         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
28870         use __unbounded.
28871         (__new_shmctl): Do not use __ptrvalue.
28872         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
28873         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
28874         Likewise.
28875         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
28876         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
28877         (__libc_sigaction): Likewise.
28878         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
28879         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
28880         Likewise.
28881         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
28882
28883 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
28884
28885         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
28886
28887         * string/mempcpy.c: Implement by calling memcpy.
28888
28889 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
28890
28891         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
28892
28893         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
28894         evaluation.
28895
28896         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
28897         values in the mantissa.
28898
28899         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
28900         minimize writes to Z.
28901         (sub_magnitudes): Simplify code a bit.
28902
28903 2013-02-12  Roland McGrath  <roland@hack.frob.com>
28904
28905         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
28906         from the message.  The linker prefixes all warnings with that already.
28907
28908 2013-02-12  Andreas Schwab  <schwab@suse.de>
28909
28910         [BZ #15078]
28911         * posix/regexec.c (extend_buffers): Add parameter min_len.
28912         (check_matching): Pass minimum needed length.
28913         (clean_state_log_if_needed): Likewise.
28914         (get_subexp): Likewise.
28915         * posix/Makefile (tests): Add bug-regex34.
28916         (bug-regex34-ENV): Define.
28917         * posix/bug-regex34.c: New file.
28918
28919         [BZ #11561]
28920         * posix/regcomp.c (parse_bracket_exp): When looking up collating
28921         elements compare against the byte sequence of it, not its name.
28922         * posix/Makefile (tests): Add bug-regex35.
28923         (bug-regex35-ENV): Define.
28924         * posix/bug-regex35.c: New file.
28925
28926 2013-02-11  Tom de Vries  <tom@codesourcery.com>
28927
28928         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
28929         comment.
28930         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
28931         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
28932         (CHECK_EOL): Add undef.
28933
28934 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
28935
28936         * bits/stdlib-bsearch.h: New file.
28937         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
28938         * stdlib/stdlib.h: Likewise.
28939
28940 2013-02-11  Roland McGrath  <roland@hack.frob.com>
28941
28942         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
28943         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
28944         declaration.
28945         * manual/search.texi (Array Search Function): Add missing const in
28946         lfind prototype.
28947         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
28948         declaration to use rlim_t.
28949         (Basic Scheduling Functions): Remove erroneous const from
28950         sched_getparam prototype.  Remove erroneous * from
28951         sched_get_priority_max and sched_get_priority_min prototypes.
28952         (Resource Usage): Fix summary @comment on vtimes to refer to
28953         sys/vtimes.h rather than vtimes.h.
28954         Add missing *s in vtimes prototype.
28955         (Limits on Resources): Fix ulimit prototype to return long int.
28956         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
28957         prototypes to use long int rather than double.
28958         (BSD Random): Fix initstate and setstate to use char *, not void *.
28959         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
28960         prototype to make second argument 'struct aiocb64 *const[]'.
28961         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
28962         (Status of AIO Operations): Remove erroneous const in aio_return and
28963         aio_return64 prototypes.
28964         (Synchronizing I/O): Fix sync prototype to return void.
28965         * manual/startup.texi (Suboptions): Remove an erroneous const in
28966         getsubopt prototype.
28967         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
28968         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
28969         use size_t rather than int.
28970         (Scanning All Users): Likewise for getpwent_r.
28971         (Setting Groups): Add missing const to setgroups prototype.
28972         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
28973         * manual/socket.texi (Host Names): Fix gethostbyaddr and
28974         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
28975         'const void *' rather than 'const char *'.
28976         (Host Address Functions): Likewise for inet_ntop.
28977         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
28978         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
28979         ssize_t for return value.
28980         (Sending Data): Likewise for send, sendto, sendmsg.
28981         (Socket Option Functions): Add a missing const in setsockopt prototype.
28982         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
28983         use wchar_t for the argument.
28984         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
28985         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
28986         take no arguments.
28987         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
28988         double/float/long double for second argument.
28989         Fix return types of significand, significandf, significandl.
28990         * manual/filesys.texi (Setting Permissions): Use mode_t for second
28991         argument in fchmod prototype.
28992         (File Owner): Use uid_t and gid_t in fchown prototype.
28993         (File Times): Add const to utimes, futimes, and lutimes prototypes.
28994         (Making Special Files): Use mode_t and dev_t in mknod prototype.
28995         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
28996         use 'const struct dirent **' as argument types to CMP function pointer
28997         argument.
28998         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
28999         (File Times): Fix summary magic @comment for struct utimbuf and utime
29000         to refer to utime.h, not time.h.
29001         * manual/string.texi (Argz Functions): Add missing const in
29002         argz_extract and argz_next prototypes.
29003         (Finding Tokens in a String): Likewise for basename.
29004         (String/Array Comparison): Fix typo in wcscasecmp prototype.
29005         (Copying and Concatenation): Fix typo in wmemmove prototype.
29006         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
29007         (Signal Stack): Remove erroneous const in sigstack prototype.
29008         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
29009         prototype.
29010         (Simple Calendar Time): Likewise for stime.
29011         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
29012         prototype.
29013         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
29014         say sys/sysctl.h instead.
29015         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
29016         and vsyslog prototypes.
29017
29018 2013-02-11  Tom de Vries  <tom@codesourcery.com>
29019
29020         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
29021         Remove.
29022
29023 2013-02-11  Roland McGrath  <roland@hack.frob.com>
29024
29025         * misc/sys/mman.h: Fix typo in mremap comment.
29026
29027 2013-02-08  Roland McGrath  <roland@hack.frob.com>
29028
29029         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
29030         the '\0' terminator.
29031
29032 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
29033
29034         [BZ #13550]
29035         * debug/segfault.c: Don't include <bp-checks.h>.
29036         * sysdeps/generic/bp-checks.h: Remove file.
29037         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
29038         (__GETDENTS): Don't use CHECK_N.
29039         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
29040         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
29041         (__getgroups): Don't use CHECK_N.
29042         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
29043         (setgroups): Don't use CHECK_N.
29044         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
29045         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
29046         (__libc_msgrcv): Don't use CHECK_N.
29047         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
29048         (__libc_msgsnd): Don't use CHECK_N.
29049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
29050         <bp-checks.h>.
29051         (__libc_pread): Don't use CHECK_N.
29052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
29053         include <bp-checks.h>.
29054         (__libc_pread64): Don't use CHECK_N.
29055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
29056         include <bp-checks.h>.
29057         (__libc_pwrite): Don't use CHECK_N.
29058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
29059         include <bp-checks.h>.
29060         (__libc_pwrite64): Don't use CHECK_N.
29061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
29062         <bp-checks.h>.
29063         (__libc_pread): Don't use CHECK_N.
29064         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
29065         include <bp-checks.h>.
29066         (__libc_pread64): Don't use CHECK_N.
29067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
29068         include <bp-checks.h>.
29069         (__libc_pwrite): Don't use CHECK_N.
29070         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
29071         include <bp-checks.h>.
29072         (__libc_pwrite64): Don't use CHECK_N.
29073         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
29074         (do_pread): Don't use CHECK_N.
29075         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
29076         (do_pread64): Don't use CHECK_N.
29077         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
29078         (do_pwrite): Don't use CHECK_N.
29079         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
29080         (do_pwrite64): Don't use CHECK_N.
29081         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
29082         (__libc_readv): Don't use CHECK_N.
29083         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
29084         (semop): Don't use CHECK_N.
29085         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
29086         <bp-checks.h>.
29087         (semtimedop): Don't use CHECK_N.
29088         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
29089         (__libc_pread): Don't use CHECK_N.
29090         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
29091         <bp-checks.h>.
29092         (__libc_pread64): Don't use CHECK_N.
29093         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
29094         <bp-checks.h>.
29095         (__libc_pwrite): Don't use CHECK_N.
29096         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
29097         <bp-checks.h>.
29098         (__libc_pwrite64): Don't use CHECK_N.
29099         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
29100         <bp-checks.h>.
29101         (__libc_msgrcv): Don't use CHECK_N.
29102         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
29103         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
29104         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
29105         (__libc_writev): Don't use CHECK_N.
29106
29107 2013-02-08  Roland McGrath  <roland@hack.frob.com>
29108
29109         * string/strcpy.c: Removed unused variable.
29110
29111         * Makeconfig (+sysdep-includes): Define with := rather than =.
29112         Use an existing include/ subdir of each sysdeps dir before it.
29113
29114 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
29115
29116         * nscd/connection.c (register_traced_file): Comment function.
29117         [HAVE_INOTIFY] (union __inev): Define.
29118         [HAVE_INOTIFY] (inotify_check_files): New function.
29119         [HAVE_INOTIFY] (clear_db_cache): Likewise.
29120         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
29121         clear_db_cache.
29122         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
29123
29124 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
29125
29126         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
29127         loaded if not already and that a failure is permanent.
29128
29129 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
29130
29131         [BZ #15006]
29132         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
29133         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
29134
29135 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
29136
29137         [BZ #13550]
29138         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
29139         (CHECK_1_NULL_OK): Likewise.
29140         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
29141         (__fxstat): Do not use CHECK_1.
29142         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
29143         <bp-checks.h>.
29144         (___fxstat64): Do not use CHECK_1.
29145         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
29146         <bp-checks.h>.
29147         (__fxstatat): Do not use CHECK_1.
29148         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
29149         <bp-checks.h>.
29150         (__fxstatat64): Do not use CHECK_1.
29151         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
29152         <bp-checks.h>.
29153         (__fxstat): Do not use CHECK_1.
29154         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
29155         <bp-checks.h>.
29156         (__fxstatat): Do not use CHECK_1.
29157         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
29158         <bp-checks.h>.
29159         (__getresgid): Do not use CHECK_1.
29160         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
29161         <bp-checks.h>.
29162         (__getresuid): Do not use CHECK_1.
29163         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
29164         <bp-checks.h>.
29165         (__lxstat): Do not use CHECK_1.
29166         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
29167         <bp-checks.h>.
29168         (__old_msgctl): Do not use CHECK_1.
29169         (__new_msgctl): Likewise.
29170         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
29171         <bp-checks.h>.
29172         (__new_setrlimit): Do not use CHECK_1.
29173         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
29174         <bp-checks.h>.
29175         (__old_shmctl): Do not use CHECK_1.
29176         (__new_shmctl): Likewise.
29177         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
29178         <bp-checks.h>.
29179         (__xstat): Do not use CHECK_1.
29180         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
29181         (__lxstat): Do not use CHECK_1.
29182         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
29183         <bp-checks.h>.
29184         (___lxstat64): Do not use CHECK_1.
29185         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
29186         (__old_msgctl): Do not use CHECK_1.
29187         (__new_msgctl): Likewise.
29188         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
29189         <bp-checks.h>.
29190         (__gettimeofday): Do not use CHECK_1.
29191         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
29192         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
29193         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
29194         <bp-checks.h>.
29195         (__gettimeofday): Do not use CHECK_1.
29196         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
29197         (__old_shmctl): Do not use CHECK_1_NULL_OK.
29198         (__new_shmctl): Do not use CHECK_1.
29199         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
29200         <bp-checks.h>.
29201         (do_sigtimedwait): Do not use CHECK_1.
29202         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
29203         <bp-checks.h>.
29204         (do_sigwaitinfo): Do not use CHECK_1.
29205         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
29206         <bp-checks.h>.
29207         (msgctl): Do not use CHECK_1.
29208         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
29209         <bp-checks.h>.
29210         (shmctl): Do not use CHECK_1.
29211         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
29212         (ustat): Do not use CHECK_1.
29213         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
29214         <bp-checks.h>.
29215         (__fxstat): Do not use CHECK_1.
29216         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
29217         <bp-checks.h>.
29218         (__fxstatat): Do not use CHECK_1.
29219         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
29220         <bp-checks.h>.
29221         (__lxstat): Do not use CHECK_1.
29222         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
29223         <bp-checks.h>.
29224         (__xstat): Do not use CHECK_1.
29225         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
29226         (__xstat): Do not use CHECK_1.
29227         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
29228         (___xstat64): Do not use CHECK_1.
29229
29230         [BZ #13550]
29231         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
29232         definitions.
29233         (CHECK_BOUNDS_HIGH): Likewise.
29234         * string/strcpy.c: Do not include <bp-checks.h>.
29235         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
29236
29237 2013-02-07  Roland McGrath  <roland@hack.frob.com>
29238
29239         * nscd/nscd-client.h (__nscd_drop_map_ref):
29240         Add __attribute__ ((unused)).
29241         * nis/nss-nisplus.h (niserr2nss): Likewise.
29242
29243         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
29244         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
29245
29246         * csu/libc-tls.c (init_static_tls, init_slotinfo):
29247         Remove inline keyword.
29248         * include/rounding-mode.h (round_away): Likewise.
29249         * libio/wfileops.c (adjust_wide_data): Likewise.
29250         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
29251         (__m128i_strloadu_tolower): Likewise.
29252         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
29253         (__m128i_strloadu_tolower): Likewise.
29254         * time/mktime.c (ydhms_diff): Likewise.
29255         * locale/elem-hash.h (elem_hash): Likewise.
29256         * locale/setlocale.c (setdata): Likewise.
29257         * posix/regex_internal.h (re_string_char_size_at): Likewise.
29258         (re_string_wchar_at): Likewise.
29259         (bitset_not, bitset_merge, bitset_mask): Likewise.
29260         [!(__GNUC__ > 3)] (inline): Remove macro.
29261         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
29262         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
29263         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
29264         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
29265         * string/memcmp.c (memcmp_bytes): Likewise.
29266         * locale/programs/locarchive.c (compute_hashval): Likewise.
29267         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
29268         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
29269         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
29270         * nss/getent.c (print_rpc, print_protocols): Likewise.
29271         (print_passwd, print_group, print_aliases): Likewise.
29272         * nis/nss-nisplus.h (niserr2nss): Likewise.
29273         * nscd/connections.c (restart_p): Likewise.
29274         Change return type to bool.
29275
29276 2013-02-05  Roland McGrath  <roland@hack.frob.com>
29277
29278         * Makeconfig (all-Depend-files): Add existing
29279         $(sorted-subdirs:=/Depend) files.
29280         (all-subdirs): Remove nss.
29281         * sysdeps/unix/inet/Subdirs: Add it here instead.
29282         * hesiod/Depend: New file.
29283
29284         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
29285         instead of calling alloca.
29286
29287         * io/lseek.c (__lseek): Rename to __libc_lseek.
29288         Define __lseek as an alias.
29289
29290         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
29291
29292 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
29293
29294         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
29295         else clause and remove check for non-standard endianness.
29296
29297 2013-02-04  David S. Miller  <davem@davemloft.net>
29298
29299         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29300
29301 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
29302
29303         [BZ #13550]
29304         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
29305         (__ubp_memchr): Remove prototype.
29306         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
29307         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
29308         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
29309         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
29310         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
29311         Remove alias.
29312         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
29313         (__ubp_memchr): Likewise.
29314         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
29315         (__ubp_memchr): Likewise.
29316         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
29317         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
29318         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
29319         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
29320         CHECK_STRING.
29321         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
29322         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
29323         (__getcwd): Do not use CHECK_STRING.
29324         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
29325         <bp-checks.h>.
29326         (__real_chown): Do not use CHECK_STRING.
29327         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
29328         <bp-checks.h>.
29329         (fchownat): Do not use CHECK_STRING.
29330         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
29331         CHECK_STRING.
29332         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
29333         <bp-checks.h>.
29334         (__lchown): Do not use CHECK_STRING.
29335         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
29336         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
29337         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
29338         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
29339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
29340         include <bp-checks.h>.
29341         (truncate64): Do not use CHECK_STRING.
29342         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
29343         <bp-checks.h>.
29344         (__real_chown): Do not use CHECK_STRING.
29345         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
29346         <bp-checks.h>.
29347         (__lchown): Do not use CHECK_STRING.
29348         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
29349         <bp-checks.h>.
29350         (__chown): Do not use CHECK_STRING.
29351         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
29352         <bp-checks.h>.
29353         (truncate64): Do not use CHECK_STRING.
29354         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
29355         Likewise.
29356         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
29357         (__xmknod): Do not use CHECK_STRING.
29358         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
29359         <bp-checks.h>.
29360         (__xmknodat): Do not use CHECK_STRING.
29361         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
29362         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
29363
29364 2013-02-04  Andreas Schwab  <schwab@suse.de>
29365
29366         [BZ #14142]
29367         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
29368         * include/netdb.h: Likewise for h_errno.
29369         * elf/tst-stackguard1.c: Include <tls.h>.
29370
29371 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
29372
29373         * elf/link.h (struct link_map): Extend the l_addr comment.
29374         * include/link.h (struct link_map): Likewise.
29375
29376 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
29377
29378         [BZ #13550]
29379         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
29380         (BOUNDED_1): Remove macro.
29381         * debug/backtrace.c: Don't include <bp-checks.h>.
29382         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
29383         (__backtrace): Likewise.
29384         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
29385         <bp-checks.h>.
29386         (__backtrace): Don't use BOUNDED_1.
29387         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
29388         <bp-checks.h>.
29389         (__backtrace): Don't use BOUNDED_1.
29390         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
29391         (__backtrace): Don't use BOUNDED_1.
29392         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
29393         (shmat): Don't use BOUNDED_N.
29394
29395 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
29396
29397         [BZ #13550]
29398         * sysdeps/generic/bp-start.h: Remove file.
29399         * csu/libc-start.c: Don't include <bp-start.h>.
29400         (LIBC_START_MAIN): Set up __environ directly instead of using
29401         INIT_ARGV_and_ENVIRON.
29402         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
29403         <bp-start.h>.
29404
29405         [BZ #13550]
29406         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
29407         definitions.
29408         (CHECK_FCNTL): Likewise.
29409         (CHECK_N_PAGES): Likewise.
29410
29411         [BZ #13550]
29412         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
29413         definitions.
29414         (CHECK_SIGSET_NULL_OK): Likewise.
29415         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
29416         <bp-checks.h>.
29417         (sigpending): Don't use CHECK_SIGSET.
29418         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
29419         <bp-checks.h>.
29420         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
29421         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
29422         <bp-checks.h>.
29423         (do_sigsuspend): Don't use CHECK_SIGSET.
29424         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
29425         use CHECK_SIGSET.
29426         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
29427         (do_sigwait): Don't use CHECK_SIGSET.
29428         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
29429         use CHECK_SIGSET.
29430         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
29431         include <bp-checks.h>.
29432         (sigpending): Don't use CHECK_SIGSET.
29433         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
29434         include <bp-checks.h>.
29435         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
29436         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
29437         <bp-checks.h>.
29438         (sigpending): Don't use CHECK_SIGSET.
29439         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
29440         <bp-checks.h>.
29441         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
29442
29443         [BZ #13550]
29444         * sysdeps/generic/bp-semctl.h: Remove file.
29445         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
29446         <bp-checks.h> and <bp-semctl.h>.
29447         (__old_semctl): Don't use CHECK_SEMCTL.
29448         (__new_semctl): Likewise.
29449         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
29450         and <bp-semctl.h>.
29451         (__old_semctl): Don't use CHECK_SEMCTL.
29452         (__new_semctl): Likewise.
29453         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
29454         <bp-checks.h> and <bp-semctl.h>.
29455         (__old_semctl): Don't use CHECK_SEMCTL.
29456         (__new_semctl): Likewise.
29457         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
29458         <bp-checks.h> and <bp-semctl.h>.
29459         (semctl): Don't use CHECK_SEMCTL.
29460
29461         [BZ #13550]
29462         * Makerules (elide-bp-thunks): Remove variable.
29463         (elide-routines.oS): Don't use $(elide-bp-thunks).
29464         (elide-routines.os): Likewise.
29465         (elide-routines.o): Likewise.
29466         (elide-routines.op): Likewise.
29467         (elide-routines.og): Likewise.
29468         (objects): Don't use $(bp-thunks).
29469         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
29470         include.
29471         (common-generated): Do not add s-proto-bp.d.
29472         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
29473         (int): Likewise.
29474         (typ): Likewise.
29475         Do not generate makefile rules for bounded-pointer thunks.
29476         * sysdeps/generic/bp-thunks.h: Remove file.
29477         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
29478         * sysdeps/unix/s-proto-bp.S: Likewise.
29479
29480         [BZ #15062]
29481         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
29482         parts of result separately when argument is not close to line from
29483         -i to i and one part of argument is small.
29484         * math/k_casinhf.c (__kernel_casinhf): Likewise.
29485         * math/k_casinhl.c (__kernel_casinhl): Likewise.
29486         * math/libm-test.inc (cacos_test): Add more tests.
29487         (casin_test): Likewise.
29488         (casinh_test): Likewise.
29489         * sysdeps/i386/fpu/libm-test-ulps: Update.
29490         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29491
29492 2013-01-31  David S. Miller  <davem@davemloft.net>
29493
29494         * po/de.po: Update from translation team.
29495
29496 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
29497
29498         * time/tzfile.c: Include stdint.h for SIZE_MAX.
29499
29500 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
29501
29502         * configure.in (_AC_PROG_CC_C89): New definition.
29503         * configure: Regenerate.
29504
29505         * configure.in (AC_PROG_CPP): New definition.
29506         * configure: Regenerate.
29507
29508 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
29509
29510         * debug/tst-backtrace.h: New file.
29511         * debug/tst-backtrace2.c: Include tst-backtrace.h.
29512         (ret): Remove variable.
29513         (x): Likewise.
29514         (FAIL): Remove macro.
29515         (NO_INLINE): Likewise.
29516         (fn1): Use match function instead of strstr.
29517         * debug/tst-backtrace3.c: Include tst-backtrace.h.
29518         (ret): Remove variable.
29519         (x): Likewise.
29520         (FAIL): Remove macro.
29521         (NO_INLINE): Likewise.
29522         (fn): Use match function instead of strstr.
29523         * debug/tst-backtrace4.c: Include tst-backtrace.h.
29524         (ret): Remove variable.
29525         (x): Likewise.
29526         (FAIL): Remove macro.
29527         (NO_INLINE): Likewise.
29528         (handle_signal): Use match function instead of strstr.
29529         * debug/tst-backtrace5.c: Include tst-backtrace.h.
29530         (ret): Remove variable.
29531         (x): Likewise.
29532         (FAIL): Remove macro.
29533         (NO_INLINE): Likewise.
29534         (handle_signal): Use match function instead of strstr.
29535
29536 2013-01-23  Roland McGrath  <roland@hack.frob.com>
29537
29538         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
29539
29540 2013-01-23  David S. Miller  <davem@davemloft.net>
29541
29542         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
29543         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
29544         argument of CAS if possible.
29545         * sysdeps/sparc/sparc64/bits/atomic.h
29546         (__arch_compare_and_exchange_val_32_acq): Likewise.
29547         (__arch_compare_and_exchange_val_64_acq): Likewise.
29548
29549 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
29550
29551         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
29552         * sysdeps/posix/ulimit.c: ... this.
29553         Include <limits.h>.
29554         * sysdeps/unix/bsd/ulimit.c: Remove file.
29555
29556 2013-01-23  Adam Conrad  <adconrad@0c3.net>
29557
29558         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
29559         (LDFLAGS-tst-array5): Likewise.
29560
29561 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
29562
29563         [BZ #15036]
29564         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
29565         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
29566         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
29567         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
29568
29569 2013-01-21  David S. Miller  <davem@davemloft.net>
29570
29571         * sysdeps/sparc/backtrace.c: New file.
29572         * sysdeps/sparc/sparc32/backtrace.h: New file.
29573         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
29574         * sysdeps/sparc/sparc64/backtrace.h: New file.
29575         * sysdeps/sparc/sparc64/backtrace.c: Delete.
29576         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
29577         -funwind-tables.
29578
29579 2013-01-21  Andreas Schwab  <schwab@suse.de>
29580
29581         [BZ #15020]
29582         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
29583         closed its stdout.
29584
29585 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
29586
29587         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
29588         "mpa2.h".
29589         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
29590
29591 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
29592             Mark Mitchell  <mark@codesourcery.com>
29593             Tom de Vries  <tom@codesourcery.com>
29594             Paul Pluzhnikov  <ppluzhnikov@google.com>
29595
29596         * debug/tst-backtrace2.c: New file.
29597         * debug/tst-backtrace3.c: Likewise.
29598         * debug/tst-backtrace4.c: Likewise.
29599         * debug/tst-backtrace5.c: Likewise.
29600         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
29601         (CFLAGS-tst-backtrace3.c): Likewise.
29602         (CFLAGS-tst-backtrace4.c): Likewise.
29603         (CFLAGS-tst-backtrace5.c): Likewise.
29604         (LDFLAGS-tst-backtrace2): Likewise.
29605         (LDFLAGS-tst-backtrace3): Likewise.
29606         (LDFLAGS-tst-backtrace4): Likewise.
29607         (LDFLAGS-tst-backtrace5): Likewise.
29608         (tests): Add new tests tst-backtrace2, tst-backtrace3,
29609         tst-backtrace4 and tst-backtrace5.
29610
29611 2013-01-18  Anton Blanchard  <anton@samba.org>
29612             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
29613
29614         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
29615         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
29616         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
29617         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
29618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
29619         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
29620         "+r" and remove output regs list as redundant.  Add explicit inline
29621         asm to specify register of return val to work around compiler codegen
29622         bug.  Remove (int) cast on return value.  Add return type parameter to
29623         use in macro so that this macro does not truncate return value for
29624         64-bit values.
29625         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
29626         pass to INTERNAL_VSYSCALL_NCS.
29627         (INLINE_VSYSCALL): Add 'long int' as return type to
29628         INTERNAL_VSYSCALL_NCS macro invocation.
29629         (INTERNAL_VSYSCALL): Add 'long int' as return type to
29630         INTERNAL_VSYSCALL_NCS macro invocation.
29631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
29632
29633 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
29634
29635         [BZ #14496]
29636         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
29637         Fix application of SIMD FP exception mask.
29638
29639         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
29640         mp_no from a power of two.
29641         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
29642         __mpexp_twomm1.  Use __pow_mp.
29643
29644         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
29645         multiplication.
29646
29647 2013-01-17  David S. Miller  <davem@davemloft.net>
29648
29649         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29650
29651 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
29652
29653         [BZ #15023]
29654         * include/complex.h: Condition contents on [!_COMPLEX_H].
29655         (__kernel_casinhf): New prototype.
29656         (__kernel_casinh): Likewise.
29657         (__kernel_casinhl): Likewise.
29658         * math/Makefile (libm_calls): Add k_casinh.
29659         * math/k_casinh.c: New file.
29660         * math/k_casinhf.c: Likewise.
29661         * math/k_casinhl.c: Likewise.
29662         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
29663         finite nonzero arguments.
29664         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
29665         finite nonzero arguments.
29666         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
29667         finite nonzero arguments.
29668         * math/s_casinh.c: Do not include <float.h>.
29669         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
29670         * math/s_casinhf.c: Do not include <float.h>.
29671         (__casinhf): Move code for finite nonzero arguments to
29672         k_casinhf.c.
29673         * math/s_casinhl.c: Do not include <float.h>.
29674         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
29675         redefine.
29676         (__casinhl): Move code for finite nonzero arguments to
29677         k_casinhl.c.
29678         * math/libm-test.inc (cacos_test): Add more tests.
29679         * sysdeps/i386/fpu/libm-test-ulps: Update.
29680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29681
29682 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
29683
29684         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
29685         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
29686         [!HAVE_MREMAP]: Remove [defined linux] case.
29687         * malloc/arena.c: Do not include <malloc-sysdep.h>.
29688
29689 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
29690
29691         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
29692
29693 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
29694
29695         * elf/elf.h (R_386_SIZE32): New relocation.
29696         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
29697         R_386_SIZE32.
29698         (elf_machine_rela): Likewise.
29699         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
29700         R_X86_64_SIZE64 and R_X86_64_SIZE32.
29701
29702 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
29703
29704         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
29705         (FP_FAST_FMA): Do not define.
29706         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
29707         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
29708         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
29709         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
29710         !_SOFT_FLOAT]: Likewise.
29711         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
29712         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
29713         value.
29714         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
29715         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
29716         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
29717         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
29718         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
29719         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
29720         file.
29721
29722 2013-01-16  Andreas Schwab  <schwab@suse.de>
29723
29724         [BZ #14327]
29725         * include/stdlib.h (__mktemp): Add declaration.
29726         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
29727         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
29728
29729 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
29730
29731         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
29732         definitions.
29733         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
29734         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
29735         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
29736         definitions here.
29737         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
29738         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
29739         definitions.
29740         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
29741         and ONE.
29742         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
29743         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
29744         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
29745         definitions.
29746         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
29747         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
29748         definitions.
29749         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
29750
29751         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
29752
29753 2013-01-15  David S. Miller  <davem@davemloft.net>
29754
29755         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
29756         trunc{,f} to libm-sysdep_routes.
29757         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
29758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
29759         file.
29760         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
29761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
29762         file.
29763         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
29764         file.
29765         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
29766         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
29767         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
29768         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
29769         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
29770         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
29771         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
29772         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
29773
29774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
29775         nearbyint{,f} to libm-sysdep_routes.
29776         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
29777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
29778         New file.
29779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
29780         file.
29781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
29782         New file.
29783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
29784         file.
29785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
29786         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
29787         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
29788         file.
29789         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
29790         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
29791         file.
29792         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
29793         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
29794         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
29795
29796         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
29797         libc_feholdexcept and libc_fesetenv.
29798
29799 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
29800
29801         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
29802
29803 2013-01-14  David S. Miller  <davem@davemloft.net>
29804
29805         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
29806         (SPARC_ASM_VIS2_IFUNC): Likewise.
29807         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
29808         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
29809         use of 'siam' instruction.
29810         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
29811         Likewise.
29812         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
29813         Likewise.
29814         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
29815         Likewise.
29816         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
29817         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
29818         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
29819         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
29820         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
29821         file.
29822         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
29823         file.
29824         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
29825         file.
29826         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
29827         file.
29828         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
29829         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
29830         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
29831         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
29832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
29833         new VIS2 routines.
29834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
29835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
29836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
29837         Likewise.
29838         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
29839         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
29840         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
29841         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
29842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
29843         routines to libm-sysdep_routines.
29844         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
29845
29846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
29847         fdim/fdimf to libm-sysdep_routines.
29848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
29849         file.
29850         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
29851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
29852         file.
29853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
29854         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
29855         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
29856         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
29857         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
29858         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
29859         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
29860
29861 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
29862
29863         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
29864         to optimize copies.
29865
29866         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
29867         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
29868         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
29869
29870         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
29871         local variable MPTWO.
29872         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
29873         Likewise.
29874
29875 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
29876
29877         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
29878         GLOB_NOESCAPE.
29879
29880 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
29881
29882         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
29883
29884 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
29885
29886         * manual/pattern.texi (glob_t): Document gl_flags.
29887         (glob64_t): Likewise.
29888
29889 2013-01-11  David S. Miller  <davem@davemloft.net>
29890
29891         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
29892         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
29893         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
29894         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
29895         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
29896         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
29897         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
29898         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
29899         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
29900         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
29901         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
29902         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
29903         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
29904
29905         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
29906         sparc V9 rather than using V8 code.
29907         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
29908         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
29909
29910         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
29911         Move to...
29912         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
29913         Here.
29914
29915 2013-01-11  Roland McGrath  <roland@hack.frob.com>
29916
29917         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
29918         not in the main loop.
29919         * configure: Regenerated.
29920
29921 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
29922
29923         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
29924         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
29925         to just #else.
29926         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
29927         [!__GLIBC_HAVE_LONG_LONG] case.
29928         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
29929         condition to just #else.
29930         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
29931         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
29932         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
29933         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
29934         unconditional.
29935         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
29936         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
29937         #elif condition to just #else.
29938         * sysdeps/unix/sysv/linux/sys/sysmacros.h
29939         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
29940         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
29941         #elif condition to just #else.
29942
29943 2013-01-11  Steve Ellcey  <sellcey@mips.com>
29944
29945         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
29946         (EF_MIPS_ARCH_64): Fix value.
29947         (EF_MIPS_ARCH_32R2): New.
29948         (EF_MIPS_ARCH_64R2): New.
29949
29950 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
29951
29952         * Makeconfig (+link-pie-before-libc): New.
29953         (+link-pie-after-libc): Likewise.
29954         (+link-pie-tests): Likewise.
29955         (+link-pie): Rewritten.
29956         (link-before-libc): Remove $(config-LDFLAGS).
29957         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
29958         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
29959         (config-LDFLAGS): Renamed to ...
29960         (rtld-LDFLAGS): This.
29961         (rtld-tests-LDFLAGS): New macro.
29962         (link-libc-rpath-link): Likewise.
29963         (link-libc-tests-rpath-link): Likewise.
29964         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
29965         (link-libc): Prepand $(link-libc-rpath-link).
29966         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
29967         (test-program-prefix): New macro.
29968         (test-via-rtld-prefix): Likewise.
29969         (test-program-cmd): Likewise.
29970         (host-test-program-cmd): Likewise.
29971         * Makefile ($(common-objpfx)testrun.sh): Replace
29972         $(run-program-prefix) with $(test-program-prefix).
29973         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
29974         $(rtld-LDFLAGS).
29975         ($(common-objpfx)shlib.lds): Likewise.
29976         (build-module-helper): Likewise.
29977         ($(common-objpfx)format.lds): Likewise.
29978         * Rules (binaries-pie-tests): New.
29979         (binaries-pie-notests): Likewise.
29980         (binaries-pie): Rewritten.
29981         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
29982         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
29983         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
29984         (make-test-out): Replace $(host-built-program-cmd) with
29985         $(host-test-program-cmd).
29986         * config.make.in (build-hardcoded-path-in-tests): New variable.
29987         * configure.in (--enable-hardcoded-path-in-tests): New configure
29988         option.
29989         (hardcoded_path_in_tests): New AC_SUBST.
29990         * configure: Regenerated.
29991         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
29992         $(built-program-cmd) with $(test-program-cmd).
29993         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
29994         (test_program_cmd): This.
29995         * elf/Makefile ($(objpfx)order.out): Run test with
29996         $(test-program-prefix).
29997         ($(objpfx)order2.out): Likewise.
29998         ($(objpfx)tst-initorder.out): Likewise.
29999         ($(objpfx)tst-initorder2.out): Likewise.
30000         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
30001         $(test-program-cmd).
30002         ($(objpfx)tst-array1-static.out): Likewise.
30003         ($(objpfx)tst-array2.out): Likewise.
30004         ($(objpfx)tst-array3.out): Likewise.
30005         ($(objpfx)tst-array4.out): Likewise.
30006         ($(objpfx)tst-array5.out): Likewise.
30007         ($(objpfx)tst-array5-static.out): Likewise.
30008         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
30009         $(test-program-cmd).
30010         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
30011         $(run-program-prefix) with $(test-program-prefix).
30012         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
30013         (test_program_prefix): This.
30014         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
30015         $(run-program-prefix) with $(test-program-prefix).
30016         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
30017         (test_program_prefix): This.
30018         * iconvdata/tst-tables.sh: Likewise.
30019         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
30020         $(run-program-prefix) with $(test-program-prefix).
30021         ($(objpfx)tst-translit.out): Likewise.
30022         ($(objpfx)tst-gettext2.out): Likewise.
30023         ($(objpfx)tst-gettext4.out): Likewise.
30024         ($(objpfx)tst-gettext6.out): Likewise.
30025         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
30026         (test_program_prefix): This.
30027         * intl/tst-gettext2.sh: Likewise.
30028         * intl/tst-gettext4.sh  Likewise.
30029         * intl/tst-gettext6.sh: Likewise.
30030         * intl/tst-translit.sh: Likewise.
30031         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
30032         with $(test-program-cmd).
30033         * libio/Makefile ($(objpfx)test-freopen.out): Replace
30034         $(run-program-prefix) with $(test-program-prefix).
30035         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
30036         (test_program_prefix): This.
30037         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
30038         $(run-program-prefix) with $(test-program-prefix).
30039         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
30040         (test_program_prefix): This.
30041         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
30042         * posix/Makefile ($(objpfx)globtest.out): Replace
30043         $(run-via-rtld-prefix) and $(test-wrapper) with
30044         $(test-program-prefix) and $(test-via-rtld-prefix).
30045         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
30046         $(test-program-prefix).
30047         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
30048         $(host-test-program-cmd).
30049         (tst-spawn-ARGS): Likewise.
30050         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
30051         $(test-program-prefix).
30052         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
30053         (test_via_rtld_prefix): This.
30054         (test_wrapper): Renamed to ...
30055         (test_program_prefix): This.
30056         (run_program_prefix): Replaced by test_program_prefix.
30057         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
30058         (test_program_prefix): This.
30059         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
30060         with $(host-test-program-cmd).
30061         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
30062         $(run-program-prefix) with $(test-program-prefix).
30063         ($(objpfx)tst-printf.out): Likewise.
30064         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
30065         $(test-program-cmd).
30066         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
30067         (test_program_prefix): This.
30068         * stdio-common/tst-unbputc.sh: Likewise.
30069         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
30070         $(run-program-prefix) with $(test-program-prefix).
30071         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
30072         (test_program_prefix): This.
30073         * string/Makefile ($(objpfx)tst-svc.out):  Replace
30074         $(built-program-cmd) with $(test-program-cmd).
30075
30076 2013-01-11  Andreas Jaeger  <aj@suse.de>
30077
30078         [BZ #15003]
30079         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
30080         value. Sync with Linux 3.7.
30081
30082 2013-01-10  David S. Miller  <davem@davemloft.net>
30083
30084         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
30085         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
30086         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
30087
30088 2013-01-10  Roland McGrath  <roland@hack.frob.com>
30089
30090         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
30091         never set.
30092         * configure: Regenerated.
30093
30094 2013-01-10  David S. Miller  <davem@davemloft.net>
30095
30096         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
30097         sparc V9 rather than using V8 code.
30098         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
30099         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
30100
30101 2013-01-10  Roland McGrath  <roland@hack.frob.com>
30102
30103         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
30104         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
30105         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
30106         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
30107         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
30108         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
30109         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
30110         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
30111         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
30112         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
30113         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
30114         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
30115         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
30116         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
30117         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
30118         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
30119         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
30120         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
30121         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
30122         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
30123         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
30124         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
30125         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
30126         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
30127         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
30128         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
30129         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
30130
30131 2013-01-10  David S. Miller  <davem@davemloft.net>
30132
30133         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30134
30135 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
30136
30137         * posix/Makefile (tests-static): New variable.
30138         (tests): Add $(tests-static).
30139         (tst-exec-static-ARGS): New variable.
30140         (tst-spawn-static-ARGS): Likewise.
30141         * posix/tst-exec-static.c: New file.
30142         * posix/tst-spawn-static.c: Likewise.
30143         * posix/tst-exec.c: Support run directly.
30144         * posix/tst-spawn.c: Likewise.
30145
30146 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
30147
30148         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
30149         long.
30150         * math/bits/mathcalls.h (llrint): Likewise.
30151         (llround): Likewise.
30152         * stdlib/stdlib.h (struct drand48_data): Likewise.
30153         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
30154         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
30155         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
30156         Likewise.
30157         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
30158         Likewise.
30159         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
30160         (elf_greg_t): Likewise.
30161         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
30162         (__jmp_buf): Likewise.
30163         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
30164         definitions.
30165         (llrint): Likewise, for all definitions.
30166         (llrintl): Likewise.
30167
30168         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
30169         Remove [__GNUC__] condition.
30170         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
30171         condition to just [__USE_ISOC99].
30172         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
30173
30174 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
30175
30176         [BZ #14200]
30177         * sysdeps/unix/sysv/linux/x86/bits/environments.h
30178         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
30179         defined.
30180         (_POSIX_V6_ILP32_OFF32): Likewise.
30181         (_XBS5_ILP32_OFF32): Likewise.
30182         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
30183         (__ILP32_OFFBIG_LDFLAGS): Likewise.
30184
30185 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
30186
30187         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
30188
30189         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
30190         doubles __mpexp_twomm1.  Adjust usage.
30191         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
30192         Remove.
30193
30194 2013-01-10  Andreas Schwab  <schwab@suse.de>
30195
30196         [BZ #14964]
30197         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
30198         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
30199
30200 2013-01-09  David S. Miller  <davem@davemloft.net>
30201
30202         [BZ #15003]
30203         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
30204         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
30205         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
30206         (TCP_FASTOPEN): Define.
30207         (tcp_repair_opt): New structure.
30208         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
30209         enum values.
30210         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
30211         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
30212         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
30213         (tcp_cookie_transactions): New structure.
30214
30215 2013-01-09  Anton Blanchard  <anton@samba.org>
30216
30217         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
30218         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
30219         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
30220         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
30221
30222 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
30223
30224         * include/features.h (__USE_ANSI): Remove.
30225
30226 2013-01-09  Roland McGrath  <roland@hack.frob.com>
30227
30228         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
30229
30230         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
30231
30232 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
30233
30234         * sysdeps/s390/fpu/libm-test-ulps: Update.
30235
30236         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30237
30238         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
30239         (__acr): Likewise.
30240         (__cpy): Likewise.
30241         (norm): Likewise.
30242         (denorm): Likewise.
30243         (__mp_dbl): Likewise.
30244         (__dbl_mp): Likewise.
30245         (add_magnitudes): Likewise.
30246         (sub_magnitudes): Likewise.
30247         (__add): Likewise.
30248         (__sub): Likewise.
30249         (__mul): Likewise.
30250         (__inv): Likewise.
30251         (__dvd): Likewise.
30252         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
30253         (__acr): Likewise.
30254         (__cpy): Likewise.
30255         (norm): Likewise.
30256         (denorm): Likewise.
30257         (__mp_dbl): Likewise.
30258         (__dbl_mp): Likewise.
30259         (add_magnitudes): Likewise.
30260         (sub_magnitudes): Likewise.
30261         (__add): Likewise.
30262         (__sub): Likewise.
30263         (__mul): Likewise.
30264         (__inv): Likewise.
30265         (__dvd): Likewise.
30266         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
30267         (__acr): Likewise.
30268         (__cpy): Likewise.
30269         (norm): Likewise.
30270         (denorm): Likewise.
30271         (__mp_dbl): Likewise.
30272         (__dbl_mp): Likewise.
30273         (add_magnitudes): Likewise.
30274         (sub_magnitudes): Likewise.
30275         (__add): Likewise.
30276         (__sub): Likewise.
30277         (__mul): Likewise.
30278         (__inv): Likewise.
30279         (__dvd): Likewise.
30280
30281 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
30282
30283         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
30284         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
30285         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
30286         2 && __USE_EXTERN_INLINES]: Likewise.
30287
30288 2013-01-08  Andreas Jaeger  <aj@suse.de>
30289
30290         [BZ# 14985]
30291         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
30292         Remove.
30293         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
30294         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
30295
30296 2013-01-07  Anton Blanchard  <anton@samba.org>
30297
30298         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
30299         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
30300         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
30301         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
30302         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
30303         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
30304         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
30305         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
30306         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
30307         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
30308         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
30309         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
30310         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
30311         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
30312         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
30313         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
30314         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
30315         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
30316         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
30317         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
30318         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
30319         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
30320         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
30321         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
30322         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
30323         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
30324         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
30325         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
30326         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
30327         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
30328         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
30329         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
30330         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
30331         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
30332         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
30333         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
30334         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
30335         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
30336         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
30337         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
30338         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
30339         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30340         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
30341
30342 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
30343
30344         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
30345         (__MALLOC_PMT): Likewise.
30346         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
30347         [__GNUC__], only on [_LIBC].
30348         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
30349         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
30350         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
30351         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
30352         forward declaration.
30353         (realloc_hook_ini): Likewise.
30354         (memalign_hook_ini): Likewise.
30355         (__libc_memalign): Do not use __MALLOC_PMT in variable
30356         declaration.
30357         (__libc_valloc): Likewise.
30358         (__libc_pvalloc): Likewise.
30359         (__libc_calloc): Likewise.
30360         (__posix_memalign): Likewise.
30361
30362         [BZ #14996]
30363         * math/s_casinh.c: Include <float.h>.
30364         (__casinh): Do not do computation with squaring and square root
30365         for large arguments.
30366         * math/s_casinhf.c: Include <float.h>.
30367         (__casinhf): Do not do computation with squaring and square root
30368         for large arguments.
30369         * math/s_casinhl.c: Include <float.h>.
30370         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
30371         (__casinhl): Do not do computation with squaring and square root
30372         for large arguments.
30373         * math/libm-test.inc (casin_test): Add more tests.
30374         (casinh_test): Likewise.
30375         * sysdeps/i386/fpu/libm-test-ulps: Update.
30376         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30377
30378 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
30379
30380         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
30381         (__x86_64_raw_data_cache_size): Likewise.
30382         (__x86_64_data_cache_size_half): Likewise.
30383         (__x86_64_raw_data_cache_size_half): Likewise.
30384         (__x86_64_shared_cache_size): Likewise.
30385         (__x86_64_raw_shared_cache_size): Likewise.
30386         (__x86_64_shared_cache_size_half): Likewise.
30387         (__x86_64_raw_shared_cache_size_half): Likewise.
30388         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
30389         to ...
30390         (__x86_data_cache_size): This.
30391         (__x86_64_raw_data_cache_size): Renamed to ...
30392         (__x86_raw_data_cache_size): This.
30393         (__x86_64_data_cache_size_half): Renamed to ...
30394         (__x86_data_cache_size_half): This.
30395         (__x86_64_raw_data_cache_size_half): Renamed to ...
30396         (__x86_raw_data_cache_size_half): This.
30397         (__x86_64_shared_cache_size): Renamed to ...
30398         (__x86_shared_cache_size): This.
30399         (__x86_64_raw_shared_cache_size): Renamed to ...
30400         (__x86_raw_shared_cache_size): This.
30401         (__x86_64_shared_cache_size_half): Renamed to ...
30402         (__x86_shared_cache_size_half): This.
30403         (__x86_64_raw_shared_cache_size_half): Renamed to ...
30404         (__x86_raw_shared_cache_size_half): This.
30405         * sysdeps/x86_64/memcpy.S: Updated.
30406         * sysdeps/x86_64/memset.S: Likewise.
30407         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
30408         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30409         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30410
30411 2013-01-04  David S. Miller  <davem@davemloft.net>
30412
30413         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30414
30415 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
30416
30417         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
30418         1 to avoid redefinition warning.
30419         (__USE_GNU): Don't define.
30420         (init_signaling_nan): Protoize.
30421
30422         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
30423
30424 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30425
30426         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
30427         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
30428         (__cpymn): Likewise.
30429         (norm): Remove commented code.
30430         (denorm): Likewise.
30431         (__mp_dbl): Likewise.
30432         (__inv): Likewise.
30433         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
30434         (__cpymn): Likewise.
30435         (norm): Remove commented code.
30436         (denorm): Likewise.
30437         (__mp_dbl): Likewise.
30438         (__inv): Likewise.
30439
30440         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
30441         mp_no value for 1.0 and 2.0.
30442         (norm): Use RADIXI instead of radixi.d.
30443         (denorm): Likewise.
30444         (__mul): Use 0.0 instead of zero.d.
30445         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
30446         mp_no value for 1.0 and 2.0.
30447         (norm): Use RADIXI instead of radixi.d.
30448         (denorm): Likewise.
30449         (__mul): Use 0.0 instead of zero.d.
30450
30451 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
30452
30453         [BZ #14994]
30454         * math/s_casinh.c (__casinh): Reduce finite argument to first
30455         quadrant then set signs of results at the end.
30456         * math/s_casinhf.c (__casinhf): Likewise.
30457         * math/s_casinhl.c (__casinhl): Likewise.
30458         * math/libm-test.inc (casin_test): Add more tests.
30459         (casinh_test): Likewise.
30460         * sysdeps/i386/fpu/libm-test-ulps: Update.
30461         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30462
30463 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
30464
30465         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
30466
30467         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
30468
30469         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
30470         declarations.
30471         (denorm): Likewise.
30472         (__mp_dbl): Likewise.
30473         (__inv): Likewise.
30474
30475         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
30476         and adjust the header comment.
30477
30478         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
30479         variable name from declaration.
30480
30481 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
30482
30483         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30484         Initialize COMMON_CPUID_INDEX_7 element.
30485         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
30486         (CPUID_RTM): Likewise.
30487         (HAS_RTM): Likewise.
30488         (COMMON_CPUID_INDEX_7): New enum.
30489
30490 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
30491
30492         [BZ #14981]
30493         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
30494         size is zero, record memory as freed.
30495
30496 2013-01-03  Andreas Jaeger  <aj@suse.de>
30497
30498         * po/ia.po: Add new Interlingua translation.
30499
30500 2012-01-03  Allan McRae  <allan@archlinux.org>
30501
30502         * locale/programs/localedef.c: Fix description of '--posix' flag.
30503
30504 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
30505
30506         * NEWS: Update dates in second copyright notice.
30507         * README: Update copyright dates in example.
30508         * manual/libc.texinfo: Update copyright dates.
30509         * scripts/test-installation.pl: Update copyright date in --version
30510         output.
30511
30512         * hurd/ctty-input.c: Fix copyright notice formatting.
30513         * hurd/ctty-output.c: Likewise.
30514         * hurd/dtable.c: Likewise.
30515         * hurd/hurd-raise.c: Likewise.
30516         * hurd/hurdprio.c: Likewise.
30517         * hurd/msgportdemux.c: Likewise.
30518         * misc/sys/file.h: Likewise.
30519         * misc/sys/ioctl.h: Likewise.
30520         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
30521         * sysdeps/mach/hurd/chdir.c: Likewise.
30522         * sysdeps/mach/hurd/fchdir.c: Likewise.
30523         * sysdeps/mach/hurd/rename.c: Likewise.
30524         * sysdeps/mach/hurd/rmdir.c: Likewise.
30525         * sysdeps/mach/hurd/seekdir.c: Likewise.
30526         * sysdeps/mach/hurd/setsid.c: Likewise.
30527         * sysdeps/posix/wait3.c: Likewise.
30528
30529         * All files with FSF copyright notices: Update copyright dates
30530         using scripts/update-copyrights.
30531         * intl/plural.c: Regenerated.
30532         * locale/programs/charmap-kw.h: Likewise.
30533         * locale/programs/locfile-kw.h: Likewise.
30534
30535 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
30536
30537         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
30538         four values.
30539
30540         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
30541         calculation loop and add branch prediction.
30542
30543         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
30544         check access beyond bounds of m1np.
30545
30546         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
30547         MPTWO.
30548         (__inv): Remove local variable MPTWO to use the global
30549         constant.
30550         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
30551         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
30552         variable MPTWO.
30553         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
30554         MP3HALFS static const.
30555
30556 2013-01-01  David S. Miller  <davem@davemloft.net>
30557
30558         * po/ca.po: Update from translation team.
30559
30560 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
30561
30562         * scripts/update-copyrights: New file.
30563         * Makeconfig: Reformat copyright notice.
30564         * ctype/ctype.h: Likewise.
30565         * debug/swprintf_chk.c: Likewise.
30566         * elf/dl-cache.c: Likewise.
30567         * elf/dl-debug.c: Likewise.
30568         * elf/dl-object.c: Likewise.
30569         * grp/initgroups.c: Likewise.
30570         * hurd/Makefile: Likewise.
30571         * hurd/hurd/signal.h: Likewise.
30572         * hurd/hurdfault.c: Likewise.
30573         * hurd/hurdioctl.c: Likewise.
30574         * hurd/hurdlookup.c: Likewise.
30575         * hurd/intr-msg.c: Likewise.
30576         * iconv/gconv_open.c: Likewise.
30577         * libio/swprintf.c: Likewise.
30578         * locale/lc-ctype.c: Likewise.
30579         * locale/nl_langinfo.c: Likewise.
30580         * mach/Machrules: Likewise.
30581         * mach/Makefile: Likewise.
30582         * malloc/obstack.h: Likewise.
30583         * manual/Makefile: Likewise.
30584         * manual/tsort.awk: Likewise.
30585         * misc/bits/stab.def: Likewise.
30586         * nis/nis_print_group_entry.c: Likewise.
30587         * nis/nis_table.c: Likewise.
30588         * nis/nss_compat/compat-pwd.c: Likewise.
30589         * nis/nss_compat/compat-spwd.c: Likewise.
30590         * po/Makefile: Likewise.
30591         * posix/fnmatch.c: Likewise.
30592         * posix/regex.h: Likewise.
30593         * resolv/Makefile: Likewise.
30594         * resolv/nss_dns/dns-network.c: Likewise.
30595         * resolv/res_hconf.c: Likewise.
30596         * scripts/gen-sorted.awk: Likewise.
30597         * soft-fp/soft-fp.h: Likewise.
30598         * stdio-common/printf.h: Likewise.
30599         * stdlib/monetary.h: Likewise.
30600         * stdlib/random.c: Likewise.
30601         * stdlib/random_r.c: Likewise.
30602         * sysdeps/generic/Makefile: Likewise.
30603         * sysdeps/gnu/Makefile: Likewise.
30604         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
30605         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
30606         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
30607         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
30608         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
30609         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
30610         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
30611         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
30612         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
30613         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
30614         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
30615         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
30616         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
30617         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
30618         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
30619         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
30620         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
30621         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
30622         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
30623         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
30624         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
30625         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
30626         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
30627         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
30628         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
30629         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
30630         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
30631         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
30632         * sysdeps/mach/hurd/errnos.awk: Likewise.
30633         * sysdeps/mach/hurd/fork.c: Likewise.
30634         * sysdeps/mach/hurd/getcwd.c: Likewise.
30635         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
30636         * sysdeps/mach/hurd/mmap.c: Likewise.
30637         * sysdeps/mach/hurd/utimes.c: Likewise.
30638         * sysdeps/mach/hurd/xmknod.c: Likewise.
30639         * sysdeps/posix/profil.c: Likewise.
30640         * sysdeps/posix/readdir_r.c: Likewise.
30641         * sysdeps/powerpc/bits/mathdef.h: Likewise.
30642         * sysdeps/powerpc/bits/setjmp.h: Likewise.
30643         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
30644         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
30645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
30646         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
30647         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
30648         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
30649         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
30650         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
30651         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
30652         * sysdeps/pthread/lio_listio.c: Likewise.
30653         * sysdeps/sparc/dl-procinfo.h: Likewise.
30654         * sysdeps/unix/i386/sysdep.S: Likewise.
30655         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
30656         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
30657         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
30658         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
30659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
30660         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
30661         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
30662         * sysdeps/unix/sysv/linux/speed.c: Likewise.
30663         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
30664         * sysdeps/wordsize-32/divdi3.c: Likewise.
30665         * time/sys/time.h: Likewise.
30666         * wcsmbs/Makefile: Likewise.
30667
30668 2013-01-01  David S. Miller  <davem@davemloft.net>
30669
30670         * po/fr.po: Update from translation team.
30671
30672         * catgets/gencat.c: Update copyright year.
30673         * csu/version.c: Likewise.
30674         * debug/catchsegv.sh: Likewise.
30675         * debug/pcprofiledump.c: Likewise.
30676         * debug/xtrace.sh: Likewise.
30677         * elf/ldconfig.c: Likewise.
30678         * elf/ldd.bash.in: Likewise.
30679         * elf/pldd.c: Likewise.
30680         * elf/sotruss.ksh: Likewise.
30681         * elf/sprof.c: Likewise.
30682         * iconv/iconv_prog.c: Likewise.
30683         * iconv/iconvconfig.c: Likewise.
30684         * locale/programs/locale.c: Likewise.
30685         * locale/programs/localedef.c: Likewise.
30686         * login/programs/pt_chown.c: Likewise.
30687         * malloc/memusage.sh: Likewise.
30688         * malloc/memusagestat.c: Likewise.
30689         * malloc/mtrace.pl: Likewise.
30690         * nscd/nscd.c: Likewise.
30691         * nss/getent.c: Likewise.
30692         * nss/makedb.c: Likewise.
30693         * posix/getconf.c: Likewise.
30694
30695 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
30696
30697         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
30698         numbers.
30699
30700 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
30701
30702         * math/bits/mathcalls.h (modf): Use __nonnull.
30703
30704 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
30705
30706         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
30707         (split): Use macro CN instead of the bare value.
30708         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
30709         could be used.
30710         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
30711         instead of the bare value.
30712         (power1): Likewise.
30713
30714 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
30715
30716         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
30717         __ATAN_TWOM.
30718         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
30719
30720         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
30721         their values.
30722         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
30723         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
30724         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
30725         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
30726
30727 2012-12-28  Andreas Jaeger  <aj@suse.de>
30728
30729         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
30730         values are from Linux 3.7.
30731
30732         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
30733         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
30734
30735 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
30736
30737         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
30738         TRUE case.
30739
30740         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
30741         (norm): Likewise.
30742         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
30743         variables with preprocessor constants.
30744         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
30745         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
30746         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
30747
30748 2012-12-27  Bruno Haible  <bruno@clisp.org>
30749
30750         [BZ #14317]
30751         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
30752         only if needed.
30753
30754 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
30755
30756         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
30757         and use variable directly.
30758         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
30759
30760         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
30761         MPONE.
30762         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
30763         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
30764         variable MPONE.
30765         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
30766         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
30767         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
30768         include directive.  Remove local variable MPONE.
30769         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
30770         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
30771         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
30772
30773 2012-12-25  David S. Miller  <davem@davemloft.net>
30774
30775         * version.h (RELEASE): Set to "development".
30776         (VERSION): Set to "2.17.90".
30777         * NEWS: Add 2.18 section.
30778
30779 2012-12-21  David S. Miller  <davem@davemloft.net>
30780
30781         * po/hr.po: Update from translation team.
30782
30783 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30784
30785         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
30786
30787 2012-12-19  Steve Ellcey  <sellcey@mips.com>
30788
30789         * NEWS:  Mention new memcpy for MIPS.
30790
30791 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
30792
30793         * manual/contrib.texi (Contributors): Spelling correction.
30794
30795 2012-12-15  David S. Miller  <davem@davemloft.net>
30796
30797         * po/ru.po: Update from translation team.
30798
30799 2012-12-13  David S. Miller  <davem@davemloft.net>
30800
30801         * NEWS: Mention IFUNC testsuite enhancements.
30802
30803         * po/pl.po: Update from translation team.
30804         * po/bg.po: Likewise.
30805
30806         * manual/contrib.texi (Contributors): Update entries for Hongjiu
30807         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
30808
30809 2012-12-11  David S. Miller  <davem@davemloft.net>
30810
30811         * po/sv.po: Update from translation team.
30812
30813         * po/vi.po: Update from translation team.
30814
30815         * po/cs.po: Update from translation team.
30816
30817         * po/de.po: Update from translation team.
30818         * po/eo.po: Likewise.
30819         * po/nl.po: Likewise.
30820
30821 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
30822
30823         [BZ #14246]
30824         * manual/argp.texi (Argp Helper Functions): Move node to follow
30825         Argp Parsing State.
30826
30827         [BZ #14872]
30828         * manual/conf.texi (Limits on File System Capacity): Mention if
30829         terminating null is included in the max size.
30830
30831 2012-12-10  Andreas Jaeger  <aj@suse.de>
30832
30833         * po/cs.po: Update from translation team.
30834
30835 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
30836
30837         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
30838         void pointer and cast to uintptr_t.
30839         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
30840         path.
30841         * sysdeps/s390/s390-64/memcpy.S: Likewise.
30842         * sysdeps/s390/s390-64/memset.S: Likewise.
30843
30844 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
30845
30846         [BZ #14833]
30847         * menual/message.texi (Message Translation): Fix typos.
30848         (Helper programs for gettext): Likewise.
30849
30850 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
30851
30852         [BZ #14898]
30853         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
30854         Change to -1.
30855
30856 2012-12-07  David S. Miller  <davem@davemloft.net>
30857
30858         * po/libc.pot: Update.
30859
30860 2012-12-07  Richard Henderson  <rth@redhat.com>
30861
30862         [BZ #10114]
30863         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
30864         normal/normal case to before the switch.
30865         (_FP_DIV): Likewise.
30866
30867 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
30868             Mike Frysinger  <vapier@gentoo.org>
30869
30870         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
30871         check for __NR_fadvise64_64.
30872
30873 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
30874
30875         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
30876         0, not just to plain "0" as a statement.
30877         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
30878         with cw.
30879
30880 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
30881
30882         * NEWS: Use sourceware.org in Bugzilla URL.
30883
30884 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
30885
30886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
30887         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
30888
30889         * stdio-common/tst-put-error.c (do_test): Add newline to the
30890         padded test to ensure flush.
30891
30892 2012-12-05  Jeff Law  <law@redhat.com>
30893
30894         * sunrpc/etc.rpc (fedfs_admin): Add entry.
30895
30896 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
30897
30898         * README: Don't refer to ports add-on as distributed separately.
30899         Mention AArch64 in list of systems supported in the ports add-on.
30900
30901         * LICENSES: Add more non-FSF copyright and license notices.
30902
30903         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
30904         ((unused)).
30905
30906         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
30907
30908         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
30909         10000 as width of padded output.
30910
30911 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
30912
30913         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
30914
30915         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
30916         variable LX with __attribute__ ((unused)).
30917         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
30918         Likewise.
30919         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
30920         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
30921         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
30922         with __attribute__ ((unused)).
30923
30924 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
30925
30926         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
30927
30928 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
30929
30930         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
30931         (CFLAGS-nldbl-acos.c): New variable.
30932         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
30933         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
30934         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
30935         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
30936         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
30937         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
30938         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
30939         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
30940         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
30941         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
30942         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
30943         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
30944         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
30945         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
30946         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
30947         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
30948         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
30949         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
30950         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
30951         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
30952         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
30953         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
30954         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
30955         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
30956         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
30957         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
30958         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
30959         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
30960         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
30961         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
30962         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
30963         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
30964         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
30965         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
30966         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
30967         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
30968         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
30969         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
30970         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
30971         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
30972         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
30973         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
30974         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
30975         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
30976         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
30977         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
30978         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
30979         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
30980         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
30981         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
30982         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
30983         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
30984         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
30985         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
30986         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
30987         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
30988         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
30989         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
30990         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
30991         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
30992         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
30993         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
30994         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
30995         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
30996         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
30997         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
30998         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
30999         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
31000         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
31001         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
31002         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
31003         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
31004         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
31005         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
31006         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
31007         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
31008         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
31009         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
31010         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
31011         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
31012         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
31013         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
31014         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
31015         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
31016         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
31017         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
31018         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
31019         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
31020         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
31021         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
31022         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
31023         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
31024         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
31025         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
31026         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
31027         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
31028         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
31029
31030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
31031         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
31032
31033         [BZ #14914]
31034         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
31035         whole low double instead of just low 47 bits when splitting values
31036         into two parts.
31037
31038 2012-12-03  Allan McRae  <allan@archlinux.org>
31039
31040         * manual/stdio.texi (Predefined Printf Handlers): Remove
31041         @hsep and @vsep usage.
31042
31043 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
31044
31045         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
31046         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
31047
31048 2012-12-03  Jeff Law  <law@redhat.com>
31049
31050         * time/sys/time.h (settimeofday): Do not mark TV argument
31051         as __nonnull.
31052
31053 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
31054
31055         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
31056         when currently writing and seek to current position when not.
31057         * libio/Makefile (tests): Remove bug-fclose1.
31058         * libio/bug-fclose1.c: Delete.
31059
31060 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
31061
31062         * manual/arith.texi (feenableexcept): Fix typo.
31063         (fedisableexcept): Likewise.
31064
31065 2012-11-30  Roland McGrath  <roland@hack.frob.com>
31066
31067         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
31068         second, differently-typed declaration, rather than a cast.
31069
31070 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
31071
31072         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
31073         * include/rpc/svc.h: ... here.
31074
31075 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
31076
31077         [BZ #13013]
31078         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
31079         depending n and resplen2 to catch cases where answer
31080         equals answerp2.
31081
31082 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
31083
31084         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
31085         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
31086
31087 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
31088
31089         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
31090
31091 2012-11-29  Roland McGrath  <roland@hack.frob.com>
31092
31093         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
31094
31095 2012-11-28  Jeff Law  <law@redhat.com>
31096
31097         [BZ #13761]
31098         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
31099         dataset_temporary.  Track alloca usage into alloca_used.
31100         If dataset is large allocate and release it via malloc/free.
31101
31102 2012-06-04  Florian Weimer  <fweimer@redhat.com>
31103
31104         [BZ #14197]
31105         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
31106
31107 2012-11-28  David S. Miller  <davem@davemloft.net>
31108
31109         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31110
31111 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
31112
31113         [BZ #14803]
31114         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
31115         of pi/2 rounded to nearest to 64 bits.
31116         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
31117         nearest to 64 bits.
31118         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
31119         bits.
31120
31121 2012-11-28  Jeff Law <law@redhat.com>
31122             Martin Osvald <mosvald@redhat.com>
31123
31124         [BZ #14889]
31125         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
31126         * sunrpc/svc.c: Include time.h.
31127         (__svc_accept_failed): New function.
31128         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
31129         any reason other than EINTR, call __svc_accept_failed.
31130         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
31131         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
31132
31133 2012-11-28  Andreas Schwab  <schwab@suse.de>
31134
31135         * scripts/abilist.awk: Also handle indirect functions in .opd
31136         section.
31137
31138 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
31139
31140         [BZ #13881]
31141         * sysdeps/x86/fpu/powl_helper.c: New file.
31142         * sysdeps/x86/fpu/Makefile: Likewise.
31143         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
31144         (p3): New object.
31145         (__ieee754_powl): Use __powl_helper for finite arguments except
31146         integer exponents below 8.
31147         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
31148         (p3): New object.
31149         (__ieee754_powl): Use __powl_helper for finite arguments except
31150         integer exponents below 8.
31151         * math/libm-test.inc (pow_test): Add more tests and enable some
31152         previously disabled tests.
31153         * sysdeps/i386/fpu/libm-test-ulps: Update.
31154         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31155
31156 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
31157             Carlos O'Donell  <carlos_odonell@mentor.com>
31158
31159         * nss/makedb.c (is_prime): Assert that input is odd and greater
31160         than 4.  Note that fact in a comment too.
31161         (next_prime): Add 4 to input.
31162
31163 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
31164
31165         [BZ #11741]
31166         * libio/Makefile (tests): Add test case tst-fwrite-error.
31167         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
31168         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
31169         * libio/tst-fwrite-error.c: New test case.
31170
31171 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
31172
31173         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
31174         before casting to void *.
31175         * include/libc-internal.h (__pointer_type): New macro.
31176         (__integer_if_pointer_type_sub): Likewise.
31177         (__integer_if_pointer_type): Likewise.
31178         (cast_to_integer): Likewise.
31179         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
31180         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
31181         before casting to atomic64_t.
31182         (atomic_exchange_acq): Likewise.
31183         (__arch_exchange_and_add_body): Likewise.
31184         (__arch_add_body): Likewise.
31185         (atomic_add_negative): Likewise.
31186         (atomic_add_zero): Likewise.
31187
31188 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
31189
31190         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
31191         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
31192         (add_fdes): Likewise.
31193         (linear_search_fdes): Likewise.
31194         (binary_search_unencoded_fdes): Likewise.
31195
31196 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
31197
31198         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
31199
31200 2012-11-24  Adam Conrad  <adconrad@0c3.net>
31201
31202         * configure.in: Autodetect C++ header directories.
31203         * configure: Regenerated.
31204
31205 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
31206
31207         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
31208
31209 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
31210
31211         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31212
31213 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
31214
31215         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
31216         LDBL_MANT_DIG == 106]: Disable some tests.
31217         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
31218         Likewise.
31219         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
31220         Likewise.
31221
31222         [BZ #14871]
31223         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
31224         input for small inputs.  Return +/- pi/2 for large inputs.
31225         * math/libm-test.inc (atan_test): Add more tests.
31226
31227         * sysdeps/generic/unwind-dw2-fde-glibc.c
31228         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
31229         __attribute__ ((unused)).
31230
31231         [BZ #14645]
31232         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
31233         x * y if x and y are nonzero and z is zero.
31234
31235         [BZ #14811]
31236         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
31237         nonzero exponents with absolute value below 0x1p-117 to +/-
31238         0x1p-117.
31239
31240         [BZ #14869]
31241         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
31242         up arguments below 2**-450, not just those below 2**-500.
31243         * math/libm-test.inc (hypot_test): Add another test.
31244
31245         [BZ #14868]
31246         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
31247         Return a+b for ratio over 2**120, not 2**60.
31248         * math/libm-test.inc (hypot_test): Add another test.
31249
31250         * math/libm-test.inc (clog_test): Use
31251         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
31252         (clog10_test): Likewise.
31253
31254         [BZ #6778]
31255         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
31256
31257 2012-11-22  Andreas Schwab  <schwab@suse.de>
31258
31259         * sysdeps/i386/fpu/libm-test-ulps: Update.
31260
31261 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
31262
31263         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
31264         printf output with newline.
31265
31266 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
31267
31268         [BZ #14865]
31269         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
31270         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
31271         -z nodlopen, -z initfirst and -z execstack support.
31272         * configure: Regenerated.
31273
31274         * elf/elf.h (DF_1_NODIRECT): New macro.
31275         (DF_1_IGNMULDEF): Likewise.
31276         (DF_1_NOKSYMS): Likewise.
31277         (DF_1_NOHDR): Likewise.
31278         (DF_1_EDITED): Likewise.
31279         (DF_1_NORELOC): Likewise.
31280         (DF_1_SYMINTPOSE): Likewise.
31281         (DF_1_GLOBAUDIT): Likewise.
31282         (DF_1_SINGLETON): Likewise.
31283         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
31284         DT_1_SUPPORTED_MASK bits.
31285         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
31286
31287 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
31288
31289         * sysdeps/unix/make-syscalls.sh: Document prefixes.
31290
31291 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
31292
31293         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
31294         macro.
31295
31296         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
31297         (sendmmsg): Move declarations...
31298         * socket/sys/socket.h: ... here.
31299         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
31300         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
31301         include it from...
31302         * socket/recvmmsg.c: ... this new file.
31303         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
31304         (sendmmsg): Rename to __sendmmsg, create weak alias and make
31305         definition of __sendmmsg hidden.
31306         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
31307         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
31308         Move ENOSYS stub into and include it from...
31309         * socket/sendmmsg.c: ... this new file.
31310         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
31311         (sysdep_routines): Move recvmmsg and sendmmsg...
31312         * socket/Makefile (routines): ... here.
31313         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
31314         (GLIBC_PRIVATE): Add __sendmmsg.
31315         * include/sys/socket.h (__sendmmsg): Add declarations.
31316         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
31317         sendmmsg.
31318
31319 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
31320
31321         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
31322         variable I1 with __attribute__ ((unused)).
31323         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
31324
31325 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
31326
31327         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
31328         DUMMY variables with __attribute__ ((unused)).
31329
31330         * bits/byteswap.h: Include <bits/types.h>.
31331         (__bswap_64): Use __uint64_t instead of unsigned long long int.
31332
31333 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
31334
31335         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
31336         string_t.  Do not manually set errno.
31337         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
31338         length with __strnlen.  Make sure to both set errno and return it on
31339         failure.
31340
31341 2012-11-19  David S. Miller  <davem@davemloft.net>
31342
31343         With help from Joseph Myers.
31344         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
31345         very large arguments properly.
31346         * math/libm-test.inc (atan_test): New tests.
31347         (atan2_test): New tests.
31348         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31349         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31350
31351 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
31352
31353         [BZ #14856]
31354         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
31355         Define to 3.
31356
31357         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
31358         [POSIX] (EADDRNOTAVAIL): Likewise.
31359         [POSIX] (EAFNOSUPPORT): Likewise.
31360         [POSIX] (EALREADY): Likewise.
31361         [POSIX] (ECONNABORTED): Likewise.
31362         [POSIX] (ECONNREFUSED): Likewise.
31363         [POSIX] (ECONNRESET): Likewise.
31364         [POSIX] (EDESTADDRREQ): Likewise.
31365         [POSIX] (EDQUOT): Likewise.
31366         [POSIX] (EHOSTUNREACH): Likewise.
31367         [POSIX] (EIDRM): Likewise.
31368         [POSIX] (EISCONN): Likewise.
31369         [POSIX] (ELOOP): Likewise.
31370         [POSIX] (EMULTIHOP): Likewise.
31371         [POSIX] (ENETDOWN): Likewise.
31372         [POSIX] (ENETUNREACH): Likewise.
31373         [POSIX] (ENOBUFS): Likewise.
31374         [POSIX] (ENODATA): Likewise.
31375         [POSIX] (ENOLINK): Likewise.
31376         [POSIX] (ENOMSG): Likewise.
31377         [POSIX] (ENOPROTOOPT): Likewise.
31378         [POSIX] (ENOSR): Likewise.
31379         [POSIX] (ENOSTR): Likewise.
31380         [POSIX] (ENOTCONN): Likewise.
31381         [POSIX] (ENOTSOCK): Likewise.
31382         [POSIX] (EOPNOTSUPP): Likewise.
31383         [POSIX] (EOVERFLOW): Likewise.
31384         [POSIX] (EPROTO): Likewise.
31385         [POSIX] (EPROTONOSUPPORT): Likewise.
31386         [POSIX] (EPROTOTYPE): Likewise.
31387         [POSIX] (ESTALE): Likewise.
31388         [POSIX] (ETIME): Likewise.
31389         [POSIX] (ETXTBSY): Likewise.
31390         [POSIX] (EWOULDBLOCK): Likewise.
31391         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
31392         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
31393         [POSIX] (SEEK_CUR): Likewise.
31394         [POSIX] (SEEK_END): Likewise.
31395         [POSIX || UNIX98] (mode_t): Do not require.
31396         [POSIX] (off_t): Likewise.
31397         [POSIX] (pid_t): Likewise.
31398         [POSIX] (sys/stat.h): Do not allow header.
31399         [POSIX] (unistd.h): Likewise.
31400         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
31401         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
31402         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
31403         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
31404         require.
31405         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
31406         sigevent): Specify elements.
31407         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
31408         entry.
31409         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
31410         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
31411
31412         * conform/data/cpio.h-data [POSIX]: Disable whole file.
31413         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
31414         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
31415         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
31416         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
31417         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
31418         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
31419         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
31420         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
31421         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
31422         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
31423         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
31424         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
31425         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
31426         Likewise.
31427         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
31428         Likewise.
31429         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
31430         Likewise.
31431         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
31432         Likewise.
31433         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
31434         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
31435         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
31436         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
31437         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
31438         Specify lower bound on value.
31439         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
31440         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
31441         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
31442         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
31443         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
31444         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
31445         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
31446         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
31447         value.
31448         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
31449         as optional.
31450         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
31451         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
31452         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
31453         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
31454         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
31455         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
31456         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
31457         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
31458         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
31459         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
31460         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
31461         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
31462         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
31463         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
31464         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
31465         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
31466         entry.
31467         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
31468         optional.
31469         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
31470         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
31471         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
31472         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
31473         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
31474         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
31475         Likewise.
31476         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
31477         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
31478         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
31479         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
31480         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
31481         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
31482         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
31483         as optional.
31484         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
31485         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
31486         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
31487         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
31488         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
31489         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
31490         specify as optional.
31491         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
31492         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
31493         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
31494         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
31495         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
31496         [XPG3] (NL_LANGMAX): Likewise.
31497         [POSIX || XPG3] (NL_MSGMAX): Likewise.
31498         [POSIX || XPG3] (NL_NMAX): Likewise.
31499         [POSIX || XPG3] (NL_SETMAX): Likewise.
31500         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
31501         [XPG3] (NZERO): Likewise.
31502         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
31503         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
31504         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
31505         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
31506         (REG_ERANGE): Expect.
31507         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
31508         optional-constant.
31509         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
31510         Use (void) in prototype.
31511         [POSIX] (*_t): Allow.
31512         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
31513         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
31514         (WRDE_BADVAL): Expect.
31515
31516         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
31517         expect.
31518         [XPG3 || XPG4] (O_RSYNC): Likewise.
31519         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
31520         Likewise.
31521         [XPG3 || XPG4] (pthread_sigmask): Likewise.
31522         [XPG3 || XPG4] (sigqueue): Likewise.
31523         [XPG3 || XPG4] (sigtimedwait): Likewise.
31524         [XPG3 || XPG4] (sigwaitinfo): Likewise.
31525         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
31526         [XPG3 || XPG4] (vsnprintf): Likewise.
31527         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
31528         Likewise.
31529         [XPG3 || XPG4] (blksize_t): Likewise.
31530         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
31531         Likewise.
31532         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
31533         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
31534         [XPG3 || XPG4] (struct itimerspec): Likewise.
31535         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
31536         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
31537         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
31538         [XPG3 || XPG4] (clockid_t): Likewise.
31539         [XPG3 || XPG4] (timer_t): Likewise.
31540         [XPG3 || XPG4] (clock_getres): Likewise.
31541         [XPG3 || XPG4] (clock_gettime): Likewise.
31542         [XPG3 || XPG4] (clock_settime): Likewise.
31543         [XPG3 || XPG4] (nanosleep): Likewise.
31544         [XPG3 || XPG4] (timer_create): Likewise.
31545         [XPG3 || XPG4] (timer_delete): Likewise.
31546         [XPG3 || XPG4] (timer_gettime): Likewise.
31547         [XPG3 || XPG4] (timer_getoverrun): Likewise.
31548         [XPG3 || XPG4] (timer_settime): Likewise.
31549         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
31550         [XPG3 || XPG4] (getlogin_r): Likewise.
31551         [XPG3 || XPG4] (pread): Likewise.
31552         [XPG3 || XPG4] (pthread_atfork): Likewise.
31553         [XPG3 || XPG4] (pwrite): Likewise.
31554
31555         [BZ #14835]
31556         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
31557         <bits/siginfo.h>.
31558
31559 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
31560
31561         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
31562         finalizing MALLSTREAM.
31563
31564         * sysdeps/mach/hurd/syncfs.c: New file.
31565
31566 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
31567
31568         [BZ #14719]
31569         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
31570         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
31571         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
31572         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
31573         (_nss_dns_gethostbyname4_r): Likewise.
31574         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
31575         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
31576
31577 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
31578
31579         [BZ #13763]
31580         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
31581
31582 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
31583
31584         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
31585         * elf/cache.c (print_entry): Print ",AArch64" for
31586         FLAG_AARCH64_LIB64
31587
31588         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
31589         * elf/cache.c (print_entry): Print ",hard-float" for
31590         FLAG_ARM_LIBHF.
31591
31592 2012-11-18  David S. Miller  <davem@davemloft.net>
31593
31594         With help from Joseph Myers.
31595         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
31596         cutoff to 2**-13.
31597         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
31598         cutoff to 2**-25.
31599         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
31600         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
31601         small.
31602         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
31603         * math/libm-test.inc (y0_test): New tests.
31604         (y1_test): New tests.
31605         * sysdeps/i386/fpu/libm-test-ulps: Update.
31606         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
31607         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31608
31609 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
31610
31611         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
31612         64-bit targets.
31613         * configure: Regenerated.
31614
31615 2012-11-17  David S. Miller  <davem@davemloft.net>
31616
31617         [BZ #14811]
31618         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
31619         nonzero exponents with absolute value below 0x1p-128 to +/-
31620         0x1p-128.
31621
31622 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
31623
31624         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
31625
31626         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
31627
31628         * posix/getconf-speclist.c: New file.
31629         * posix/posix-envs.def: Likewise.
31630         * posix/confstr.c (START_ENV_GROUP): New macro.
31631         (END_ENV_GROUP): Likewise.
31632         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
31633         (KNOWN_PRESENT_ENV_STRING): Likewise.
31634         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
31635         (UNKNOWN_ENVIRONMENT): Likewise.
31636         (confstr): Include posix-envs.def instead of handling
31637         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
31638         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
31639         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
31640         (END_ENV_GROUP): Likewise.
31641         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
31642         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
31643         (UNKNOWN_ENVIRONMENT): Likewise.
31644         (__sysconf): Include posix-envs.def instead of handling associated
31645         cases directly here.
31646         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
31647         preprocessing getconf-speclist.c rather than running getconf or
31648         generating empty file.
31649
31650 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
31651
31652         * scripts/check-local-headers.sh: Ignore 'mach' headers.
31653
31654 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
31655
31656         [BZ #14672]
31657         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
31658
31659 2012-11-16  David S. Miller  <davem@davemloft.net>
31660
31661         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
31662         smaller than LDBL_EPSILON/2.0L, just return xm1.
31663
31664 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
31665
31666         * elf/tst-array1.c (init): Set constructor priority to 1000.
31667         (fini): Set destructor priority to 1000.
31668         * elf/tst-array2dep.c: Likewise.
31669
31670 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
31671
31672         [BZ #11741]
31673         * libio/fileops.c (_IO_new_file_write): Correctly return error.
31674         (_IO_new_file_xsputn): Also return EOF if none of the input
31675         data was written when overflow failed.
31676         * libio/iopadn.c (_IO_padn): Likewise.
31677         * libio/iowpadn.c (_IO_wpadn): Likewise.
31678         * stdio-common/tst-put-error.c: Add copyright notice.
31679         (do_test): Add case for printing padded string.
31680         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
31681         _IO_padn returned error.
31682         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
31683         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
31684         return EOF.
31685
31686 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
31687
31688         * libio/libioP.h: Add comment note that the references to C++
31689         bits are now obsolete.
31690
31691 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
31692
31693         * math/libm-test.inc (check_complex): Use asprintf.
31694
31695 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
31696
31697         * debug/pcprofiledump.c (print_version): Update copyright year.
31698         * malloc/memusagestat.c (print_version): Likewise.
31699
31700 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
31701
31702         [BZ #14831]
31703         * elf/Makefile (tests): Add tst-audit8.
31704         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
31705         ($(objpfx)tst-audit8.out): New target.
31706         (tst-audit8-ENV): New variable.
31707         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
31708         audit if l_reloc_result is NULL.
31709         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
31710         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
31711         * elf/tst-audit8.c: New file.
31712
31713 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
31714
31715         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
31716         * misc/Makefile (CFLAGS-select.c): Define.
31717         * posix/Makefile (CFLAGS-pause.c): Define.
31718
31719 2012-11-13  David S. Miller  <davem@davemloft.net>
31720
31721         * crypt/Makefile: Move test targets after toplevel Rules
31722         inclusion.  Grab any necessary sysdep routines when linking.
31723         * crypt/md5.c (md5_process_block): Remove define, we will always
31724         name it __md5_process_block.
31725         (md5_finish_ctx): Update md5_process_block call.
31726         (md5_stream): Likewise.
31727         (md5_process_bytes): Likewise.
31728         (md5_process_block): Rename to __md5_process_block and move to ...
31729         * crypt/md5-block.c: ... here.
31730         * crypt/sha256.c (sha256_process_block): Move to ...
31731         * crypt/sha256-block.c: ... here.
31732         * crypt/sha512.c (sha512_process_block): Move to ...
31733         * crypt/sha512-block.c: ... here.
31734         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
31735         path.
31736         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
31737         * sysdeps/sparc/sparc64/multiarch/Makefile
31738         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
31739         crypt subdir.
31740         (localedef-aux): Add md5 crypto assembler when in locale subdir.
31741         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
31742         multiarch changes.
31743         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
31744         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
31745         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
31746         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
31747         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
31748         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
31749         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
31750         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
31751         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
31752         file.
31753         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
31754         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
31755         file.
31756         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
31757
31758 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
31759
31760         * timezone/tzselect.ksh: Update from tzcode git revision
31761         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
31762         * timezone/zdump.c: Likewise.
31763         * timezone/zic.c: Likewise.
31764         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
31765         in TZVERSION setting, not $(PKGVERSION).
31766         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
31767         REPORT_BUGS_TO settings.
31768
31769         [BZ #14838]
31770         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
31771         macro.
31772
31773 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
31774
31775         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
31776         detection to immediately after _FP_ROUND().
31777         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
31778         bits are 0.
31779
31780 2012-11-11  David S. Miller  <davem@davemloft.net>
31781
31782         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
31783         inttypes.h
31784         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
31785         __close rather than their public counterparts.
31786
31787 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
31788
31789         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
31790         file.
31791         [UNIX98] (sem_timedwait): Do not expect.
31792         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
31793         [XPG4 || UNIX98] (sockatmark): Do not expect.
31794         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
31795         (clock_getcpuclockid): Do not expect.
31796         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
31797         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
31798         Do not expect.
31799         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
31800         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
31801         [UNIX98] (vwscanf): Likewise.
31802         [UNIX98] (vswscanf): Likewise.
31803
31804 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
31805
31806         * timezone/version.h: Remove file.
31807         * timezone/README: Do not refer to version.h.
31808         * timezone/Makefile ($(objpfx)zic.o): New dependency on
31809         $(objpfx)version.h.
31810         ($(objpfx)zdump.o): Likewise.
31811         ($(objpfx)version.h): New target.
31812
31813         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
31814         2012i.
31815         * timezone/README: Don't mention modification to tzselect.ksh.
31816         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
31817         work on unmodified tzselect.ksh.  Substitute version numbers in
31818         tzselect.ksh.
31819
31820         * Makefile (format-me): Remove.
31821         (INSTALL): Adjust indentation.  Use commands directly instead of
31822         using $(format-me).
31823
31824         * aclocal.m4 (ACX_PKGVERSION): New macro.
31825         (ACX_BUGURL): Likewise.
31826         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
31827         (PKGVERSION): New AC_DEFINE_UNQUOTED.
31828         (REPORT_BUGS_TO): Likewise.
31829         * configure: Regenerated.
31830         * config.h.in (PKGVERSION): New macro.
31831         (REPORT_BUGS_TO): Likewise.
31832         * config.make.in (PKGVERSION): New variable.
31833         (PKGVERSION_TEXI): Likewise.
31834         (REPORT_BUGS_TO): Likewise.
31835         (REPORT_BUGS_TEXI): Likewise.
31836         * Makefile (format-me): Use -I$(common-objpfx)manual.
31837         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
31838         ($(common-objpfx)manual/%): New target.
31839         (manual/%): Remove target.
31840         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
31841         (print_version): Use PKGVERSION.
31842         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
31843         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
31844         and REPORT_BUGS_TO.
31845         ($(objpfx)xtrace): Likewise.
31846         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
31847         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
31848         (print_version): Use PKGVERSION.
31849         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
31850         (do_version): Use PKGVERSION.
31851         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
31852         REPORT_BUGS_TO.
31853         (common-ldd-rewrite): Likewise.
31854         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
31855         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
31856         (print_version): Use PKGVERSION.
31857         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
31858         * elf/pldd.c (argp_program_bug_address): Remove variable.
31859         (more_help): New function.
31860         (argp): Use more_help.
31861         (print_version): Use PKGVERSION.
31862         * elf/sln.c (main): Use PKGVERSION.
31863         (usage): Use REPORT_BUGS_TO.
31864         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
31865         (top level): Use PKGVERSION.
31866         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
31867         (print_version): Use PKGVERSION.
31868         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
31869         (print_version): Use PKGVERSION.
31870         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
31871         (print_version): Use PKGVERSION.
31872         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
31873         (print_version): Use PKGVERSION.
31874         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
31875         (print_version): Use PKGVERSION.
31876         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
31877         (print_version): Use PKGVERSION.
31878         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
31879         and BUGURL.
31880         ($(objpfx)memusage): Likewise.
31881         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
31882         (do_version): Use PKGVERSION.
31883         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
31884         (print_version): Use PKGVERSION.
31885         * malloc/mtrace.pl ($PACKAGE): Remove variable.
31886         ($PKGVERSION): New variable.
31887         ($REPORT_BUGS_TO): Likewise.
31888         (usage): Use $REPORT_BUGS_TO.
31889         (top level): Use $PKGVERSION.
31890         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
31891         ($(objpfx)pkgvers.texi): New rule.
31892         ($(objpfx)stamp-pkgvers): Likewise.
31893         * manual/install.texi: Include pkgvers.texi.
31894         (--with-pkgversion): Document new configure option.
31895         (--with-bugurl): Likewise.
31896         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
31897         than necessarily for this particular distribution.  Use
31898         REPORT_BUGS_TO for where to report bugs.
31899         * INSTALL: Regenerated.
31900         * manual/libc.texinfo: Include pkgvers.texi.
31901         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
31902         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
31903         (print_version): Use PKGVERSION.
31904         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
31905         (print_version): Use PKGVERSION.
31906         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
31907         (print_version): Use PKGVERSION.
31908         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
31909         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
31910         macro.
31911         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
31912         (print_version): Use PKGVERSION.
31913         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
31914         (print_version): Use PKGVERSION.
31915         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
31916         and PKGVERSION.
31917
31918         * timezone/checktab.awk: Update from tzcode 2012i.
31919         * timezone/ialloc.c: Likewise.
31920         * timezone/private.h: Likewise.
31921         * timezone/scheck.c: Likewise.
31922         * timezone/tzfile.h: Likewise.
31923         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
31924         (TZVERSION): Hardcode tzcode version number.
31925         * timezone/zdump.c: Update from tzcode 2012i.
31926         * timezone/zic.c: Likewise.
31927         * timezone/version.h: New file.
31928         * timezone/README: Describe version.h.  Update upstream location.
31929
31930         [BZ #14824]
31931         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
31932         (mktemp): Enable declaration.
31933         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
31934         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
31935         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
31936         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
31937         Likewise.
31938         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
31939         Likewise.
31940         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
31941         Likewise.
31942         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
31943         Likewise.
31944         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
31945         Likewise.
31946         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
31947         Likewise.
31948
31949         [BZ #14821]
31950         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
31951         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
31952         for copies of such integer values.
31953         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
31954         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
31955
31956 2012-11-09  Andreas Jaeger  <aj@suse.de>
31957
31958         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
31959         definitions and declarations that are provided by
31960         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
31961
31962 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31963
31964         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
31965         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
31966         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
31967         definition.
31968
31969 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
31970
31971         * elf/elf.h: Update comment before AArch64 relocations.
31972
31973 2012-11-07  David S. Miller  <davem@davemloft.net>
31974
31975         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
31976         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
31977         (__start_context): Declare.
31978         (__makecontext_ret): Delete.
31979         (__makecontext): Hook up __start_context instead of
31980         __makecontext_ret.
31981         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
31982         (sysdep_routines): Add __start_context when in stdlib.
31983
31984 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
31985
31986         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
31987         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
31988         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
31989         hardcoded "nm".
31990         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
31991         (READELF): New variable.  Use it instead of hardcoded "readelf".
31992
31993 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
31994
31995         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
31996         * sysdeps/x86/Makefile: Here.
31997         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
31998         * sysdeps/x86/tst-xmmymm.sh: This.
31999
32000 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
32001
32002         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
32003         expectations.
32004         [UNIX98] (pthread_barrier_t): Do not expect.
32005         [UNIX98] (pthread_barrierattr_t): Likewise.
32006         [UNIX98] (pthread_spinlock_t): Likewise.
32007         [UNIX98] (pthread_barrier_destroy): Likewise.
32008         [UNIX98] (pthread_barrier_init): Likewise.
32009         [UNIX98] (pthread_barrier_wait): Likewise.
32010         [UNIX98] (pthread_barrierattr_destroy): Likewise.
32011         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
32012         [UNIX98] (pthread_barrierattr_init): Likewise.
32013         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
32014         [UNIX98] (pthread_getcpuclockid): Likewise.
32015         [UNIX98] (pthread_mutex_timedlock): Likewise.
32016         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
32017         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
32018         [UNIX98] (pthread_sigmask): Likewise.
32019         [UNIX98] (pthread_spin_destroy): Likewise.
32020         [UNIX98] (pthread_spin_init): Likewise.
32021         [UNIX98] (pthread_spin_lock): Likewise.
32022         [UNIX98] (pthread_spin_trylock): Likewise.
32023         [UNIX98] (pthread_spin_unlock): Likewise.
32024         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
32025         Do not expect.
32026         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
32027         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
32028         [XPG3 || XPG4] (pthread_cond_t): Likewise.
32029         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
32030         [XPG3 || XPG4] (pthread_key_t): Likewise.
32031         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
32032         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
32033         [XPG3 || XPG4] (pthread_once_t): Likewise.
32034         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
32035         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
32036         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
32037         [XPG3 || XPG4] (pthread_t): Likewise.
32038
32039         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
32040         not expect.
32041         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
32042
32043         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
32044         Change function return type to int.
32045
32046         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
32047         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
32048         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
32049         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
32050         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
32051         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
32052         [!POSIX] (posix_madvise): Likewise.
32053         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
32054         && !UNIX98].
32055         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
32056         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
32057         (mode_t): Likewise.
32058         (posix_mem_offset): Likewise.
32059         (posix_typed_mem_get_info): Likewise.
32060         (posix_typed_mem_open): Likewise.
32061
32062         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
32063         Change condition to [XOPEN2K8].
32064
32065         * conform/conformtest.pl: Preprocess allow-header data with -x c
32066         instead of from stdin.
32067         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
32068         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
32069         [C99-based standards] (cerfc): Likewise.
32070         [C99-based standards] (cexp2): Likewise.
32071         [C99-based standards] (cexpm1): Likewise.
32072         [C99-based standards] (clog10): Likewise.
32073         [C99-based standards] (clog1p): Likewise.
32074         [C99-based standards] (clog2): Likewise.
32075         [C99-based standards] (clgamma): Likewise.
32076         [C99-based standards] (ctgamma): Likewise.
32077         [C99-based standards] (cerff): Likewise.
32078         [C99-based standards] (cerfcf): Likewise.
32079         [C99-based standards] (cexp2f): Likewise.
32080         [C99-based standards] (cexpm1f): Likewise.
32081         [C99-based standards] (clog10f): Likewise.
32082         [C99-based standards] (clog1pf): Likewise.
32083         [C99-based standards] (clog2f): Likewise.
32084         [C99-based standards] (clgammaf): Likewise.
32085         [C99-based standards] (ctgammaf): Likewise.
32086         [C99-based standards] (cerfl): Likewise.
32087         [C99-based standards] (cerfcl): Likewise.
32088         [C99-based standards] (cexp2l): Likewise.
32089         [C99-based standards] (cexpm1l): Likewise.
32090         [C99-based standards] (clog10l): Likewise.
32091         [C99-based standards] (clog1pl): Likewise.
32092         [C99-based standards] (clog2l): Likewise.
32093         [C99-based standards] (clgammal): Likewise.
32094         [C99-based standards] (ctgammal): Likewise.
32095         * conform/data/inttypes.h-data [C99-based standards]: Include
32096         stdint.h-data.  Remove all expectations for stdint.h contents.
32097         [C99-based standards] (PRI*): Do not allow.
32098         [C99-based standards] (SCN*): Likewise.
32099         [C99-based standards] (*_t): Likewise.
32100         [C99-based-standards] (PRId8): Expect macro.
32101         [C99-based-standards] (PRIi8): Likewise.
32102         [C99-based-standards] (PRIo8): Likewise.
32103         [C99-based-standards] (PRIu8): Likewise.
32104         [C99-based-standards] (PRIx8): Likewise.
32105         [C99-based-standards] (PRIX8): Likewise.
32106         [C99-based-standards] (SCNd8): Likewise.
32107         [C99-based-standards] (SCNi8): Likewise.
32108         [C99-based-standards] (SCNo8): Likewise.
32109         [C99-based-standards] (SCNu8): Likewise.
32110         [C99-based-standards] (SCNx8): Likewise.
32111         [C99-based-standards] (PRIdLEAST8): Likewise.
32112         [C99-based-standards] (PRIiLEAST8): Likewise.
32113         [C99-based-standards] (PRIoLEAST8): Likewise.
32114         [C99-based-standards] (PRIuLEAST8): Likewise.
32115         [C99-based-standards] (PRIxLEAST8): Likewise.
32116         [C99-based-standards] (PRIXLEAST8): Likewise.
32117         [C99-based-standards] (SCNdLEAST8): Likewise.
32118         [C99-based-standards] (SCNiLEAST8): Likewise.
32119         [C99-based-standards] (SCNoLEAST8): Likewise.
32120         [C99-based-standards] (SCNuLEAST8): Likewise.
32121         [C99-based-standards] (SCNxLEAST8): Likewise.
32122         [C99-based-standards] (PRIdFAST8): Likewise.
32123         [C99-based-standards] (PRIiFAST8): Likewise.
32124         [C99-based-standards] (PRIoFAST8): Likewise.
32125         [C99-based-standards] (PRIuFAST8): Likewise.
32126         [C99-based-standards] (PRIxFAST8): Likewise.
32127         [C99-based-standards] (PRIXFAST8): Likewise.
32128         [C99-based-standards] (SCNdFAST8): Likewise.
32129         [C99-based-standards] (SCNiFAST8): Likewise.
32130         [C99-based-standards] (SCNoFAST8): Likewise.
32131         [C99-based-standards] (SCNuFAST8): Likewise.
32132         [C99-based-standards] (SCNxFAST8): Likewise.
32133         [C99-based-standards] (PRId16): Likewise.
32134         [C99-based-standards] (PRIi16): Likewise.
32135         [C99-based-standards] (PRIo16): Likewise.
32136         [C99-based-standards] (PRIu16): Likewise.
32137         [C99-based-standards] (PRIx16): Likewise.
32138         [C99-based-standards] (PRIX16): Likewise.
32139         [C99-based-standards] (SCNd16): Likewise.
32140         [C99-based-standards] (SCNi16): Likewise.
32141         [C99-based-standards] (SCNo16): Likewise.
32142         [C99-based-standards] (SCNu16): Likewise.
32143         [C99-based-standards] (SCNx16): Likewise.
32144         [C99-based-standards] (PRIdLEAST16): Likewise.
32145         [C99-based-standards] (PRIiLEAST16): Likewise.
32146         [C99-based-standards] (PRIoLEAST16): Likewise.
32147         [C99-based-standards] (PRIuLEAST16): Likewise.
32148         [C99-based-standards] (PRIxLEAST16): Likewise.
32149         [C99-based-standards] (PRIXLEAST16): Likewise.
32150         [C99-based-standards] (SCNdLEAST16): Likewise.
32151         [C99-based-standards] (SCNiLEAST16): Likewise.
32152         [C99-based-standards] (SCNoLEAST16): Likewise.
32153         [C99-based-standards] (SCNuLEAST16): Likewise.
32154         [C99-based-standards] (SCNxLEAST16): Likewise.
32155         [C99-based-standards] (PRIdFAST16): Likewise.
32156         [C99-based-standards] (PRIiFAST16): Likewise.
32157         [C99-based-standards] (PRIoFAST16): Likewise.
32158         [C99-based-standards] (PRIuFAST16): Likewise.
32159         [C99-based-standards] (PRIxFAST16): Likewise.
32160         [C99-based-standards] (PRIXFAST16): Likewise.
32161         [C99-based-standards] (SCNdFAST16): Likewise.
32162         [C99-based-standards] (SCNiFAST16): Likewise.
32163         [C99-based-standards] (SCNoFAST16): Likewise.
32164         [C99-based-standards] (SCNuFAST16): Likewise.
32165         [C99-based-standards] (SCNxFAST16): Likewise.
32166         [C99-based-standards] (PRId32): Likewise.
32167         [C99-based-standards] (PRIi32): Likewise.
32168         [C99-based-standards] (PRIo32): Likewise.
32169         [C99-based-standards] (PRIu32): Likewise.
32170         [C99-based-standards] (PRIx32): Likewise.
32171         [C99-based-standards] (PRIX32): Likewise.
32172         [C99-based-standards] (SCNd32): Likewise.
32173         [C99-based-standards] (SCNi32): Likewise.
32174         [C99-based-standards] (SCNo32): Likewise.
32175         [C99-based-standards] (SCNu32): Likewise.
32176         [C99-based-standards] (SCNx32): Likewise.
32177         [C99-based-standards] (PRIdLEAST32): Likewise.
32178         [C99-based-standards] (PRIiLEAST32): Likewise.
32179         [C99-based-standards] (PRIoLEAST32): Likewise.
32180         [C99-based-standards] (PRIuLEAST32): Likewise.
32181         [C99-based-standards] (PRIxLEAST32): Likewise.
32182         [C99-based-standards] (PRIXLEAST32): Likewise.
32183         [C99-based-standards] (SCNdLEAST32): Likewise.
32184         [C99-based-standards] (SCNiLEAST32): Likewise.
32185         [C99-based-standards] (SCNoLEAST32): Likewise.
32186         [C99-based-standards] (SCNuLEAST32): Likewise.
32187         [C99-based-standards] (SCNxLEAST32): Likewise.
32188         [C99-based-standards] (PRIdFAST32): Likewise.
32189         [C99-based-standards] (PRIiFAST32): Likewise.
32190         [C99-based-standards] (PRIoFAST32): Likewise.
32191         [C99-based-standards] (PRIuFAST32): Likewise.
32192         [C99-based-standards] (PRIxFAST32): Likewise.
32193         [C99-based-standards] (PRIXFAST32): Likewise.
32194         [C99-based-standards] (SCNdFAST32): Likewise.
32195         [C99-based-standards] (SCNiFAST32): Likewise.
32196         [C99-based-standards] (SCNoFAST32): Likewise.
32197         [C99-based-standards] (SCNuFAST32): Likewise.
32198         [C99-based-standards] (SCNxFAST32): Likewise.
32199         [C99-based-standards] (PRId64): Likewise.
32200         [C99-based-standards] (PRIi64): Likewise.
32201         [C99-based-standards] (PRIo64): Likewise.
32202         [C99-based-standards] (PRIu64): Likewise.
32203         [C99-based-standards] (PRIx64): Likewise.
32204         [C99-based-standards] (PRIX64): Likewise.
32205         [C99-based-standards] (SCNd64): Likewise.
32206         [C99-based-standards] (SCNi64): Likewise.
32207         [C99-based-standards] (SCNo64): Likewise.
32208         [C99-based-standards] (SCNu64): Likewise.
32209         [C99-based-standards] (SCNx64): Likewise.
32210         [C99-based-standards] (PRIdLEAST64): Likewise.
32211         [C99-based-standards] (PRIiLEAST64): Likewise.
32212         [C99-based-standards] (PRIoLEAST64): Likewise.
32213         [C99-based-standards] (PRIuLEAST64): Likewise.
32214         [C99-based-standards] (PRIxLEAST64): Likewise.
32215         [C99-based-standards] (PRIXLEAST64): Likewise.
32216         [C99-based-standards] (SCNdLEAST64): Likewise.
32217         [C99-based-standards] (SCNiLEAST64): Likewise.
32218         [C99-based-standards] (SCNoLEAST64): Likewise.
32219         [C99-based-standards] (SCNuLEAST64): Likewise.
32220         [C99-based-standards] (SCNxLEAST64): Likewise.
32221         [C99-based-standards] (PRIdFAST64): Likewise.
32222         [C99-based-standards] (PRIiFAST64): Likewise.
32223         [C99-based-standards] (PRIoFAST64): Likewise.
32224         [C99-based-standards] (PRIuFAST64): Likewise.
32225         [C99-based-standards] (PRIxFAST64): Likewise.
32226         [C99-based-standards] (PRIXFAST64): Likewise.
32227         [C99-based-standards] (SCNdFAST64): Likewise.
32228         [C99-based-standards] (SCNiFAST64): Likewise.
32229         [C99-based-standards] (SCNoFAST64): Likewise.
32230         [C99-based-standards] (SCNuFAST64): Likewise.
32231         [C99-based-standards] (SCNxFAST64): Likewise.
32232         [C99-based-standards] (PRIdMAX): Likewise.
32233         [C99-based-standards] (PRIiMAX): Likewise.
32234         [C99-based-standards] (PRIoMAX): Likewise.
32235         [C99-based-standards] (PRIuMAX): Likewise.
32236         [C99-based-standards] (PRIxMAX): Likewise.
32237         [C99-based-standards] (PRIXMAX): Likewise.
32238         [C99-based-standards] (SCNdMAX): Likewise.
32239         [C99-based-standards] (SCNiMAX): Likewise.
32240         [C99-based-standards] (SCNoMAX): Likewise.
32241         [C99-based-standards] (SCNuMAX): Likewise.
32242         [C99-based-standards] (SCNxMAX): Likewise.
32243         [C99-based-standards] (PRIdPTR): Likewise.
32244         [C99-based-standards] (PRIiPTR): Likewise.
32245         [C99-based-standards] (PRIoPTR): Likewise.
32246         [C99-based-standards] (PRIuPTR): Likewise.
32247         [C99-based-standards] (PRIxPTR): Likewise.
32248         [C99-based-standards] (PRIXPTR): Likewise.
32249         [C99-based-standards] (SCNdPTR): Likewise.
32250         [C99-based-standards] (SCNiPTR): Likewise.
32251         [C99-based-standards] (SCNoPTR): Likewise.
32252         [C99-based-standards] (SCNuPTR): Likewise.
32253         [C99-based-standards] (SCNxPTR): Likewise.
32254         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
32255         allow.
32256         * conform/data/stdint.h-data: Update comments to clarify
32257         requirements.
32258         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
32259         type.
32260         [C99-based standards] (INT8_MAX): Likewise.
32261         [C99-based standards] (INT16_MIN): Likewise.
32262         [C99-based standards] (INT16_MAX): Likewise.
32263         [C99-based standards] (INT32_MIN): Likewise.
32264         [C99-based standards] (INT32_MAX): Likewise.
32265         [C99-based standards] (INT64_MIN): Likewise.
32266         [C99-based standards] (INT64_MAX): Likewise.
32267         [C99-based standards] (UINT8_MAX): Likewise.
32268         [C99-based standards] (UINT16_MAX): Likewise.
32269         [C99-based standards] (UINT32_MAX): Likewise.
32270         [C99-based standards] (UINT64_MAX): Likewise.
32271         [C99-based standards] (INT_LEAST8_MIN): Likewise.
32272         [C99-based standards] (INT_LEAST8_MAX): Likewise.
32273         [C99-based standards] (INT_LEAST16_MIN): Likewise.
32274         [C99-based standards] (INT_LEAST16_MAX): Likewise.
32275         [C99-based standards] (INT_LEAST32_MIN): Likewise.
32276         [C99-based standards] (INT_LEAST32_MAX): Likewise.
32277         [C99-based standards] (INT_LEAST64_MIN): Likewise.
32278         [C99-based standards] (INT_LEAST64_MAX): Likewise.
32279         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
32280         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
32281         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
32282         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
32283         [C99-based standards] (INT_FAST8_MIN): Likewise.
32284         [C99-based standards] (INT_FAST8_MAX): Likewise.
32285         [C99-based standards] (INT_FAST16_MIN): Likewise.
32286         [C99-based standards] (INT_FAST16_MAX): Likewise.
32287         [C99-based standards] (INT_FAST32_MIN): Likewise.
32288         [C99-based standards] (INT_FAST32_MAX): Likewise.
32289         [C99-based standards] (INT_FAST64_MIN): Likewise.
32290         [C99-based standards] (INT_FAST64_MAX): Likewise.
32291         [C99-based standards] (UINT_FAST8_MAX): Likewise.
32292         [C99-based standards] (UINT_FAST16_MAX): Likewise.
32293         [C99-based standards] (UINT_FAST32_MAX): Likewise.
32294         [C99-based standards] (UINT_FAST64_MAX): Likewise.
32295         [C99-based standards] (INTPTR_MIN): Likewise.
32296         [C99-based standards] (INTPTR_MAX): Likewise.
32297         [C99-based standards] (UINTPTR_MAX): Likewise.
32298         [C99-based standards] (INTMAX_MIN): Likewise.
32299         [C99-based standards] (INTMAX_MAX): Likewise.
32300         [C99-based standards] (UINTMAX_MAX): Likewise.
32301         [C99-based standards] (PTRDIFF_MIN): Likewise.
32302         [C99-based standards] (PTRDIFF_MAX): Likewise.
32303         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
32304         [C99-based standards] (SIZE_MAX): Likewise.
32305         [C99-based standards] (WCHAR_MAX): Likewise.
32306         [C99-based standards] (WINT_MAX): Likewise.
32307         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
32308         constraint on value.
32309         [C99-based standards] (WCHAR_MIN): Likewise.
32310         [C99-based standards] (WINT_MIN): Likewise.
32311         [C99-based standards] (*_t): Allow.
32312         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
32313         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
32314         Include math.h-data and complex.h-data.  Remove all expectations
32315         of math.h and complex.h contents.
32316         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
32317         at end of line.
32318         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
32319         (struct tm): Expect tag.
32320         [C99-based-standards] (wcstof): Expect function.
32321         [C99-based-standards] (wcstold): Likewise.
32322         [C99-based-standards] (wcstoll): Likewise.
32323         [C99-based-standards] (wcstoull): Likewise.
32324         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
32325         macro-int-constant.  Specify type.
32326         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
32327         constraint on value.
32328         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
32329         Specify type.
32330         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
32331         Specify value.
32332         [ISO C standards]: Do not allow headers.
32333         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
32334         wcs[abcdefghijklmnopqrstuvwxyz]*.
32335         [ISO C standards] (*_t): Do not allow.
32336         * conform/data/wctype.h-data [C99-based standards] (iswblank):
32337         Expect function.
32338         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
32339         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
32340         Specify type.
32341         [ISO C standards]: Do not allow headers.
32342         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
32343         is[abcdefghijklmnopqrstuvwxyz]*.
32344         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
32345         to[abcdefghijklmnopqrstuvwxyz]*.
32346         [ISO C standards] (*_t): Do not allow.
32347         * conform/data/stdalign.h-data: New file.
32348         * conform/data/stdbool.h-data: Likewise.
32349         * conform/data/stdnoreturn.h-data: Likewise.
32350
32351 2012-11-07  Roland McGrath  <roland@hack.frob.com>
32352
32353         [BZ #14815]
32354         * manual/filesys.texi (Directory Entries): Typo fix.
32355         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
32356
32357 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
32358
32359         * elf/elf.h (EM_AARCH64): New macro.
32360         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
32361         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
32362         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
32363         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
32364         (R_AARCH64_TLSDESC): Likewise.
32365         (NT_ARM_TLS): Likewise.
32366         (NT_ARM_HW_BREAK): Likewise.
32367         (NT_ARM_HW_WATCH): Likewise.
32368
32369 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
32370
32371         [BZ #14811]
32372         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
32373         (__ieee754_powl): Saturate nonzero exponents with absolute value
32374         below 0x1p-79 to +/- 0x1p-79.
32375         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
32376         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
32377         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
32378         nonzero exponents with absolute value below 0x1p-32 to +/-
32379         0x1p-32.
32380         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
32381         (__ieee754_powl): Saturate nonzero exponents with absolute value
32382         below 0x1p-79 to +/- 0x1p-79.
32383         * math/libm-test.inc (pow_test): Add more tests.
32384
32385 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32386
32387         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
32388         _dl_s390_cap_flags with kernel. Increase string length.
32389         (_dl_s390_platforms): Add z196 and zEC12.
32390
32391 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
32392
32393         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
32394         Change XOPEN21K to XOPEN2K.
32395
32396 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
32397
32398         * string/memmove.c: Use memcpy when possible.
32399
32400 2012-11-06  Andreas Jaeger  <aj@suse.de>
32401
32402         * po/eo.po: Update from translation team.
32403
32404 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
32405
32406         [BZ #14793]
32407         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
32408         exponent and small x and y exponents, scale x or y up.  Increase
32409         by 2 the exponent used in scaling up.
32410         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
32411         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
32412         * math/libm-test.inc (fma_test): Add more tests.
32413         (fma_test_towardzero): Likewise.
32414         (fma_test_downward): Likewise.
32415         (fma_test_upward): Likewise.
32416
32417 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
32418
32419         [BZ #14805]
32420         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
32421         fenv_t *.
32422
32423         [BZ #14801]
32424         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
32425         namespace for names of struct fields.
32426         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
32427         fenv_t fields.
32428         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
32429         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
32430
32431 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32432
32433         [BZ #3665]
32434         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
32435
32436 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
32437
32438         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
32439         PTR_DEMANGLE.
32440
32441         [BZ #5246]
32442         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
32443         PTR_DEMANGLE.
32444
32445 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
32446
32447         [BZ #14797]
32448         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
32449         definitely overflow as x * y not x * y + z.
32450         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
32451         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
32452         * math/libm-test.inc (fma_test): Add more tests.
32453         (fma_test_towardzero): Likewise.
32454         (fma_test_downward): Likewise.
32455         (fma_test_upward): Likewise.
32456
32457 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
32458
32459         [BZ #157]
32460
32461         * include/stub-tag.h: Remove file.
32462         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
32463         '#include' of it.
32464         * manual/maint.texi (Porting): Don't reference it.
32465         * Makerules ($(objpfx)stubs): Likewise.
32466         * dirent/closedir.c: Don't include <stub-tag.h>.
32467         * dirent/dirfd.c: Likewise.
32468         * dirent/fdopendir.c: Likewise.
32469         * dirent/getdents.c: Likewise.
32470         * dirent/getdents64.c: Likewise.
32471         * dirent/opendir.c: Likewise.
32472         * dirent/readdir.c: Likewise.
32473         * dirent/readdir64.c: Likewise.
32474         * dirent/readdir64_r.c: Likewise.
32475         * dirent/readdir_r.c: Likewise.
32476         * dirent/rewinddir.c: Likewise.
32477         * dirent/seekdir.c: Likewise.
32478         * dirent/telldir.c: Likewise.
32479         * gmon/profil.c: Likewise.
32480         * grp/setgroups.c: Likewise.
32481         * inet/if_index.c: Likewise.
32482         * io/access.c: Likewise.
32483         * io/chdir.c: Likewise.
32484         * io/chmod.c: Likewise.
32485         * io/chown.c: Likewise.
32486         * io/close.c: Likewise.
32487         * io/dup.c: Likewise.
32488         * io/dup2.c: Likewise.
32489         * io/dup3.c: Likewise.
32490         * io/euidaccess.c: Likewise.
32491         * io/faccessat.c: Likewise.
32492         * io/fchdir.c: Likewise.
32493         * io/fchmod.c: Likewise.
32494         * io/fchmodat.c: Likewise.
32495         * io/fchown.c: Likewise.
32496         * io/fchownat.c: Likewise.
32497         * io/fcntl.c: Likewise.
32498         * io/flock.c: Likewise.
32499         * io/fstatfs.c: Likewise.
32500         * io/fstatfs64.c: Likewise.
32501         * io/fstatvfs.c: Likewise.
32502         * io/fstatvfs64.c: Likewise.
32503         * io/futimens.c: Likewise.
32504         * io/fxstat.c: Likewise.
32505         * io/fxstat64.c: Likewise.
32506         * io/fxstatat.c: Likewise.
32507         * io/fxstatat64.c: Likewise.
32508         * io/getcwd.c: Likewise.
32509         * io/isatty.c: Likewise.
32510         * io/lchmod.c: Likewise.
32511         * io/lchown.c: Likewise.
32512         * io/link.c: Likewise.
32513         * io/linkat.c: Likewise.
32514         * io/lseek.c: Likewise.
32515         * io/lseek64.c: Likewise.
32516         * io/lxstat64.c: Likewise.
32517         * io/mkdir.c: Likewise.
32518         * io/mkdirat.c: Likewise.
32519         * io/mkfifo.c: Likewise.
32520         * io/mkfifoat.c: Likewise.
32521         * io/open.c: Likewise.
32522         * io/open64.c: Likewise.
32523         * io/openat.c: Likewise.
32524         * io/openat64.c: Likewise.
32525         * io/pipe.c: Likewise.
32526         * io/pipe2.c: Likewise.
32527         * io/poll.c: Likewise.
32528         * io/posix_fadvise.c: Likewise.
32529         * io/posix_fadvise64.c: Likewise.
32530         * io/posix_fallocate.c: Likewise.
32531         * io/posix_fallocate64.c: Likewise.
32532         * io/read.c: Likewise.
32533         * io/readlink.c: Likewise.
32534         * io/readlinkat.c: Likewise.
32535         * io/rmdir.c: Likewise.
32536         * io/sendfile.c: Likewise.
32537         * io/sendfile64.c: Likewise.
32538         * io/statfs.c: Likewise.
32539         * io/statfs64.c: Likewise.
32540         * io/statvfs.c: Likewise.
32541         * io/statvfs64.c: Likewise.
32542         * io/symlink.c: Likewise.
32543         * io/symlinkat.c: Likewise.
32544         * io/ttyname.c: Likewise.
32545         * io/ttyname_r.c: Likewise.
32546         * io/umask.c: Likewise.
32547         * io/unlink.c: Likewise.
32548         * io/unlinkat.c: Likewise.
32549         * io/utime.c: Likewise.
32550         * io/utimensat.c: Likewise.
32551         * io/write.c: Likewise.
32552         * io/xmknod.c: Likewise.
32553         * io/xmknodat.c: Likewise.
32554         * io/xstat.c: Likewise.
32555         * io/xstat64.c: Likewise.
32556         * login/getpt.c: Likewise.
32557         * login/grantpt.c: Likewise.
32558         * login/unlockpt.c: Likewise.
32559         * math/e_acoshl.c: Likewise.
32560         * math/e_acosl.c: Likewise.
32561         * math/e_asinl.c: Likewise.
32562         * math/e_atan2l.c: Likewise.
32563         * math/e_atanhl.c: Likewise.
32564         * math/e_coshl.c: Likewise.
32565         * math/e_expl.c: Likewise.
32566         * math/e_fmodl.c: Likewise.
32567         * math/e_gammal_r.c: Likewise.
32568         * math/e_hypotl.c: Likewise.
32569         * math/e_j0l.c: Likewise.
32570         * math/e_j1l.c: Likewise.
32571         * math/e_jnl.c: Likewise.
32572         * math/e_lgammal_r.c: Likewise.
32573         * math/e_log10l.c: Likewise.
32574         * math/e_log2l.c: Likewise.
32575         * math/e_logl.c: Likewise.
32576         * math/e_powl.c: Likewise.
32577         * math/e_rem_pio2l.c: Likewise.
32578         * math/e_sinhl.c: Likewise.
32579         * math/e_sqrtl.c: Likewise.
32580         * math/fclrexcpt.c: Likewise.
32581         * math/fedisblxcpt.c: Likewise.
32582         * math/feenablxcpt.c: Likewise.
32583         * math/fegetenv.c: Likewise.
32584         * math/fegetexcept.c: Likewise.
32585         * math/fegetround.c: Likewise.
32586         * math/feholdexcpt.c: Likewise.
32587         * math/fesetenv.c: Likewise.
32588         * math/fesetround.c: Likewise.
32589         * math/feupdateenv.c: Likewise.
32590         * math/fgetexcptflg.c: Likewise.
32591         * math/fraiseexcpt.c: Likewise.
32592         * math/fsetexcptflg.c: Likewise.
32593         * math/ftestexcept.c: Likewise.
32594         * math/k_cosl.c: Likewise.
32595         * math/k_rem_pio2l.c: Likewise.
32596         * math/k_sinl.c: Likewise.
32597         * math/k_tanl.c: Likewise.
32598         * math/s_asinhl.c: Likewise.
32599         * math/s_atanl.c: Likewise.
32600         * math/s_cbrtl.c: Likewise.
32601         * math/s_erfl.c: Likewise.
32602         * math/s_expm1l.c: Likewise.
32603         * math/s_log1pl.c: Likewise.
32604         * math/s_tanhl.c: Likewise.
32605         * misc/acct.c: Likewise.
32606         * misc/brk.c: Likewise.
32607         * misc/chflags.c: Likewise.
32608         * misc/chroot.c: Likewise.
32609         * misc/fchflags.c: Likewise.
32610         * misc/fgetxattr.c: Likewise.
32611         * misc/flistxattr.c: Likewise.
32612         * misc/fremovexattr.c: Likewise.
32613         * misc/fsetxattr.c: Likewise.
32614         * misc/fsync.c: Likewise.
32615         * misc/ftruncate.c: Likewise.
32616         * misc/futimes.c: Likewise.
32617         * misc/futimesat.c: Likewise.
32618         * misc/getdomain.c: Likewise.
32619         * misc/getdtsz.c: Likewise.
32620         * misc/gethostid.c: Likewise.
32621         * misc/gethostname.c: Likewise.
32622         * misc/getloadavg.c: Likewise.
32623         * misc/getpagesize.c: Likewise.
32624         * misc/getsysstats.c: Likewise.
32625         * misc/getxattr.c: Likewise.
32626         * misc/gtty.c: Likewise.
32627         * misc/ioctl.c: Likewise.
32628         * misc/lgetxattr.c: Likewise.
32629         * misc/listxattr.c: Likewise.
32630         * misc/llistxattr.c: Likewise.
32631         * misc/lremovexattr.c: Likewise.
32632         * misc/lsetxattr.c: Likewise.
32633         * misc/lutimes.c: Likewise.
32634         * misc/madvise.c: Likewise.
32635         * misc/mincore.c: Likewise.
32636         * misc/mlock.c: Likewise.
32637         * misc/mlockall.c: Likewise.
32638         * misc/mmap.c: Likewise.
32639         * misc/mprotect.c: Likewise.
32640         * misc/msync.c: Likewise.
32641         * misc/munlock.c: Likewise.
32642         * misc/munlockall.c: Likewise.
32643         * misc/munmap.c: Likewise.
32644         * misc/preadv.c: Likewise.
32645         * misc/preadv64.c: Likewise.
32646         * misc/ptrace.c: Likewise.
32647         * misc/pwritev.c: Likewise.
32648         * misc/pwritev64.c: Likewise.
32649         * misc/readv.c: Likewise.
32650         * misc/reboot.c: Likewise.
32651         * misc/remap_file_pages.c: Likewise.
32652         * misc/removexattr.c: Likewise.
32653         * misc/revoke.c: Likewise.
32654         * misc/select.c: Likewise.
32655         * misc/setdomain.c: Likewise.
32656         * misc/setegid.c: Likewise.
32657         * misc/seteuid.c: Likewise.
32658         * misc/sethostid.c: Likewise.
32659         * misc/sethostname.c: Likewise.
32660         * misc/setregid.c: Likewise.
32661         * misc/setreuid.c: Likewise.
32662         * misc/setxattr.c: Likewise.
32663         * misc/sstk.c: Likewise.
32664         * misc/stty.c: Likewise.
32665         * misc/swapoff.c: Likewise.
32666         * misc/swapon.c: Likewise.
32667         * misc/sync.c: Likewise.
32668         * misc/syncfs.c: Likewise.
32669         * misc/syscall.c: Likewise.
32670         * misc/truncate.c: Likewise.
32671         * misc/ualarm.c: Likewise.
32672         * misc/usleep.c: Likewise.
32673         * misc/ustat.c: Likewise.
32674         * misc/utimes.c: Likewise.
32675         * misc/vhangup.c: Likewise.
32676         * misc/writev.c: Likewise.
32677         * posix/_exit.c: Likewise.
32678         * posix/alarm.c: Likewise.
32679         * posix/execve.c: Likewise.
32680         * posix/fexecve.c: Likewise.
32681         * posix/fork.c: Likewise.
32682         * posix/fpathconf.c: Likewise.
32683         * posix/getaddrinfo.c: Likewise.
32684         * posix/getegid.c: Likewise.
32685         * posix/geteuid.c: Likewise.
32686         * posix/getgid.c: Likewise.
32687         * posix/getgroups.c: Likewise.
32688         * posix/getlogin.c: Likewise.
32689         * posix/getlogin_r.c: Likewise.
32690         * posix/getpgid.c: Likewise.
32691         * posix/getpid.c: Likewise.
32692         * posix/getppid.c: Likewise.
32693         * posix/getresgid.c: Likewise.
32694         * posix/getresuid.c: Likewise.
32695         * posix/getsid.c: Likewise.
32696         * posix/getuid.c: Likewise.
32697         * posix/glob64.c: Likewise.
32698         * posix/nanosleep.c: Likewise.
32699         * posix/pathconf.c: Likewise.
32700         * posix/pause.c: Likewise.
32701         * posix/posix_madvise.c: Likewise.
32702         * posix/pread.c: Likewise.
32703         * posix/pread64.c: Likewise.
32704         * posix/pwrite.c: Likewise.
32705         * posix/pwrite64.c: Likewise.
32706         * posix/sched_getaffinity.c: Likewise.
32707         * posix/sched_getp.c: Likewise.
32708         * posix/sched_gets.c: Likewise.
32709         * posix/sched_primax.c: Likewise.
32710         * posix/sched_primin.c: Likewise.
32711         * posix/sched_rr_gi.c: Likewise.
32712         * posix/sched_setaffinity.c: Likewise.
32713         * posix/sched_setp.c: Likewise.
32714         * posix/sched_sets.c: Likewise.
32715         * posix/sched_yield.c: Likewise.
32716         * posix/setgid.c: Likewise.
32717         * posix/setlogin.c: Likewise.
32718         * posix/setpgid.c: Likewise.
32719         * posix/setresgid.c: Likewise.
32720         * posix/setresuid.c: Likewise.
32721         * posix/setsid.c: Likewise.
32722         * posix/setuid.c: Likewise.
32723         * posix/sleep.c: Likewise.
32724         * posix/spawni.c: Likewise.
32725         * posix/sysconf.c: Likewise.
32726         * posix/times.c: Likewise.
32727         * posix/wait.c: Likewise.
32728         * posix/wait3.c: Likewise.
32729         * posix/wait4.c: Likewise.
32730         * posix/waitpid.c: Likewise.
32731         * resolv/gai_sigqueue.c: Likewise.
32732         * resource/getpriority.c: Likewise.
32733         * resource/getrlimit.c: Likewise.
32734         * resource/getrusage.c: Likewise.
32735         * resource/nice.c: Likewise.
32736         * resource/setpriority.c: Likewise.
32737         * resource/setrlimit.c: Likewise.
32738         * resource/ulimit.c: Likewise.
32739         * rt/aio_cancel.c: Likewise.
32740         * rt/aio_fsync.c: Likewise.
32741         * rt/aio_read.c: Likewise.
32742         * rt/aio_sigqueue.c: Likewise.
32743         * rt/aio_suspend.c: Likewise.
32744         * rt/aio_write.c: Likewise.
32745         * rt/clock_getres.c: Likewise.
32746         * rt/clock_gettime.c: Likewise.
32747         * rt/clock_nanosleep.c: Likewise.
32748         * rt/clock_settime.c: Likewise.
32749         * rt/lio_listio.c: Likewise.
32750         * rt/mq_close.c: Likewise.
32751         * rt/mq_getattr.c: Likewise.
32752         * rt/mq_notify.c: Likewise.
32753         * rt/mq_open.c: Likewise.
32754         * rt/mq_receive.c: Likewise.
32755         * rt/mq_send.c: Likewise.
32756         * rt/mq_setattr.c: Likewise.
32757         * rt/mq_timedreceive.c: Likewise.
32758         * rt/mq_timedsend.c: Likewise.
32759         * rt/mq_unlink.c: Likewise.
32760         * rt/shm_open.c: Likewise.
32761         * rt/shm_unlink.c: Likewise.
32762         * rt/timer_create.c: Likewise.
32763         * rt/timer_delete.c: Likewise.
32764         * rt/timer_getoverr.c: Likewise.
32765         * rt/timer_gettime.c: Likewise.
32766         * rt/timer_settime.c: Likewise.
32767         * setjmp/__longjmp.c: Likewise.
32768         * setjmp/setjmp.c: Likewise.
32769         * signal/kill.c: Likewise.
32770         * signal/killpg.c: Likewise.
32771         * signal/raise.c: Likewise.
32772         * signal/sigaction.c: Likewise.
32773         * signal/sigaltstack.c: Likewise.
32774         * signal/sigblock.c: Likewise.
32775         * signal/sigignore.c: Likewise.
32776         * signal/sigintr.c: Likewise.
32777         * signal/signal.c: Likewise.
32778         * signal/sigpause.c: Likewise.
32779         * signal/sigpending.c: Likewise.
32780         * signal/sigqueue.c: Likewise.
32781         * signal/sigreturn.c: Likewise.
32782         * signal/sigset.c: Likewise.
32783         * signal/sigsetmask.c: Likewise.
32784         * signal/sigstack.c: Likewise.
32785         * signal/sigsuspend.c: Likewise.
32786         * signal/sigtimedwait.c: Likewise.
32787         * signal/sigvec.c: Likewise.
32788         * signal/sigwait.c: Likewise.
32789         * signal/sigwaitinfo.c: Likewise.
32790         * signal/sysv_signal.c: Likewise.
32791         * socket/accept.c: Likewise.
32792         * socket/accept4.c: Likewise.
32793         * socket/bind.c: Likewise.
32794         * socket/connect.c: Likewise.
32795         * socket/getpeername.c: Likewise.
32796         * socket/getsockname.c: Likewise.
32797         * socket/getsockopt.c: Likewise.
32798         * socket/isfdtype.c: Likewise.
32799         * socket/listen.c: Likewise.
32800         * socket/recv.c: Likewise.
32801         * socket/recvfrom.c: Likewise.
32802         * socket/recvmsg.c: Likewise.
32803         * socket/send.c: Likewise.
32804         * socket/sendmsg.c: Likewise.
32805         * socket/sendto.c: Likewise.
32806         * socket/setsockopt.c: Likewise.
32807         * socket/shutdown.c: Likewise.
32808         * socket/sockatmark.c: Likewise.
32809         * socket/socket.c: Likewise.
32810         * socket/socketpair.c: Likewise.
32811         * stdio-common/ctermid.c: Likewise.
32812         * stdio-common/cuserid.c: Likewise.
32813         * stdio-common/remove.c: Likewise.
32814         * stdio-common/rename.c: Likewise.
32815         * stdio-common/renameat.c: Likewise.
32816         * stdio-common/tempname.c: Likewise.
32817         * stdlib/getcontext.c: Likewise.
32818         * stdlib/makecontext.c: Likewise.
32819         * stdlib/setcontext.c: Likewise.
32820         * stdlib/swapcontext.c: Likewise.
32821         * stdlib/system.c: Likewise.
32822         * streams/fattach.c: Likewise.
32823         * streams/fdetach.c: Likewise.
32824         * streams/getmsg.c: Likewise.
32825         * streams/getpmsg.c: Likewise.
32826         * streams/putmsg.c: Likewise.
32827         * streams/putpmsg.c: Likewise.
32828         * sysdeps/unix/bsd/getpt.c: Likewise.
32829         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
32830         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
32831         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
32832         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
32833         Likewise.
32834         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
32835         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
32836         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
32837         * sysvipc/msgctl.c: Likewise.
32838         * sysvipc/msgget.c: Likewise.
32839         * sysvipc/msgrcv.c: Likewise.
32840         * sysvipc/msgsnd.c: Likewise.
32841         * sysvipc/semctl.c: Likewise.
32842         * sysvipc/semget.c: Likewise.
32843         * sysvipc/semop.c: Likewise.
32844         * sysvipc/semtimedop.c: Likewise.
32845         * sysvipc/shmat.c: Likewise.
32846         * sysvipc/shmctl.c: Likewise.
32847         * sysvipc/shmdt.c: Likewise.
32848         * sysvipc/shmget.c: Likewise.
32849         * termios/tcdrain.c: Likewise.
32850         * termios/tcflow.c: Likewise.
32851         * termios/tcflush.c: Likewise.
32852         * termios/tcgetattr.c: Likewise.
32853         * termios/tcgetpgrp.c: Likewise.
32854         * termios/tcsendbrk.c: Likewise.
32855         * termios/tcsetattr.c: Likewise.
32856         * termios/tcsetpgrp.c: Likewise.
32857         * time/adjtime.c: Likewise.
32858         * time/clock.c: Likewise.
32859         * time/getitimer.c: Likewise.
32860         * time/gettimeofday.c: Likewise.
32861         * time/setitimer.c: Likewise.
32862         * time/settimeofday.c: Likewise.
32863         * time/stime.c: Likewise.
32864         * time/time.c: Likewise.
32865
32866 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
32867
32868         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
32869         /usr/old/bin.
32870
32871         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
32872         instead of spaces.
32873         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
32874
32875 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
32876
32877         [BZ #14796]
32878         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
32879         FE_TONEAREST before applying Dekker multiplication and Knuth
32880         addition.  Clear inexact exceptions and check for exact zero
32881         results afterwards.
32882         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
32883         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
32884         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
32885         * math/libm-test.inc (fma_test): Add more tests.
32886         (fma_test_towardzero): Likewise.
32887         (fma_test_downward): Likewise.
32888         (fma_test_upward): Likewise.
32889         * sysdeps/generic/math_private.h (default_libc_fesetround): New
32890         function.
32891         (libc_fesetround): New macro.
32892         (libc_fesetroundf): Likewise.
32893         (libc_fesetroundl): Likewise.
32894         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
32895         function.
32896         (libc_fesetround_387): Likewise.
32897         (libc_fesetroundf): New macro.
32898         (libc_fesetround): Likewise.
32899         (libc_fesetroundl): Likewise.
32900         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
32901         function.
32902         (libc_fesetroundf): New macro.
32903         (libc_fesetround): Likewise.
32904         (libc_fesetroundl): Likewise.
32905         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
32906         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
32907         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
32908         libm_hidden_ver.
32909         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
32910         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
32911         libm_hidden_def.
32912         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
32913         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
32914         libm_hidden_ver.
32915         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
32916         libm_hidden_def.
32917
32918         [BZ #3439]
32919         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
32920         integer constant usable in #if and use that to give value to enum
32921         constant.
32922         (FE_DIVBYZERO): Likewise.
32923         (FE_UNDERFLOW): Likewise.
32924         (FE_OVERFLOW): Likewise.
32925         (FE_INVALID): Likewise.
32926         (FE_INVALID_SNAN): Likewise.
32927         (FE_INVALID_ISI): Likewise.
32928         (FE_INVALID_IDI): Likewise.
32929         (FE_INVALID_ZDZ): Likewise.
32930         (FE_INVALID_IMZ): Likewise.
32931         (FE_INVALID_COMPARE): Likewise.
32932         (FE_INVALID_SOFTWARE): Likewise.
32933         (FE_INVALID_SQRT): Likewise.
32934         (FE_INVALID_INTEGER_CONVERSION): Likewise.
32935         (FE_TONEAREST): Likewise.
32936         (FE_TOWARDZERO): Likewise.
32937         (FE_UPWARD): Likewise.
32938         (FE_DOWNWARD): Likewise.
32939         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
32940         (FE_DIVBYZERO): Likewise.
32941         (FE_OVERFLOW): Likewise.
32942         (FE_UNDERFLOW): Likewise.
32943         (FE_INEXACT): Likewise.
32944         (FE_TONEAREST): Likewise.
32945         (FE_DOWNWARD): Likewise.
32946         (FE_UPWARD): Likewise.
32947         (FE_TOWARDZERO): Likewise.
32948         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
32949         (FE_UNDERFLOW): Likewise.
32950         (FE_OVERFLOW): Likewise.
32951         (FE_DIVBYZERO): Likewise.
32952         (FE_INVALID): Likewise.
32953         (FE_TONEAREST): Likewise.
32954         (FE_TOWARDZERO): Likewise.
32955         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
32956         (FE_OVERFLOW): Likewise.
32957         (FE_UNDERFLOW): Likewise.
32958         (FE_DIVBYZERO): Likewise.
32959         (FE_INEXACT): Likewise.
32960         (FE_TONEAREST): Likewise.
32961         (FE_TOWARDZERO): Likewise.
32962         (FE_UPWARD): Likewise.
32963         (FE_DOWNWARD): Likewise.
32964         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
32965         (FE_DIVBYZERO): Likewise.
32966         (FE_OVERFLOW): Likewise.
32967         (FE_UNDERFLOW): Likewise.
32968         (FE_INEXACT): Likewise.
32969         (FE_TONEAREST): Likewise.
32970         (FE_DOWNWARD): Likewise.
32971         (FE_UPWARD): Likewise.
32972         (FE_TOWARDZERO): Likewise.
32973
32974 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
32975
32976         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
32977
32978 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
32979
32980         * scripts/cross-test-ssh.sh (command): Use newlines to separate
32981         commands.  Quote $PWD.
32982         (blacklist_exports): Don't use remove_newlines.  Replace "declare
32983         -x" by "export".
32984         (remove_newlines): Remove.
32985
32986 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
32987
32988         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
32989         * stdlib/stdlib.h (atof): Moved to ...
32990         * include/bits/stdlib-float.h: Here.  New file.
32991         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
32992         * stdlib/bits/stdlib-float.h: New file.
32993         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
32994         -mno-sse -mno-mmx.
32995         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
32996         <xmmintrin.h>.
32997
32998 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
32999
33000         * conform/conformtest.pl (@headers): Add fenv.h.
33001         * conform/data/fenv.h-data: New file.
33002         * include/fenv.h [_ISOMAC]: Disable all contents of file except
33003         include of <math/fenv.h>.
33004
33005         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
33006         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
33007         && !UNIX98].  Enables tests for XOPEN2K8.
33008         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
33009         POSIX2008]: Likewise.
33010
33011         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
33012         (struct rusage): Do not expect type or its members.
33013
33014         [BZ #3439]
33015         * math/math.h (FP_NAN): Define macro to integer constant usable in
33016         #if and use that to give value to enum constant.
33017         (FP_INFINITE): Likewise.
33018         (FP_ZERO): Likewise.
33019         (FP_SUBNORMAL): Likewise.
33020         (FP_NORMAL): Likewise.
33021
33022 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
33023
33024         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
33025         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
33026         arguments.
33027
33028 2012-11-02  Roland McGrath  <roland@hack.frob.com>
33029
33030         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
33031         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
33032         autoconf-time if not.
33033         * configure.in: Remove AC_PREREQ.
33034
33035 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33036
33037         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
33038         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
33039         of the internal implementation.
33040
33041 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
33042
33043         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
33044         except include of <misc/sys/syslog.h>.
33045
33046 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
33047
33048         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
33049         function returns with a NULL context exit with zero.
33050
33051 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33052
33053         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
33054
33055 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
33056
33057         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
33058         (run_program_cmd): This.
33059         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
33060         (tst_langinfo): New variable.  Use it.
33061
33062 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
33063
33064         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
33065         floating point opcodes.
33066
33067 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
33068
33069         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
33070         variable.
33071
33072         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
33073
33074         * sysdeps/mach/hurd/powerpc: Remove directory.
33075         * sysdeps/mach/powerpc: Likewise.
33076
33077 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
33078
33079         * scripts/check-local-headers.sh: Ignore c++ headers.
33080
33081 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
33082
33083         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
33084         __libc_cleanup_region_start argument.
33085
33086 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
33087
33088         [BZ #14784]
33089         [BZ #14785]
33090         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
33091         x * y using scaling, not as x * y + z.
33092         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
33093         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
33094         * math/libm-test.inc (fma_test): Add more tests.
33095         (fma_test_towardzero): Likewise.
33096         (fma_test_downward): Likewise.
33097         (fma_test_upward): Likewise.
33098
33099 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
33100
33101         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
33102
33103 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
33104
33105         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
33106         New variable.
33107
33108 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
33109
33110         * rt/tst-shm.c (worker): Correct checking for mmap failure.
33111
33112 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
33113
33114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33115         Fix sort order.
33116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
33117         Likewise.
33118
33119 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33120
33121         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33122         Fix the order of the list for glibc 2.17.
33123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
33124         Likewise.
33125
33126 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
33127
33128         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33129
33130 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
33131
33132         [BZ #14610]
33133         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
33134         for low part of x being zero before using __atanl (y).
33135         * math/libm-test.inc (atan2_test): Add another test.
33136
33137         * manual/install.texi (Configuring and compiling): Document
33138         general use of test-wrapper and test-wrapper-env.
33139         * INSTALL: Regenerated.
33140
33141         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
33142         (__fma): Do not extract and scale down low bits on after-rounding
33143         systems when result rounded to normal precision would have normal
33144         exponent.
33145         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
33146         (__fmal): Do not extract and scale down low bits on after-rounding
33147         systems when result rounded to normal precision would have normal
33148         exponent.
33149         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
33150         (__fmal): Do not extract and scale down low bits on after-rounding
33151         systems when result rounded to normal precision would have normal
33152         exponent.
33153         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
33154         macro.
33155         (fma_test): Add more tests.
33156         (fma_test_towardzero): Likewise.
33157         (fma_test_downward): Likewise.
33158         (fma_test_upward): Likewise.
33159
33160 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
33161
33162         * sysdeps/i386/tininess.h: Renamed to ...
33163         * sysdeps/x86/tininess.h: This.
33164         * sysdeps/x86_64/tininess.h: Removed.
33165
33166 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
33167
33168         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
33169         input.  Use $(build-program-cmd).
33170         ($(objpfx)tst-array1-static.out): Likewise.
33171         ($(objpfx)tst-array2.out): Likewise.
33172         ($(objpfx)tst-array3.out): Likewise.
33173         ($(objpfx)tst-array4.out): Likewise.
33174         ($(objpfx)tst-array5.out): Likewise.
33175         ($(objpfx)tst-array5-static.out): Likewise.
33176
33177 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
33178
33179         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
33180         if defined.
33181
33182         * nss/nsswitch.h (nss_interface_function): Provide new
33183         macro for use with NSS functions.
33184         * grp/initgroups.c: Use new macro.
33185         * nss/getXXbyYY.c: Likewise.
33186         * nss/getXXbyYY_r.c: Likewise.
33187         * nss/getXXent.c: Likewise.
33188         * nss/getXXent_r.c: Likewise.
33189         * sysdeps/posix/getaddrinfo.c: Likewise.
33190
33191 2012-10-30  Andreas Jaeger  <aj@suse.de>
33192
33193         * po/ru.po: Update Russion translation from translation project.
33194
33195 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
33196
33197         [BZ #14152]
33198         [BZ #14783]
33199         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
33200         result and shift together with sticky bit instead of replicating
33201         round-to-nearest rounding.
33202         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
33203         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
33204         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
33205         missing underflow exceptions.
33206         (fma_test_towardzero): Add more tests.
33207         (fma_test_downward): Likewise.
33208         (fma_test_upward): Likewise.
33209
33210         [BZ #14047]
33211         * sysdeps/generic/tininess.h: New file.
33212         * sysdeps/i386/tininess.h: Likewise.
33213         * sysdeps/sh/tininess.h: Likewise.
33214         * sysdeps/x86_64/tininess.h: Likewise.
33215         * stdlib/tst-strtod-underflow.c: Likewise.
33216         * stdlib/tst-tininess.c: Likewise.
33217         * stdlib/strtod_l.c: Include <tininess.h>.
33218         (round_and_return): Do not set errno for exact underflow cases.
33219         Force an underflow exception when setting errno for underflow.
33220         Determine underflow based on rounding to normal precision if
33221         TININESS_AFTER_ROUNDING.
33222         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
33223         ERANGE for exact underflow cases.
33224         * stdlib/Makefile (tests): Add tst-tininess and
33225         tst-strtod-underflow.
33226         ($(objpfx)tst-tininess): Use $(link-libm).
33227         ($(objpfx)tst-strtod-underflow): Likewise.
33228
33229 2012-10-30  Andreas Jaeger  <aj@suse.de>
33230
33231         [BZ#14767]
33232         * elf/Makefile (tests): Remove conditional for have-initfini-array
33233         since this is now always required and the variable does not exist
33234         anymore.
33235         (tests-static): Likewise.
33236         (modules-names): Likewise.
33237
33238         * po/eo.po: Add Esperanto translation from translation project.
33239
33240         * elf/tst-array1.c (fini_array): Make writeable so that it can be
33241         merged with constructor/destructor.
33242         (init_array): Likewise.
33243         * elf/tst-array2dep.c (fini_array): Likewise.
33244         (init_array): Likewise.
33245
33246 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
33247
33248         * manual/message.texi: Delete @cartouche tags.
33249
33250 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
33251
33252         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
33253         EOPNOTSUPP.
33254         * sysdeps/mach/hurd/fsync.c: Likewise.
33255
33256         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
33257         [_POSIX_REALTIME_SIGNALS]: Change condition to
33258         [_POSIX_REALTIME_SIGNALS > 0].
33259
33260 2012-10-27  Andreas Jaeger  <aj@suse.de>
33261
33262         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
33263         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
33264         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
33265         [__WORDSIZE != 64]: Likewise.
33266
33267 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
33268
33269         *  iconvdata/tst-table.sh: Remove ${SHELL}.
33270         *  iconvdata/tst-tables.sh: Likewise.
33271
33272 2012-10-25  David S. Miller  <davem@davemloft.net>
33273
33274         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
33275         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
33276         of strtoull.
33277
33278         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
33279         ifunc-impl-list.c
33280         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
33281         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
33282         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
33283         file.
33284
33285 2012-10-25  Roland McGrath  <roland@hack.frob.com>
33286
33287         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
33288         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
33289         __getdirentries.
33290
33291 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
33292             Jim Blandy  <jimb@codesourcery.com>
33293
33294         * scripts/cross-test-ssh.sh: New file.
33295         * manual/install.texi (Configuring and compiling): Document use of
33296         cross-test-ssh.sh.
33297         * INSTALL: Regenerated.
33298
33299 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
33300
33301         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
33302         EOPNOTSUPP.
33303
33304 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
33305
33306         * Makeconfig (run-program-prefix): Fix comment.
33307
33308 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
33309             Jim Blandy  <jimb@codesourcery.com>
33310
33311         * Makeconfig (test-wrapper): New variable,
33312         (test-wrapper-env): Likewise.
33313         [$(cross-compiling) = yes && $(test-wrapper) != ""]
33314         (run-built-tests): Define to yes.
33315         (run-program-prefix): Use $(test-wrapper).
33316         (built-program-cmd): Likewise.
33317         * Rules (make-test-out): Use $(test-wrapper-env) and
33318         $(host-built-program-cmd).
33319         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
33320         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
33321         tst-pathopt.sh.
33322         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
33323         $(test-wrapper-env) to tst-rtld-load-self.sh.
33324         ($(objpfx)order2.out): Use $(test-wrapper).
33325         ($(objpfx)tst-initorder.out): Likewise.
33326         ($(objpfx)tst-initorder2.out): Likewise.
33327         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
33328         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
33329         (test_wrapper_env): New variable.  Use it to run ld.so.
33330         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
33331         Use it to run ld.so.
33332         (test_wrapper_env): Likewise.
33333         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
33334         $(test-wrapper) to run-iconv-test.sh.
33335         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
33336         (ICONV): Use $test_wrapper.
33337         * posix/Makefile ($(objpfx)globtest.out): Pass
33338         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
33339         globtest.sh, not $(run-program-prefix).
33340         * posix/globtest.sh (run_via_rtld_prefix): New variable.
33341         (test_wrapper): Likewise.
33342         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
33343         set together with run_via_rtld_prefix.
33344         (run_program_prefix): Define in terms of test_wrapper and
33345         run_via_rtld_prefix.
33346
33347 2012-10-24  Roland McGrath  <roland@hack.frob.com>
33348
33349         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
33350         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
33351         Targets removed.
33352
33353         [BZ #14743]
33354         * include/time.h: Remove librt_hidden_proto (clock_gettime).
33355         Declare __clock_getres, __clock_gettime, __clock_settime,
33356         __clock_nanosleep, and __clock_getcpuclockid.
33357         * rt/clock_gettime.c: Define __clock_gettime as an alias.
33358         Remove librt_hidden_def (clock_gettime).
33359         * sysdeps/unix/clock_gettime.c: Likewise.
33360         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
33361         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
33362         * rt/clock_getres.c: Define __clock_getres as an alias.
33363         * sysdeps/posix/clock_getres.c: Likewise.
33364         * rt/clock_settime.c: Define __clock_settime as an alias.
33365         * sysdeps/unix/clock_settime.c: Likewise.
33366         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
33367         * sysdeps/unix/clock_nanosleep.c: Likewise.
33368         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
33369         * rt/clock-compat.c: New file.
33370         * rt/Makefile (librt-routines): Add clock-compat and move
33371         $(clock-routines) to ...
33372         (routines): ... here, new variable.
33373         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
33374         Don't add get_clockfreq here.
33375         * rt/Versions (libc: GLIBC_2.17): New version set.
33376         Add clock_* symbols here.
33377         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
33378         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
33379         (GLIBC_2.17): Add clock_* symbols.
33380         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
33381         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
33382         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
33383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
33384         Likewise.
33385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33386         Likewise.
33387         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
33388         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
33389         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
33390         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
33391         * NEWS: Mention the move.
33392
33393         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
33394         Use __open, __read, __close rather than their public counterparts.
33395         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
33396         (__get_clockfreq_via_cpuinfo): Likewise.
33397         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
33398         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
33399
33400         * config.h.in (HAVE_IFUNC): New #undef.
33401         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
33402         was successful.
33403         * configure: Regenerated.
33404
33405 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
33406
33407         * configure.in: Move READELF check to start of file.
33408         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
33409         libc_cv_asm_gnu_indirect_function in the process.
33410         * configure: Regenerated.
33411
33412 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
33413
33414         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
33415         send the output to /dev/null.
33416         (libc_cv_cc_with_libunwind): Likewise.
33417         (libc_cv_as_noexecstack): Likewise.
33418         * configure: Regenerate.
33419
33420 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
33421
33422         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
33423
33424         * posix/globtest.sh (TMPDIR): Do not set.
33425         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
33426         (testout): Likewise.
33427
33428 2012-10-24  Andreas Jaeger  <aj@suse.de>
33429
33430         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
33431         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
33432         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
33433         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
33434         posix_fadvise64, posix_fallocate64.
33435
33436         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
33437         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
33438         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
33439         Likewise.
33440         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
33441         Likewise.
33442         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
33443
33444         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
33445         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
33446         <bits/fcntl-linux.h>.
33447         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
33448
33449         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
33450         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
33451         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
33452         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
33453         [__WORDSIZE != 64]: Likewise.
33454
33455 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
33456
33457         * Makeconfig (run-built-tests): New variable.
33458         * Rules [$(cross-compiling) = yes]: Change condition to
33459         [$(run-built-tests) = no].
33460         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
33461         to [$(run-built-tests) = yes].
33462         * elf/Makefile [$(cross-compiling) = no]: Likewise
33463         * grp/Makefile [$(cross-compiling) = no]: Likewise.
33464         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
33465         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
33466         * intl/Makefile [$(cross-compiling) = no]: Likewise.
33467         * io/Makefile [$(cross-compiling) = no]: Likewise.
33468         * libio/Makefile [$(cross-compiling) = no]: Likewise.
33469         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
33470         * misc/Makefile [$(cross-compiling) = no]: Likewise.
33471         * posix/Makefile [$(cross-compiling) = no]: Likewise.
33472         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
33473         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
33474         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
33475         * string/Makefile [$(cross-compiling) = no]: Likewise.
33476
33477         * posix/Makefile ($(objpfx)globtest.out): Pass
33478         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
33479         $(rtld-installed-name).
33480         * posix/globtest.sh (elf_objpfx): Remove variable.
33481         (rtld_installed_name): Likewise.
33482         (library_path): Likewise.
33483         (run_program_prefix): New variable.  Use for running globtest
33484         binary.
33485
33486 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
33487             Joseph Myers  <joseph@codesourcery.com>
33488
33489         * Makeconfig (host-built-program-cmd): New variable.
33490         * elf/Makefile (tst-stackguard1-ARGS): Use
33491         $(host-built-program-cmd).
33492         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
33493         (tst-spawn-ARGS): Likewise.
33494         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
33495
33496 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
33497             Jim Blandy  <jimb@codesourcery.com>
33498
33499         * Makeconfig (run-via-rtld-prefix): New variable.
33500         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
33501         (built-program-cmd): Likewise.
33502
33503 2012-10-22  Andreas Jaeger  <aj@suse.de>
33504
33505         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
33506         __O_RSYNC if it exists, otherwise to O_SYNC.
33507
33508 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
33509             Joseph Myers  <joseph@codesourcery.com>
33510
33511         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
33512         /dev/null.
33513         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
33514         from /dev/null
33515         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
33516         /dev/null.
33517
33518 2012-10-22  Andreas Jaeger  <aj@suse.de>
33519
33520         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
33521         Define always.
33522         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
33523
33524         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
33525         bits/fcntl-linux.h.
33526
33527         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
33528         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
33529
33530         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
33531         to __O_LARGEFILE.
33532         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
33533         to __O_LARGEFILE.
33534
33535 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
33536             Joseph Myers  <joseph@codesourcery.com>
33537
33538         * config.make.in (NM): New variable.
33539
33540 2012-10-21  Andreas Jaeger  <aj@suse.de>
33541
33542         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
33543         definitions and declarations that are provided by
33544         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
33545
33546 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
33547
33548         [BZ #14683]
33549         * elf/Makefile (tests-static): Add tst-leaks1-static.
33550         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
33551         ($(objpfx)tst-leaks1-static): New rule.
33552         ($(objpfx)tst-leaks1-static-mem): Likewise.
33553         (tst-leaks1-static-ENV): New macro.
33554         * elf/dl-open.c (dl_open_worker): Check the main application
33555         only if SHARED is defined.
33556         * elf/tst-leaks1-static.c: New file.
33557
33558 2012-10-20  Andreas Jaeger  <aj@suse.de>
33559
33560         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
33561         generic values for Linux.
33562         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
33563         and declarations that are provided by <bits/fcntl-linux.h> and
33564         include <bits/fcntl-linux.h>.
33565         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
33566         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
33567
33568 2012-10-20  Roland McGrath  <roland@hack.frob.com>
33569
33570         * io/fcntl.h: Move include of <bits/types.h> to the top and
33571         include it unconditionally.
33572
33573 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
33574
33575         * wcsmbs/Makefile (tests-ifunc): New variable.
33576         (tests): Add $(tests-ifunc).
33577         * wcsmbs/test-wcschr-ifunc.c: New file.
33578         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
33579         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
33580         * wcsmbs/test-wcslen-ifunc.c: Likewise.
33581         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
33582         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
33583
33584         * string/Makefile (tests-ifunc): New variable.
33585         (tests): Add $(tests-ifunc).
33586         * string/test-memccpy.c (TEST_NAME): New macro.
33587         * string/test-memchr.c (TEST_NAME): Likewise.
33588         * string/test-memcmp.c (TEST_NAME): Likewise.
33589         * string/test-memcpy.c (TEST_NAME): Likewise.
33590         * string/test-memmem.c (TEST_NAME): Likewise.
33591         * string/test-memmove.c (TEST_NAME): Likewise.
33592         * string/test-memset.c (TEST_NAME): Likewise.
33593         * string/test-rawmemchr.c (TEST_NAME): Likewise.
33594         * string/test-stpcpy.c (TEST_NAME): Likewise.
33595         * string/test-stpncpy.c (TEST_NAME): Likewise.
33596         * string/test-strcasecmp.c (TEST_NAME): Likewise.
33597         * string/test-strcasestr.c (TEST_NAME): Likewise.
33598         * string/test-strcat.c (TEST_NAME): Likewise.
33599         * string/test-strchr.c (TEST_NAME): Likewise.
33600         * string/test-strcmp.c(TEST_NAME): Likewise.
33601         * string/test-strcpy.c (TEST_NAME): Likewise.
33602         * string/test-strcspn.c (TEST_NAME): Likewise.
33603         * string/test-strlen.c (TEST_NAME): Likewise.
33604         * string/test-strncasecmp.c (TEST_NAME): Likewise.
33605         * string/test-strncmp.c (TEST_NAME): Likewise.
33606         * string/test-strncpy.c (TEST_NAME): Likewise.
33607         * string/test-strnlen.c (TEST_NAME): Likewise.
33608         * string/test-strpbrk.c (TEST_NAME): Likewise.
33609         * string/test-strrchr.c (TEST_NAME): Likewise.
33610         * string/test-strspn.c (TEST_NAME): Likewise.
33611         * string/test-strstr.c (TEST_NAME): Likewise.
33612         * string/test-bcopy-ifunc.c: New file.
33613         * string/test-bzero-ifunc.c: Likewise.
33614         * string/test-memccpy-ifunc.c: Likewise.
33615         * string/test-memchr-ifunc.c: Likewise.
33616         * string/test-memcmp-ifunc.c: Likewise.
33617         * string/test-memcpy-ifunc.c: Likewise.
33618         * string/test-memmem-ifunc.c: Likewise.
33619         * string/test-memmove-ifunc.c: Likewise.
33620         * string/test-mempcpy-ifunc.c: Likewise.
33621         * string/test-memset-ifunc.c: Likewise.
33622         * string/test-rawmemchr-ifunc.c: Likewise.
33623         * string/test-stpcpy-ifunc.c: Likewise.
33624         * string/test-stpncpy-ifunc.c: Likewise.
33625         * string/test-strcasecmp-ifunc.c: Likewise.
33626         * string/test-strcasestr-ifunc.c: Likewise.
33627         * string/test-strcat-ifunc.c: Likewise.
33628         * string/test-strchr-ifunc.c: Likewise.
33629         * string/test-strchrnul-ifunc.c: Likewise.
33630         * string/test-strcmp-ifunc.c: Likewise.
33631         * string/test-strcpy-ifunc.c: Likewise.
33632         * string/test-strcspn-ifunc.c: Likewise.
33633         * string/test-strlen-ifunc.c: Likewise.
33634         * string/test-strncasecmp-ifunc.c: Likewise.
33635         * string/test-strncat-ifunc.c: Likewise.
33636         * string/test-strncmp-ifunc.c: Likewise.
33637         * string/test-strncpy-ifunc.c: Likewise.
33638         * string/test-strnlen-ifunc.c: Likewise.
33639         * string/test-strpbrk-ifunc.c: Likewise.
33640         * string/test-strrchr-ifunc.c: Likewise.
33641         * string/test-strspn-ifunc.c: Likewise.
33642         * string/test-strstr-ifunc.c: Likewise.
33643
33644         * debug/Makefile (tests-ifunc): New variable.
33645         (tests): Add $(tests-ifunc).
33646         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
33647         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
33648         * debug/test-stpcpy_chk-ifunc.c: New file.
33649         * debug/test-strcpy_chk-ifunc.c: Likewise.
33650
33651 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
33652
33653         [BZ #13601]
33654         * elf/dl-load.c (open_verify): Retry read if the entire ELF
33655         header is not read in.
33656
33657 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
33658
33659         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
33660         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
33661         directly.  Pass built executable to script as
33662         $(built-program-cmd).
33663         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
33664         $testprogram without using LD_LIBRARY_PATH and $ldso.
33665
33666         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
33667         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
33668         $(rtld-installed-name).
33669         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
33670         (rtld_installed_name): Likewise.
33671         (library_path): Likewise.
33672         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
33673         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
33674         $(run-program-prefix) to tst-tables.sh.
33675         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
33676         it to run tst-table-from and tst-table-to.
33677         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
33678         Pass it to tst-table.sh.
33679         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
33680         $(run-program-prefix) to tst-gettext.sh.
33681         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
33682         tst-translit.sh.
33683         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
33684         tst-gettext2.sh.
33685         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
33686         to run tst-gettext.
33687         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
33688         to run tst-gettext2.
33689         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
33690         to run tst-translit.
33691         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
33692         $(run-program-prefix) to tst-mtrace.sh.
33693         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
33694         to run tst-mtrace.
33695         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
33696         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
33697         $(rtld-installed-name).
33698         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
33699         (rtld_installed_name): Likewise.
33700         (run_program_prefix): New variable.  Use it to run wordexp-test.
33701
33702         * Makeconfig (ARCH): Remove all definitions.
33703         (machine): Likewise.
33704         [ARCH]: Remove conditional code.
33705         [!objdir]: Give error.
33706         [!objdir] (objpfx): Remove.
33707         [!objdir] (common-objpfx): Likewise.
33708         [!objdir] (common-objdir): Likewise.
33709         * configure.in (config_makefile): Remove.  Hardcode Makefile in
33710         AC_CONFIG_FILES call.
33711         * configure: Regenerated.
33712
33713         [BZ #13888]
33714         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
33715         or TMPDIR.
33716         (testout): Likewise.
33717
33718         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
33719         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
33720         $(rtld-installed-name).
33721         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
33722         (rtld_installed_name): Likwise.
33723         (runit): Remove function.
33724         (run_getconf): New variable,  Use it for running getconf binary.
33725
33726 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
33727
33728         [BZ #14716]
33729         * string/test-memmem.c (check_result): New function.
33730         (do_one_test): Use it.
33731         (check1): New function.
33732         (test_main): Use it.
33733
33734 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
33735
33736         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
33737
33738 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
33739
33740         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
33741         (_G_LSEEK64): Likewise.
33742         (_G_MMAP64): Likewise.
33743         (_G_FSTAT64): Likewise.
33744         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
33745         (_G_LSEEK64): Likewise.
33746         (_G_MMAP64): Likewise.
33747         (_G_FSTAT64): Likewise.
33748         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
33749         unconditional.  Call __mmap64 directly.
33750         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
33751         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
33752         __lseek64 directly.
33753         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
33754         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
33755         __mmap64 directly.
33756         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
33757         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
33758         __lseek64 directly.
33759         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
33760         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
33761         __lseek64 directly.
33762         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
33763         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
33764         __lseek64 directly.
33765         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
33766         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
33767         __fxstat64 directly.
33768         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
33769         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
33770         unconditional.
33771         (freopen64) [!_G_OPEN64]: Remove conditional code.
33772         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
33773         unconditional.
33774         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
33775         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
33776         unconditional.
33777         (ftello64) [!_G_LSEEK64]: Remove conditional code.
33778         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
33779         unconditional.
33780         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
33781         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
33782         unconditional.
33783         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
33784         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
33785         unconditional.
33786         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
33787         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
33788         unconditional.
33789         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
33790         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
33791         unconditional.
33792         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
33793
33794 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
33795
33796         [BZ #12140]
33797         * manual/memory.texi (Malloc Tunable Parameters): Add note
33798         about free list pointers overwriting some perturb bytes.
33799         Wording suggested by Roland McGrath.
33800
33801 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
33802
33803         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
33804         (lgamma_test): Likewise.
33805         (tgamma_test): Likewise.
33806
33807 2012-10-16  Florian Weimer  <fweimer@redhat.com>
33808
33809         [BZ #14700]
33810         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
33811         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
33812
33813 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
33814
33815         * NEWS: Mention BZ #14716.
33816         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
33817         when removing AVAILABLE1_USES_J macro.
33818
33819 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
33820
33821         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
33822         (__bswap_64): __uint64_t for unsigned 64-bit int.
33823
33824 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
33825
33826         * include/string.h (memmem): Declare libc hidden alias.
33827         * string/memmem.c (memmem): Define libc hidden alias.
33828         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
33829         __read, __close instead of open, read, close.
33830
33831 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
33832
33833         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
33834         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
33835         global and hidden.
33836         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
33837         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
33838         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
33839         Likewise.
33840         (__rawmemchr_sse2): Likewise.
33841         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
33842         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
33843         (__strchr_sse2): Likewise.
33844         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
33845         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
33846         (__strcasecmp_sse2): Likewise.
33847         (__strncasecmp_sse2): Likewise.
33848         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
33849         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
33850         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
33851         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
33852         (__strrchr_sse2): Likewise.
33853         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
33854         ifunc-impl-list.c.
33855         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
33856         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
33857         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
33858         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
33859         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
33860         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
33861         * sysdeps/x86_64/multiarch/memset.S: Likewise.
33862         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
33863         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
33864         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
33865         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
33866         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
33867         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
33868         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
33869         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
33870         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
33871         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
33872         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
33873         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
33874         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
33875         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
33876         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
33877         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
33878         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
33879         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
33880         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
33881         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
33882         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
33883         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
33884         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
33885
33886         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
33887         global and hidden.
33888         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
33889         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
33890         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
33891         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
33892         Likewise.
33893         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
33894         Likewise.
33895         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
33896         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
33897         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
33898         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
33899         ifunc-impl-list.c.
33900         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
33901         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
33902         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
33903         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
33904         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
33905         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
33906         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
33907         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
33908         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
33909         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
33910         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
33911         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
33912         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
33913         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
33914         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
33915         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
33916         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
33917         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
33918         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
33919         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
33920         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
33921         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
33922         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
33923         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
33924         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
33925         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
33926         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
33927         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
33928         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
33929         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
33930         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
33931         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
33932         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
33933         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
33934         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
33935         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
33936         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
33937         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
33938         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
33939         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
33940         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
33941
33942         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
33943         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
33944         * include/ifunc-impl-list.h: New file.
33945         * misc/ifunc-impl-list.c: Likewise.
33946         * misc/Makefile (routines): Add ifunc-impl-list.
33947         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
33948         * string/test-string.h: Include <ifunc-impl-list.h>.
33949         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
33950         TEST_NAME]: New variables.
33951         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
33952         are defined.
33953         (test_init): Call __libc_ifunc_impl_list to initialize
33954         func_list if TEST_IFUNC and TEST_NAME are defined.
33955
33956         * string/Makefile (strop-tests): Add bcopy and bzero.
33957         * string/test-bcopy.c: New file.
33958         * string/test-bzero.c: Likewise.
33959         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
33960         defined.
33961         * string/test-memset.c: Support bzero test if TEST_BZERO is
33962         defined.
33963         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
33964         __libc_memmove.
33965         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
33966         __libc_memset.
33967         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
33968         of memset.
33969
33970 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
33971
33972         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
33973         * configure: Regenerated.
33974
33975         * Makeconfig (+link-static-before-libc): Don't include
33976         $(link-static-libc).
33977
33978         * libio/libio.h (_IO_pos_t): Remove.
33979
33980 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
33981
33982         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
33983         McGrath.
33984
33985 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
33986
33987         * crypt/crypt-entry.c: Include fips-private.h.
33988         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
33989         * crypt/md5c-test.c (main): Tolerate disabled MD5.
33990         * sysdeps/unix/sysv/linux/fips-private.h: New file.
33991         * sysdeps/generic/fips-private.h: New file, dummy fallback.
33992
33993 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
33994
33995         * crypt/crypt-private.h: Include stdbool.h.
33996         (_ufc_setup_salt_r): Return bool.
33997         * crypt/crypt-entry.c: Include errno.h.
33998         (__crypt_r): Return NULL with EINVAL for bad salt.
33999         * crypt/crypt_util.c (bad_for_salt): New.
34000         (_ufc_setup_salt_r): Check that salt is long enough and within
34001         the specified alphabet.
34002         * crypt/badsalttest.c: New file.
34003         * crypt/Makefile (tests): Add it.
34004         ($(objpfx)badsalttest): New.
34005
34006 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
34007
34008         * NEWS: Add entry for BZ #14602.
34009
34010 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
34011
34012         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
34013         type-generic.
34014         * math/libm-test.inc: Update comment listing what functions and
34015         macros are tested.
34016         (isgreater_test): New function.
34017         (isgreaterequal_test): Likewise.
34018         (isless_test): Likewise.
34019         (islessequal_test): Likewise.
34020         (islessgreater_test): Likewise.
34021         (isunordered_test): Likewise.
34022         (main): Call the new functions.
34023
34024 2012-10-09  Roland McGrath  <roland@hack.frob.com>
34025
34026         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
34027         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
34028         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
34029         * sysdeps/i386/configure: Regenerated.
34030         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
34031         * sysdeps/mach/configure: Regenerated.
34032         * sysdeps/mach/hurd/configure: Regenerated.
34033         * sysdeps/powerpc/configure: Regenerated.
34034         * sysdeps/powerpc/powerpc32/configure: Regenerated.
34035         * sysdeps/powerpc/powerpc64/configure: Regenerated.
34036         * sysdeps/s390/s390-32/configure: Regenerated.
34037         * sysdeps/s390/s390-64/configure: Regenerated.
34038         * sysdeps/sh/configure: Regenerated.
34039         * sysdeps/sparc/configure: Regenerated.
34040         * sysdeps/unix/sysv/linux/configure: Regenerated.
34041         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
34042         * sysdeps/x86_64/configure: Regenerated.
34043
34044         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
34045         defined.  Don't check if MAP is NULL.
34046
34047 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
34048
34049         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
34050         (_G_stat64): Likewise.
34051         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
34052         (_G_stat64): Likewise.
34053         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
34054         instead of struct _G_stat64.
34055         * libio/fileops.c (mmap_remap_check): Likewise.
34056         (decide_maybe_mmap): Likewise.
34057         (_IO_new_file_seekoff): Likewise.
34058         (_IO_file_stat): Likewise.
34059         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
34060         _G_off64_t.
34061         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
34062         instead of struct _G_stat64.
34063         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
34064
34065 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
34066
34067         [BZ #14602]
34068         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
34069         Replace with ...
34070         (CHECK_EOL): New macro.
34071         (two_way_short_needle): Check beginning of haystack for EOL.  Use
34072         CHECK_EOL.
34073         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
34074         Replace with CHECK_EOL.
34075         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
34076         Replace with CHECK_EOL.
34077
34078 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
34079
34080         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
34081         type-generic.
34082         * math/libm-test.inc: Update comment listing what functions and
34083         macros are tested.
34084         (finite_test): New function.
34085         (isinf_test): Likewise.
34086         (isnan_test): Likewise.
34087         (fpclassify_test): Test subnormal input.
34088         (isfinite_test): Likewise.
34089         (isnormal_test): Likewise.
34090         (main): Call the new functions.
34091
34092 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
34093
34094         [BZ #14660]
34095         * Makerules (%.dynsym): Force C locale when running
34096         $(OBJDUMP) --dynamic-syms.
34097
34098 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
34099
34100         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
34101         <stdint.h>.
34102
34103 2012-10-06  David S. Miller  <davem@davemloft.net>
34104
34105         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
34106         upper 32-bits of the length value in %o2 since we use branch-on-register
34107         tests which consider the entire 64-bit register.
34108
34109 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
34110
34111         * string/test-strstr.c (check2): Add a test for page boundary.
34112
34113 2012-10-05  David S. Miller  <davem@davemloft.net>
34114
34115         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
34116         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
34117         file.
34118         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
34119         sysdep_routines.
34120         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
34121         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
34122         and bzero when HWCAP_SPARC_CRYPTO is present.
34123
34124 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
34125
34126         [BZ #14602]
34127         * string/test-strstr.c (check2): New function.
34128         (test_main): Call check2.
34129
34130         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
34131         and bug-strchr1.
34132         * string/bug-strcasestr1.c (do_test): Moved to ...
34133         * string/test-strcasestr.c (check1): Here.  New function.
34134         (do_one_test): Break out result checking code into ...
34135         (check_result): This.  New function.
34136         (do_one_test): Call check_result.
34137         (test_main): Call check1.
34138         * string/bug-strchr1.c (do_test): Moved to ...
34139         * string/test-strchr.c (check1): Here.  New function.
34140         (do_one_test): Break out result checking code into ...
34141         (check_result): This.  New function.
34142         (do_one_test): Call check_result.
34143         (test_main): Call check1.
34144         * string/bug-strstr1.c (main): Moved to ...
34145         * string/test-strstr.c (check1): Here.  New function.
34146         (do_one_test): Break out result checking code into ...
34147         (check_result): This.  New function.
34148         (do_one_test): Call check_result.
34149         (test_main): Call check1.
34150         * string/bug-strcasestr1.c: Removed.
34151         * string/bug-strchr1.c: Likewise.
34152         * string/bug-strstr1.c: Likewise.
34153
34154         * elf/Makefile (dl-routines): Add hwcaps.
34155         * elf/dl-support.c (_dl_important_hwcaps): Removed.
34156         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
34157         (_dl_important_hwcaps): Moved to ...
34158         * elf/dl-hwcaps.c: Here.  New file.
34159         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
34160
34161         [BZ #14557]
34162         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
34163         if IS_IN_rtld isn't defined.
34164
34165         * elf/dl-support.c (_dl_sysinfo_map): New.
34166         Include "get-dynamic-info.h" and "setup-vdso.h".
34167         (_dl_non_dynamic_init): Call setup_vdso.
34168         * elf/dynamic-link.h: Don't include <assert.h>.
34169         (elf_get_dynamic_info): Moved to ...
34170         * elf/get-dynamic-info.h: Here.  New file.
34171         * elf/dynamic-link.h: Include "get-dynamic-info.h".
34172         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
34173         * elf/setup-vdso.h: Here.  New file.
34174         * elf/rtld.c: Include "setup-vdso.h".
34175         (dl_main): Call setup_vdso.
34176
34177 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
34178
34179         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
34180         creal in comment listing functions tested.  List finite, isinf,
34181         isnan, isless, islessequal, isgreater, isgreaterequal,
34182         islessgreater, isunordered, lgamma_r and pow10 as functions and
34183         macros not tested.  Mention which functions not tested are aliases
34184         for other functions.  Fix typo.  Note that signs of NaNs are not
34185         tested.
34186
34187         * scripts/config.guess: Update from config.git.
34188         * scripts/config.sub: Likewise.
34189
34190 2012-10-04  Roland McGrath  <roland@hack.frob.com>
34191
34192         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
34193         * misc/madvise.c (madvise): Renamed to __madvise.
34194         Make madvise a weak alias.
34195         * include/sys/mman.h: Declare __madvise.
34196         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
34197         * sysdeps/unix/syscalls.list
34198         (madvise): Make __madvise the strong name, and madvise a weak alias.
34199         * sysdeps/unix/sysv/linux/syscalls.list
34200         (madvise, mmap): Remove redundant entries.
34201         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
34202         * malloc/malloc.c (mtrim): Likewise.
34203         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
34204
34205 2012-10-03  Roland McGrath  <roland@hack.frob.com>
34206
34207         * sysdeps/mach/hurd/dl-cache.c: File removed.
34208         * config.h.in (USE_LDCONFIG): New #undef.
34209         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
34210         * configure: Regenerated.
34211         * elf/Makefile (dl-routines): Add dl-cache only under
34212         [$(use-ldconfig) = yes].
34213         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
34214         cache on [USE_LDCONFIG].
34215         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
34216         [USE_LDCONFIG].
34217         * elf/rtld.c (dl_main): Likewise.
34218
34219 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
34220
34221         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
34222         _SC_LEVEL4_CACHE_LINESIZE.
34223
34224 2012-10-03  Roland McGrath  <roland@hack.frob.com>
34225
34226         * sysdeps/unix/bsd/confstr.h: File removed.
34227
34228 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
34229
34230         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
34231         sys/sdt-config.h.
34232
34233 2012-10-02  Roland McGrath  <roland@hack.frob.com>
34234
34235         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
34236         Make 'mapoff' field ElfW(Off) rather than off_t.
34237
34238 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
34239
34240         * nscd/Makefile: Remove nscd-cflags and all its users.
34241         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
34242         (CFLAGS-nonlib): Add compiler flags for nscd modules.
34243
34244         [BZ #10631]
34245         * malloc.c (malloc_printerr): Clarify error message.
34246
34247 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
34248
34249         [BZ #14648]
34250         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34251         Set bit_FMA_Usable if FMA is supported.
34252         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
34253         macro.
34254         (bit_FMA4_Usable): Updated.
34255         (index_FMA_Usable): New macro.
34256         (CPUID_FMA): Likewise
34257         (HAS_FMA): Defined with bit_FMA_Usable.
34258
34259 2012-10-01  Roland McGrath  <roland@hack.frob.com>
34260
34261         * bits/types.h (__swblk_t): Type removed.
34262         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
34263         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
34264         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
34265         (__SWBLK_T_TYPE): Likewise.
34266         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
34267         (__SWBLK_T_TYPE): Likewise.
34268         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
34269         (__SWBLK_T_TYPE): Likewise.
34270         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
34271         (__SWBLK_T_TYPE): Likewise.
34272
34273 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
34274             Honza Horak <hhorak@redhat.com>
34275
34276         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
34277         (xdr_mapname): Use YPMAXMAP as maxsize.
34278         (xdr_peername): Use YPMAXPEER as maxsize.
34279         (xdr_keydat): Use YPAXRECORD as maxsize.
34280         (xdr_valdat): Use YPMAXRECORD as maxsize.
34281
34282 2012-10-01  Roland McGrath  <roland@hack.frob.com>
34283
34284         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
34285
34286         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
34287         * csu/init-first.c: ... here.
34288         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
34289         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
34290         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
34291         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
34292         * sysdeps/i386/init-first.c: File removed.
34293         * sysdeps/sh/init-first.c: File removed.
34294
34295 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
34296
34297         [BZ #14645]
34298         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
34299         if x * y might underflow to zero and z is zero.
34300         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
34301         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
34302         * math/libm-test.inc (min_subnorm_value): New variable.
34303         (fma_test): Add more tests.
34304         (fma_test_towardzero): Likewise.
34305         (fma_test_downward): Likewise
34306         (fma_test_upward): Likewise.
34307         (initialize): Set min_subnorm_value.
34308
34309 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
34310
34311         [BZ #14638]
34312         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
34313         0 + 0.
34314         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
34315         mode for addition resulting in exact zero.
34316         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
34317         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
34318         exact 0 + 0.
34319         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
34320         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
34321         * math/libm-test.inc (fma_test): Add more tests.
34322         (fma_test_towardzero): New function.
34323         (fma_test_downward): Likewise.
34324         (fma_test_upward): Likewise.
34325         (main): Call the new functions.
34326
34327 2012-09-28  David S. Miller  <davem@davemloft.net>
34328
34329         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
34330
34331 2012-09-28  Roland McGrath  <roland@hack.frob.com>
34332
34333         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
34334         instead of SIGALRM.
34335
34336         * sysdeps/gnu/_G_config.h: Moved to ...
34337         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
34338         * sysdeps/mach/hurd/_G_config.h: Moved to ...
34339         * sysdeps/generic/_G_config.h: ... here.
34340
34341         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
34342
34343         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
34344
34345         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
34346         Conditionalize target on [libnss_test1.so-version].
34347
34348         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
34349
34350         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
34351         (elfobjdir): Move out of conditionals.
34352
34353         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
34354         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
34355         (__nss_lookup_function): Conditionalize label remove_from_tree on
34356         [!DO_STATIC_NSS || SHARED], matching its only use.
34357
34358 2012-09-28  David S. Miller  <davem@davemloft.net>
34359
34360         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
34361         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
34362         file.
34363         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
34364         sysdep_routines.
34365         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
34366         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
34367         when HWCAP_SPARC_CRYPTO is present.
34368
34369 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
34370
34371         * io/tst-mknodat.c: Create a FIFO instead of a socket.
34372
34373 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
34374
34375         [BZ #6530]
34376         * stdio-common/vfprintf.c (process_string_arg): Revert
34377         2000-07-22 change.
34378
34379 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
34380
34381         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
34382         for testcase.
34383         * stdio-common/tst-sprintf.c: Include <locale.h>
34384         (main): Test sprintf's handling of incomplete multibyte
34385         characters.
34386
34387 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
34388
34389         * elf/dl-runtime.c (VERSYMIDX): Removed.
34390         * elf/dl-version.c (VERSYMIDX): Likewise.
34391         * elf/do-rel.h (VERSYMIDX): Likewise.
34392         (VALIDX): Likewise.
34393         * elf/dynamic-link.h (VERSYMIDX): Likewise.
34394         * elf/rtld.c (VALIDX): Likewise.
34395         (ADDRIDX): Likewise.
34396         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
34397         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
34398         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
34399         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
34400         (VALIDX): Likewise.
34401         (ADDRIDX): Likewise.
34402
34403 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
34404
34405         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
34406
34407 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
34408
34409         [BZ #11438]
34410         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
34411         to global scope.
34412         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
34413         addresses are in the same scope as 192.0.2/24.
34414         * posix/gai.conf: Document new scope table defaults.
34415
34416 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
34417
34418         [BZ #5298]
34419         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
34420         for ftell.  Compute offsets from write pointers instead.
34421         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
34422
34423 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
34424
34425         [BZ #14543]
34426         * libio/Makefile (tests): New test case tst-fseek.
34427         * libio/tst-fseek.c: New test case to verify that fseek/ftell
34428         combination works in wide mode.
34429         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
34430         state when the external buffer state changes.
34431
34432 2012-09-27  David S. Miller  <davem@davemloft.net>
34433
34434         [BZ #14376]
34435         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
34436         pass reloc->r_addend in as the 'high' argument to
34437         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
34438
34439         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34440
34441 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
34442
34443         * rt/tst-aio2.c: Include <pthread.h>.
34444         * rt/tst-aio3.c: Likewise.
34445
34446 2012-09-27  Steve Ellcey  <sellcey@mips.com>
34447
34448         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
34449
34450 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
34451
34452         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
34453         contents on [SHARED].
34454
34455 2012-09-26  Marek Polacek  <polacek@redhat.com>
34456
34457         [BZ #14530]
34458         [BZ #13741]
34459         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
34460         for C++ and GCC <4.3 as well as for non GCC compilers.
34461
34462 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
34463
34464         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34465
34466 2012-09-25  Roland McGrath  <roland@hack.frob.com>
34467
34468         * Makefile.in (all, install): Declare with .PHONY.
34469         Reported by Michael Hope <michael.hope@linaro.org>.
34470
34471 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
34472
34473         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
34474         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
34475         system header.
34476         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
34477         Likewise.
34478         (sydep_routines): Add the new and the internal functions.
34479         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
34480         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
34481         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
34482         (GLIBC_2.17): Add the new function.
34483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
34484         (GLIBC_2.17): Likewise.
34485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
34486         (GLIBC_2.17): Likewise.
34487         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
34488         (GLIBC_2.17): Likewise.
34489         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
34490
34491 2012-09-25  Alan Modra  <amodra@gmail.com>
34492
34493         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
34494         Add release barrier before setting once_control to say
34495         initialisation is done.  Add hints on lwarx.  Use macro in
34496         place of isync.
34497         (clear_once_control): Add release barrier.
34498
34499 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
34500
34501         [BZ #13629]
34502         * math/s_clog.c (__clog): Handle more values close to |z| = 1
34503         specially.
34504         * math/s_clog10.c (__clog10): Likewise.
34505         * math/s_clog10f.c (__clog10f): Likewise.
34506         * math/s_clog10l.c (__clog10l): Likewise.
34507         * math/s_clogf.c (__clogf): Likewise.
34508         * math/s_clogl.c (__clogl): Likewise.
34509         * math/Makefile (libm-calls): Add x2y2m1.
34510         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
34511         (__x2y2m1): Likewise.
34512         (__x2y2m1l): Likewise.
34513         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
34514         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
34515         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
34516         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
34517         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
34518         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
34519         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
34520         * sysdeps/i386/fpu/libm-test-ulps: Update.
34521         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
34522
34523         [BZ #14621]
34524         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
34525         int as type of variable DEPTH.
34526         (glob): Use size_t instead of int as type of variables NEWCOUNT
34527         and OLD_PATHC.
34528
34529 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34530
34531         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
34532         Add s_sincosf-sse2.
34533         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
34534         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
34535         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
34536         macros for using routine as __sincosf_ia32.
34537         Use macro for function declaration and weak_alias.
34538         * sysdeps/i386/fpu/libm-test-ulps: Update.
34539
34540         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
34541         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
34542
34543         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
34544         subnormal argument.
34545         * math/s_cexpf.c (__cexpf): Likewise.
34546         * math/s_csinf.c (__csinf): Likewise.
34547         * math/s_csinhf.c (__csinhf): Likewise.
34548         * math/s_ctanf.c (__ctanf): Likewise.
34549         * math/s_ctanhf.c (__ctanhf): Likewise.
34550         * math/s_ccosh.c (__ccoshf): Likewise.
34551         * math/s_cexp.c (__cexpl): Likewise.
34552         * math/s_csin.c (__csin): Likewise.
34553         * math/s_csinh.c (__csinh): Likewise.
34554         * math/s_ctan.c (__ctan): Likewise.
34555         * math/s_ctanh.c (ctanh): Likewise.
34556         * math/s_ccoshl.c (__ccoshl): Likewise.
34557         * math/s_cexpl.c (__cexpl): Likewise.
34558         * math/s_csinl.c (__csinl): Likewise.
34559         * math/s_csinhl.c (__csinhl): Likewise.
34560         * math/s_ctanl.c (__ctanl): Likewise.
34561         * math/s_ctanhl.c (__ctanhl): Likewise.
34562
34563 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
34564
34565         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
34566         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
34567         (_IO_off_t): Define to __off_t, not _G_off_t.
34568         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
34569         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
34570         (_IO_wint_t): Define to wint_t, not _G_wint_t.
34571         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
34572         type of __dummy and __dummy2 fields.
34573         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
34574         (_G_ssize_t): Likewise.
34575         (_G_off_t): Likewise.
34576         (_G_pid_t): Likewise.
34577         (_G_uid_t): Likewise.
34578         (_G_wchar_t): Likewise.
34579         (_G_wint_t): Likewise.
34580         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
34581         (_G_ssize_t): Likewise.
34582         (_G_off_t): Likewise.
34583         (_G_pid_t): Likewise.
34584         (_G_uid_t): Likewise.
34585         (_G_wchar_t): Likewise.
34586         (_G_wint_t): Likewise.
34587         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
34588         (_G_ssize_t): Likewise.
34589         (_G_off_t): Likewise.
34590         (_G_pid_t): Likewise.
34591         (_G_uid_t): Likewise.
34592         (_G_wchar_t): Likewise.
34593         (_G_wint_t): Likewise.
34594
34595 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
34596
34597         * malloc/arena.c: Include malloc-sysdep.h.
34598         (shrink_heap): Use check_may_shrink_heap to decide if madvise
34599         is sufficient to shrink the heap or an unmap is needed.
34600         * sysdeps/generic/malloc-sysdep.h: New file.  Define
34601         new function check_may_shrink_heap.
34602         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
34603         new function check_may_shrink_heap.
34604
34605 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
34606
34607         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
34608         comments.
34609
34610 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
34611
34612         * catgets/test-gencat.sh: Add "set -e".
34613         * elf/tst-pathopt.sh: Likewise.
34614         * grp/tst_fgetgrent.sh: Likewise.
34615         * iconvdata/run-iconv-test.sh: Likewise.
34616         * intl/tst-gettext.sh: Likewise.
34617         * intl/tst-gettext2.sh: Likewise.
34618         * intl/tst-gettext4.sh: Likewise.
34619         * intl/tst-gettext6.sh: Likewise.
34620         * intl/tst-translit.sh: Likewise.
34621         * io/ftwtest-sh: Likewise.
34622         * libio/test-freopen.sh: Likewise.
34623         * malloc/tst-mtrace.sh: Likewise.
34624         * posix/globtest.sh: Likewise.
34625         * posix/tst-getconf.sh: Likewise.
34626         * posix/wordexp-tst.sh: Likewise.
34627         * stdio-common/tst-printf.sh: Likewise.
34628         * stdio-common/tst-unbputc.sh: Likewise.
34629         * stdlib/tst-fmtmsg.sh: Likewise.
34630         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
34631         * catgets/Makefile: Do not specify -e option when running
34632         testsuite shell scripts.
34633         * elf/Makefile: Likewise.
34634         * grp/Makefile: Likewise.
34635         * iconvdata/Makefile: Likewise.
34636         * intl/Makefile: Likewise.
34637         * io/Makefile: Likewise.
34638         * libio/Makefile: Likewise.
34639         * malloc/Makefile: Likewise.
34640         * posix/Makefile: Likewise.
34641         * stdio-common/Makefile: Likewise.
34642         * stdlib/Makefile: Likewise.
34643         * sysdeps/x86_64/Makefile: Likewise.
34644
34645         * io/ftwtest-sh: Add copyright header.
34646         * posix/globtest.sh: Likewise.
34647         * posix/tst-getconf.sh: Likewise.
34648         * posix/wordexp-tst.sh: Likewise.
34649         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
34650
34651 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
34652
34653         [BZ #13679]
34654         * Makeconfig (+link): Defined as $(+link-static) if
34655         $(build-shared) isn't yes.
34656         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
34657         isn't yes.
34658         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
34659
34660         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
34661
34662         [BZ #14562]
34663         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
34664         new chunk size with MALLOC_ALIGN_MASK.
34665
34666 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
34667
34668         [BZ #5044]
34669         * stdio-common/printf_fphex.c: Include <stdbool.h> and
34670         <rounding-mode.h>.
34671         (__printf_fphex): Determine rounding using get_rounding_mode and
34672         round_away.
34673         * stdio-common/tst-printf-round.c (struct hex_test): New
34674         structure.
34675         (hex_tests): New variable.
34676         (test_hex_in_one_mode): New function.
34677         (do_test): Also run tests for hex float output.
34678
34679 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
34680
34681         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
34682         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
34683         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
34684         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
34685         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
34686         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
34687         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
34688         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
34689
34690 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
34691
34692         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
34693         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
34694         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
34695         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
34696
34697 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
34698
34699         [BZ #14579]
34700         * elf/rtld.c (dl_main): Limit the check for self loading to normal
34701         mode only.
34702         * elf/tst-rtld-load-self.sh: New test.
34703         * elf/Makefile: Run it.
34704
34705 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
34706
34707         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
34708         (tst-writev-ENV): Remove.
34709         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
34710
34711 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
34712
34713         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
34714
34715 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
34716
34717         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
34718         unconditional.
34719         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
34720         Likewise.
34721         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
34722         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
34723         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
34724         Likewise.
34725
34726 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
34727
34728         [BZ #14587]
34729         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
34730         * config.make.in (have-cpp-asm-debuginfo): Removed.
34731         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
34732         * configure: Regenerated.
34733
34734 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
34735
34736         [BZ #5044]
34737         * stdio-common/printf_fp.c: Include <stdbool.h> and
34738         <rounding-mode.h>.
34739         (___printf_fp): Determine rounding using get_rounding_mode and
34740         round_away.
34741         * stdio-common/tst-printf-round.c: New file.
34742         * stdio-common/Makefile (tests): Add tst-printf-round.
34743         (link-libm): New variable.
34744         ($(objpfx)tst-printf-round): Depend in $(link-libm).
34745
34746 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
34747
34748         [BZ #14576]
34749         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
34750         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
34751         Likewise.
34752         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
34753         Likewise.
34754
34755 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
34756
34757         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
34758         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
34759         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
34760         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
34761
34762 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
34763
34764         [BZ #14518]
34765         * include/rounding-mode.h: New file.
34766         * sysdeps/generic/get-rounding-mode.h: Likewise.
34767         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
34768         * stdlib/strtod_l.c: Include <rounding-mode.h>.
34769         (MAX_VALUE): New macro.
34770         (MIN_VALUE): Likewise.
34771         (overflow_value): New function.
34772         (underflow_value): Likewise.
34773         (round_and_return): Use overflow_value and underflow_value to
34774         determine return values in overflow and underflow cases.  Use
34775         round_away to determine rounding depending on rounding mode.
34776         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
34777         determine return values in overflow and underflow cases.
34778         * stdlib/tst-strtod-round.c: Include <fenv.h>.
34779         (struct test_results): New structure.
34780         (struct test): Use struct test_results to store expected results
34781         for all rounding modes.
34782         (TEST): Include expected results for all rounding modes.
34783         (test_in_one_mode): New function.
34784         (do_test): Use test_in_one_mode to compute and check results.
34785         Check results for all rounding modes.
34786         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
34787         $(link-libm).
34788
34789 2012-12-09  Allan McRae  <allan@archlinux.org>
34790
34791         * sysdeps/i386/fpu/libm-test-ulps: Update
34792
34793 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
34794
34795         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
34796         (_G_int32_t): Likewise.
34797         (_G_uint16_t): Likewise.
34798         (_G_uint32_t): Likewise.
34799         (_G_HAVE_BOOL): Likewise.
34800         (_G_HAVE_ATEXIT): Likewise.
34801         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
34802         (_G_HAVE_IO_FILE_OPEN): Likewise.
34803         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
34804         (_G_int32_t): Likewise.
34805         (_G_uint16_t): Likewise.
34806         (_G_uint32_t): Likewise.
34807         (_G_HAVE_BOOL): Likewise.
34808         (_G_HAVE_ATEXIT): Likewise.
34809         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
34810         (_G_HAVE_IO_FILE_OPEN): Likewise.
34811         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
34812         (_G_int32_t): Likewise.
34813         (_G_uint16_t): Likewise.
34814         (_G_uint32_t): Likewise.
34815         (_G_HAVE_BOOL): Likewise.
34816         (_G_HAVE_ATEXIT): Likewise.
34817         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
34818         (_G_HAVE_IO_FILE_OPEN): Likewise.
34819
34820 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
34821
34822         * csu/libc-tls.c: Update copyright years.
34823
34824 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
34825
34826         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
34827         [!_G_USING_THUNKS]: Remove conditional code.
34828         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
34829         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
34830
34831         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
34832         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
34833         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
34834         (_G_VTABLE_LABEL_PREFIX): Likewise.
34835         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
34836         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
34837         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
34838         (_G_VTABLE_LABEL_PREFIX): Likewise.
34839         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
34840         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
34841         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
34842         (_G_VTABLE_LABEL_PREFIX): Likewise.
34843         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
34844
34845 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
34846
34847         * libio/Makefile: Include ../Makeconfig before tests.
34848         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
34849         only if $(build-shared) is yes.
34850
34851         * iconv/gconv_db.c: Update copyright years.
34852
34853 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34854
34855         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
34856         unwind info if defined PIC. Fix special cases description.
34857         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
34858
34859         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
34860         DP_HI_MASK entry.
34861         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
34862
34863 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
34864
34865         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
34866
34867         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
34868         is NULL.
34869
34870         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
34871         (LDLIBS-tst-chk4): This.
34872         (LDFLAGS-tst-chk5): Renamed to ...
34873         (LDLIBS-tst-chk5): This.
34874         (LDFLAGS-tst-chk6): Renamed to ...
34875         (LDLIBS-tst-chk6): This.
34876         (LDFLAGS-tst-lfschk4): Renamed to ...
34877         (LDLIBS-tst-lfschk4): This.
34878         (LDFLAGS-tst-lfschk5): Renamed to ...
34879         (LDLIBS-tst-lfschk5): This.
34880         (LDFLAGS-tst-lfschk6): Renamed to ...
34881         (LDLIBS-tst-lfschk6): This.
34882
34883         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
34884         on $(common-objpfx)soversions.mk.
34885
34886 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
34887
34888         [BZ #10014]
34889         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
34890         example host name.
34891
34892 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
34893
34894         * malloc/arena.c (arena_get_retry): New function that gets
34895         another arena for the caller to try its request on.
34896         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
34897         current arena cannot fulfill the request.
34898         (__libc_memalign): Likewise.
34899         (__libc_memalign): Likewise.
34900         (__libc_pvalloc): Likewise.
34901         (__libc_calloc): Likewise.
34902
34903 2012-09-05  John Tobey  <john.tobey@gmail.com>
34904
34905         [BZ #13542]
34906         * manual/arith.texi (Operations on Complex): Fix description
34907         of carg branch cut.
34908
34909 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
34910
34911         [BZ #10014]
34912         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
34913         host name.
34914
34915         [BZ #10038]
34916         * manual/memory.texi (Memory): Make order of menu items match
34917         order of sections.
34918
34919 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
34920
34921         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
34922         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
34923         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
34924
34925 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
34926
34927         * csu/libc-tls.c (static_dtv): Renamed to ...
34928         (_dl_static_dtv): This.  Make it global.
34929         (_dl_initial_dtv): Removed.
34930         (__libc_setup_tls): Updated.
34931         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
34932         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
34933         DL_INITIAL_DTV.
34934
34935 2012-09-06  Petr Machata  <pmachata@redhat.com>
34936
34937         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
34938         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
34939         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
34940         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
34941
34942 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
34943
34944         [BZ #14545]
34945         * csu/libc-tls.c (_dl_initial_dtv): New variable.
34946         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
34947         freeing dtv[-1].
34948
34949 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
34950
34951         [BZ #14544]
34952         * Makeconfig (link-static-before-libc): Replace $(+prector)
34953         with $(+prectorT).
34954         (link-static-after-libc): Replace $(+postctor) with
34955         $(+postctorT).
34956         (link-bounded): Replace $(+prector)/$(+postctor) with
34957         $(+prectorT)/$(+postctorT).
34958         (+prectorT): New macro.
34959         (+postctorT): Likewise.
34960
34961 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
34962
34963         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
34964         (round_str): Handle values above the maximum for IBM long double
34965         as inexact.
34966         * stdlib/tst-strtod-round.c (tests): Regenerated.
34967
34968 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34969
34970         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
34971         assembler flag.
34972         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
34973         zarch_nohighgprs around the zarch optimized routines.
34974         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
34975         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
34976         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
34977         for zarch.
34978
34979 2012-09-05  David S. Miller  <davem@davemloft.net>
34980
34981         * sysdeps/sparc/fpu/libm-test-ulps: Update.
34982
34983         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
34984         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
34985         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
34986         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
34987         entries.
34988
34989 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
34990
34991         * malloc/arena.c: Fold copyright years.
34992         * malloc/mcheck.c, malloc/memusage.c: Likewise.
34993
34994 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
34995
34996         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
34997
34998 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
34999
35000         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
35001
35002 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
35003
35004         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
35005         change internal state upon failure.
35006
35007 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
35008
35009         * malloc/mcheck.c (mcheck_check_all): Fix typo.
35010         * malloc/memusage.c (mmap): Likewise.
35011         (mmap64, mremap): Likewise.  Adjust name in comment.
35012
35013 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
35014
35015         * libio/fileops.c: Fix typos in comments.
35016         * libio/oldfileops.c: Likewise.
35017         * libio/wfileops.c: Likewise.
35018
35019 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
35020
35021         [BZ #1349]
35022         * malloc/Makefile (tests): Add tst-malloc-usable test case.
35023         (tst-malloc-usable-ENV): Set environment for test case.
35024         * malloc/hooks.c (malloc_check_get_size): New function to get
35025         requested size.
35026         * malloc/malloc.c (musable): Use malloc_check_get_size.
35027         * malloc/tst-malloc-usable.c: New test case.
35028
35029 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
35030
35031         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
35032
35033 2012-09-05  Allan McRae  <allan@archlinux.org>
35034
35035         [BZ #13966]
35036         * configure.in (CXX_SYSINCLUDES): Use compiler output to
35037         determine header location.
35038         * configure: Regenerated.
35039
35040 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
35041
35042         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
35043         float format.
35044         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
35045         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
35046         format.
35047         (test): Regenerate.
35048
35049 2012-09-04  David S. Miller  <davem@davemloft.net>
35050
35051         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
35052         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
35053         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
35054
35055 2012-09-04  Florian Weimer  <fweimer@redhat.com>
35056
35057         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
35058         failures.
35059
35060         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
35061
35062 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
35063
35064         [BZ #9914]
35065         * libio/iogetdelim.c: Include <limits.h>.
35066         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
35067         + len + 1 would overflow.
35068
35069 2012-09-03  Andreas Jaeger  <aj@suse.de>
35070
35071         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35072         * sysdeps/i386/fpu/libm-test-ulps: Update.
35073
35074 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35075
35076         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
35077         Add s_sinf-sse2, s_conf-sse2.
35078
35079         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
35080         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
35081         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
35082         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
35083
35084         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
35085         for using routine as __sinf_ia32.
35086         Use macro for function declaration and weak_alias.
35087         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
35088         for using routine as __cosf_ia32.
35089         Use macro for function declaration and weak_alias.
35090
35091         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
35092         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
35093
35094         * sysdeps/x86_64/fpu/s_sinf.S: New file.
35095         * sysdeps/x86_64/fpu/s_cosf.S: New file.
35096         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35097
35098         * math/libm-test.inc (cos_test): Add more test cases.
35099         (sin_test): Likewise.
35100         (sincos_test): Likewise.
35101
35102 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35103
35104         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
35105         (IFUNC_RESOLVE): Make pointers to the specialized implementations
35106         hidden.
35107         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
35108
35109 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
35110
35111         [BZ #14538]
35112         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
35113         first element of the GOT.
35114         (elf_machine_load_address): Return the difference between
35115         the runtime address of _DYNAMIC and elf_machine_dynamic ().
35116
35117 2012-09-01  Allan McRae  <allan@archlinux.org>
35118
35119         [BZ #13412]
35120         * configure.in (AWK): Require gawk version 3.0 or later.
35121         * configure: Regenerated.
35122
35123 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
35124
35125         * sysdeps/unix/sysv/linux/kernel-features.h
35126         (__ASSUME_POSIX_CPU_TIMERS): Remove.
35127         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
35128         [__NR_clock_getres]: Make code unconditional.
35129         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
35130         (clock_getcpuclockid): Remove code left unreachable by removal of
35131         conditionals.
35132         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
35133         code unconditional.
35134         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
35135         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
35136         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
35137         Make code unconditional.
35138         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
35139         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
35140         * sysdeps/unix/sysv/linux/clock_settime.c
35141         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
35142         conditional code.
35143         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
35144         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
35145
35146 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
35147
35148         [BZ #14476]
35149         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
35150         scripts/test-installation.pl.
35151
35152         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
35153         and $ld_so_version if it is set.
35154
35155 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
35156
35157         [BZ #14516]
35158         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
35159         failure if reading from procfs failed.
35160         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
35161
35162 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
35163
35164         * sysdeps/unix/sysv/linux/kernel-features.h
35165         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
35166         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
35167         Remove conditional code.
35168         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35169         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
35170         Remove conditional code.
35171         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35172         * sysdeps/unix/sysv/linux/i386/fxstat.c
35173         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
35174         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35175         * sysdeps/unix/sysv/linux/i386/fxstatat.c
35176         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
35177         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35178         * sysdeps/unix/sysv/linux/i386/lxstat.c
35179         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
35180         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35181         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
35182         Remove conditional code.
35183         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35184         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
35185         Remove conditional code.
35186         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35187         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
35188         <kernel-features.h>.
35189         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
35190         Remove.
35191         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
35192         Remove conditional code.
35193         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
35194         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
35195         Remove conditional.
35196
35197 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
35198
35199         [BZ #5400]
35200         * NEWS: Add fixed bug number.
35201
35202 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
35203
35204         [BZ #14519]
35205         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
35206         underflowing exponent in case of negative sign.
35207         * stdlib/tst-strtod-round-data: Add more tests.
35208         * stdlib/tst-strtod-round.c (tests): Regenerated.
35209
35210         [BZ #3479]
35211         * stdlib/strtod_l.c (NDIG): Remove.
35212         (HEXNDIG): Likewise.
35213         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
35214         smallest representable value.
35215         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
35216         lie within an exact representation of 1/2 ulp of the result.
35217         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
35218         unconditionally.
35219         (TENS_P9_IDX): Define unconditionally.
35220         (TENS_P9_SIZE): Likewise.
35221         (TENS_P10_IDX): Likewise.
35222         (TENS_P10_SIZE): Likewise.
35223         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
35224         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
35225         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
35226         entries for 10^2^13 and 10^2^14.
35227         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
35228         (TENS_P13_IDX): Define.
35229         (TENS_P13_SIZE): Likewise.
35230         (TENS_P14_IDX): Likewise.
35231         (TENS_P14_SIZE): Likewise.
35232         (_fpioconst_pow10): Change array size to
35233         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
35234         unconditional.
35235         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
35236         1024]: Add entries for 10^2^13 and 10^2^14.
35237         [LAST_POW10 > _LAST_POW10]: Remove #error.
35238         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
35239         (_fpioconst_pow10): Change array size to
35240         FPIOCONST_POW10_ARRAY_SIZE.
35241         * stdlib/gen-fpioconst.c: New file.
35242         * stdlib/gen-tst-strtod-round.c: Likewise.
35243         * stdlib/tst-strtod-round-data: Likewise.
35244         * stdlib/tst-strtod-round.c: Likewise.
35245         * stdlib/Makefile (tests): Add tst-strtod-round.
35246
35247         [BZ #14459]
35248         * stdlib/strtod_l.c: Include <stdint.h>.
35249         (NDEBUG): Do not define.
35250         (round_and_return): Change EXPONENT parameter to type intmax_t.
35251         Rearrange calculations to avoid internal overflow possibilities.
35252         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
35253         Rearrange calculations to avoid internal overflow possibilities.
35254         Assert that number fits inside MPNSIZE limbs.
35255         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
35256         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
35257         calculations and add assertions to avoid internal overflow
35258         possibilities.  Add casts to avoid signed/unsigned operations.
35259         * stdlib/tst-strtod-overflow.c: New file.
35260         * stdlib/Makefile (tests): Add tst-strtod-overflow.
35261
35262 2012-08-25  Marek Polacek  <polacek@redhat.com>
35263
35264         * time/time.h: Fix some typos in comments.
35265
35266 2012-08-23  Roland McGrath  <roland@hack.frob.com>
35267
35268         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
35269         * posix/tst-rfc3484-2.c: Likewise.
35270         * posix/tst-rfc3484-3.c: Likewise.
35271
35272 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
35273
35274         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
35275         (EF_ARM_ABI_FLOAT_HARD): Likewise.
35276
35277 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
35278
35279         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
35280         #include of fxstatat64.c.
35281
35282 2012-08-22  Roland McGrath  <roland@hack.frob.com>
35283
35284         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
35285         * shadow/getspent_r.c: Likewise.
35286         * shadow/getspnam.c: Likewise.
35287         * shadow/getspnam_r.c: Likewise.
35288         * gshadow/getsgent.c: Likewise.
35289         * gshadow/getsgent_r.c: Likewise.
35290         * gshadow/getsgnam.c: Likewise.
35291         * gshadow/getsgnam_r.c: Likewise.
35292         * inet/getnetbyad.c: Likewise.
35293         * inet/getnetbyad_r.c: Likewise.
35294         * inet/getnetbynm.c: Likewise.
35295         * inet/getnetbynm_r.c: Likewise.
35296         * inet/getnetent.c: Likewise.
35297         * inet/getnetent_r.c: Likewise.
35298         * inet/getproto.c: Likewise.
35299         * inet/getproto_r.c: Likewise.
35300         * inet/getprtent.c: Likewise.
35301         * inet/getprtent_r.c: Likewise.
35302         * inet/getprtname.c: Likewise.
35303         * inet/getprtname_r.c: Likewise.
35304         * inet/getrpcbyname.c: Likewise.
35305         * inet/getrpcbyname_r.c: Likewise.
35306         * inet/getrpcbynumber.c: Likewise.
35307         * inet/getrpcbynumber_r.c: Likewise.
35308         * inet/getrpcent.c: Likewise.
35309         * inet/getrpcent_r.c: Likewise.
35310         * inet/getaliasent.c: Likewise.
35311         * inet/getaliasent_r.c: Likewise.
35312         * inet/getaliasname.c: Likewise.
35313         * inet/getaliasname_r.c: Likewise.
35314         * nscd/getgrgid_r.c: Likewise.
35315         * nscd/getgrnam_r.c: Likewise.
35316         * nscd/gethstbyad_r.c: Likewise.
35317         * nscd/gethstbynm3_r.c: Likewise.
35318         * nscd/getpwnam_r.c: Likewise.
35319         * nscd/getpwuid_r.c: Likewise.
35320         * nscd/getsrvbynm_r.c: Likewise.
35321         * nscd/getsrvbypt_r.c: Likewise.
35322         * nscd/gai.c: Likewise.
35323
35324         * configure.in (build_nscd): New substituted variable, set
35325         by --disable-build-nscd and defaults to $use_nscd.
35326         * configure: Regenerated.
35327         * config.make.in (build-nscd): New substituted variable.
35328         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
35329         Change conditional to require [$(build-nscd) = yes] as well.
35330         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
35331
35332         [BZ# 13696]
35333         * configure.in (use_nscd): New substituted variable, set by
35334         --disable-nscd.  If enabled, define USE_NSCD.
35335         * configure: Regenerated.
35336         * config.h.in: Add USE_NSCD.
35337         * config.make.in (use-nscd): New substituted variable.
35338         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
35339         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
35340         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
35341         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
35342         (CFLAGS-getgrnam_r.c): Likewise.
35343         (CFLAGS-initgroups.c): Likewise.
35344         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
35345         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
35346         Variables removed.
35347         * inet/getnetgrent_r.c
35348         (nscd_setnetgrent): New function, broken out of ...
35349         (setnetgrent): ... here.  Call it.
35350         (innetgr): Conditionalize nscd bits on [USE_NSCD].
35351         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
35352         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
35353         * nscd/Makefile (routines, aux): Move definitions after include of
35354         Makeconfig.  Conditionalize on [$(use-nscd) != no].
35355         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
35356         Conditionalize on [USE_NSCD].
35357         (is_nscd, nscd_init_cb): Likewise.
35358         (nss_load_library): Conditionalize init callback on [USE_NSCD].
35359         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
35360         * nss/nss_db/db-init.c: Likewise.
35361         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
35362         [USE_NSCD].
35363         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
35364         (make_request): Use it.
35365         (cache_valid_p): New function.
35366         (__check_pf): Use it.
35367         * NEWS: Add item for --disable-nscd.
35368
35369 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
35370
35371         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
35372         to support sed >= 4.2.1-20-ga9bf076.
35373         * configure: Regenerated.
35374
35375 2012-08-22  Roland McGrath  <roland@hack.frob.com>
35376
35377         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
35378         Conditionalize whole body on [IREL].
35379
35380 2012-08-22  Jeff Law <law@redhat.com>
35381
35382         [BZ #14505]
35383         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
35384         if the family is PF_UNSPEC.
35385
35386 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
35387
35388         * Makerules (lib-version): Rename from V.
35389         (install-lib-nosubdir): Change V to lib-version.
35390
35391 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
35392
35393         [BZ #14252]
35394         * powerpc32/power6/wcschr.c: New file.
35395         * powerpc32/power6/wcscpy.c: New file.
35396         * powerpc32/power6/wcsrchr.c: New file.
35397         * powerpc64/power6/wcschr.c: New file.
35398         * powerpc64/power6/wcscpy.c: New file.
35399         * powerpc64/power6/wcsrchr.c: New file.
35400
35401 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
35402
35403         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
35404         (two_way_short_needle): Use it.
35405         * string/strstr.c (AVAILABLE1_USES_J): Define.
35406         * string/strcasestr.c: Likewise.
35407
35408         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
35409         array references.
35410         * string/strcasestr.c (TOLOWER): Make side-effect safe.
35411
35412         [BZ #11607]
35413         * NEWS: Add an entry.
35414         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
35415         define their defaults.
35416         (two_way_short_needle): Detect end-of-string on-the-fly.
35417         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
35418         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
35419         * string/bug-strcasestr1.c: New test.
35420         * string/Makefile: Run it.
35421
35422 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
35423
35424         [BZ #11607]
35425         * string/str-two-way.h (two_way_short_needle): Optimize matching of
35426         the first character.
35427
35428 2012-08-21  Roland McGrath  <roland@hack.frob.com>
35429
35430         * csu/elf-init.c (__libc_csu_irel): Function removed.
35431         * csu/libc-start.c (apply_irel): New function.
35432         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
35433
35434 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
35435
35436         * sysdeps/unix/sysv/linux/kernel-features.h
35437         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
35438         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
35439         <kernel-features.h>.
35440         [__NR_fadvise64_64]: Make code unconditional.
35441         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
35442         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
35443         !__NR_fadvise64_64)]: Likewise.
35444         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
35445         !__NR_fadvise64_64))]: Likewise.
35446         [__NR_fadvise64]: Make code unconditional.
35447         [!__NR_fadvise64]: Remove conditional code.
35448         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
35449         <kernel-features.h>.
35450         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
35451         unconditional.
35452         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
35453         conditional code.
35454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
35455         not include <kernel-features.h>.
35456         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
35457         unconditional.
35458         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
35459         conditional code.
35460         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
35461         include <kernel-features.h>.
35462         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
35463         unconditional.
35464         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
35465         conditional code.
35466
35467 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
35468
35469         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
35470         slight instruction rearrangements per scrollpipe analysis.
35471         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
35472
35473 2012-08-20  Roland McGrath  <roland@hack.frob.com>
35474
35475         * manual/syslog.texi (syslog; vsyslog, closelog):
35476         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
35477         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
35478
35479         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
35480         DSOCAPS to match condition on defining it.
35481
35482 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
35483
35484         * sysdeps/unix/sysv/linux/kernel-features.h
35485         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
35486         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
35487         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
35488         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
35489         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
35490         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
35491         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
35492         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
35493         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
35494         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
35495
35496         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
35497         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
35498
35499         * sysdeps/unix/sysv/linux/kernel-features.h
35500         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
35501         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
35502         unconditional.
35503         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
35504         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
35505         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
35506         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
35507         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
35508         Make code unconditional.
35509         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
35510         (__mmap64) [!__NR_mmap2]: Likewise.
35511         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
35512         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
35513         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
35514         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
35515         [__NR_mmap2]: Make code unconditional.
35516         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
35517         (__mmap64) [!__NR_mmap2]: Likewise.
35518
35519 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35520
35521         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
35522
35523 2012-08-18  Andreas Jaeger  <aj@suse.de>
35524
35525         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
35526
35527 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
35528
35529         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
35530         * include/unistd.h (__have_sock_cloexec): Likewise.
35531         (__have_pipe2): Likewise.
35532         (__have_dup3): Likewise.
35533
35534 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
35535
35536         [BZ #9685]
35537         * include/unistd.h (__have_pipe2): Change define into an extern int.
35538         (__have_dup3): Likewise.
35539         * socket/have_sock_cloexec.c: Include fcntl.h.
35540         (__have_pipe2): New variable.
35541         (__have_dup3): Likewise.
35542
35543 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
35544
35545         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
35546
35547 2012-08-17  Marek Polacek  <polacek@redhat.com>
35548
35549         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
35550         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
35551
35552 2012-08-17  Roland McGrath  <roland@hack.frob.com>
35553
35554         * configure.in: Add AC_SUBST for sysheaders.
35555         * configure: Regenerated.
35556         * config.make.in (sysheaders): New substituted variable.
35557
35558         * sysdeps/unix/mkfifo.c: Moved ...
35559         * sysdeps/posix/mkfifo.c: ... here.
35560         * sysdeps/unix/mkfifoat.c: Moved ...
35561         * sysdeps/posix/mkfifoat.c: ... here.
35562
35563         * sysdeps/unix/utime.c: Moved ...
35564         * sysdeps/posix/utime.c: ... here.
35565
35566         * sysdeps/unix/time.c: Moved ...
35567         * sysdeps/posix/time.c: ... here.
35568         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
35569         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
35570
35571         * sysdeps/unix/nice.c: Moved ...
35572         * sysdeps/posix/nice.c: ... here.
35573
35574         * sysdeps/unix/alarm.c: Moved ...
35575         * sysdeps/posix/alarm.c: ... here.
35576
35577         * intl/Makefile ($(codeset_mo)): Depend on the input file.
35578
35579 2012-08-17  Jeff Law <law@redhat.com>
35580
35581         * intl/Makefile (codeset_mo): New variable.
35582         ($(codeset_mo)): New target.
35583         (tst-codeset.out): Depend on that.  Remove explicit rule.
35584         (tst-gettext3.out, tst-gettext5.out): Likewise.
35585         (LOCPATH-ENV, tst-codeset-ENV): New variables.
35586         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
35587         * intl/tst-codeset.sh: Remove.
35588         * intl/tst-gettext3.sh: Likewise.
35589         * intl/tst-gettext5.sh: Likewise.
35590
35591 2012-08-17  Roland McGrath  <roland@hack.frob.com>
35592
35593         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
35594         * sysdeps/unix/syscalls.list: ... here.
35595
35596         * sysdeps/posix/getaddrinfo.c
35597         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
35598         (gaiconf_init, gaiconf_reload): Use them.
35599         [!_STATBUF_ST_NSEC]
35600         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
35601         Define using time_t rather than struct timespec.
35602
35603         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
35604         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
35605         Macros removed.
35606         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
35607         [!NO_THREADS].
35608         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
35609         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
35610         Likewise.
35611
35612         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
35613         __libc_cleanup_push argument.
35614
35615         * bits/param.h: New file.
35616         * misc/sys/param.h: New file.
35617         * include/sys/param.h: New file.
35618         * misc/Makefile (headers): Add bits/param.h.
35619         * sysdeps/generic/sys/param.h: File removed.
35620         * sysdeps/unix/sysv/linux/bits/param.h: New file.
35621         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
35622         * sysdeps/mach/hurd/bits/param.h: New file.
35623         * sysdeps/mach/hurd/sys/param.h: File removed.
35624
35625         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
35626         last change.
35627
35628         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
35629         [_IO_MTSAFE_IO].
35630         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
35631         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
35632         New macros.
35633
35634         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
35635         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
35636         rather than -D_IO_MTSAFE_IO conditionally.
35637         * stdio-common/Makefile (CPPFLAGS): Likewise.
35638         * wcsmbs/Makefile (CPPFLAGS): Likewise.
35639         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
35640         Use $(libio-mtsafe).
35641         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
35642         of -D_IO_MTSAFE_IO.
35643         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
35644         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
35645         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
35646         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
35647         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
35648         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
35649         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
35650         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
35651         (CFLAGS-fread_u_chk.c): Likewise.
35652         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
35653         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
35654         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
35655         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
35656         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
35657         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
35658         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
35659         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
35660         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
35661
35662         * libio/Makefile: Test [$(libc-reentrant) = yes]
35663         instead of [$(filter %REENTRANT, $(defines)) nonempty].
35664
35665         * Makeconfig
35666         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
35667         * sysdeps/pthread/configure: File removed.
35668         * sysdeps/pthread/Makeconfig: New file.
35669         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
35670         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
35671
35672 2012-08-16  Gary Benson  <gbenson@redhat.com>
35673
35674         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
35675         unmapping the first object in a namespace.
35676
35677 2012-08-16  Roland McGrath  <roland@hack.frob.com>
35678
35679         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
35680         (__internal_setnetgrent): ... this.  Add internal_function to
35681         definition.  Add libc_hidden_def.
35682         (setnetgrent): Update caller.
35683         (internal_endnetgrent): Renamed to ...
35684         (__internal_endnetgrent): ... this.  Add internal_function to
35685         definition.  Add libc_hidden_def.
35686         (endnetgrent): Update caller.
35687         (internal_getnetgrent_r): Renamed to ...
35688         (__internal_getnetgrent_r): ... this.  Add internal_function to
35689         definition.  Add libc_hidden_def.
35690         (__getnetgrent_r): Update caller.
35691         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
35692
35693 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
35694
35695         * stdlib/longlong.h: Update from GCC.
35696
35697 2012-08-16  Roland McGrath  <roland@hack.frob.com>
35698
35699         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
35700         on _QL, which is set by umul_ppmm but never used.
35701         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
35702         variables, which are set by GMP macros but never used.
35703         * stdio-common/_itowa.c (_itowa): Likewise.
35704         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
35705         * stdlib/mod_1.c (mpn_mod_1): Likewise.
35706
35707 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
35708
35709         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
35710         struct La_sh_regs is not constant.
35711         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
35712         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
35713         and struct La_sparc64_regs are not constant.
35714
35715 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
35716
35717         * sysdeps/unix/sysv/linux/kernel-features.h
35718         (__ASSUME_POSIX_TIMERS): Remove.
35719         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
35720         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
35721         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
35722         Make code unconditional.
35723         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
35724         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
35725         Make code unconditional.
35726         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
35727         * sysdeps/unix/sysv/linux/clock_nanosleep.c
35728         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
35729         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
35730         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
35731         Make code unconditional.
35732         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
35733         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
35734         (__libc_missing_posix_timers): Remove.
35735
35736 2012-08-15  Roland McGrath  <roland@hack.frob.com>
35737
35738         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
35739         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
35740
35741         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
35742
35743         * elf/dl-sym.c: Include <stdlib.h>.
35744
35745         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
35746         constants, which avoids warnings in 32-bit builds.
35747
35748         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
35749         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
35750
35751         * misc/lseek.c: File moved to ...
35752         * io/lseek.c: ... here.
35753
35754         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
35755
35756         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
35757         shifting LEN more than 31 bits at once.
35758
35759 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
35760
35761         [BZ #14195]
35762         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
35763         segmentation fault for a case of two empty input strings.
35764         * string/test-strncasecmp.c (check1): Renamed to...
35765         (bz12205): ...this.
35766         (bz14195): Add new testcase for two empty input strings and N > 0.
35767         (test_main): Call new testcase, adapt for renamed function.
35768
35769 2012-08-15  Andreas Jaeger  <aj@suse.de>
35770
35771         [BZ #14090]
35772         * crypt/md5test2.c: New test, based on test supplied by Serge
35773         Belyshev <belyshev@depni.sinp.msu.ru>.
35774         * crypt/Makefile (xtests): Add md5test-giant..
35775         * crypt/Makefile ($(objpfx)md5test-giant): Add.
35776
35777 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35778
35779         [BZ #14090]
35780         * crypt/md5.c (md5_process_block): Don't assume the buffer
35781         length is less than 2**32.
35782         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
35783         length is less than 2**64.
35784
35785 2012-08-15  Roland McGrath  <roland@hack.frob.com>
35786
35787         * string/str-two-way.h: Include <sys/param.h>.
35788         (MAX): Macro removed.
35789
35790         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
35791         Move #define and #undef of memmove to just before and after
35792         including <string.h>.
35793
35794         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
35795         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
35796         and after including <string.h>.  Move declarations of
35797         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
35798         to before #include "string/memmove.c".
35799
35800         * include/dirent.h: Declare __getdirentries.
35801
35802         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
35803         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
35804
35805 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
35806
35807         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
35808         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
35809         * sysdeps/i386/configure: Regenerated.
35810         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
35811         STABS_CURRENT_FILE, and STABS_FUN.
35812         (END): Remove call to STABS_FUN_END.
35813         (STABS_CURRENT_FILE1): Delete.
35814         (STABS_CURRENT_FILE): Likewise.
35815         (STABS_FUN): Likewise.
35816         (STABS_FUN_END): Likewise.
35817         (STABS_FUN2): Likewise.
35818         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
35819         * sysdeps/x86_64/configure: Regenerated.
35820
35821 2012-08-14  Roland McGrath  <roland@hack.frob.com>
35822
35823         * elf/dl-open.c: Include <atomic.h>.
35824         * elf/dl-lookup.c: Likewise.
35825
35826 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
35827
35828         * sysdeps/unix/sysv/linux/kernel-features.h
35829         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
35830         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
35831         unconditionally.
35832         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
35833         unconditionally.
35834         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
35835         condition on __ASSUME_CLONE_THREAD_FLAGS.
35836
35837 2012-08-14  Andreas Jaeger  <aj@suse.de>
35838
35839         * sysdeps/i386/fpu/libm-test-ulps: Update.
35840
35841 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
35842
35843         * include/atomic.h (atomic_exchange_and_add): Split into ...
35844         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
35845         New atomic macros.
35846
35847 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
35848
35849         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35850
35851 2012-08-13  Jeff Law <law@redhat.com>
35852
35853         * manual/stdio.texi (snprintf): Clarify handling of the trailing
35854         null byte in the output string.
35855
35856 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
35857
35858         * sysdeps/unix/sysv/linux/kernel-features.h
35859         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
35860         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
35861         (__ASSUME_ARG_MAX_STACK_BASED): Define.
35862         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
35863         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
35864         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
35865         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
35866
35867 2012-08-09  Jeff Law <law@redhat.com>
35868
35869         [BZ #13939]
35870         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
35871         When avoid_arena is set, don't retry in the that arena.  Pick the
35872         next one, whatever it might be.
35873         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
35874         (arena_lock): Pass in new parameter to arena_get2.
35875         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
35876         arena_get2.
35877         (__libc_malloc): Unify retrying after main arena failure with
35878         __libc_memalign version.
35879         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
35880
35881 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
35882
35883         [BZ #14166]
35884         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
35885         to __redirect_strstr.
35886         (__strstr_sse42): Use typeof __redirect_strstr.
35887         (__strstr_ia32): Likewise.
35888         (__libc_strstr): New prototype.
35889         (strstr): Renamed to ...
35890         (__libc_strstr): This.
35891         (strstr): New strong alias of __libc_strstr.
35892         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
35893         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
35894         __redirect_time.
35895         Include <time.h>.
35896         (__libc_time): New prototype.
35897         (time_ifunc): Replace time with __libc_time.
35898         (time): New strong alias and hidden definition of __libc_time.
35899         (__GI_time): Remove strong alias.
35900         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
35901         Include <stddef.h>.
35902         (memmove): Redefined to __redirect_memmove.
35903         (__memmove_sse2): Use typeof __redirect_memmove.
35904         (__memmove_ssse3): Likewise.
35905         (__memmove_ssse3_back): Likewise.
35906         (__libc_memmove): New prototype.
35907         (memmove): Renamed to ...
35908         (__libc_memmove): This.
35909         (memmove): New strong alias of __libc_memmove.
35910
35911 2012-08-08  Mark Salter  <msalter@redhat.com>
35912
35913         * elf/elf.h
35914         (R_MN10300_TLS_GD): Define.
35915         (R_MN10300_TLS_LD): Likewise.
35916         (R_MN10300_TLS_LDO): Likewise.
35917         (R_MN10300_TLS_GOTIE): Likewise.
35918         (R_MN10300_TLS_IE): Likewise.
35919         (R_MN10300_TLS_LE): Likewise.
35920         (R_MN10300_TLS_DTPMOD): Likewise.
35921         (R_MN10300_TLS_DTPOFF): Likewise.
35922         (R_MN10300_TLS_TPOFF): Likewise.
35923         (R_MN10300_SYM_DIFF): Likewise.
35924         (R_MN10300_ALIGN): Likewise.
35925         (R_MN10300_NUM): Update.
35926
35927 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
35928
35929         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
35930         Remove.
35931
35932 2012-08-08  Roland McGrath  <roland@hack.frob.com>
35933
35934         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
35935
35936         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
35937         sysdeps/unix -> sysdeps/posix move.
35938         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
35939
35940 2012-08-07      Allan McRae     <allan@archlinux.org>
35941
35942         [BZ #14303]
35943         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
35944         (SUNOS_CPP): Likewise.
35945         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
35946         not found.
35947         (open_input): Call CPP using execvp.
35948
35949 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
35950
35951         * sysdeps/unix/sysv/linux/kernel-features.h
35952         (__ASSUME_PROT_GROWSUPDOWN): Remove.
35953         (__ASSUME_NO_CLONE_DETACHED): Likewise.
35954         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
35955         (__ASSUME_WAITID_SYSCALL): Likewise.
35956         * sysdeps/unix/sysv/linux/dl-execstack.c
35957         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
35958         code unconditional.
35959         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
35960         conditional code.
35961         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
35962         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
35963         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
35964         code.
35965         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
35966         unconditional.
35967         [__ASSUME_WAITID_SYSCALL]: Likewise.
35968         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
35969
35970 2012-08-07  Roland McGrath  <roland@hack.frob.com>
35971
35972         * sysdeps/unix/closedir.c: Renamed to ...
35973         * sysdeps/posix/closedir.c: ... here.
35974         * sysdeps/unix/dirfd.c: Renamed to ...
35975         * sysdeps/posix/dirfd.c: ... here.
35976         * sysdeps/unix/dirstream.h: Renamed to ...
35977         * sysdeps/posix/dirstream.h: ... here.
35978         * sysdeps/unix/fdopendir.c: Renamed to ...
35979         * sysdeps/posix/fdopendir.c: ... here.
35980         * sysdeps/unix/opendir.c: Renamed to ...
35981         * sysdeps/posix/opendir.c: ... here.
35982         * sysdeps/unix/readdir.c: Renamed to ...
35983         * sysdeps/posix/readdir.c: ... here.
35984         * sysdeps/unix/readdir_r.c: Renamed to ...
35985         * sysdeps/posix/readdir_r.c: ... here.
35986         * sysdeps/unix/rewinddir.c: Renamed to ...
35987         * sysdeps/posix/rewinddir.c: ... here.
35988         * sysdeps/unix/seekdir.c: Renamed to ...
35989         * sysdeps/posix/seekdir.c: ... here.
35990         * sysdeps/unix/telldir.c: Renamed to ...
35991         * sysdeps/posix/telldir.c: ... here.
35992         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
35993         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
35994         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
35995         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
35996
35997         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
35998         * bits/fcntl.h: ... here.
35999
36000         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
36001         not 0.
36002         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
36003         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
36004         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
36005         (struct flock): Move l_start, l_len to the beginning.
36006         Use __pid_t for l_pid.
36007         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
36008         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
36009         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
36010         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
36011         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
36012         [__USE_LARGEFILE64] (struct flock64): New type.
36013         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
36014
36015         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
36016         * bits/dirent.h: ... here.
36017
36018         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
36019         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
36020
36021 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
36022
36023         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
36024         Change from 2.6.0 to 2.6.16.
36025         * sysdeps/unix/sysv/linux/configure: Regenerated.
36026         * sysdeps/unix/sysv/linux/kernel-features.h
36027         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
36028         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
36029         version.
36030         (__ASSUME_UTIMES): Likewise.
36031         (__ASSUME_CLONE_STOPPED): Remove.
36032         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
36033         architectures, not kernel version.
36034         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
36035         (__ASSUME_NO_CLONE_DETACHED): Likewise.
36036         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
36037         (__ASSUME_WAITID_SYSCALL): Likewise.
36038         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
36039         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
36040         * README: State 2.6.16 as minimum Linux kernel version.  Do not
36041         refer to older versions.
36042
36043 2012-08-06  Roland McGrath  <roland@hack.frob.com>
36044
36045         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
36046         Define alphasort64 as an alias.
36047         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
36048         Define versionsort64 as an alias.
36049         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
36050         Define scandir64 as an alias.
36051         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
36052         Define scandirat64 as an alias.
36053         * dirent/alphasort64.c (alphasort64):
36054         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
36055         * dirent/versionsort64.c: Likewise.
36056         * dirent/scandir64.c: Likewise.
36057         * dirent/scandirat64.c: Likewise.
36058         * sysdeps/wordsize-64/alphasort.c: File removed.
36059         * sysdeps/wordsize-64/alphasort64.c: File removed.
36060         * sysdeps/wordsize-64/scandir.c: File removed.
36061         * sysdeps/wordsize-64/scandir64.c: File removed.
36062         * sysdeps/wordsize-64/scandirat.c: File removed.
36063         * sysdeps/wordsize-64/scandirat64.c: File removed.
36064         * sysdeps/wordsize-64/versionsort.c: File removed.
36065         * sysdeps/wordsize-64/versionsort64.c: File removed.
36066         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
36067         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
36068         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
36069         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
36070         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
36071         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
36072         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
36073         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
36074
36075         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
36076         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
36077         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
36078         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
36079         [defined __arch64__ || defined __sparcv9]
36080         (__INO_T_MATCHES_INO64_T): New macro.
36081         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
36082         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
36083         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
36084         * sysdeps/unix/sysv/linux/bits/dirent.h
36085         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
36086         (_DIRENT_MATCHES_DIRENT64): New macro.
36087
36088         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
36089         Define lockf64 as an alias.
36090         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
36091         Define fseeko64 as an alias.
36092         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
36093         Define ftello64 as an alias.
36094         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
36095         Define _IO_fgetpos64 and fgetpos64 as aliases.
36096         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
36097         Define _IO_fsetpos64 and fsetpos64 as aliases.
36098         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
36099         Conditionalize body on this.
36100         * libio/fseeko64.c: Likewise.
36101         * libio/ftello64.c: Likewise.
36102         * libio/iofgetpos64.c: Likewise.
36103         * libio/iofsetpos64.c: Likewise.
36104         * sysdeps/wordsize-64/lockf.c: File removed.
36105         * sysdeps/wordsize-64/lockf64.c: File removed.
36106         * sysdeps/wordsize-64/fseeko.c: File removed.
36107         * sysdeps/wordsize-64/fseeko64.c: File removed.
36108         * sysdeps/wordsize-64/ftello.c: File removed.
36109         * sysdeps/wordsize-64/ftello64.c: File removed.
36110         * sysdeps/wordsize-64/iofgetpos.c: File removed.
36111         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
36112         * sysdeps/wordsize-64/iofsetpos.c: File removed.
36113         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
36114         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
36115         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
36116         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
36117         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
36118         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
36119         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
36120         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
36121         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
36122         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
36123         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
36124
36125         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
36126         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
36127         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
36128         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
36129         [defined __arch64__ || defined __sparcv9]
36130         (__OFF_T_MATCHES_OFF64_T): New macro.
36131         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
36132         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
36133         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
36134         (__OFF_T_MATCHES_OFF64_T): New macro.
36135
36136 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
36137
36138         * stdlib/secure-getenv.c (__secure_getenv): Replace
36139         GLIBC_2_16 with GLIBC_2_17.
36140
36141 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
36142
36143         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
36144         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
36145
36146 2012-08-03  David S. Miller  <davem@davemloft.net>
36147
36148         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36149
36150 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
36151
36152         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
36153         Remove.
36154         (__ASSUME_CORRECT_SI_PID): Likewise.
36155         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
36156         (__ASSUME_TMPFS_NAME): Likewise.
36157         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
36158         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
36159         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
36160         (HAVE_AUX_SECURE): Make definition unconditional.
36161         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
36162         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
36163
36164 2012-08-03  Roland McGrath  <roland@hack.frob.com>
36165
36166         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
36167         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
36168         * sysdeps/mach/hurd/eloop-threshold.h: New file.
36169         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
36170         __eloop_threshold instead of SYMLOOP_MAX.
36171
36172         * sysdeps/generic/eloop-threshold.h: New file.
36173         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
36174         of MAXSYMLINKS.
36175         * elf/chroot_canon.c (chroot_canon): Likewise.
36176
36177 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
36178
36179         [BZ #13717]
36180         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
36181         Change to 2.6.0 everywhere.
36182         * sysdeps/unix/sysv/linux/configure: Regenerated.
36183         * sysdeps/unix/sysv/linux/kernel-features.h
36184         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
36185         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
36186         kernel versions.
36187         (__ASSUME_POSIX_TIMERS): Define unconditionally.
36188         (__ASSUME_FUTEX_REQUEUE): Remove.
36189         (__ASSUME_STATFS64): Define unconditionally.
36190         (__ASSUME_AT_SECURE): Likewise.
36191         (__ASSUME_CORRECT_SI_PID): Likewise.
36192         (__ASSUME_TGKILL): Define without depending on kernel version for
36193         i386.
36194         (__ASSUME_UTIMES): Likewise.
36195         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
36196         kernel version.
36197         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
36198         (__ASSUME_TMPFS_NAME): Likewise.
36199         * README: Update reference to Linux kernel versions.
36200
36201 2012-08-02  Marek Polacek  <polacek@redhat.com>
36202
36203         [BZ# 14150]
36204         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
36205         libc_cv_asm_type_prefix with %.
36206         * configure: Regenerated.
36207         * include/libc-symbols.h: Remove comment about
36208         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
36209         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
36210         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
36211         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
36212         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
36213         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
36214         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
36215         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
36216         * elf/tst-unique2mod1.c: Likewise.
36217         * elf/tst-unique1mod2.c: Likewise.
36218         * elf/tst-unique1mod1.c: Likewise.
36219         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
36220         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
36221         Replace ASM_TYPE_DIRECTIVE with .type.
36222         * sysdeps/s390/s390-64/sysdep.h: Likewise.
36223         * sysdeps/i386/sysdep.h: Likewise.
36224         * sysdeps/x86_64/sysdep.h: Likewise.
36225         * sysdeps/sh/sysdep.h: Likewise.
36226         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
36227         Do not define ASM_TYPE_DIRECTIVE.
36228         * sysdeps/powerpc/sysdep.h: Likewise.
36229         * sysdeps/powerpc/powerpc32/sysdep.h:
36230         Replace ASM_TYPE_DIRECTIVE with .type.
36231         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
36232         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
36233         * sysdeps/i386/fpu/e_powf.S: Likewise.
36234         * sysdeps/i386/fpu/e_expl.S: Likewise.
36235         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
36236         * sysdeps/i386/fpu/e_acosh.S: Likewise.
36237         * sysdeps/i386/fpu/e_pow.S: Likewise.
36238         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
36239         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
36240         * sysdeps/i386/fpu/s_expm1.S: Likewise.
36241         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
36242         * sysdeps/i386/fpu/e_log2.S: Likewise.
36243         * sysdeps/i386/fpu/e_log2l.S: Likewise.
36244         * sysdeps/i386/fpu/e_scalb.S: Likewise.
36245         * sysdeps/i386/fpu/e_powl.S: Likewise.
36246         * sysdeps/i386/fpu/e_log10f.S: Likewise.
36247         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
36248         * sysdeps/i386/fpu/e_logl.S: Likewise.
36249         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
36250         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
36251         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
36252         * sysdeps/i386/fpu/e_log2f.S: Likewise.
36253         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
36254         * sysdeps/i386/fpu/e_log.S: Likewise.
36255         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
36256         * sysdeps/i386/fpu/e_logf.S: Likewise.
36257         * sysdeps/i386/fpu/e_log10l.S: Likewise.
36258         * sysdeps/i386/fpu/e_atanh.S: Likewise.
36259         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
36260         * sysdeps/i386/fpu/e_log10.S: Likewise.
36261         * sysdeps/i386/fpu/s_frexp.S: Likewise.
36262         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
36263         * sysdeps/i386/fpu/s_asinh.S: Likewise.
36264         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
36265         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
36266         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
36267         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
36268         * sysdeps/i386/i686/strtok.S: Likewise.
36269         * sysdeps/i386/i386-mcount.S: Likewise.
36270         * sysdeps/i386/strtok.S: Likewise.
36271         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
36272         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
36273         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
36274         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
36275         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
36276         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
36277         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
36278         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
36279         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
36280         * sysdeps/x86_64/_mcount.S: Likewise.
36281         * sysdeps/x86_64/strtok.S: Likewise.
36282         * sysdeps/sh/_mcount.S: Likewise.
36283
36284 2012-08-01  Roland McGrath  <roland@hack.frob.com>
36285
36286         * libio/iofopen.c: Include <fcntl.h>.
36287         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
36288         (_IO_fopen64, fopen64): Define as aliases.
36289         * libio/iofopen64.c: Include <fcntl.h>.
36290         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
36291         Conditionalize body on this.
36292         * sysdeps/wordsize-64/iofopen.c: File removed.
36293         * sysdeps/wordsize-64/iofopen64.c: File removed.
36294
36295 2012-08-01  Marek Polacek  <polacek@redhat.com>
36296
36297         * libc/Makeconfig: Use elf in place of binfmt-subdir.
36298         Use dlfcn directly instead of a variable.
36299         (binfmt-subdir): Do not define.
36300         (dlfcn): Likewise.
36301
36302 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
36303
36304         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
36305         Remove all definitions.
36306         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
36307         <kernel-features.h>.
36308         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
36309         (miss_F_GETOWN_EX): Remove all definitions.
36310         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
36311         macro definition.
36312         [!__ASSUME_FCNTL64]: Remove conditional code.
36313         [__ASSUME_FCNTL64]: Make code unconditional.
36314         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
36315         <kernel-features.h>.
36316         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
36317         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
36318         (lockf64) [__NR_fcntl64]: Make code unconditional.
36319         (lockf64) [__ASSUME_FCNTL64]: Likewise.
36320
36321         * sysdeps/unix/sysv/linux/kernel-features.h
36322         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
36323         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
36324         Make code unconditional.
36325         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
36326         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
36327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
36328         [__NR_vfork]: Make code unconditional.
36329         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
36330         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
36331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
36332         [__NR_vfork]: Make code unconditional.
36333         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
36334         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
36335
36336 2012-08-01  Roland McGrath  <roland@hack.frob.com>
36337
36338         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
36339         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
36340
36341         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
36342         Define mkstemp64 as an alias.
36343         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
36344         Define mkstemps64 as an alias.
36345         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
36346         Define mkostemp64 as an alias.
36347         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
36348         Define mkostemps64 as an alias.
36349         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
36350         Conditionalize body on this.
36351         * misc/mkostemp64.c: Likewise.
36352         * misc/mkostemps64.c: Likewise.
36353         * misc/mkstemps64.c: Likewise.
36354         * sysdeps/wordsize-64/mkstemp64.c: File removed.
36355         * sysdeps/wordsize-64/mkostemp64.c: File removed.
36356         * sysdeps/wordsize-64/mkostemp.c: File removed.
36357         * sysdeps/wordsize-64/mkstemp.c: File removed.
36358         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
36359         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
36360         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
36361         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
36362
36363         [BZ #14138]
36364         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
36365         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
36366         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
36367         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
36368
36369         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
36370         compat_symbol macros from <shlib-compat.h> rather than the underlying
36371         default_symbol_version and symbol_version macros, so that DEFAULT
36372         lines in shlib-versions are respected.
36373         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
36374
36375 2012-08-01  Florian Weimer  <fweimer@redhat.com>
36376
36377         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
36378         Declare with warn_unused_result.
36379         (setgid, setregid, setegid, setresgid): Likewise.
36380         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
36381         Likewise.
36382         * WUR-REPORT: Remove set*id functions.
36383
36384 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
36385
36386         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
36387
36388 2012-07-31  Roland McGrath  <roland@hack.frob.com>
36389
36390         [BZ #10191]
36391         * include/sys/socket.h (__libc_accept, __libc_accept4):
36392         Add attribute_hidden.
36393         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
36394
36395         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
36396         use of PTR_MANGLE.
36397         * inet/getnetgrent_r.c (setup): Likewise.
36398
36399         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
36400
36401 2012-07-31  David S. Miller  <davem@davemloft.net>
36402
36403         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36404
36405 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
36406
36407         [BZ #13629]
36408         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
36409         value between 1.0 and 2.0 and smaller part has absolute value less
36410         than 1.0.
36411         * math/s_clog10.c (__clog10): Likewise.
36412         * math/s_clog10f.c (__clog10f): Likewise.
36413         * math/s_clog10l.c (__clog10l): Likewise.
36414         * math/s_clogf.c (__clogf): Likewise.
36415         * math/s_clogl.c (__clogl): Likewise.
36416         * math/libm-test.inc (clog_test): Add more tests.
36417         (clog10_test): Likewise.
36418         * sysdeps/i386/fpu/libm-test-ulps: Update.
36419         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36420
36421 2012-07-31  Florian Weimer  <fweimer@redhat.com>
36422
36423         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
36424         Exit with zero in case no suitable GID is found, and write a
36425         message to standard error.
36426
36427 2012-07-30  Roland McGrath  <roland@hack.frob.com>
36428
36429         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
36430         rather than to 1.
36431         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
36432         (MAXPATHLEN): Removed.
36433         (NOGROUP, NODEV): New macros.
36434         (setbit, clrbit, isset, isclr): New macros.
36435         (howmany, roundup, powerof2): New macros.
36436         (DEV_BSIZE): New macro.
36437
36438         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
36439         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
36440
36441         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
36442         definition on [!__NO_LONG_DOUBLE_MATH].
36443
36444         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
36445         PTR_MANGLE and PTR_DEMANGLE.
36446
36447         * socket/accept4.c (accept4): Rename to __libc_accept4.
36448         Define accept4 as a weak alias.
36449
36450         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
36451         on [_DIRENT_HAVE_D_TYPE].
36452         * io/ftw.c (ftw_dir): Likewise.
36453
36454         * io/xmknod.c (__xmknod): Don't check PATH for being null.
36455
36456         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
36457
36458         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
36459         Use the BSD numbers rather than the arbitrary ones we had.
36460         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
36461         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
36462         (SIGXCPU, SIGXFSZ): New macros.
36463         (_NSIG): Now 32.
36464
36465         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
36466         initializer on [_LIBC_REENTRANT].
36467
36468         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
36469         definitions inside [_POSIX_MAPPED_FILES].
36470
36471         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
36472
36473         * dirent/opendir.c: Include <fcntl.h>.
36474
36475         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
36476         (__libc_getspecific): Likewise.
36477         (__libc_key_create): Likewise.
36478
36479         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
36480         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
36481         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
36482         (tmpfile64): Define as alias.
36483         * sysdeps/wordsize-64/tmpfile.c: File removed.
36484         * sysdeps/wordsize-64/tmpfile64.c: File removed.
36485         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
36486         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
36487
36488         * stdio-common/vfscanf.c: Include <stdbool.h>.
36489         * nss/makedb.c: Likewise.
36490         * stdio-common/_i18n_number.h: Likewise.
36491         * argp/argp-help.c: Likewise.
36492         * posix/wordexp.c: Likewise.
36493         * sysdeps/posix/spawni.c: Likewise.
36494         * nss/nss_files/files-initgroups.c: Likewise.
36495         * stdio-common/reg-modifier.c: Include <stdlib.h>.
36496         * nss/nss_files/files-initgroups.c: Likewise.
36497         * nss/nss_db/db-netgrp.c: Likewise.
36498         * nss/nss_db/db-initgroups.c: Likewise.
36499         * io/fchmodat.c: Include <sys/stat.h>.
36500
36501         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
36502         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
36503
36504         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
36505         [HAVE_MMAP].
36506
36507         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
36508         Add multiple inclusion protection.
36509
36510 2012-07-27  David S. Miller  <davem@davemloft.net>
36511
36512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
36513
36514 2012-07-27  Gary Benson  <gbenson@redhat.com>
36515
36516         [BZ #14298]
36517         * elf/rtld.c: Include <stap-probe.h>.
36518         (dl_main): Added static probes "init_start" and "init_complete".
36519         * elf/dl-load.c: Include <stap-probe.h>.
36520         (lose): Take new parameter "nsid".
36521         Added static probe "map_failed".
36522         (_dl_map_object_from_fd): Pass namespace id to lose.
36523         Added static probe "map_start".
36524         (open_verify): Pass namespace id to lose.
36525         * elf/dl-open.c: Include <stap-probe.h>.
36526         (dl_open_worker) Added static probes "map_complete", "reloc_start"
36527         and "reloc_complete".
36528         * elf/dl-close.c: Include <stap-probe.h>.
36529         (_dl_close_worker): Added static probes "unmap_start" and
36530         "unmap_complete".
36531         * elf/rtld-debugger-interface.txt: New file documenting the above.
36532
36533 2012-07-26  Roland McGrath  <roland@hack.frob.com>
36534
36535         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
36536         rather than a string variable.
36537         * sunrpc/rpc_main.c (h_output): Likewise.
36538         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
36539
36540 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
36541
36542         * inet/check_native.c: New file.
36543
36544 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
36545
36546         [BZ #13629]
36547         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
36548         if larger part has absolute value 1.0.
36549         * math/s_clog10.c (__clog10): Likewise.
36550         * math/s_clog10f.c (__clog10f): Likewise.
36551         * math/s_clog10l.c (__clog10l): Likewise.
36552         * math/s_clogf.c (__clogf): Likewise.
36553         * math/s_clogl.c (__clogl): Likewise.
36554         * math/libm-test.inc (clog_test): Add more tests.
36555         (clog10_test): Likewise.
36556         * sysdeps/i386/fpu/libm-test-ulps: Update.
36557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36558
36559         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
36560         (pltexit): Likewise.
36561         (La_regs): Likewise.
36562         (La_retval): Likewise.
36563         (int_retval): Likewise.
36564         Update #error for removed macros to refer only to definitions in
36565         tst-audit.h.
36566         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
36567         macro.
36568         (pltexit): Likewise.
36569         (La_regs): Likewise.
36570         (La_retval): Likewise.
36571         (int_retval): Likewise.
36572         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
36573         macro.
36574         (pltexit): Likewise.
36575         (La_regs): Likewise.
36576         (La_retval): Likewise.
36577         (int_retval): Likewise.
36578         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
36579         macro.
36580         (pltexit): Likewise.
36581         (La_regs): Likewise.
36582         (La_retval): Likewise.
36583         (int_retval): Likewise.
36584         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
36585         macro.
36586         (pltexit): Likewise.
36587         (La_regs): Likewise.
36588         (La_retval): Likewise.
36589         (int_retval): Likewise.
36590         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
36591         macro.
36592         (pltexit): Likewise.
36593         (La_regs): Likewise.
36594         (La_retval): Likewise.
36595         (int_retval): Likewise.
36596         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
36597         macro.
36598         (pltexit): Likewise.
36599         (La_regs): Likewise.
36600         (La_retval): Likewise.
36601         (int_retval): Likewise.
36602         * sysdeps/generic/tst-audit.h: Update comment to refer only to
36603         macro definitions in tst-audit.h.
36604         * sysdeps/i386/tst-audit.h: New file.
36605         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
36606         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
36607         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
36608         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
36609         * sysdeps/sh/tst-audit.h: Likewise.
36610         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
36611         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
36612         * sysdeps/x86_64/tst-audit.h: Likewise.
36613
36614 2012-07-26  Andreas Jaeger  <aj@suse.de>
36615
36616         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
36617         ptrace.
36618
36619         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
36620         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
36621         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
36622         PTRACE_O_MASK.
36623         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
36624         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
36625         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
36626
36627         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
36628         value.
36629
36630         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
36631         _sigsys.
36632         (si_call_addr, si_syscall, si_arch): Define new macro.
36633         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
36634         _sigsys.
36635         (si_call_addr, si_syscall, si_arch): Define new marcro.
36636         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
36637         _sigsys.
36638         (si_call_addr, si_syscall, si_arch): Define new macro.
36639         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
36640         _sigsys.
36641         (si_call_addr, si_syscall, si_arch): Define new macro.
36642
36643 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
36644
36645         [BZ #13717]
36646         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
36647         Change to 2.4.21 where previously 2.4.1.
36648         * sysdeps/unix/sysv/linux/configure: Regenerated.
36649         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
36650         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
36651         Linux kernel version.
36652         (__ASSUME_STD_AUXV): Remove.
36653         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
36654         kernel version.
36655         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
36656         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
36657         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
36658         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
36659         (__ASSUME_NETLINK_SUPPORT): Likewise.
36660         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
36661         (__no_netlink_support): Remove conditional definition.
36662         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
36663         Remove.
36664         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
36665         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
36666         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
36667         (if_nameindex_ioctl): Remove.
36668         (if_nameindex_netlink): Do not handle __no_netlink_support.
36669         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
36670         code.
36671         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
36672         Remove conditional code.
36673         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
36674         code.
36675         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
36676         unconditional.
36677         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
36678         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
36679         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
36680         Remove.
36681         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
36682         [!__ASSUME_STD_AUXV]: Remove conditional code.
36683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
36684         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
36685         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
36686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
36687         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
36688         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
36689         code.
36690         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
36691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
36692         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
36693         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
36694         conditional code.
36695         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
36696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
36697         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
36698         code.
36699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
36700         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
36701         conditional code.
36702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
36703         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
36704         code unconditional.
36705         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
36706         conditional code.
36707         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
36708         unconditional.
36709         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
36710         conditional code.
36711         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
36712         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
36713         unconditional.
36714         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
36715         conditional code.
36716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
36717         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
36718         code unconditional.
36719         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
36720         conditional code.
36721         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
36722         unconditional.
36723         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
36724         conditional code.
36725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
36726         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
36727         code unconditional.
36728         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
36729         conditional code.
36730         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
36731         unconditional.
36732         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
36733         conditional code.
36734
36735 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
36736
36737         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
36738         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
36739         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
36740         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
36741         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
36742         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
36743         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
36744         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
36745         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
36746         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
36747         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
36748         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
36749         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
36750         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
36751         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
36752         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
36753         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
36754         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
36755         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
36756         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
36757         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
36758         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
36759         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
36760
36761 2012-07-25  Florian Weimer  <fweimer@redhat.com>
36762
36763         * Versions.def: Add GLIBC_2.17.
36764         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
36765         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
36766         Introduce __libc_secure_getenv.
36767         * stdlib/Versions (2.17): Add secure_getenv
36768         (GLIBC_PRIVATE): Add __libc_secure_getenv.
36769         * stdlib/secure-getenv.c: Rename __secure_getenv to
36770         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
36771         symbol __secure_getenv for GLIBC_2.0.
36772         * stdlib/tst-secure-getenv.c: New.
36773         * stdlib/Makefile (tests): Add testcase.
36774         * manual/startup.texi (Environment Access): Document
36775         secure_getenv.
36776         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
36777         __libc_secure_getenv.
36778         * inet/ruserpass.c (ruserpass): Likewise.
36779         * malloc/mtrace.c (mtrace): Likewise.
36780         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
36781         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
36782         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
36783         * sysdeps/posix/tempname.c: Likewise.  Evaluate
36784         HAVE_SECURE_GETENV.
36785         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
36786         __secure_getenv to __libc_secure_getenv.
36787         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
36788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
36789         Likewise.
36790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36791         Likewise.
36792         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
36793         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
36794         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
36795         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
36796         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
36797         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
36798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
36799
36800 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
36801
36802         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
36803         (struct La_i86_retval): Likewise.
36804         (struct La_x86_64_regs): Likewise.
36805         (struct La_x86_64_retval): Likewise.
36806         (struct La_x32_regs): Likewise.
36807         (struct La_x32_retval): Likewise.
36808         (struct La_ppc32_regs): Likewise.
36809         (struct La_ppc32_retval): Likewise.
36810         (struct La_ppc64_regs): Likewise.
36811         (struct La_ppc64_retval): Likewise.
36812         (struct La_sh_regs): Likewise.
36813         (struct La_sh_retval): Likewise.
36814         (struct La_s390_32_regs): Likewise.
36815         (struct La_s390_32_retval): Likewise.
36816         (struct La_s390_64_regs): Likewise.
36817         (struct La_s390_64_retval): Likewise.
36818         (struct La_sparc32_regs): Likewise.
36819         (struct La_sparc32_retval): Likewise.
36820         (struct La_sparc64_regs): Likewise.
36821         (struct La_sparc64_retval): Likewise.
36822         (struct audit_ifaces): Remove architecture-specific pltenter and
36823         pltexit members.
36824         * sysdeps/i386/ldsodefs.h: New file.
36825         * sysdeps/powerpc/ldsodefs.h: Likewise.
36826         * sysdeps/s390/ldsodefs.h: Likewise.
36827         * sysdeps/sh/ldsodefs.h: Likewise.
36828         * sysdeps/sparc/ldsodefs.h: Likewise.
36829         * sysdeps/x86_64/ldsodefs.h: Likewise.
36830
36831 2012-07-25  Marek Polacek  <polacek@redhat.com>
36832
36833         [BZ #6808]
36834         * math/libm-test.inc (yn_test): Add another test.
36835         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
36836         to ERANGE when the result is +-Inf.
36837         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
36838         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
36839         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
36840         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
36841
36842 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
36843
36844         * conform/data/time.h-data (NULL): Use macro-constant.  Require
36845         equal to 0.
36846         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
36847         clock_t.
36848         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
36849
36850 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
36851
36852         * configure.in <sysdeps resolving>: Correct printing
36853         Implies_before.
36854         * configure: Regenerate.
36855
36856 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
36857
36858         * math/w_ilogb.c: Include <limits.h>.
36859         * math/w_ilogbl.c: Likewise.
36860
36861 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
36862
36863         * manual/lang.texi (__va_copy): Document primarily as ISO C99
36864         va_copy.  Document allowing for unavailable va_copy only as
36865         pre-C99 compatibility.
36866         * manual/string.texi (Copying and Concatenation): Use va_copy
36867         instead of __va_copy in concat example.
36868
36869 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
36870
36871         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
36872         (__sendto): Use create_address_port.  Initialize APORT and deallocate
36873         it if not null.
36874
36875         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
36876         with O_NOLINK passed to __file_name_lookup.
36877
36878         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
36879         with O_NOLINK passed to __file_name_lookup.
36880
36881         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
36882         negative N or less than NGIDS.
36883
36884         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
36885         type to string_t.  Set ERANGE as errno and return it if NAME is not big
36886         enough.  Use memcpy instead of strncpy.
36887
36888 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
36889
36890         * elf/Makefile (check-data): Remove.
36891         (localplt.data): New vpath directive.
36892         ($(objpfx)check-localplt.out): Use localplt.data from vpath
36893         instead of $(check-data).
36894         * scripts/data/localplt-generic.data: Move to ...
36895         * sysdeps/generic/localplt.data: ... here.
36896         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
36897         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
36898         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
36899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
36900         ... here.
36901         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
36902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
36903         ... here.
36904         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
36905         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
36906         ... here.
36907         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
36908         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
36909         ... here.
36910         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
36911         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
36912         ... here.
36913         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
36914         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
36915         ... here.
36916
36917 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36918
36919         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
36920         PPC32 and PPC64 files.
36921         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
36922         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
36923
36924 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36925
36926         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
36927         __makecontext_ret to ...
36928         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
36929         ... here and call exit if uc_link is NULL.  New file.
36930         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
36931         __makecontext_ret.S.
36932         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
36933         __makecontext_ret to ...
36934         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
36935         ... here and call exit if uc_link is NULL.  New file.
36936         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
36937         __makecontext_ret.S.
36938
36939 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
36940
36941         * elf/elf.h (R_390_IRELATIVE): New definition.
36942         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
36943         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
36944         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
36945         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
36946         (elf_machine_lazy_rel): Likewise.
36947         * sysdeps/s390/dl-irel.h: New file.
36948         * sysdeps/s390/s390-64/memcpy.S: New asm code.
36949         * sysdeps/s390/s390-64/memset.S: New asm code.
36950         * sysdeps/s390/s390-64/memcmp.S: New asm code.
36951         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
36952         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
36953         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
36954         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
36955         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
36956         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
36957         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
36958         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
36959         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
36960         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
36961         * sysdeps/s390/s390-32/memcpy.S: New asm code.
36962         * sysdeps/s390/s390-32/memset.S: New asm code.
36963         * sysdeps/s390/s390-32/memcmp.S: New asm code.
36964
36965 2012-07-17  Marek Polacek  <polacek@redhat.com>
36966
36967         [BZ #14349]
36968         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
36969         * sysdeps/s390/s390-64/configure.in: Likewise.
36970         * sysdeps/sparc/configure.in: Likewise.
36971         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
36972         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
36973         * sysdeps/i386/configure.in: Likewise.
36974         * sysdeps/x86_64/configure.in: Likewise.
36975         * sysdeps/sh/configure.in: Likewise.
36976         * sysdeps/s390/s390-32/configure: Regenerated.
36977         * sysdeps/s390/s390-64/configure: Likewise.
36978         * sysdeps/x86_64/configure: Likewise.
36979         * sysdeps/sh/configure: Likewise.
36980         * sysdeps/powerpc/powerpc64/configure: Likewise.
36981         * sysdeps/powerpc/powerpc32/configure: Likewise.
36982         * sysdeps/sparc/configure: Likwise.
36983         * sysdeps/i386/configure: Likewise.
36984
36985         * elf/dl-open.c: Comment fixes.
36986
36987 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
36988
36989         * Makefile [CXX] (check-data): Remove.
36990         [CXX] (c++-types.data): New vpath directive.
36991         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
36992         vpath.  Do not allow for C++ type data being missing.
36993         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
36994         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
36995         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
36996         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
36997         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
36998         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
36999         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
37000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
37001         ... here.
37002         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
37003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
37004         ... here.
37005         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
37006         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
37007         ... here.
37008         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
37009         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
37010         ... here.
37011         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
37012         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
37013         ... here.
37014         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
37015         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
37016         ... here.
37017         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
37018         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
37019         ... here.
37020         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
37021         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
37022
37023         * elf/tls-macros.h (TLS_LE): Move architecture-specific
37024         definitions to architecture-specific files.
37025         (TLS_IE): Likewise.
37026         (TLS_LD): Likewise.
37027         (TLS_GD): Likewise.
37028         * sysdeps/i386/tls-macros.h: New file.
37029         * sysdeps/powerpc/tls-macros.h: Likewise.
37030         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
37031         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
37032         * sysdeps/sh/tls-macros.h: Likewise.
37033         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
37034         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
37035         * sysdeps/x86_64/tls-macros.h: Likewise.
37036
37037 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
37038
37039         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
37040         zero value for regular exit case.
37041
37042         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
37043         (__start_context): Preserve zero value for regular exit case.
37044
37045 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
37046             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
37047
37048         * manual/setjmp.texi (setcontext): Clarify normal process
37049         termination when uc_link is the null pointer.
37050         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
37051         exit call.
37052
37053 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
37054
37055         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
37056         preprocessor.  Test for each exception mask separately.
37057
37058 2012-07-16  Andreas Jaeger  <aj@suse.de>
37059
37060         * po/ru.po: Update from translation team.
37061
37062 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
37063
37064         * conform/data/string.h-data (NULL): Use macro-constant.  Require
37065         equal to 0.
37066         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
37067         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
37068         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
37069         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
37070         [ISO || ISO99 || ISO11] (*_t): Do not allow.
37071
37072 2012-07-13  Andreas Jaeger  <aj@suse.de>
37073
37074         * po/fr.po: Update from translation team.
37075
37076 2012-07-12  Marek Polacek  <polacek@redhat.com>
37077
37078         [BZ #14173]
37079         * math/libm-test.inc (yn_test): Add test for BZ #14173.
37080         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
37081         loop condition.
37082
37083 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
37084
37085         [BZ #13717]
37086         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
37087         Change to 2.4.1 where previously 2.4.0.
37088         * sysdeps/unix/sysv/linux/configure: Regenerated.
37089         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
37090         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
37091         version.
37092         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
37093         (__ASSUME_AT_CLKTCK): Remove.
37094         (__ASSUME_AT_PAGESIZE): Likewise.
37095         (__ASSUME_AT_XID): Likewise.
37096         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
37097         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
37098         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
37099         unconditionally.
37100         (HAVE_AUX_PAGESIZE): Likewise.
37101         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
37102         [__ASSUME_AT_CLKTCK]: Make code unconditional.
37103         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
37104
37105 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
37106
37107         [BZ #14307]
37108         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
37109         the temporary buffer used to invoke __gethostbyname2_r,
37110         __gethostbyaddr_r and gethostbyname4_r to make room for struct
37111         host_data / struct gaih_addrtuple.
37112         * resolv/nss_dns/dns-host.c (global scope): Move definition of
37113         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
37114         header file nss/nsswitch.h.
37115         * nss/nsswitch.h (global scope): Add definition of implementation
37116         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
37117         resolv/nss_dns/dns-host.c).
37118
37119 2012-07-11  Andreas Jaeger  <aj@suse.de>
37120
37121         * po/fr.po: Update from translation team.
37122
37123         * po/sv.po: Update from translation team
37124         * po/fr.po: Another update from translation team.
37125
37126 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37127
37128         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
37129         for subnormals or multiply small sinh result by itself.
37130         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
37131         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37132
37133 2012-07-11  David S. Miller  <davem@davemloft.net>
37134
37135         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37136
37137 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
37138
37139         [BZ #14347]
37140         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
37141         (INTERNAL_MARK): Shift it here.
37142
37143 2012-07-10  Marek Polacek  <polacek@redhat.com>
37144
37145         [BZ #14151]
37146         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
37147         libc_cv_asm_global_directive with .globl.
37148         * configure: Regenerated.
37149         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
37150         with .globl.
37151         * sysdeps/i386/configure: Regenerated.
37152         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
37153         with .globl.
37154         * sysdeps/x86_64/configure: Regenerated.
37155         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
37156         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
37157         * elf/tst-unique2mod2.c: Likewise.
37158         * elf/tst-unique2mod1.c: Likewise.
37159         * elf/tst-unique1mod2.c: Likewise.
37160         * elf/tst-unique1mod1.c: Likewise.
37161         * sysdeps/s390/s390-32/sysdep.h: Likewise.
37162         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
37163         * sysdeps/s390/s390-64/sysdep.h: Likewise.
37164         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
37165         * sysdeps/mach/sysdep.h: Likewise.
37166         * sysdeps/i386/sysdep.h: Likewise.
37167         * sysdeps/i386/i386-mcount.S: Likewise.
37168         * sysdeps/x86_64/_mcount.S: Likewise.
37169         * sysdeps/x86_64/sysdep.h: Likewise.
37170         * sysdeps/sh/_mcount.S: Likewise.
37171         * sysdeps/sh/sysdep.h: Likewise.
37172         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
37173         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
37174         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
37175         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
37176         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
37177         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
37178         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
37179         * locale/localeinfo.h: Likewise.
37180         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
37181         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
37182
37183 2012-07-09  Roland McGrath  <roland@hack.frob.com>
37184
37185         [BZ #14336]
37186         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
37187         system".
37188         * manual/message.texi (The Uniforum approach): Likewise.
37189         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
37190         (glibc iconv Implementation): Likewise.
37191
37192 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
37193
37194         [BZ #14337]
37195         * math/s_clog.c (__clog): Avoid scaling a value down where that
37196         could result in underflow.
37197         * math/s_clog10.c (__clog10): Likewise.
37198         * math/s_clog10f.c (__clog10f): Likewise.
37199         * math/s_clog10l.c (__clog10l): Likewise.
37200         * math/s_clogf.c (__clogf): Likewise.
37201         * math/s_clogl.c (__clogl): Likewise.
37202         * math/libm-test.inc (clog_test): Add more tests.
37203         (clog10_test): Likewise.
37204         * sysdeps/i386/fpu/libm-test-ulps: Update.
37205         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37206
37207 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
37208
37209         [BZ #14283]
37210         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
37211         by 7 not 8 to examine high bit of fractional part.
37212
37213         [BZ #14042]
37214         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
37215         for call to __mcount_internal.
37216         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
37217         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
37218         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
37219
37220 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
37221
37222         [BZ #14154]
37223         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
37224         approximation for values within 0x1p-13f of an odd multiple of
37225         pi/4.
37226         * math/libm-test.inc (tan_test): Do not allow spurious underflow
37227         exception.  Add more tests.
37228         * sysdeps/i386/fpu/libm-test-ulps: Update.
37229
37230         [BZ #6778]
37231         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
37232         inputs and return -1 for them.  Do not check for +Inf in case not
37233         reachable for +Inf.
37234         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
37235         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
37236         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
37237         and return -1 for them.  Do not check for +Inf in case not
37238         reachable for +Inf.
37239         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
37240         define.
37241         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
37242         and return -1 for them.  Do not check for +Inf in case not
37243         reachable for +Inf.
37244         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
37245         spurious underflow.
37246         * sysdeps/i386/fpu/libm-test-ulps: Update.
37247         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37248
37249 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
37250
37251         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
37252
37253 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
37254
37255         [BZ #14157]
37256         [BZ #14331]
37257         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
37258         could result in spurious underflow.  Scale down values above
37259         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
37260         * math/s_csqrtf.c (__csqrtf): Likewise.
37261         * math/s_csqrtl.c (__csqrtl): Likewise.
37262         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
37263         spurious underflow.
37264         * sysdeps/i386/fpu/libm-test-ulps: Update.
37265         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37266
37267 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
37268
37269         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
37270         xopen-msg.sed.
37271         * catgets/xopen-msg.awk: New file.
37272         * catgets/xopen-msg.sed: Removed.
37273
37274         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
37275         po2text.sed.
37276         * intl/po2test.awk: New file.
37277         * intl/po2test.sed: Removed.
37278
37279 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
37280
37281         [BZ #14328]
37282         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
37283         or multiply small sinh result by itself.
37284         * math/s_ctanf.c (__ctanf): Likewise.
37285         * math/s_ctanh.c (__ctanh): Likewise.
37286         * math/s_ctanhf.c (__ctanhf): Likewise.
37287         * math/s_ctanhl.c (__ctanhl): Likewise.
37288         * math/s_ctanl.c (__ctanl): Likewise.
37289         * math/libm-test.inc (ctan_test_tonearest): New function.
37290         (ctan_test_towardzero): Likewise.
37291         (ctan_test_downward): Likewise.
37292         (ctan_test_upward): Likewise.
37293         (ctanh_test_tonearest): Likewise.
37294         (ctanh_test_towardzero): Likewise.
37295         (ctanh_test_downward): Likewise.
37296         (ctanh_test_upward): Likewise.
37297         (main): Call these new functions.
37298         * sysdeps/i386/fpu/libm-test-ulps: Update.
37299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37300
37301 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
37302
37303         * .gitignore: Delete /ports entry.
37304
37305 2012-07-03  Andreas Jaeger  <aj@suse.de>
37306
37307         * po/bg.po: Update from translation team.
37308         * po/cs.po: Likewise.
37309         * po/de.po: Likewise.
37310         * po/hr.po: Likewise.
37311         * po/nl.pl: Likewise.
37312         * po/pl.po: Likewise.
37313         * po/vi.po: Likewise.
37314
37315 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
37316
37317         * Makeconfig [!+link] (+link-before-libc): New variable.
37318         [!+link] (+link-after-libc): Likewise.
37319         [!+link] (+link-tests): Likewise.
37320         [!+link] (+link): Define in terms of $(+link-before-libc) and
37321         $(+link-after-libc).
37322         [!+link-static] (+link-static-before-libc): New variable.
37323         [!+link-static] (+link-static-after-libc): Likewise.
37324         [!+link-static] (+link-static-tests): Likewise.
37325         [!+link-static] (+link-static): Define in terms of
37326         $(+link-static-before-libc) and $(+link-static-after-libc).
37327         [build-shared] (link-libc-before-gnulib): New variable.
37328         [build-shared] (link-libc-tests): Likewise.
37329         [build-shared] (link-libc): Define in terms of
37330         $(link-libc-before-gnulib).
37331         [!build-shared] (link-libc-tests): New variable.
37332         (link-libc-static-tests): New variable.
37333         [!gnulib] (gnulib-arch): New variable.
37334         [!gnulib] (gnulib-tests): Likewise.
37335         [!gnulib] (static-gnulib-arch): Likewise.
37336         [!gnulib] (static-gnulib-tests): Likewise.
37337         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
37338         Define with "=" instead of ":=".
37339         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
37340         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
37341         * Rules (binaries-all-notests): New variable.
37342         (binaries-all-tests): Likewise.
37343         (binaries-static-notests): Likewise.
37344         (binaries-static-tests): Likewise.
37345         (binaries-all): Define using $(binaries-all-notests) and
37346         $(binaries-all-tests).
37347         (binaries-static): Define using $(binaries-static-notests) and
37348         $(binaries-static-tests).
37349         (binaries-shared-tests): New variable.
37350         (binaries-shared-notests): Likewise.
37351         (binaries-shared): Remove variable.
37352         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
37353         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
37354         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
37355         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
37356         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
37357         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
37358         * elf/Makefile (sln-modules): New variable.
37359         (extra-objs): Add $(sln-modules:=.o).
37360         (ldconfig-modules): Add static-stubs.
37361         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
37362         * elf/static-stubs.c: New file.
37363
37364         [BZ #14283]
37365         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
37366         by 7 not 8 to examine high bit of fractional part.  Use volatile
37367         variables when splitting into final array of floats if
37368         __FLT_EVAL_METHOD__ != 0.
37369         * math/libm-test.inc (cos_test): Add another test.
37370         (sin_test): Likewise.
37371         * sysdeps/i386/fpu/libm-test-ulps: Update.
37372
37373         [BZ #14273]
37374         * math/libm-test.inc (cosh_test): Add more tests.
37375
37376         * version.h (RELEASE): Set to "development".
37377         (VERSION): Set to "2.16.90".
37378
37379 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
37380
37381         * NEWS: Update copyright. Remove last-updated date.
37382         Mention math library bug fixes and timezone data changes.
37383         * README: Mention GNU/Hurd, x32, and HPPA support status.
37384
37385 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
37386
37387         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
37388
37389 2012-06-27  Andreas Jaeger  <aj@suse.de>
37390
37391         * manual/contrib.texi (Contributors): Add Samuel Thibault.
37392
37393 2012-06-25  Andreas Jaeger  <aj@suse.de>
37394
37395         * sysdeps/s390/fpu/libm-test-ulps: Update.
37396
37397 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
37398             Thomas Schwinge  <thomas@codesourcery.com>
37399
37400         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
37401         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
37402         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
37403         fanotify_mark.
37404
37405 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
37406
37407         * sysdeps/mach/start.c: Remove file.
37408         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
37409         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
37410         * sysdeps/sh/init-first.c: Likewise.
37411
37412         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
37413         registers for frame unwinding purposes, add CFI directives.
37414         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
37415         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
37416         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
37417         Likewise.
37418
37419         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
37420         __fortify_fail returning.
37421         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
37422
37423         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
37424         sysdeps/sh/____longjmp_chk.S.
37425         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
37426         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
37427         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
37428         (gen-as-const-headers): Append sigaltstack-offsets.sym.
37429
37430         * sysdeps/sh/abort-instr.h: New file.
37431         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
37432         process in case exit returns.
37433
37434         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
37435         initialize the GOT register before use.
37436
37437         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
37438         calculation of ARGC > 4.
37439
37440         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
37441         meaningful names to some local labels.
37442
37443 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37444             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
37445
37446         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
37447         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
37448         (__arch_compare_and_exchange_val_16_acq): Likewise.
37449         (__arch_compare_and_exchange_val_32_acq): Likewise.
37450         (atomic_exchange_and_add): Fix gUSA sequence.
37451         (atomic_add): Likewise.
37452         (atomic_add_negative): Likewise.
37453         (atomic_add_zero): Likewise.
37454         (atomic_bit_test_set): Likewise.
37455
37456 2012-06-22  Andreas Schwab  <schwab@redhat.com>
37457
37458         [BZ #13579]
37459         * include/link.h (struct link_map): Add l_free_initfini.
37460         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
37461         l_initfini.
37462         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
37463         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
37464         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
37465         set.
37466
37467 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
37468
37469         * configure.in: Use AC_LANG_SOURCE.
37470         * configure: Regenerate.
37471
37472 2012-06-22  Roland McGrath  <roland@hack.frob.com>
37473
37474         * configure.in (libc_cv_localstatedir): New substituted variable.
37475         * configure: Regenerated.
37476         * config.make.in (localstatedir): New variable, substituted from
37477         libc_cv_localstatedir.
37478         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
37479         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
37480         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
37481         * sysdeps/gnu/configure: Regenerated.
37482
37483 2012-06-21  Jeff Law  <law@redhat.com>
37484
37485         [BZ #14277]
37486         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
37487         free.  Simplify list management for _LIBC case.
37488
37489 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
37490
37491         [BZ #14273]
37492         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
37493         Clear sign bit of 64-bit integer value before comparing against
37494         overflow value.
37495
37496         * sysdeps/mach/configure: Regenerated.
37497
37498 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
37499
37500         [BZ #14278]
37501         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
37502
37503 2012-06-21  Jeff Law  <law@redhat.com>
37504
37505         [BZ #13882]
37506         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
37507         uint16_t for elements in the "seen" array to avoid char overflows.
37508         * elf/dl-fini.c (_dl_sort_fini): Likewise.
37509         * elf/dl-open.c (dl_open_worker): Likewise.
37510
37511 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
37512
37513         * scripts/list-sources.sh: Scan PORTS for translations.
37514         * po/libc.pot: Regenerated.
37515
37516 2012-06-21  Andreas Jaeger  <aj@suse.de>
37517
37518         [BZ #12194]
37519         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
37520         warning.
37521         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
37522         * bits/byteswap-16.h (__bswap_16): Likewise.
37523         * bits/byteswap.h (__bswap_constant_16): Likewise.
37524
37525 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
37526
37527         [BZ #14117]
37528         * sysdeps/i386/fpu_control.h: Removed.
37529         * sysdeps/x86_64/fpu_control.h: Moved to ...
37530         * sysdeps/x86/fpu_control.h: Here.
37531
37532         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
37533         (_FPU_SETCW): Likewise.
37534
37535 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
37536
37537         [BZ #14117]
37538         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
37539         * sysdeps/x86/fpu/bits/mathinline.h: This.
37540         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
37541
37542         [BZ #14050]
37543         [BZ #14117]
37544         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
37545         functions if __x86_64__ is defined.
37546
37547 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
37548
37549         * string/endian.h: Add !__ASSEMBLER__ condition for including
37550         conversion interfaces.
37551
37552 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
37553
37554         [BZ #14241]
37555         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
37556         of ABS(x) in calculating zero to negative powers other than odd
37557         integers.
37558         * math/libm-test.inc (pow_test): Add more tests.
37559
37560 2012-06-15  Andreas Jaeger  <aj@suse.de>
37561
37562         * manual/contrib.texi (Contributors): Update entry of Liubov
37563         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
37564         Machado Filho.
37565
37566 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
37567
37568         * string/string.h: Add __wur to GNU version of strerror_r.
37569
37570 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
37571
37572         [BZ #14229]
37573         * string/Makefile (tests): Add tst-strtok_r.
37574         * string/tst-strtok_r.c: New file.
37575         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
37576         RAX_LP/RDX_LP on SAVE_PTR.
37577
37578 2012-06-14  Roland McGrath  <roland@hack.frob.com>
37579
37580         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
37581
37582 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
37583
37584         * libm_test.inc (csqrt_test): Allow more spurious underflow
37585         exceptions.
37586         (j0_test): Likewise.
37587         (j1_test): Likewise.
37588         (y0_test): Likewise.
37589         (y1_test): Likewise.
37590
37591 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
37592
37593         * po/Makefile (libc.pot): Use UTF-8 charset.
37594
37595 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
37596
37597         [BZ #14210]
37598         Suppress sign-conversion warning from FD_SET.
37599         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
37600         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
37601         not unsigned long int.
37602         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
37603
37604 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
37605
37606         [BZ #14050]
37607         [BZ #14117]
37608         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
37609         __extern_always_inline instead of __extern_inline.
37610         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
37611         (__signbit): Likewise.
37612         (__signbitl): Support C++ namespace.
37613         (lrintf): New inline function.
37614         (lrint): Likewise.
37615         (llrintf): Likewise.
37616         (llrint): Likewise.
37617         (fmaxf): Likewise.
37618         (fmax): Likewise.
37619         (fminf): Likewise.
37620         (fmin): Likewise.
37621         (rint): Likewise.
37622         (rintf): Likewise.
37623         (ceil): Likewise.
37624         (ceilf): Likewise.
37625         (floor): Likewise.
37626         (floorf): Likewise.
37627         (nearbyint): Likewise.
37628         (nearbyintf): Likewise.
37629
37630 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
37631
37632         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
37633         non-default versions.
37634
37635 2012-06-11  Roland McGrath  <roland@hack.frob.com>
37636
37637         [BZ #14218]
37638         * manual/argp.texi (Argp): Reword argp_parse description slightly.
37639
37640 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
37641
37642         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
37643         (FE_UPWARD, FE_DOWNWARD): Don't define.
37644         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
37645         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
37646
37647         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
37648         reading it.
37649         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
37650         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
37651
37652 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
37653
37654         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
37655         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
37656         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
37657         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
37658
37659 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
37660
37661         [BZ #14117]
37662         * sysdeps/i386/fpu/bits/fenv.h: Removed.
37663         * sysdeps/i386/fpu/Implies: New file.
37664         * sysdeps/x86_64/fpu/Implies: Likewise.
37665         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
37666         * sysdeps/x86/fpu/bits/fenv.h: This.
37667
37668         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
37669         __SSE_MATH__.
37670
37671 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
37672
37673         [BZ #14134]
37674         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
37675         character 0xffff that matches the last element of the
37676         conversion table.
37677
37678 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37679
37680         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
37681         fmodl commit.
37682
37683 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37684
37685         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
37686         values higher than 25.6283.
37687
37688 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37689
37690         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
37691         subnormal exponent extraction and add some __builtin_expect.
37692         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
37693         Fix for subnormal mantissa calculation.
37694
37695 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
37696
37697         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
37698         cpu2 is -1 and errno is not ENOSYS.
37699
37700 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
37701
37702         [BZ #14117]
37703         * sysdeps/i386/i486/bits/string.h: Renamed to ...
37704         * sysdeps/x86/bits/string.h: This.
37705         * sysdeps/x86_64/bits/string.h: Removed.
37706
37707         * sysdeps/i386/i486/bits/string.h: Define inline functions only
37708         if not compiling for x86-64, but compiling for >= i486.
37709
37710         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
37711         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
37712
37713         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
37714         New macro from Linux kernel 3.4.0.
37715         (FP_XSTATE_MAGIC2): Likewise.
37716         (FP_XSTATE_MAGIC2_SIZE): Likewise.
37717         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
37718         (struct _fpx_sw_bytes): New struct.
37719         (struct _xsave_hdr): Likewise.
37720         (struct _ymmh_state): Likewise.
37721         (struct _xstate): Likewise.
37722
37723         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
37724         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
37725         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
37726         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
37727         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
37728         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
37729
37730         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
37731         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
37732         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
37733         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
37734         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
37735         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
37736
37737 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
37738
37739         [BZ #13743]
37740         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
37741         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
37742         (sysdep_headers): Include sys/platform/ppc.h.
37743         * sysdeps/powerpc/test-gettimebase.c: Test for
37744         __ppc_get_timebase() to catch future ISA opcode/insn changes.
37745         * manual/Makefile (appendices): Include platform.texi.
37746         * manual/contrib.texi (Contributors): Update @node pointers.
37747         * manual/maint.texi (Maintenance): Likewise.
37748         (Platform): New node.
37749         * manual/platform.texi: New file.  Document the new features.
37750
37751 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
37752             Jakub Jelinek  <jakub@redhat.com>
37753
37754         [BZ #14188]
37755         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
37756         where __builtin_expect is unavailable.
37757
37758 2012-06-03  David S. Miller  <davem@davemloft.net>
37759
37760         * stdlib/longlong.h: Updated from GCC.
37761
37762 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
37763
37764         [BZ #14042]
37765         * sysdeps/powerpc/powerpc32/mcount.c: New file.
37766         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
37767         __mcount_internal.
37768         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
37769         (GLIBC_2.16): Likewise.
37770
37771 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
37772
37773         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
37774
37775 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
37776
37777         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
37778         (default-abi): New variable.
37779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
37780         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
37781         variable.
37782         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
37783         Likewise.
37784         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
37785         Likewise.
37786         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
37787         Likewise.
37788
37789         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
37790         definition.  Document in comment.
37791
37792 2012-06-01  David S. Miller  <davem@davemloft.net>
37793
37794         * stdlib/longlong.h: Updated from GCC.
37795
37796 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
37797
37798         [BZ #14117]
37799         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
37800         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
37801         sys/debugreg.h sys/io.h here.
37802         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
37803         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
37804         sys/io.h.
37805         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
37806         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
37807         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
37808         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
37809         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
37810         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
37811
37812         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
37813         Define only if __x86_64__ is defined.
37814
37815 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
37816
37817         [BZ #14048]
37818         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
37819         Use int64_t for variable i.
37820         * math/libm-test.inc (fmod_test): Add more tests.
37821
37822         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
37823         z computation is not scheduled after fetestexcept.
37824         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
37825         Use math_force_eval instead of asm to ensure calculation scheduled
37826         before exception test.
37827         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
37828         Ensure a1 + u.d computation is not scheduled after fetestexcept.
37829
37830 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
37831
37832         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
37833         computation is not scheduled after fetestexcept.
37834
37835 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
37836
37837         [BZ #14117]
37838         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
37839         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
37840
37841 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37842
37843         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
37844         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
37845
37846 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
37847
37848         [BZ #14117]
37849         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
37850         <bits/wordsize.h>.
37851         (__WCHAR_MIN): Support __WORDSIZE == 64.
37852         (__WCHAR_MAX): Likewise.
37853
37854         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
37855         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
37856
37857         [BZ #14183]
37858         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
37859         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
37860
37861         [BZ #14117]
37862         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
37863         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
37864
37865         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
37866         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
37867
37868         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
37869         Defined to 1 if __x86_64__ isn't defined.
37870         (_STAT_VER_LINUX_OLD): New.
37871         (st_atime): Remove duplicate.
37872         (st_mtime): Likewise.
37873         (st_ctime): Likewise.
37874
37875 2012-05-31  David S. Miller  <davem@davemloft.net>
37876
37877         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
37878         entries.
37879
37880 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
37881
37882         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
37883         gen-libm-test.pl.
37884
37885         [BZ #14132]
37886         * elf/dl-reloc.c: Include <_itoa.h>.
37887         (_dl_reloc_bad_type): Remove use of INTUSE.
37888         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
37889         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
37890         * stdio-common/psiginfo.c (psiginfo): Likewise.
37891         * stdio-common/psignal.c (psignal): Likewise.
37892         * string/strsignal.c (strsignal): Likewise.
37893         * include/signal.h (_sys_siglist): Declare hidden proto.
37894         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
37895         INTVARDEF with libc_hidden_data_def.
37896         * stdio-common/itoa-udigits.c: Likewise.
37897         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
37898         (_itoa_lower_digits_internal): Remove declaration.
37899         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
37900         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
37901         (_sys_sigabbrev_internal): Remove aliases.
37902         (_sys_siglist): Define hidden alias.
37903
37904 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
37905
37906         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
37907         bits/sysctl.h.
37908
37909 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
37910
37911         [BZ #14117]
37912         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
37913         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
37914
37915         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
37916         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
37917         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
37918         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
37919         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
37920         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
37921
37922         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
37923         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
37924         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
37925
37926         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
37927         with __addr.
37928         (insw): Likewise.
37929         (insl): Likewise.
37930         (outsb): Likewise.
37931         (outsw): Likewise.
37932         (outsl): Likewise.
37933
37934         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
37935         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
37936         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
37937
37938         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
37939         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
37940         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
37941         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
37942         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
37943         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
37944
37945         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
37946         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
37947
37948         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
37949         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
37950
37951         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
37952         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
37953         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
37954
37955         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
37956         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
37957         to ...
37958         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
37959
37960         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
37961         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
37962         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
37963
37964         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
37965         for x86-64.
37966         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
37967
37968 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
37969
37970         * math/math.h (M_El): Use two more decimal places.
37971         (M_LOG2El): Likewise.
37972         (M_LOG10El): Likewise.
37973         (M_LN2l): Likewise.
37974         (M_LN10l): Likewise.
37975         (M_PIl): Likewise.
37976         (M_PI_2l): Likewise.
37977         (M_PI_4l): Likewise.
37978         (M_1_PIl): Likewise.
37979         (M_2_PIl): Likewise.
37980         (M_2_SQRTPIl): Likewise.
37981         (M_SQRT2l): Likewise.
37982         (M_SQRT1_2l): Likewise.
37983
37984 2012-05-31  David S. Miller  <davem@davemloft.net>
37985
37986         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
37987         values between float registers.
37988         * sysdeps/sparc/sparc64/memset.S: Likewise.
37989         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
37990
37991 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
37992
37993         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
37994         -D_FORTIFY_SOURCE=1.
37995         (CPPFLAGS-tst-longjmp_chk.c): Define.
37996         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
37997         (CPPFLAGS-tst-longjmp_chk2.c): Define.
37998         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
37999         CFLAGS-tst-wchar-h.c.
38000
38001 2012-05-31  Marek Polacek  <polacek@redhat.com>
38002
38003         [BZ #14132]
38004         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
38005         __endmntent_internal): Remove declaration.
38006         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
38007         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
38008         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
38009
38010 2012-05-30  David S. Miller  <davem@davemloft.net>
38011
38012         * sysdeps/sparc/sparc32/soft-fp/q_util.c
38013         (___Q_simulate_exceptions): Use real FP ops rather than writing
38014         into the %fsr.
38015         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
38016         Likewise.
38017
38018 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
38019
38020         [BZ #14117]
38021         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
38022         * sysdeps/x86/bits/xtitypes.h: This.
38023
38024         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
38025         * sysdeps/x86/bits/wordsize.h: This.
38026
38027         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
38028         * sysdeps/x86/bits/huge_vall.h: This.
38029
38030         * sysdeps/i386/bits/select.h: Removed.
38031         * sysdeps/x86_64/bits/select.h: Renamed to ...
38032         * sysdeps/x86/bits/select.h: This.
38033
38034         * sysdeps/i386/bits/setjmp.h: Removed.
38035         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
38036         * sysdeps/x86/bits/setjmp.h: This.
38037
38038         * sysdeps/i386/bits/mathdef.h: Removed.
38039         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
38040         * sysdeps/x86/bits/mathdef.h: This.
38041
38042 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
38043
38044         [BZ #14132]
38045         * include/sys/socket.h (__connect_internal)
38046         (__libc_sa_len_internal): Remove declaration.
38047         (__connect, __libc_sa_len): Declare hidden_proto.
38048         (SA_LEN): Remove use of INTUSE.
38049         * socket/connect.c: Add libc_hidden_def.
38050         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
38051         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
38052         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
38053         alias.
38054         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
38055         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
38056         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
38057         of adding _internal alias.
38058
38059 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
38060
38061         [BZ #14117]
38062         * sysdeps/i386/bits/link.h: Removed.
38063         * sysdeps/i386/bits/linkmap.h: Likewise.
38064         * sysdeps/x86_64/bits/link.h: Renamed to ...
38065         * sysdeps/x86/bits/link.h: This.
38066         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
38067         * sysdeps/x86/bits/linkmap.h: This.
38068
38069         * sysdeps/i386/bits/endian.h: Removed.
38070         * sysdeps/x86_64/bits/endian.h: Renamed to ...
38071         * sysdeps/x86/bits/endian.h: This.
38072
38073         * sysdeps/i386/bits/byteswap.h: Removed.
38074         * sysdeps/i386/bits/byteswap-16.h: Likewise.
38075         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
38076         * sysdeps/x86/bits/byteswap.h: This.
38077         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
38078         * sysdeps/x86/bits/byteswap-16.h: This.
38079         * sysdeps/i386/Implies: Add x86.
38080         * sysdeps/x86_64/Implies: Likewise.
38081
38082 2012-05-30  David S. Miller  <davem@davemloft.net>
38083
38084         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
38085         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
38086         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
38087         (FP_TRAPPING_EXCEPTIONS): Define.
38088         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
38089         (FP_TRAPPING_EXCEPTIONS): Define.
38090         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
38091         subnormals only when inexact has been signalled or underflow
38092         exceptions are enabled.
38093         (_FP_PACK_CANONICAL): Likewise.
38094
38095 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
38096
38097         [BZ #14183]
38098         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
38099         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
38100
38101 2012-05-30  Richard Henderson  <rth@twiddle.net>
38102
38103         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
38104         with #ifndef NOT_IN_libc.
38105
38106         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
38107         marked to avoid plt entry.
38108
38109 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
38110
38111         [BZ #14112]
38112         * Makeconfig (default-abi): New macro.
38113         (abi-includes): Likewise.
38114         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
38115         $(abi-$(default-abi)-lib-soname) for soname if defined.
38116         ($(common-objpfx)gnu/lib-names.stmp): Generate from
38117         abi-variants.
38118         * Makefile (installed-stubs): Likewise.
38119         * include/stubs-biarch.h: Removed.
38120         * scripts/lib-names.awk: Only handle one library at a time.
38121         * scripts/soversions.awk: Remove WORDSIZE support.
38122         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
38123         entries.
38124         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
38125         Removed.
38126         (syscall-list-default-condition): Likewise.
38127         (syscall-list-default-condition): Likewise.
38128         (syscall-list-includes): Likewise.
38129         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
38130         syscall-list-* with abi-*.  Handle undefined abi-variants.
38131         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
38132         * sysdeps/unix/sysv/linux/i386/Implies: New file.
38133         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
38134         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
38135         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
38136         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
38137         Removed.
38138         (syscall-list-32-options): Likewise.
38139         (syscall-list-32-condition): Likewise.
38140         (syscall-list-64-options): Likewise.
38141         (syscall-list-64-condition): Likewise.
38142         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
38143         macro.
38144         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
38145         Renamed to ...
38146         (abi-*): This.
38147         (abi-64-ld-soname): New macro.
38148         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
38149         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
38150         Renamed to ...
38151         (abi-*): This.
38152         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
38153         * sysdeps/x86_64/x32/shlib-versions: Likewise.
38154
38155 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
38156
38157         * sysdeps/unix/sysv/linux/kernel-features.h
38158         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
38159         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
38160         include <kernel-features.h>.
38161         [!__NR_ftruncate64]: Remove conditional code.
38162         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38163         [__NR_ftruncate64]: Make code unconditional.
38164         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38165         * sysdeps/unix/sysv/linux/truncate64.c: Do not
38166         include <kernel-features.h>.
38167         [!__NR_ftruncate64]: Remove conditional code.
38168         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38169         [__NR_ftruncate64]: Make code unconditional.
38170         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
38172         include <kernel-features.h>.
38173         [!__NR_ftruncate64]: Remove conditional code.
38174         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38175         [__NR_ftruncate64]: Make code unconditional.
38176         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
38178         include <kernel-features.h>.
38179         [!__NR_ftruncate64]: Remove conditional code.
38180         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38181         [__NR_ftruncate64]: Make code unconditional.
38182         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
38183
38184         * configure.in (libc_cv_fpie): Weaken to a compile test using
38185         LIBC_TRY_CC_OPTION.
38186         * configure: Regenerated.
38187
38188 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
38189
38190         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
38191         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
38192         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
38193         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
38194         Refreshed.
38195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
38196         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
38197         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
38198         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
38199         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
38200         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
38201         Refreshed.
38202
38203 2012-05-27  David S. Miller  <davem@davemloft.net>
38204
38205         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
38206         (___Q_zero): New.
38207         (__Q_simulate_exceptions): Return void.  Change to simulate
38208         exceptions by writing into the %fsr.
38209         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
38210         (__Qp_handle_exceptions): Likewise.
38211         (numbers): Delete.
38212         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
38213         __Qp_handle_exceptions.
38214         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
38215         __Qp_handle_exceptions.
38216         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
38217         as unused and give dummy FP_RND_NEAREST initializer.
38218         (FP_INHIBIT_RESULTS): Define.
38219         (___Q_simulate_exceptions): Update declaration.
38220         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
38221         formatting.
38222         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
38223         as unused and give dummy FP_RND_NEAREST initializer.
38224         (__Qp_handle_exceptions): Update declaration.
38225         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
38226         formatting.
38227
38228 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
38229
38230         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
38231         the temporary FPU control word.
38232         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
38233         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
38234         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
38235         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
38236         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
38237         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
38238         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
38239         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
38240         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
38241         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
38242         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
38243
38244 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
38245
38246         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
38247         fields.
38248
38249 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
38250
38251         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
38252         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
38253         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
38254         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
38255         Likewise.
38256         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
38257         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
38258         Likewise.
38259
38260 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
38261
38262         * po/h.po: Update from translation team.
38263
38264 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
38265
38266         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
38267
38268         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
38269         handling of denormals.
38270         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
38271         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
38272         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
38273         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
38274         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
38275         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
38276         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
38277         Likewise.
38278
38279 2012-05-26  Marek Polacek  <polacek@redhat.com>
38280
38281         [BZ #14152]
38282         * math/libm-test.inc (fma_test): Don't always expect underflow
38283         exception.
38284
38285 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
38286
38287         [BZ #12416]
38288         * elf/tst-execstack.c: Include stackinfo.h.
38289         (do_test): Adjust test case to ensure that pthread_getattr_np
38290         behaviour remains the same after marking stack executable.
38291
38292 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
38293
38294         * sysdeps/unix/sysv/linux/kernel-features.h
38295         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
38296         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
38297         kernel-features.h.
38298         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
38299         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
38300         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
38301         kernel-features.h.
38302         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
38303         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
38304
38305 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
38306
38307         * configure.in: Define the default includes to being none.
38308         * configure: Regenerated.
38309
38310 2012-05-25  Roland McGrath  <roland@hack.frob.com>
38311
38312         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
38313         * sysdeps/x86_64/setjmp.S: Likewise.
38314         * sysdeps/i386/bsd-setjmp.S: Likewise.
38315         * sysdeps/i386/bsd-_setjmp.S: Likewise.
38316         * sysdeps/i386/setjmp.S: Likewise.
38317         * sysdeps/i386/__longjmp.S: Likewise.
38318         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
38319         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
38320
38321         * include/stap-probe.h: New file.
38322         * configure.in: Handle --enable-systemtap.
38323         * configure: Regenerated.
38324         * config.h.in (USE_STAP_PROBE): New #undef.
38325         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
38326         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
38327         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
38328
38329 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
38330
38331         [BZ #13717]
38332         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
38333         to 2.4.0 where earlier.
38334         * sysdeps/unix/sysv/linux/configure: Regenerated.
38335         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
38336         <kernel-features.h>.
38337         [__ASSUME_32BITUIDS]: Make code unconditional.
38338         [!__ASSUME_32BITUIDS]: Remove conditional code.
38339         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
38340         <kernel-features.h>.
38341         [__ASSUME_32BITUIDS]: Make code unconditional.
38342         [!__ASSUME_32BITUIDS]: Remove conditional code.
38343         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
38344         [__ASSUME_32BITUIDS]: Make code unconditional.
38345         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
38346         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
38347         <kernel-features.h>.
38348         [__ASSUME_32BITUIDS]: Make code unconditional.
38349         [!__ASSUME_32BITUIDS]: Remove conditional code.
38350         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
38351         <kernel-features.h>.
38352         [__ASSUME_32BITUIDS]: Make code unconditional.
38353         [!__ASSUME_32BITUIDS]: Remove conditional code.
38354         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
38355         <kernel-features.h>.
38356         [__ASSUME_32BITUIDS]: Make code unconditional.
38357         [!__ASSUME_32BITUIDS]: Remove conditional code.
38358         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
38359         <kernel-features.h>.
38360         [__ASSUME_32BITUIDS]: Make code unconditional.
38361         [!__ASSUME_32BITUIDS]: Remove conditional code.
38362         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
38363         <kernel-features.h>.
38364         [__ASSUME_32BITUIDS]: Make code unconditional.
38365         [!__ASSUME_32BITUIDS]: Remove conditional code.
38366         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
38367         <kernel-features.h>.
38368         [__ASSUME_32BITUIDS]: Make code unconditional.
38369         [!__ASSUME_32BITUIDS]: Remove conditional code.
38370         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
38371         <kernel-features.h>.
38372         [__ASSUME_32BITUIDS]: Make code unconditional.
38373         [!__ASSUME_32BITUIDS]: Remove conditional code.
38374         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
38375         <kernel-features.h>.
38376         [__ASSUME_32BITUIDS]: Make code unconditional.
38377         [!__ASSUME_32BITUIDS]: Remove conditional code.
38378         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
38379         <kernel-features.h>.
38380         [__ASSUME_32BITUIDS]: Make code unconditional.
38381         [!__ASSUME_32BITUIDS]: Remove conditional code.
38382         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
38383         <kernel-features.h>.
38384         [__ASSUME_32BITUIDS]: Make code unconditional.
38385         [!__ASSUME_32BITUIDS]: Remove conditional code.
38386         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
38387         <kernel-features.h>.
38388         [__NR_setresgid] (__setresgid): Do not declare.
38389         [__ASSUME_32BITUIDS]: Make code unconditional.
38390         [!__ASSUME_32BITUIDS]: Remove conditional code.
38391         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
38392         <kernel-features.h>.
38393         [__NR_setresuid] (__setresuid): Do not declare.
38394         [__ASSUME_32BITUIDS]: Make code unconditional.
38395         [!__ASSUME_32BITUIDS]: Remove conditional code.
38396         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
38397         <kernel-features.h>.
38398         [__ASSUME_32BITUIDS]: Make code unconditional.
38399         [!__ASSUME_32BITUIDS]: Remove conditional code.
38400         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
38401         <kernel-features.h>.
38402         [__ASSUME_32BITUIDS]: Make code unconditional.
38403         [!__ASSUME_32BITUIDS]: Remove conditional code.
38404         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
38405         <kernel-features.h>.
38406         [__ASSUME_32BITUIDS]: Make code unconditional.
38407         [!__ASSUME_32BITUIDS]: Remove conditional code.
38408         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
38409         <kernel-features.h>.
38410         [__ASSUME_32BITUIDS]: Make code unconditional.
38411         [!__ASSUME_32BITUIDS]: Remove conditional code.
38412         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
38413         <kernel-features.h>.
38414         [__ASSUME_32BITUIDS]: Make code unconditional.
38415         [!__ASSUME_32BITUIDS]: Remove conditional code.
38416         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
38417         <kernel-features.h>.
38418         [__ASSUME_32BITUIDS]: Make code unconditional.
38419         [!__ASSUME_32BITUIDS]: Remove conditional code.
38420         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
38421         <kernel-features.h>.
38422         [__ASSUME_32BITUIDS]: Make code unconditional.
38423         [!__ASSUME_32BITUIDS]: Remove conditional code.
38424         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
38425         <kernel-features.h>.
38426         [__ASSUME_32BITUIDS]: Make code unconditional.
38427         [!__ASSUME_32BITUIDS]: Remove conditional code.
38428         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
38429         <kernel-features.h>.
38430         [__ASSUME_32BITUIDS]: Make code unconditional.
38431         [!__ASSUME_32BITUIDS]: Remove conditional code.
38432         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
38433         <kernel-features.h>.
38434         [__ASSUME_32BITUIDS]: Make code unconditional.
38435         [!__ASSUME_32BITUIDS]: Remove conditional code.
38436         * sysdeps/unix/sysv/linux/kernel-features.h
38437         (__ASSUME_SETRESUID_SYSCALL): Remove.
38438         (__ASSUME_SETRESGID_SYSCALL): Likewise.
38439         (__ASSUME_32BITUIDS): Likewise.
38440         (__ASSUME_LDT_WORKS): Likewise.
38441         (__ASSUME_O_DIRECTORY): Likewise.
38442         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
38443         architecture but not kernel version.
38444         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
38445         (__ASSUME_MMAP2_SYSCALL): Likewise.
38446         (__ASSUME_STAT64_SYSCALL): Likewise.
38447         (__ASSUME_IPC64): Likewise.
38448         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
38449         <kernel-features.h>.
38450         [__ASSUME_32BITUIDS]: Make code unconditional.
38451         [!__ASSUME_32BITUIDS]: Remove conditional code.
38452         * sysdeps/unix/sysv/linux/opendir.c: Do not include
38453         <kernel-features.h>.
38454         [__ASSUME_O_DIRECTORY]: Make code unconditional.
38455         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
38456         132096]: Remove conditional code.
38457         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
38458         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
38459         <kernel-features.h>.
38460         [__ASSUME_32BITUIDS]: Make code unconditional.
38461         [!__ASSUME_32BITUIDS]: Remove conditional code.
38462         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
38463         <kernel-features.h>.
38464         [__ASSUME_32BITUIDS]: Make code unconditional.
38465         [!__ASSUME_32BITUIDS]: Remove conditional code.
38466         * sysdeps/unix/sysv/linux/setegid.c: Do not include
38467         <kernel-features.h>.
38468         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
38469         unconditional.
38470         (__setresgid): Do not declare.
38471         [__ASSUME_32BITUIDS]: Make code unconditional.
38472         [!__ASSUME_32BITUIDS]: Remove conditional code.
38473         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
38474         <kernel-features.h>.
38475         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
38476         unconditional.
38477         (__setresuid): Do not declare.
38478         [__ASSUME_32BITUIDS]: Make code unconditional.
38479         [!__ASSUME_32BITUIDS]: Remove conditional code.
38480         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
38481         <kernel-features.h>.
38482         [__ASSUME_32BITUIDS]: Make code unconditional.
38483         [!__ASSUME_32BITUIDS]: Remove conditional code.
38484         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
38485         <kernel-features.h>.
38486         [__ASSUME_32BITUIDS]: Make code unconditional.
38487         [!__ASSUME_32BITUIDS]: Remove conditional code.
38488
38489 2012-05-25  Richard Henderson  <rth@twiddle.net>
38490
38491         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
38492         dl_hwcap to ifunc resolver.
38493         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
38494         elf_ifunc_invoke.
38495         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
38496         dl_hwcap to ifunc resolver.
38497         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
38498
38499 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
38500
38501         [BZ #14153]
38502         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
38503         for |x| <= 2**-26, not 2**-57.
38504         * math/libm-test.inc (acos_test): Do not allow spurious underflow
38505         exception.
38506
38507 2012-05-24  Jeff Law  <law@redhat.com>
38508
38509         * stdio-common/Makefile (tests): Add bug25.
38510         * stdio-common/bug25.c: New test.
38511
38512 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
38513
38514         [BZ #13576]
38515         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
38516         multiple of MALLOC_ALIGNMENT in size.
38517         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
38518
38519 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
38520
38521         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
38522         Require >= 256.
38523         (FILENAME_MAX): Use macro-int-constant.
38524         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
38525         (_IOFBF): Use macro-int-constant.
38526         (_IOLBF): Likewise.
38527         (_IONBF): Likewise.
38528         (SEEK_CUR): Likewise.
38529         (SEEK_END): Likewise.
38530         (SEEK_SET): Likewise.
38531         (TMP_MAX): Likewise.
38532         (EOF): Use macro-int-constant.  Require < 0.
38533         (NULL): Use macro-constant.  Require == 0.
38534         (stdin): Require type to be FILE *.
38535         (stdout): Likewise.
38536         (stderr): Likewise.
38537         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
38538         macro-int-constant.
38539         (EXIT_SUCCESS): Likewise.
38540         (NULL): Use macro-constant.  Require == 0.
38541         (RAND_MAX): Use macro-int-constant.
38542         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
38543         [C99-based standards] (strtof): Require function.
38544         [C99-based standards] (strtold): Likewise.
38545         [C99-based standards] (strtoll): Likewise.
38546         [C99-based standards] (strtoull): Likewise.
38547         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
38548         [ISO || ISO99 || ISO11] (limits.h): Likewise.
38549         [ISO || ISO99 || ISO11] (math.h): Likewise.
38550         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
38551         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
38552         [ISO || ISO99 || ISO11] (*_t): Do not allow.
38553
38554 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
38555
38556         [BZ #14132]
38557         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
38558         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
38559         * intl/dgettext.c (DCGETTEXT): Likewise.
38560         * intl/gettext.c (DCGETTEXT): Likewise.
38561         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
38562         * posix/regex_internal.h (gettext): Likewise.
38563         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
38564         Remove declaration.
38565         * include/argz.h (__argz_count_internal)
38566         (__argz_stringify_internal): Remove declaration.
38567         (__argz_count, __argz_stringify): Declare hidden proto.
38568         * intl/dcgettext.c: Remove use of INTDEF.
38569         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
38570         * string/argz-stringify.c: Likewise.
38571         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
38572         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
38573         Declare hidden proto.
38574         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
38575         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
38576         Declare hidden proto.
38577         * include/stdio.h (__asprintf_internal): Don't declare.
38578         (__asprintf): Don't define as macro.  Declare hidden proto.
38579         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
38580         (__fsetlocking): Declare hidden proto.
38581         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
38582         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
38583         hidden proto.
38584         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
38585         (_IO_setlinebuf): Remove use of INTUSE.
38586         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
38587         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
38588         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
38589         Remove declaration.
38590         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
38591         (_IO_do_flush): Remove use of INTUSE.
38592         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
38593         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
38594         (_IO_adjust_column, _IO_least_wmarker)
38595         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
38596         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
38597         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
38598         (_IO_default_doallocate, _IO_wdefault_doallocate)
38599         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
38600         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
38601         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
38602         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
38603         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
38604         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
38605         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
38606         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
38607         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
38608         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
38609         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
38610         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
38611         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
38612         proto.
38613         (_IO_flush_all_internal, _IO_adjust_column_internal)
38614         (_IO_default_uflow_internal, _IO_default_finish_internal)
38615         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
38616         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
38617         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
38618         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
38619         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
38620         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
38621         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
38622         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
38623         (_IO_file_close_internal, _IO_file_close_it_internal)
38624         (_IO_file_underflow_internal, _IO_file_overflow_internal)
38625         (_IO_file_init_internal, _IO_file_attach_internal)
38626         (_IO_file_fopen_internal, _IO_file_read_internal)
38627         (_IO_file_sync_internal, _IO_file_seek_internal)
38628         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
38629         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
38630         (_IO_str_underflow_internal, _IO_str_overflow_internal)
38631         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
38632         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
38633         (_IO_list_all_internal, _IO_link_in_internal)
38634         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
38635         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
38636         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
38637         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
38638         (_IO_do_write_internal, _IO_padn_internal)
38639         (_IO_getline_info_internal, _IO_getline_internal)
38640         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
38641         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
38642         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
38643         (_IO_vfscanf_internal, _IO_vfprintf_internal)
38644         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
38645         (_IO_init_internal, _IO_un_link_internal): Don't declare.
38646         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
38647         with libc_hidden_ver, remove use of INTUSE.
38648         * libio/genops.c: Likewise.
38649         * libio/freopen.c: Likewise.
38650         * libio/freopen64.c: Likewise.
38651         * libio/iofclose.c: Likewise.
38652         * libio/iofdopen.c: Likewise.
38653         * libio/iofflush.c: Likewise.
38654         * libio/iofflush_u.c: Likewise.
38655         * libio/iofgets.c: Likewise.
38656         * libio/iofgets_u.c: Likewise.
38657         * libio/iofopen.c: Likewise.
38658         * libio/iofopncook.c: Likewise.
38659         * libio/iofread.c: Likewise.
38660         * libio/iofread_u.c: Likewise.
38661         * libio/ioftell.c: Likewise.
38662         * libio/iofwrite.c: Likewise.
38663         * libio/iogetline.c: Likewise.
38664         * libio/iogets.c: Likewise.
38665         * libio/iogetwline.c: Likewise.
38666         * libio/iopadn.c: Likewise.
38667         * libio/iopopen.c: Likewise.
38668         * libio/ioseekoff.c: Likewise.
38669         * libio/ioseekpos.c: Likewise.
38670         * libio/iosetbuffer.c: Likewise.
38671         * libio/iosetvbuf.c: Likewise.
38672         * libio/ioungetc.c: Likewise.
38673         * libio/ioungetwc.c: Likewise.
38674         * libio/iovdprintf.c: Likewise.
38675         * libio/iovsprintf.c: Likewise.
38676         * libio/iovsscanf.c: Likewise.
38677         * libio/memstream.c: Likewise.
38678         * libio/obprintf.c: Likewise.
38679         * libio/oldfileops.c: Likewise.
38680         * libio/oldiofclose.c: Likewise.
38681         * libio/oldiofdopen.c: Likewise.
38682         * libio/oldiofopen.c: Likewise.
38683         * libio/oldiopopen.c: Likewise.
38684         * libio/oldstdfiles.c: Likewise.
38685         * libio/putc.c: Likewise.
38686         * libio/setbuf.c: Likewise.
38687         * libio/setlinebuf.c: Likewise.
38688         * libio/stdfiles.c: Likewise.
38689         * libio/strops.c: Likewise.
38690         * libio/vasprintf.c: Likewise.
38691         * libio/vscanf.c: Likewise.
38692         * libio/vsnprintf.c: Likewise.
38693         * libio/vswprintf.c: Likewise.
38694         * libio/wfiledoalloc.c: Likewise.
38695         * libio/wfileops.c: Likewise.
38696         * libio/wgenops.c: Likewise.
38697         * libio/wmemstream.c: Likewise.
38698         * libio/wstrops.c: Likewise.
38699         * libio/__fpurge.c: Likewise.
38700         * libio/__fsetlocking.c: Likewise.
38701         * assert/assert.c: Likewise.
38702         * debug/fgets_chk.c: Likewise.
38703         * debug/fgets_u_chk.c: Likewise.
38704         * debug/fread_chk.c: Likewise.
38705         * debug/fread_u_chk.c: Likewise.
38706         * debug/gets_chk.c: Likewise.
38707         * debug/obprintf_chk.c: Likewise.
38708         * debug/vasprintf_chk.c: Likewise.
38709         * debug/vdprintf_chk.c: Likewise.
38710         * debug/vsnprintf_chk.c: Likewise.
38711         * debug/vsprintf_chk.c: Likewise.
38712         * malloc/mtrace.c: Likewise.
38713         * misc/error.c: Likewise.
38714         * misc/syslog.c: Likewise.
38715         * stdio-common/asprintf.c: Likewise.
38716         * stdio-common/fxprintf.c: Likewise.
38717         * stdio-common/getw.c: Likewise.
38718         * stdio-common/isoc99_fscanf.c: Likewise.
38719         * stdio-common/isoc99_scanf.c: Likewise.
38720         * stdio-common/isoc99_vfscanf.c: Likewise.
38721         * stdio-common/isoc99_vscanf.c: Likewise.
38722         * stdio-common/isoc99_vsscanf.c: Likewise.
38723         * stdio-common/printf-prs.c: Likewise.
38724         * stdio-common/printf_fp.c: Likewise.
38725         * stdio-common/printf_fphex.c: Likewise.
38726         * stdio-common/printf_size.c: Likewise.
38727         * stdio-common/putw.c: Likewise.
38728         * stdio-common/scanf.c: Likewise.
38729         * stdio-common/sprintf.c: Likewise.
38730         * stdio-common/tmpfile.c: Likewise.
38731         * stdio-common/vfprintf.c: Likewise.
38732         * stdio-common/vfscanf.c: Likewise.
38733         * stdlib/strfmon_l.c: Likewise.
38734         * sunrpc/openchild.c: Likewise.
38735         * sunrpc/xdr_stdio.c: Likewise.
38736         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
38737         * sysdeps/mach/hurd/tmpfile.c: Likewise.
38738
38739 2012-05-24  Roland McGrath  <roland@hack.frob.com>
38740
38741         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
38742
38743         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
38744         in the third column, to generate for the shared library an IFUNC
38745         that uses _dl_vdso_vsym.
38746         * Makerules (COMPILE.c, compile-stdin.c): New variables.
38747         * Makeconfig (object-suffixes-noshared): New variable.
38748
38749         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
38750         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
38751         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
38752         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
38753
38754         [BZ #14132]
38755         * include/sys/time.h (__gettimeofday): Remove macro.
38756         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
38757         * time/gettimeofday.c (__gettimeofday): Remove #undef.
38758         Remove INTDEF.
38759         (__gettimeofday): Add libc_hidden_def.
38760         (gettimeofday): Add libc_hidden_weak.
38761         * sysdeps/mach/gettimeofday.c: Likewise.
38762         * sysdeps/posix/gettimeofday.c: Likewise.
38763         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
38764         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
38765         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
38766         (__gettimeofday_internal): Remove strong_alias.
38767         (__gettimeofday): Add libc_hidden_def.
38768         (gettimeofday): Add libc_hidden_weak.
38769         * sysdeps/unix/syscalls.list (gettimeofday):
38770         Remove __gettimeofday_internal alias.
38771
38772 2012-05-24  Daniel Jacobowitz  <drow@false.org>
38773             H.J. Lu  <hongjiu.lu@intel.com>
38774
38775         [BZ #12495]
38776         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
38777         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
38778         (largebin_index_32_big): New.
38779         (largebin_index): Use it for 16-byte alignment.
38780         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
38781         correction with front_misalign.
38782
38783 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
38784
38785         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
38786         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
38787         Likewise.
38788         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
38789         Likewise.
38790         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
38791         Likewise.
38792         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
38793         Likewise.
38794         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
38795         Likewise.
38796         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
38797         Likewise.
38798         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
38799         Likewise.
38800         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
38801         Likewise.
38802         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
38803         Likewise.
38804         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
38805         Likewise.
38806         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
38807         Likewise.
38808         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
38809         Likewise.
38810
38811         * scripts/data/c++-types-x32-linux-gnu.data: New file.
38812         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
38813
38814 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
38815
38816         [BZ #10846]
38817         [BZ #14036]
38818         * math/libm-test.inc (exp_test): Add test from bug 14036.
38819         (pow_test): Add test from bug 10846.
38820
38821         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
38822         and other flags.
38823         (special_function): Do not include flags in test name.
38824         (parse_args): Likewise.
38825         * sysdeps/i386/fpu/libm-test-ulps: Update.
38826         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
38827         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
38828         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
38829         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38830
38831         * math/gen-libm-test.pl (%beautify): Add entries for underflow
38832         exceptions.
38833         * math/libm-test.inc ("Philosophy"): Update comment about
38834         exception testing.
38835         (UNDERFLOW_EXCEPTION): New macro.
38836         (UNDERFLOW_EXCEPTION_OK): Likewise.
38837         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
38838         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
38839         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
38840         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
38841         (INVALID_EXCEPTION_OK): Update value.
38842         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
38843         (OVERFLOW_EXCEPTION_OK): Likewise.
38844         (IGNORE_ZERO_INF_SIGN): Likewise.
38845         (test_exceptions): Handle underflow exceptions.
38846         (acos_test): Update for underflow exception expectations.
38847         (cexp_test): Likewise.
38848         (clog_test): Likewise.
38849         (clog10_test): Likewise.
38850         (csqrt_test): Likewise.
38851         (ctan_test): Likewise.
38852         (ctanh_test): Likewise.
38853         (exp_test): Likewise.
38854         (exp10_test): Likewise.
38855         (exp2_test): Likewise.
38856         (expm1_test): Likewise.
38857         (fma_test): Likewise.
38858         (j0_test): Likewise.
38859         (jn_test): Likewise.
38860         (nexttoward_test): Likewise.
38861         (pow_test): Likewise.
38862         (scalbn_test): Likewise.
38863         (scalbln_test): Likewise.
38864         (tan_test): Likewise.
38865         (y1_test): Likewise.
38866         * sysdeps/i386/fpu/libm-test-ulps: Update.
38867         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38868
38869 2012-05-23  David S. Miller  <davem@davemloft.net>
38870
38871         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
38872         (__libc_sigaction): Remove unused local variables.
38873
38874 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
38875
38876         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
38877
38878 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
38879
38880         mktime: avoid signed integer overflow
38881         * time/mktime.c (__mktime_internal): Do not mishandle the case
38882         where diff == INT_MIN.
38883
38884         mktime: simplify computation of average
38885         * time/mktime.c (ranged_convert): Use new time_t_avg function
38886         instead of rolling our own (probably-slower) code.
38887
38888         mktime: do not assume signed right shift propagates sign bit
38889         * time/mktime.c (isdst_differ): New static function.
38890         (__mktime_internal): No need to normalize tm_isdst now.
38891         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
38892         tm_isdst values.
38893
38894         mktime: merge another wrapv change from gnulib
38895         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
38896         from some compilers.
38897
38898         mktime: remove incorrect attempt at unusual arithmetics
38899         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
38900         The code didn't really work on such machines anyway.
38901         (TYPE_MINIMUM): Assume two's complement.
38902         (twos_complement_arithmetic): Verify that long_int and time_t
38903         are two's complement (or unsigned, in the latter case).
38904
38905         mktime: check signed shifts on long_int and time_t, too
38906         * time/mktime.c (SHR): Check that shifts work as desired
38907         on the types long_int and time_t too, as SHR is used on
38908         such types.
38909
38910         mktime: do not assume 'long' is wide enough
38911         * time/mktime.c (verify): Move decl up.
38912         (long_int): New type.
38913         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
38914         to remove assumption in the code that 'long' is wide enough to
38915         store year values.  This assumption is not true on x32 and on
38916         some non-glibc platforms.
38917
38918         mktime: merge wrapv change from gnulib
38919         * time/mktime.c (WRAPV): New macro.
38920         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
38921         (guess_time_tm, __mktime_internal): Do not assume that signed
38922         integer overflow wraps around; modern compilers generate code
38923         where this assumption is no longer valid.
38924
38925 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
38926
38927         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
38928         Replace "jmp L(pseudo_end)" with "ret".
38929         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
38930         Likewise.
38931
38932 2012-05-23  Andreas Jaeger  <aj@suse.de>
38933
38934         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
38935         * sysdeps/unix/sysv/linux/poll.c: Remove file.
38936
38937 2012-05-23  Andreas Jaeger  <aj@suse.de>
38938             Maximilian Attems  <max@stro.at>
38939
38940         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
38941         New macros.
38942
38943 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
38944
38945         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
38946         code so that pseudo_end is just ret and the stack pointer is
38947         correct also for static library in error case.
38948
38949 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
38950
38951         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
38952         move to syscalls.list.
38953         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
38954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
38955         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
38956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
38957
38958         * manual/install.texi (Running make install): Do not mention Linux
38959         kernel version for which pt_chown is not needed.
38960         (Linux): Do not mention problems with nscd with 2.0 kernels.
38961         * INSTALL: Regenerated.
38962
38963 2012-05-23  Andreas Jaeger  <aj@suse.de>
38964
38965         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
38966         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
38967         macro.
38968         * sysdeps/unix/sysv/linux/s390/bits/mman.h
38969         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
38970         * sysdeps/unix/sysv/linux/sh/bits/mman.h
38971         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
38972         * sysdeps/unix/sysv/linux/i386/bits/mman.h
38973         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
38974         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
38975         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
38976         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
38977         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
38978         * sysdeps/unix/sysv/linux/bits/in.h
38979         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
38980
38981 2012-05-22  Roland McGrath  <roland@hack.frob.com>
38982
38983         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
38984         (PREPARE_VERSION): Just use assert instead, it will be elided
38985         under [NDEBUG] anyway.
38986
38987 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
38988
38989         * sysdeps/unix/sysv/linux/Makefile: Include
38990         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
38991         (sysdep_routines): Remove sysctl.
38992         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
38993         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
38994         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
38995         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
38996         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
38997
38998 2012-05-22  Andreas Jaeger  <aj@suse.de>
38999
39000         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
39001         that pseudo_end is just ret and the stack pointer is correct also
39002         for static library in error case.
39003
39004 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
39005
39006         [BZ #14122]
39007         * nss/nsswitch.c (defconfig_entries): New variable.
39008         (__nss_database_lookup): Don't leak defconfig entries.
39009         (nss_parse_service_list): Don't leak on error paths.
39010         (free_database_entries): New function.
39011         (free_defconfig): New function.
39012         (free_mem): Move common code to free_database_entries.
39013
39014 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
39015
39016         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
39017         Add arch_prctl.
39018         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
39019
39020         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
39021         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
39022         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
39023         New macro.
39024         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
39025         (INTERNAL_SYSCALL_TYPES): Likewise.
39026         (LOAD_ARGS_TYPES_[1-6]): Likewise.
39027         (LOAD_REGS_TYPES_[1-6]): Likewise.
39028         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
39029         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
39030
39031 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39032
39033         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
39034         copysignl for GLIBC_2_0.
39035         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
39036         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
39037         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
39038         logbl for GLIBC_2_0.
39039         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
39040         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
39041
39042 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
39043
39044         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
39045         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
39046
39047         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
39048         Use "neg %eax".
39049
39050         * time/mktime.c: Update copyright years.
39051
39052 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39053
39054         mktime: merge comment-quoting-style change from gnulib
39055         * time/mktime.c: Quote 'like this' in comments.
39056         The GNU coding standards suggest that we no longer quote `like this',
39057         as "`" and "'" are typically rendered asymmetrically nowadays.
39058         The typical gnulib style is to quote 'like this' when quoting
39059         code, and "like this" when quoting English.
39060
39061         * time/mktime.c (compile-command): Add "-I.".
39062
39063         mktime: merge mktime-internal.h change from gnulib
39064         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
39065
39066         mktime: merge time_r change from gnulib
39067         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
39068
39069         mktime: merge DEBUG change from gnulib
39070         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
39071         case system <time.h> has a #define.
39072
39073         mktime: merge <sys/types.h> change from gnulib
39074         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
39075         since <time.t> is now guaranteed to define time_t.
39076
39077         mktime: merge HAVE_CONFIG_H change from gnulib
39078         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
39079
39080 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
39081
39082         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
39083         Use "neg %eax".
39084
39085         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
39086         __rlim_t cast.
39087         (struct rusage): Use anonymous union to pad each field to
39088         __syscall_slong_t.
39089
39090 2012-05-21  David S. Miller  <davem@davemloft.net>
39091
39092         * Makefules (o-iterator): Remove .s cases.
39093         (compile-command.s): Delete.
39094         (COMPILE.s): Delete.
39095         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
39096
39097 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
39098
39099         * configure.in (libc_cv_predef_stack_protector): Only consider
39100         "foobar" and "__stack_chk_fail" lines in libc_undefs.
39101         * configure: Regenerated.
39102
39103 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
39104
39105         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
39106         New macro.  Use R*LP on int and pointer.
39107         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
39108         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
39109         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
39110         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
39111
39112         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
39113         [__WORDSIZE_TIME64_COMPAT32] instead of
39114         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
39115         (struct utmp): Likewise.
39116         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
39117         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
39118         Renamed to ...
39119         (__WORDSIZE_TIME64_COMPAT32): This.
39120         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
39121         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
39122         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
39123         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
39124         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
39125         (__WORDSIZE_TIME64_COMPAT32): New macro.
39126
39127 2012-05-21  Andreas Jaeger  <aj@suse.de>
39128
39129         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
39130         only if [SHARED]. Add prototype for __wcschr_ia32.
39131
39132 2012-05-21  Roland McGrath  <roland@hack.frob.com>
39133
39134         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
39135         of %rbp unmolested in the jmp_buf while mangling the low bits.
39136         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
39137         unmolested high bits of %rbp while demangling the low bits.
39138         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
39139
39140 2012-05-21  Andreas Jaeger  <aj@suse.de>
39141
39142         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
39143         * sunrpc/svc_simple.c: Use it for registerrpc.
39144         * sunrpc/xcrypt.c: Use it for passwd2des.
39145
39146         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
39147
39148 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
39149
39150         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
39151         Don't define if [__SYSCALL_WORDSIZE != 32].
39152         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
39153         New macro.
39154
39155 2012-05-21  Bruno Haible  <bruno@clisp.org>
39156             Andreas Jaeger  <aj@suse.de>
39157
39158         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
39159         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
39160         inptr and inend for must_buffer_ch.
39161         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
39162         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
39163         * stdio-common/Makefile (tests): Remove bug15.
39164         (bug15-ENV): Remove macro.
39165         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
39166         anymore.
39167
39168 2012-05-19  Andreas Jaeger  <aj@suse.de>
39169             Roland McGrath  <roland@hack.frob.com>
39170
39171         * manual/contrib.texi: Completely rewritten. It contains now an
39172         alphabetical list of contributors and their contributions.
39173
39174 2012-05-21  Richard Henderson  <rth@twiddle.net>
39175
39176         * misc/getauxval.c (__getauxval): Use unsigned long int.
39177         * misc/sys/auxv.h: Include <sys/cdefs.h>.
39178         (getauxval): Use unsigned long int.
39179
39180 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
39181
39182         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
39183
39184 2012-05-21  Roland McGrath  <roland@hack.frob.com>
39185
39186         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
39187         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
39188         __alignof__ (long double).
39189
39190 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39191
39192         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39193
39194 2012-05-20  Richard Henderson  <rth@twiddle.net>
39195
39196         * misc/getauxval.c: New file.
39197         * misc/sys/auxv.h: New file.
39198         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
39199         (routines): Add getauxval.
39200         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
39201         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
39202         * elf/dl-sysdep.c (_dl_auxv): Remove.
39203         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
39204         * elf/dl-support.c (_dl_auxv): New variable.
39205         (_dl_aux_init): Initialize it.
39206         * manual/startup.texi (Auxiliary Vector): New node.
39207         * sysdeps/generic/bits/hwcap.h: New file.
39208         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
39209         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
39210         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
39211         * sysdeps/sparc/sysdep.h: ... here.  Include it.
39212         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
39213         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
39214         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
39215         Update.
39216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
39217         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
39218         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
39219         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
39220         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
39221         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
39222         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
39223         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
39224
39225 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39226
39227         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39228
39229 2012-05-19  David S. Miller  <davem@davemloft.net>
39230
39231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
39232
39233 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
39234
39235         [BZ #14123]
39236         * math/s_ccosh.c: Include <float.h>
39237         (__ccosh): Avoid internal overflow calculating sinh and cosh
39238         values before multiplying by sin and cos values.
39239         * math/s_ccoshf.c: Likewise.
39240         * math/s_ccoshl.c: Likewise.
39241         * math/s_csin.c: Likewise.
39242         * math/s_csinf.c: Likewise.
39243         * math/s_csinl.c: Likewise.
39244         * math/s_csinh.c: Likewise.
39245         * math/s_csinhf.c: Likewise.
39246         * math/s_csinhl.c: Likewise.
39247         * math/libm-test.inc (ccos_test): Add more tests.
39248         (ccosh_test): Likewise.
39249         (csin_test): Likewise.
39250         (csinh_test): Likewise.
39251         * sysdeps/i386/fpu/libm-test-ulps: Update.
39252         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39253
39254 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
39255
39256         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
39257         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
39258
39259         * sysdeps/x86_64/x32/_itoa.h: Add comment.
39260
39261 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
39262
39263         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
39264         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
39265         * sysdeps/powerpc/soft-fp/Versions: Likewise.
39266         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
39267         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
39268         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
39269         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
39270         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
39271         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
39272         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
39273         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
39274         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
39275         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
39276         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
39277         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
39278         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
39279         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
39280         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
39281         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
39282         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
39283         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
39284         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
39285         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
39286         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
39287         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
39288         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
39289         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
39290         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
39291         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
39292         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
39293         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
39294
39295 2012-05-18  Andreas Jaeger  <aj@suse.de>
39296
39297         * csu/.gitignore: Delete.
39298
39299 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
39300
39301         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
39302         (timex): Use __syscall_slong_t.
39303
39304 2012-05-18  Andreas Jaeger  <aj@suse.de>
39305             Carlos O'Donell  <carlos_odonell@mentor.com>
39306
39307         * manual/install.texi (Configuring and compiling): Update
39308         description about files modified in the source directory.
39309         * INSTALL: Regenerated.
39310
39311 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
39312
39313         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
39314         value.  Use "or" to set return value to -1.
39315         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
39316         negate return value.
39317
39318 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
39319
39320         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
39321         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
39322         failure if the compiler has Graphite support disabled.
39323         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
39324         Likewise.
39325         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
39326         (CFLAGS-memmove.c): Likewise.
39327         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
39328         Likewise.
39329
39330 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
39331
39332         * sysdeps/x86_64/x32/_itoa.h: New file.
39333
39334         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
39335         getdents system call only if kernel and user dirents have the
39336         same d_ino and d_off.
39337
39338         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
39339         LLONG_MAX != LONG_MAX.
39340         (_itoa_word): Use _ITOA_WORD_TYPE on value.
39341         (_fitoa_word): Likewise.
39342
39343         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
39344         years.
39345         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
39346         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
39347         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
39348
39349         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
39350         include <bits/wordsize.h>.  Check __x86_64__ instead of
39351         __WORDSIZE.
39352         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
39353         if __x86_64__ is defined.  Use anonymous union on fpstate.
39354
39355         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
39356         anonymous union.
39357
39358 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
39359
39360         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
39361         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
39362         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
39363         Refer to _rtld_local_ro instead of _rtld_global_ro.
39364         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
39365         Likewise.
39366         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
39367         Likewise.
39368         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
39369         Likewise.
39370         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
39371         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
39372         of _rtld_global, and rtld_progname instead of _dl_argv[0].
39373
39374         * sysdeps/powerpc/powerpc32/dl-machine.c
39375         (__elf_machine_runtime_setup) [PROF]: Don't reference
39376         _dl_prof_resolve.
39377
39378 2012-05-18  Andreas Jaeger  <aj@suse.de>
39379
39380         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
39381         function only available for GCCs before 3.4 since GCC 3.4
39382         introduced a builtin.
39383         (lrint): Likewise.
39384         (llrintf): Likewise.
39385         (llrint): Likewise.
39386         (fmaxf): Likewise.
39387         (fmax): Likewise.
39388         (fminf): Likewise.
39389         (fmin): Likewise.
39390         (rint): Likewise.
39391         (rintf): Likewise.
39392         (nearbyint): Likewise.
39393         (nearbyintf): Likewise.
39394         (ceil): Likewise.
39395         (ceilf): Likewise.
39396         (floor): Likewise.
39397         (floorf): Likewise.
39398
39399 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
39400
39401         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
39402         on both fields and cast pointer to __syscall_ulong_t.
39403
39404         * bits/types.h (__fsword_t): New type.
39405         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
39406         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
39407         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
39408         (__FSWORD_T_TYPE): Likewise.
39409         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
39410         (__FSWORD_T_TYPE): Likewise.
39411         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
39412         (__FSWORD_T_TYPE): Likewise.
39413         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
39414         (__FSWORD_T_TYPE): Likewise.
39415         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
39416         __SWORD_TYPE with __fsword_t.
39417         (statfs64): Likewise.
39418
39419 2012-05-17  David S. Miller  <davem@davemloft.net>
39420
39421         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
39422
39423 2012-05-17  Andreas Jaeger  <aj@suse.de>
39424
39425         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
39426         warning.
39427
39428 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
39429
39430         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
39431
39432 2012-05-17  Andreas Jaeger  <aj@suse.de>
39433
39434         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
39435         when it is used.
39436
39437 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
39438
39439         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
39440
39441 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
39442
39443         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
39444         * sysdeps/x86_64/tst-mallocalign1.c: New file.
39445
39446 2012-05-17  Andreas Jaeger  <aj@suse.de>
39447             Carlos O'Donell  <carlos_odonell@mentor.com>
39448
39449         [BZ #14059]
39450         * sysdeps/x86_64/multiarch/init-arch.h
39451         (bit_YMM_Usable): Rename to...
39452         (bit_AVX_Usable): ... this.
39453         (bit_FMA4_Usable): New macro.
39454         (bit_XMM_state): New macro.
39455         (bit_YMM_state): New macro.
39456         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
39457         [__ASSEMBLER__] (index_AVX_Usable): ... this.
39458         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
39459         (CPUID_OSXSAVE): New macro.
39460         (CPUID_AVX): New macro.
39461         (CPUID_FMA4): New macro.
39462         (index_YMM_Usable): Rename to...
39463         (index_AVX_Usable): ... this.
39464         (HAS_AVX): Use HAS_ARCH_FEATURE.
39465         (HAS_FMA4): Likewise.
39466         (HAS_YMM_USABLE): Remove.
39467         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
39468         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
39469         are present.
39470         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
39471         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
39472         * sysdeps/x86_64/multiarch/Makefile: Likewise.
39473         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
39474         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
39475
39476 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
39477
39478         * math/libm-test.c: Support platforms without multiple rounding modes.
39479         * math/bug-nextafter.c: Support platforms without FP exceptions.
39480         * math/bug-nexttoward.c: Likewise.
39481         * math/test-fenv.c: Likewise.
39482         * math/test-misc.c: Likewise.
39483         * stdlib/bug-getcontext.c: Likewise.
39484
39485 2012-05-17  Andreas Jaeger  <aj@suse.de>
39486
39487         * manual/examples/search.c (critter_cmp): Change signature to
39488         avoid warnings.
39489         * manual/string.texi (Collation Functions): Likewise.
39490
39491 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
39492
39493         * bits/types.h: Fold copyright years.
39494         * bits/typesizes.h: Likewise.
39495         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
39496         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
39497         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
39498         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
39499         * time/time.h: Likewise.
39500
39501 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
39502
39503         [BZ #208]
39504         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
39505         in instead of returning them.  Return void.
39506         (__libc_mallinfo): Accumulate over all arenas.
39507         (__malloc_stats): Adjust for change in int_mallinfo interface.
39508
39509 2012-05-16  Roland McGrath  <roland@hack.frob.com>
39510
39511         [BZ #10375]
39512         * configure.in (NM): Add AC_CHECK_TOOL for it.
39513         (libc_extra_cflags): New substituted variable.
39514         Check for -fstack-protector being used implicitly.
39515         * configure: Regenerated.
39516         * config.make.in (config-extra-cflags): New variable,
39517         gets @libc_extra_cflags@.
39518         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
39519
39520         [BZ #10375]
39521         * configure.in: Check for _FORTIFY_SOURCE being predefined.
39522         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
39523         * configure: Regenerated.
39524         * config.make.in (CPPUNDEFS): New substituted variable.
39525         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
39526         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
39527         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
39528
39529 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
39530
39531         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
39532         (mq_attr): Use __syscall_slong_t.
39533
39534 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
39535
39536         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
39537         Check __x86_64__ instead of __WORDSIZE.
39538         (_STAT_VER_LINUX): Likewise.
39539         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
39540         __syscall_ulong_t and __syscall_slong_t.
39541         (stat64): Likewise.
39542
39543 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
39544
39545         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
39546
39547 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
39548
39549         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
39550
39551 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
39552
39553         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
39554         __syscall_ulong_t.
39555
39556         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
39557         include <bits/wordsize.h>.  Check __x86_64__ instead of
39558         __WORDSIZE.
39559         (greg_t): Use "__extension__ long long int" if __x86_64__ is
39560         defined.
39561         (mcontext_t): Replace "unsigned long" with "unsigned long long".
39562
39563         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
39564         include <bits/wordsize.h>.  Check __x86_64__ instead of
39565         __WORDSIZE.
39566         (user_regs_struct): Use "__extension__ unsigned long long"
39567         instead of "unsigned long" if __x86_64__ is defined.
39568         (user): Likewise.  Pad after pointer field if __ILP32__ is
39569         defined.
39570
39571 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
39572
39573         * configure.in (makeinfo): Require version 4.5 or later.  Allow
39574         versions 5 to 9.
39575         * configure: Regenerated.
39576         * manual/install.texi (texinfo): Increase version requirement to
39577         4.5 or later.
39578         * INSTALL: Regenerated.
39579
39580         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
39581
39582 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
39583
39584         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
39585
39586         * sysdeps/x86_64/x32/ffs.c: New file.
39587
39588         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
39589         __syscall_ulong_t.
39590         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
39591         defined.  Use __syscall_ulong_t.
39592         (shminfo): Use __syscall_ulong_t.
39593         (shm_info): Likewise.
39594
39595         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
39596         __syscall_ulong_t.
39597
39598         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
39599         <bits/wordsize.h>.
39600         (msgqnum_t): Use __syscall_ulong_t.
39601         (msglen_t): Likewise.
39602         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
39603         __syscall_ulong_t.
39604
39605         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
39606         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
39607
39608         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
39609
39610         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
39611         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
39612
39613         * sysvipc/sys/msg.h (msgbuf): Replace long int with
39614         __syscall_slong_t.
39615
39616         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
39617         include <bits/wordsize.h>.  Check __x86_64__ instead of
39618         __WORDSIZE.
39619
39620         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
39621         "unsigned long long int" if __x86_64__ is defined.
39622         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
39623
39624         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
39625         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
39626         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
39627
39628         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
39629         <stdint.h>.
39630         (GET_PC): Cast to uintptr_t first.
39631         (GET_FRAME): Likewise.
39632         (GET_STACK): Likewise.
39633
39634         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
39635         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
39636         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
39637         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
39638         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
39639         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
39640         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
39641         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
39642         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
39643         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
39644         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
39645         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
39646         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
39647         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
39648         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
39649         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
39650         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
39651         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
39652         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
39653         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
39654         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
39655         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
39656         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
39657         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
39658         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
39659         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
39660         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
39661         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
39662         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
39663
39664 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
39665
39666         * Makerules (+depfiles): Also collect depfiles from .oS in
39667         $(extra-objs).
39668         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
39669         .oS, $(libnldbl-routines)).
39670
39671         * Makerules (native-compile-mkdep-flags): Define.
39672         * sunrpc/Makefile (extra-objs): Add $(addprefix
39673         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
39674         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
39675         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
39676         calling $(make-target-directory).
39677
39678 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39679
39680         * bits/types.h (__snseconds_t): Removed.
39681         * time/time.h (struct timespec): Replace __snseconds_t with
39682         __syscall_slong_t.
39683         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
39684         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
39685         Likewise.
39686         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
39687         (__SNSECONDS_T_TYPE): Likewise.
39688         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
39689         (__SNSECONDS_T_TYPE): Likewise.
39690         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
39691         (__SNSECONDS_T_TYPE): Likewise.
39692
39693 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39694
39695         * sysdeps/mach/hurd/bits/typesizes.h
39696         (__SYSCALL_SLONG_TYPE): New macro.
39697         (__SYSCALL_ULONG_TYPE): Likewise.
39698
39699 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39700
39701         * bits/types.h (__syscall_slong_t): New type.
39702         (__syscall_ulong_t): Likewise.
39703
39704         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
39705         (__SYSCALL_ULONG_TYPE): Likewise.
39706         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
39707         (__SYSCALL_SLONG_TYPE): Likewise.
39708         (__SYSCALL_ULONG_TYPE): Likewise.
39709         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
39710         (__SYSCALL_SLONG_TYPE): Likewise.
39711         (__SYSCALL_ULONG_TYPE): Likewise.
39712         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
39713         (__SYSCALL_SLONG_TYPE): Likewise.
39714         (__SYSCALL_ULONG_TYPE): Likewise.
39715
39716 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39717
39718         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
39719         Add sigaltstack-offsets.sym.
39720         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
39721         <sigaltstack-offsets.h>.
39722         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
39723         longjmp_msg pointer.
39724         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
39725         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
39726         signal stack.
39727         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
39728
39729 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
39730
39731         * elf/stackguard-macros.h: Remove file.
39732         * sysdeps/generic/stackguard-macros.h: New file.
39733         * sysdeps/i386/stackguard-macros.h: Likewise.
39734         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
39735         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
39736         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
39737         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
39738         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
39739         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
39740         * sysdeps/x86_64/stackguard-macros.h: Likewise.
39741         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
39742         <elf/stackguard-macros.h>.
39743
39744         [BZ #14109]
39745         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
39746         __aligned__ in attribute.
39747         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
39748         (gregset_t): Likewise.
39749
39750 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39751
39752         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
39753         * sysdeps/x86_64/64/Implies-after: Here.  New file.
39754         * sysdeps/x86_64/x32/Implies-after: New file.
39755
39756 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39757
39758         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
39759         and access return value for _dl_profile_fixup.  Use R10_LP to
39760         load frame size.
39761
39762 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39763
39764         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
39765
39766 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39767
39768         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
39769         * sysdeps/x86_64/x32/sysdep.h: New file.
39770
39771 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39772
39773         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
39774         * sysdeps/x86_64/setjmp.S: Likewise.
39775
39776 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39777
39778         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
39779         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
39780         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
39781         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
39782         remove unused global constant.
39783
39784 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
39785
39786         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
39787         include of <not-cancel.h>.
39788
39789 2012-05-15  Roland McGrath  <roland@hack.frob.com>
39790
39791         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
39792
39793 2012-05-15  Jeff Law  <law@redhat.com>
39794             Andreas Jaeger  <aj@suse.de>
39795
39796         [BZ #13594]
39797         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
39798         out from...
39799         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
39800         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
39801         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
39802         code changing __hst_map_handle.map.
39803
39804 2012-05-15  Roland McGrath  <roland@hack.frob.com>
39805
39806         * configure.in (sysnames): Look for Implies-before and Implies-after
39807         files.
39808         * configure: Regenerated.
39809
39810 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39811
39812         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
39813         8-byte data alignment with LP_SIZE alignment.
39814
39815 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39816
39817         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
39818         into R10_LP.
39819
39820 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39821
39822         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
39823
39824 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39825
39826         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
39827         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
39828         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
39829         Likewise.
39830         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
39831
39832 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39833
39834         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
39835         (stackinfo_sub_sp): Likewise.
39836
39837 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39838
39839         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
39840         RAX_LP.
39841
39842 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39843
39844         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
39845         into R*_LP.
39846
39847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39848
39849         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
39850         sizes into R*_LP.
39851
39852 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39853
39854         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
39855
39856 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39857
39858         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
39859         into R11_LP and load __x86_64_shared_cache_size_half into
39860         R8_LP.
39861
39862 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
39863
39864         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
39865         R8_LP.
39866
39867 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
39868
39869         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
39870         logb for POWER7.
39871         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
39872         logbf for POWER7.
39873         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
39874         logbl for POWER7.
39875         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
39876         powerpc32/power7/fpu/s_logb.c via #include.
39877         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
39878         powerpc32/power7/fpu/s_logbf.c via #include.
39879         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
39880         powerpc32/power7/fpu/s_logbl.c via #include.
39881
39882 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
39883
39884         * README.libm: Remove file.
39885
39886 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
39887
39888         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
39889         count for x32.  Use R*_LP and omit operand-size suffix.
39890
39891 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
39892
39893         * shlib-versions: Move x86_64-.*-linux.* entries to ...
39894         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
39895         * sysdeps/x86_64/x32/shlib-versions: New file.
39896
39897 2012-05-14  Roland McGrath  <roland@hack.frob.com>
39898
39899         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
39900         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
39901         Use _dl_fatal_printf instead.
39902
39903 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
39904
39905         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
39906         set if not set by the user.  Do not allow for being unset.
39907         * sysdeps/unix/sysv/linux/configure: Regenerated.
39908
39909 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
39910
39911         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
39912         the `q' suffix from lea and replace .quad with ASM_ADDR.
39913
39914 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
39915
39916         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
39917         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
39918         instead of $17.
39919         (PTR_DEMANGLE): Likewise.
39920
39921 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
39922
39923         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
39924         (LP_OP): Likewise.
39925         (ASM_ADDR): Likewise.
39926         (RAX_LP): Likewise.
39927         (RBP_LP): Likewise.
39928         (RBX_LP): Likewise.
39929         (RCX_LP): Likewise.
39930         (RDI_LP): Likewise.
39931         (RSI_LP): Likewise.
39932         (RSP_LP): Likewise.
39933         (R8_LP): Likewise.
39934         (R9_LP): Likewise.
39935         (R10_LP): Likewise.
39936         (R10_LP): Likewise.
39937         (R11_LP): Likewise.
39938         (R12_LP): Likewise.
39939         (R13_LP): Likewise.
39940         (R14_LP): Likewise.
39941         (R15_LP): Likewise.
39942
39943 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
39944
39945         * sysdeps/x86_64/x32/dl-machine.h: New file.
39946
39947 2012-05-14  Andreas Jaeger  <aj@suse.de>
39948
39949         * manual/Makefile (subdir): Remove export of subdir.
39950         (all): Remove target.
39951         (.PHONY): Remove all from list.
39952         (mkinstalldirs): Remove.
39953         (.PHONY): Remove installdirs from list.
39954         ($(inst_infodir)/libc.info): Use make-target-directory.
39955         (installdirs): Remove.
39956         (subdir_%): Remove.
39957         (glibc-targets): Remove.
39958         (lib): Remove.
39959         (stubs): Remove.
39960         ($(objpfx)stubs ../po/manual.pot): Remove.
39961         ($(objpfx)stamp%): Remove.
39962         (make-target-directory): Remove.
39963         (subdir_install): Remove.
39964         (routines): Remove.
39965         (aux): Remove.
39966         (sources): Remove.
39967         (objects): Remove.
39968         (headers): Remove.
39969
39970         [BZ #13750]
39971         * manual/.gitignore: Remove, it's not needed anymore.
39972         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
39973         all files in it.
39974         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
39975         directory.
39976         (texis): Renamed to $(objpfx)texis.
39977         (texis-path): New, contains path to generated files.
39978         (chapters.%): Use texis-path for complete path, add extra argument
39979         libc-texinfo.sh.
39980         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
39981         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
39982         (summary,texi, stamp-summary): Use complete path of
39983         files. Generate files in build dir.
39984         (dir-add.texi): Build in build dir.
39985         (libm-err.texi,stamp-libm-err): Likewise.
39986         (version.texi, stamp-version): Likewise.
39987         (.%c.texi): Likewise.
39988         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
39989         (mostlyclean): Remove target.
39990         (realclean): Remove target.
39991         (generated): Add new variable with contents from mostlyclean and
39992         realclean, remove entries duplicated in common-mostlyclean, add
39993         stamp-libm-err and stamp-version.
39994         (generated-dirs): Add libc directory.
39995         ($(inst_infodir)/libc.info): Install files from build dir.
39996
39997         * manual/install.texi (Configuring and compiling): Adjust since
39998         the info files are not part of the tar ball anymore.
39999
40000 2012-05-14  Andreas Jaeger  <aj@suse.de>
40001
40002         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
40003         variable.
40004
40005 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
40006
40007         [BZ #13717]
40008         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
40009         to 2.2.0 where earlier.
40010         * sysdeps/unix/sysv/linux/configure: Regenerated.
40011         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
40012         Remove conditional code.
40013         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
40014         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
40015         Remove conditional code.
40016         [!__NR_lchown]: Likewise.
40017         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
40018         [__NR_lchown]: Likewise.
40019         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
40020         comment referencing __ASSUME_LCHOWN_SYSCALL.
40021         * sysdeps/unix/sysv/linux/i386/sigaction.c
40022         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
40023         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
40024         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
40025         Remove conditional code.
40026         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
40027         (__protocol_available): Remove #if 0 code.
40028         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
40029         conditional code.
40030         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
40031         * sysdeps/unix/sysv/linux/kernel-features.h
40032         (__ASSUME_GETCWD_SYSCALL): Don't define.
40033         (__ASSUME_REALTIME_SIGNALS): Likewise.
40034         (__ASSUME_PREAD_SYSCALL): Likewise.
40035         (__ASSUME_PWRITE_SYSCALL): Likewise.
40036         (__ASSUME_POLL_SYSCALL): Likewise.
40037         (__ASSUME_LCHOWN_SYSCALL): Likewise.
40038         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
40039         non-SPARC.
40040         (__ASSUME_SIOCGIFNAME): Don't define.
40041         (__ASSUME_MSG_NOSIGNAL): Likewise.
40042         (__ASSUME_SENDFILE): Define unconditionally.
40043         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
40044         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
40045         conditional code.
40046         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
40047         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
40048         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
40049         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
40050         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
40051         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
40052         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
40053         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
40054         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
40055         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40056         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
40057         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
40058         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40059         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
40060         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
40061         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
40063         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
40064         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
40066         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
40067         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40068         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
40069         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
40070         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
40072         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
40073         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40074         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
40075         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
40076         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40077         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
40078         Remove conditional code.
40079         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40080         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
40081         Remove conditional code.
40082         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40083         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
40084         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
40085         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
40086         Remove conditional code.
40087         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40088         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
40089         Remove conditional code.
40090         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40091         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
40092         Remove conditional code.
40093         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40094         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
40095         Remove conditional code.
40096         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
40097         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
40098         Remove conditional code.
40099         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40100         * sysdeps/unix/sysv/linux/sh/pwrite64.c
40101         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
40102         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
40103         * sysdeps/unix/sysv/linux/sigaction.c
40104         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
40105         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
40106         * sysdeps/unix/sysv/linux/sigpending.c
40107         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
40108         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
40109         * sysdeps/unix/sysv/linux/sigprocmask.c
40110         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
40111         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
40112         * sysdeps/unix/sysv/linux/sigsuspend.c
40113         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
40114         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
40115         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
40116         (__libc_missing_rt_sigs): Remove.
40117         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
40118         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
40119         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
40120         Remove conditional code.
40121         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
40122         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
40123         return 1.
40124         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
40125         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
40126         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
40127         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
40128
40129 2012-05-14  Andreas Jaeger  <aj@suse.de>
40130
40131         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
40132         it's not used in glibc.
40133         (__coshm1): Likewise.
40134         (__acosh1p): Likewise.
40135         (__sgn): Likewise.
40136
40137         * manual/string.texi (Copying and Concatenation): Add missing
40138         variable in concat example.
40139         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
40140
40141 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
40142
40143         [BZ #14103]
40144         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
40145         __builtin_clzl with __builtin_clzll.
40146
40147 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
40148
40149         [BZ #14104]
40150         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
40151         libc_freeres_ptr.
40152
40153 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
40154
40155         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
40156         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
40157         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
40158         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
40159
40160 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
40161
40162         * NEWS: Update ia64 info.
40163
40164 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
40165
40166         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
40167         used as bcopy.
40168
40169 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
40170
40171         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
40172         * sysdeps/unix/syscalls.list (dup3): Likewise.
40173         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
40174         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
40175
40176 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
40177
40178         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
40179         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
40180
40181 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
40182
40183         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
40184         thread pointer.
40185         (TLS_IE): Use mov/add instead of movq/addq to load thread
40186         pointer.
40187         (TLS_GD_PREFIX): New.
40188         (TLS_GD): Use it.
40189
40190 2012-05-11  David S. Miller  <davem@davemloft.net>
40191
40192         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
40193         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
40194         (_FPU_SETCW): Likewise.
40195
40196 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
40197
40198         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
40199         is 32-byte aligned.
40200
40201 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
40202
40203         [BZ #11837]
40204         * iconvdata/gb18030.c: Update tables.
40205         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
40206         characters specially.
40207         (BODY for TO_LOOP): Add encoding of missing ranges.
40208
40209 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
40210
40211         [BZ #13673]
40212         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
40213         * sysdeps/mach/hurd/dup3.c: Likewise.
40214         * sysdeps/mach/hurd/readlinkat.c: Likewise.
40215         * sysdeps/powerpc/memmove.c:: Likewise.
40216
40217 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
40218
40219         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
40220         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
40221
40222 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
40223
40224         * elf/elf.h (R_X86_64_RELATIVE64): New.
40225         (R_X86_64_NUM): Updated.
40226         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
40227         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
40228         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
40229         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
40230         tst-quad1pie tst-quad2pie
40231         (modules-names): Add tst-quadmod1 tst-quadmod2.
40232         ($(objpfx)tst-quad1): New dependency.
40233         ($(objpfx)tst-quad2): Likewise.
40234         ($(objpfx)tst-quad1pie): Likewise.
40235         ($(objpfx)tst-quad2pie): Likewise.
40236         * sysdeps/x86_64/tst-quad1.c: New file.
40237         * sysdeps/x86_64/tst-quad1pie.c: New file.
40238         * sysdeps/x86_64/tst-quad2.c: Likewise.
40239         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
40240         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
40241         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
40242         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
40243         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
40244
40245 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40246
40247         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
40248         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
40249         * streams/stropts.h (t_scalar_t): Define type.
40250
40251         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
40252         (_PATH_PRESERVE): Set to "/var/lib".
40253         (_PATH_RWHODIR): Set to "/var/spool/rwho".
40254
40255         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
40256         instead of int.
40257
40258         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
40259         if __dir_mkfile succeeded.
40260
40261         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
40262         checking for _hurd_dtablesize.  Unlock it right after having
40263         finished _hurd_dtable allocation.
40264
40265 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40266
40267         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
40268         * sysdeps/mach/hurd/configure: Regenerated.
40269         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
40270         special-casing to...
40271         * sysdeps/gnu/configure.in: ... this new file.
40272         * sysdeps/unix/sysv/linux/configure: Regenerated.
40273         * sysdeps/gnu/configure: New generated file.
40274
40275         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
40276         for Linux: use nsec instead of usec, as well as:
40277         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
40278         members of type struct timespec.
40279         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
40280         New macros.
40281         (struct stat64): Likewise.
40282         (_STATBUF_ST_NSEC): New macro.
40283         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
40284
40285         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
40286         __strtoul_internal rather than strtoul.
40287
40288 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
40289
40290         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
40291         and reject them.
40292
40293 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40294
40295         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
40296         which preserves existing values.
40297         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
40298
40299 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
40300
40301         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
40302         TIMEOUT values.  Return EINVAL for NFDS values either negative or
40303         greater than FD_SETSIZE.
40304
40305 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40306
40307         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
40308         allocated, call __vm_protect to finish enabling the existing space, and
40309         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
40310         allocate the remainder.
40311
40312 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
40313
40314         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
40315         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
40316
40317 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40318
40319         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
40320         sysdeps/mach/hurd/readlink.c.
40321
40322         * posix/tst-sysconf.c (posix_options): Only use
40323         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
40324         _POSIX_SYNCHRONIZED_IO when they are defined
40325         * sysdeps/mach/hurd/bits/posix_opt.h:
40326         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
40327         (_XOPEN_REALTIME): Undefine macro.
40328         (_XOPEN_REALTIME_THREADS): Undefine macro.
40329         (_XOPEN_SHM): Undefine macro.
40330         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
40331         macro to -1.
40332         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
40333         macro to -1.
40334         (_POSIX_ASYNC_IO): Undefine macro.
40335         (_POSIX_PRIORITIZED_IO): Undefine macro.
40336         (_POSIX_SPIN_LOCKS): Define macro to -1.
40337
40338         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
40339         SA_NODEFER, SA_RESETHAND.
40340         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
40341         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
40342         F_DUPFD_CLOEXEC.
40343
40344 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40345
40346         * elf/Makefile (pldd-modules): Define unconditionally.
40347
40348 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40349
40350         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
40351
40352 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40353
40354         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
40355         Return ENOENT when name is empty.
40356         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
40357
40358 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40359
40360         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
40361
40362         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
40363
40364 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40365
40366         Fix mlock in all cases except non-readable pages.
40367         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
40368         instead of VM_PROT_ALL as parameter to __vm_wire function.
40369
40370         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
40371         (__mkdir): When path is `/', just fail with EEXIST.
40372         * sysdeps/mach/hurd/mkdirat.c: Likewise.
40373
40374 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40375
40376         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
40377         <sys/uio.h> (for writev).
40378         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
40379         and <sys/param.h> (for MIN).
40380
40381 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
40382
40383         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
40384         REQUESTED_TIME.  Properly set the remaining time and return EINTR
40385         if interrupted.
40386
40387 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40388
40389         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
40390         Depend on against $(link-rpcuserlibs).
40391
40392 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40393
40394         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
40395         (__libc_stack_end): Do not use attribute_relro.
40396         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
40397         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
40398         to libthread-provided value.
40399         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
40400         attribute_relro.
40401
40402 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40403
40404         [BZ #3748]
40405         * bits/libc-lock.h (__libc_once_get): New macro.
40406         * sysdeps/mach/bits/libc-lock.h: Likewise.
40407         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
40408         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
40409         instead of using implementation details.
40410
40411         * libio/fileops.c: Unconditionally include <kernel-features.h>.
40412         * libio/freopen.c: Likewise.
40413         * libio/freopen64.c: Likewise.
40414         * misc/syslog.c: Likewise.
40415         * nscd/connections.c: Likewise.
40416         * nscd/netgroupcache.c: Likewise.
40417         * sysdeps/posix/getcwd.c: Likewise.
40418
40419 2012-05-10  Roland McGrath  <roland@hack.frob.com>
40420
40421         * math/w_ilogbf.c: Add #include <limits.h>.
40422
40423 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40424
40425         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
40426         path instead of returning without unlocking.
40427
40428         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
40429         immediate-write ioctls.
40430         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
40431
40432 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40433
40434         * sysdeps/mach/hurd/i386/init-first.c (init): Use
40435         __builtin_frame_address instead of making assumptions about the
40436         location of the return address relative to DATA.  Force early load of
40437         the return address.
40438         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
40439         __builtin_frame_address.
40440
40441         dup3 for GNU Hurd.
40442         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
40443         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
40444         implement dup3 and do some further code clean-ups.
40445         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
40446         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
40447
40448 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40449
40450         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
40451
40452         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
40453         HURD_CRITICAL_END around holding _hurd_dtable_lock.
40454         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
40455         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
40456         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
40457         d->port.lock.
40458
40459         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
40460         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
40461         when handler == SIG_ERR, not when handler != SIG_ERR.
40462
40463 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40464
40465         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
40466         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
40467         definitions.
40468
40469         accept4 for GNU Hurd.
40470         * include/sys/socket.h (__libc_accept4): New prototype.
40471         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
40472         to implement __libc_accept4.
40473         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
40474         __libc_accept4.
40475         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
40476
40477         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
40478         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
40479         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
40480         signal-defines.sym.
40481
40482 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40483
40484         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
40485
40486 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
40487
40488         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
40489         assertion on O_CLOEXEC flag.
40490         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
40491         * hurd/intern-fd.c: Likewise.
40492         * hurd/port2fd.c: Likewise.
40493
40494 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
40495
40496         [BZ #3906]
40497         * bits/in.h (IPV6_PKTINFO): Define new macro.
40498         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
40499
40500 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
40501
40502         [BZ #13954]
40503         [BZ #13955]
40504         [BZ #13956]
40505         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
40506         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
40507         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
40508         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
40509         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
40510         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
40511         * math/libm-test.inc (logb_test) : Additional logb tests.
40512
40513 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
40514             Andreas Jaeger  <aj@suse.de>
40515
40516         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
40517         * configure: Regenerated.
40518         * config.h.in (LINK_OBSOLETE_RPC): New macro.
40519         * config.make.in (link-obsolete-rpc): New substituted variable.
40520         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
40521         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
40522         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
40523         (shared-only-routines): Don't set it under [link-obsolete-rpc],
40524         so that libc.a contains the symbols.
40525         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
40526         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
40527         * sunrpc/auth_none.c: Likewise.
40528         * sunrpc/auth_unix.c: Likewise.
40529         * sunrpc/authdes_prot.c: Likewise.
40530         * sunrpc/authuxprot.c: Likewise.
40531         * sunrpc/clnt_gen.c: Likewise.
40532         * sunrpc/clnt_perr.c: Likewise.
40533         * sunrpc/clnt_raw.c: Likewise.
40534         * sunrpc/clnt_simp.c: Likewise.
40535         * sunrpc/clnt_tcp.c: Likewise.
40536         * sunrpc/clnt_udp.c: Likewise.
40537         * sunrpc/clnt_unix.c: Likewise.
40538         * sunrpc/des_crypt.c: Likewise.
40539         * sunrpc/des_soft.c: Likewise.
40540         * sunrpc/get_myaddr.c: Likewise.
40541         * sunrpc/key_call.c: Likewise.
40542         * sunrpc/key_prot.c: Likewise.
40543         * sunrpc/netname.c: Likewise.
40544         * sunrpc/pm_getmaps.c: Likewise.
40545         * sunrpc/pm_getport.c: Likewise.
40546         * sunrpc/pmap_clnt.c: Likewise.
40547         * sunrpc/pmap_prot.c: Likewise.
40548         * sunrpc/pmap_prot2.c: Likewise.
40549         * sunrpc/pmap_rmt.c: Likewise.
40550         * sunrpc/publickey.c: Likewise.
40551         * sunrpc/rpc_cmsg.c: Likewise.
40552         * sunrpc/rpc_common.c: Likewise.
40553         * sunrpc/rpc_dtable.c: Likewise.
40554         * sunrpc/rpc_prot.c: Likewise.
40555         * sunrpc/rpc_thread.c: Likewise.
40556         * sunrpc/rtime.c: Likewise.
40557         * sunrpc/svc.c: Likewise.
40558         * sunrpc/svc_auth.c: Likewise.
40559         * sunrpc/svc_raw.c: Likewise.
40560         * sunrpc/svc_run.c: Likewise.
40561         * sunrpc/svc_tcp.c: Likewise.
40562         * sunrpc/svc_udp.c: Likewise.
40563         * sunrpc/svc_unix.c: Likewise.
40564         * sunrpc/svcauth_des.c: Likewise.
40565         * sunrpc/xcrypt.c: Likewise.
40566         * sunrpc/xdr.c: Likewise.
40567         * sunrpc/xdr_array.c: Likewise.
40568         * sunrpc/xdr_float.c: Likewise.
40569         * sunrpc/xdr_intXX_t.c: Likewise.
40570         * sunrpc/xdr_mem.c: Likewise.
40571         * sunrpc/xdr_rec.c: Likewise.
40572         * sunrpc/xdr_ref.c: Likewise.
40573         * sunrpc/xdr_sizeof.c: Likewise.
40574         * sunrpc/xdr_stdio.c: Likewise.
40575
40576 2012-05-10  Roland McGrath  <roland@hack.frob.com>
40577
40578         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
40579         change.  Update copyright years.
40580
40581 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
40582
40583         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
40584
40585 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
40586             Joseph Myers  <joseph@codesourcery.com>
40587             Paul Pluzhnikov  <ppluzhnikov@google.com>
40588
40589         [BZ #14012]
40590         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
40591         requiring rpcgen.
40592         [cross-compiling] (extra-libs): Likewise.
40593         [cross-compiling] (extra-libs-others): Likewise.
40594         [cross-compiling] (librpcsvc-routines): Likewise.
40595         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
40596         [cross-compiling] (omit-deps): Likewise.
40597         (sunrpc-CPPFLAGS): New variable.
40598         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
40599         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
40600         (cross-rpcgen-objs): New variable.
40601         (extra-objs): Append $(cross-rpcgen-objs).
40602         ($(cross-rpcgen-objs)): New rule.
40603         ($(objpfx)cross-rpcgen): Likewise.
40604         (rpcgen-cmd): Define to use $(built-program-file).  Expand
40605         comment.
40606         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
40607         ($(objpfx)x%.stmp): Likewise.
40608         * sunrpc/proto.h [IS_IN_build] (_): Define.
40609         [IS_IN_build] (_libc_intl_domainname): Likewise.
40610
40611 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
40612
40613         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
40614         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
40615         and R_X86_64_TPOFF64.
40616
40617 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
40618
40619         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
40620         sysdeps/unix/sysv/syscalls.list.
40621         (stime): Likewise.
40622         (utime): Likewise.
40623         * sysdeps/unix/sysv/syscalls.list: Remove file.
40624
40625 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
40626
40627         [BZ #3440]
40628         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
40629         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
40630         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
40631         (__LC_IDENTIFICATION): Make these macros useful in #if
40632         expressions, as required by C99.
40633
40634 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
40635
40636         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
40637         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
40638         after this.
40639
40640 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
40641
40642         * stdlib/longlong.h: Updated from GCC.
40643
40644 2012-05-09  Andreas Jaeger  <aj@suse.de>
40645
40646         * nscd/nscd.c (run_modes): Make named enum, reorder so that
40647         default is first entry.
40648         (run_mode): Set type.
40649         (main): Remove informal message about syslog.
40650         (options): Fix typo.
40651
40652         [BZ #14053]
40653         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
40654         to asm.
40655         (lrint): Likewise.
40656         (llrintf): Likewise.
40657         (llrint): Likewise.
40658         (rint): Likewise.
40659         (rintf): Likewise.
40660         (nearbyint): Likewise.
40661         (nearbyintf): Likewise.
40662
40663 2012-05-09  Andreas Jaeger  <aj@suse.de>
40664             Pedro Alves  <palves@redhat.com>
40665
40666         * nscd/nscd.c (run_mode): Use enum.
40667         (main): Cleanup coding style issue.
40668
40669 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
40670             Andreas Jaeger  <aj@suse.de>
40671
40672         * nscd/nscd.c (go_background): Replaced with...
40673         (run_mode): ... this.
40674         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
40675         (options): Add -F --foreground.
40676         (main): Implement it.
40677         (parse_opt): Parse it.
40678
40679 2012-05-09  Andreas Jaeger  <aj@suse.de>
40680
40681         [BZ #14083]
40682         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
40683         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
40684         -Wconversion warning.
40685         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
40686         Likewise.
40687
40688 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
40689
40690         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
40691         == 0.
40692         (LC_ALL): Use macro-int-constant.
40693         (LC_COLLATE): Likewise.
40694         (LC_CTYPE): Likewise.
40695         (LC_MESSAGES): Likewise.
40696         (LC_MONETARY): Likewise.
40697         (LC_NUMERIC): Likewise.
40698         (LC_TIME): Likewise.
40699         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
40700         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
40701         [ISO || ISO99 || ISO11] (*_t): Do not allow.
40702         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
40703         Specify type.
40704         [C99-based standards] (float_t): Expect type.
40705         [C99-based standards] (double_t): Expect type.
40706         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
40707         type.
40708         [C99-based standards] (HUGE_VALL): Likewise.
40709         [C99-based standards] (INFINITY): Likewise.
40710         [C99-based standards] (NAN): Likewise.
40711         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
40712         [C99-based standards] (FP_NAN): Likewise.
40713         [C99-based standards] (FP_NORMAL): Likewise.
40714         [C99-based standards] (FP_SUBNORMAL): Likewise.
40715         [C99-based standards] (FP_ZERO): Likewise.
40716         [C99-based standards] (FP_FAST_FMA): Use
40717         optional-macro-int-constant.  Specify type.  Require == 1.
40718         [C99-based standards] (FP_FAST_FMAF): Likewise.
40719         [C99-based standards] (FP_FAST_FMAL): Likewise.
40720         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
40721         [C99-based standards] (FP_ILOGBNAN): Likewise.
40722         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
40723         Specify type.
40724         [C99-based standards] (MATH_ERREXCEPT): Likewise.
40725         [C99-based standards] (math_errhandling): Specify type.
40726         [ISO99 || ISO11] (signgam): Do not allow.
40727         [non-C99-based standards] (copysignf): Do not allow.
40728         [non-C99-based standards] (exp2f): Likewise.
40729         [non-C99-based standards] (log2f): Likewise.
40730         [non-C99-based standards] (modff): Allow.
40731         [non-C99-based standards] (erff): Do not allow.
40732         [non-C99-based standards] (erfcf): Likewise.
40733         [non-C99-based standards] (gammaf): Likewise.
40734         [non-C99-based standards] (hypotf): Likewise.
40735         [non-C99-based standards] (j0f): Likewise.
40736         [non-C99-based standards] (j1f): Likewise.
40737         [non-C99-based standards] (jnf): Likewise.
40738         [non-C99-based standards] (lgammaf): Likewise.
40739         [non-C99-based standards] (tgammaf): Likewise.
40740         [non-C99-based standards] (y0f): Likewise.
40741         [non-C99-based standards] (y1f): Likewise.
40742         [non-C99-based standards] (ynf): Likewise.
40743         [non-C99-based standards] (isnanf): Likewise.
40744         [non-C99-based standards] (acoshf): Likewise.
40745         [non-C99-based standards] (asinhf): Likewise.
40746         [non-C99-based standards] (atanhf): Likewise.
40747         [non-C99-based standards] (cbrtf): Likewise.
40748         [non-C99-based standards] (expm1f): Likewise.
40749         [non-C99-based standards] (ilogbf): Likewise.
40750         [non-C99-based standards] (log1pf): Likewise.
40751         [non-C99-based standards] (logbf): Likewise.
40752         [non-C99-based standards] (nextafterf): Likewise.
40753         [non-C99-based standards] (remainderf): Likewise.
40754         [non-C99-based standards] (rintf): Likewise.
40755         [non-C99-based standards] (scalbf): Likewise.
40756         [non-C99-based standards] (copysignl): Likewise.
40757         [non-C99-based standards] (exp2l): Likewise.
40758         [non-C99-based standards] (log2l): Likewise.
40759         [non-C99-based standards] (modfl): Allow.
40760         [non-C99-based standards] (erfl): Do not allow.
40761         [non-C99-based standards] (erfcl): Likewise.
40762         [non-C99-based standards] (gammal): Likewise.
40763         [non-C99-based standards] (hypotl): Likewise.
40764         [non-C99-based standards] (j0l): Likewise.
40765         [non-C99-based standards] (j1l): Likewise.
40766         [non-C99-based standards] (jnl): Likewise.
40767         [non-C99-based standards] (lgammal): Likewise.
40768         [non-C99-based standards] (tgammal): Likewise.
40769         [non-C99-based standards] (y0l): Likewise.
40770         [non-C99-based standards] (y1l): Likewise.
40771         [non-C99-based standards] (ynl): Likewise.
40772         [non-C99-based standards] (isnanl): Likewise.
40773         [non-C99-based standards] (acoshl): Likewise.
40774         [non-C99-based standards] (asinhl): Likewise.
40775         [non-C99-based standards] (atanhl): Likewise.
40776         [non-C99-based standards] (cbrtl): Likewise.
40777         [non-C99-based standards] (expm1l): Likewise.
40778         [non-C99-based standards] (ilogbl): Likewise.
40779         [non-C99-based standards] (log1pl): Likewise.
40780         [non-C99-based standards] (logbl): Likewise.
40781         [non-C99-based standards] (nextafterl): Likewise.
40782         [non-C99-based standards] (remainderl): Likewise.
40783         [non-C99-based standards] (rintl): Likewise.
40784         [non-C99-based standards] (scalbl): Likewise.
40785         [ISO || ISO99 || ISO11] (*_t): Do not allow.
40786         [non-C99-based standards] (FP_*): Do not allow.
40787         [C99-based standards] (FP_*): Change to
40788         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
40789         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
40790         allow.
40791         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
40792         (SIG_ERR): Likewise.
40793         [X/Open-based standards] (SIG_HOLD): Likewise.
40794         (SIG_IGN): Likewise.
40795         (SIGABRT): Use macro-int-constant.  Specify type.  Require
40796         positive value.
40797         (SIGFPE): Likewise.
40798         (SIGILL): Likewise.
40799         (SIGINT): Likewise.
40800         (SIGSEGV): Likewise.
40801         (SIGTER): Likewise.
40802         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
40803         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
40804         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
40805         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
40806         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
40807         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
40808         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
40809         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
40810         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
40811         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
40812         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
40813         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
40814         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
40815         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
40816         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
40817         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
40818         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
40819         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
40820         [X/Open-based standards] (SIGTRAP): Likewise.
40821         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
40822         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
40823         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
40824         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
40825         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
40826         allow.
40827
40828 2012-05-08  Ian Wienand  <ianw@vmware.com>
40829
40830         [BZ #14080]
40831         * time/tzset.c (__tzset_parse_tz): Update default rules for
40832         daylight time changes in the Energy Policy Act of 2005.
40833
40834 2012-05-09  Andreas Jaeger  <aj@suse.de>
40835
40836         [BZ #13983]
40837         * elf/ldconfig.c (parse_conf): Change string to make clear that
40838         ldconfig only issued a warning if ld.so.conf does not exist.
40839
40840 2012-05-08  David S. Miller  <davem@davemloft.net>
40841
40842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
40843         movxtod instead of popping the value on the stack.
40844
40845         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40846
40847 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
40848
40849         * config.h.in: Add HAVE_ARM_PCS_VFP.
40850
40851 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
40852
40853         [BZ #13979]
40854         * include/features.h: Warn if user requests __FORTIFY_SOURCE
40855         checking but the checks are disabled for any reason.
40856
40857 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
40858
40859         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
40860         and ELF64_R_TYPE with ELFW(R_TYPE).
40861
40862 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
40863
40864         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
40865         (ulimit): Likewise.
40866
40867         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
40868         (settimeofday): Likewise.
40869
40870 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
40871
40872         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
40873         a struct th_u2 inside the union, and move tu_block/tu_code into
40874         a new th_u3 union of tu_block/tu_code inside of that.  Move
40875         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
40876         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
40877         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
40878         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
40879         (th_stuff): Change to th_u1.tu_stuff.
40880         (th_data): Define.
40881         (th_msg): Change to th_u1.th_u2.tu_data.
40882
40883 2012-05-07  David S. Miller  <davem@davemloft.net>
40884
40885         * sysdeps/sparc/fpu/libm-test-ulps: Update.
40886
40887         [BZ #14074]
40888         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
40889         (SETUP_PIC_REG): Use it.
40890         (SETUP_PIC_REG_LEAF): Use it.
40891
40892 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
40893
40894         [BZ #13885]
40895         [BZ #13923]
40896         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
40897         USE_AS_EXPM1L.
40898         (EXPL_FINITE): Likewise.
40899         (FLDLOG): Likewise.
40900         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
40901         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
40902         e_expl.S.
40903         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
40904         USE_AS_EXPM1L.
40905         (EXPL_FINITE): Likewise.
40906         (FLDLOG): Likewise.
40907         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
40908         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
40909         e_expl.S.
40910         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
40911         test of -max_value argument for long double.
40912         * sysdeps/i386/fpu/libm-test-ulps: Update.
40913         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40914
40915 2012-05-06  David S. Miller  <davem@davemloft.net>
40916
40917         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
40918         quad soft-float symbols whose references which are compiler
40919         generated.
40920         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
40921
40922 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
40923
40924         [BZ #13884]
40925         [BZ #13914]
40926         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
40927         USE_AS_EXP10L.
40928         (EXPL_FINITE): Likewise.
40929         (FLDLOG): Likewise.
40930         (c0): Likewise.
40931         (c1): Likewise.
40932         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
40933         Adjust comments for base varying.
40934         (__expl_finite): Change alias to EXPL_FINITE.
40935         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
40936         e_expl.S.
40937         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
40938         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
40939         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
40940         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
40941         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
40942         USE_AS_EXP10L.
40943         (EXPL_FINITE): Likewise.
40944         (FLDLOG): Likewise.
40945         (c0): Likewise.
40946         (c1): Likewise.
40947         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
40948         Adjust comments for base varying.
40949         (__expl_finite): Change alias to EXPL_FINITE.
40950         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
40951         tests for bugs.
40952         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
40953
40954         [BZ #14064]
40955         * math/libm-test.inc (check_float_internal): Correct ulp
40956         calculation for subnormal expected results.
40957
40958 2012-05-06  Andreas Jaeger  <aj@suse.de>
40959
40960         * Makeconfig (+math-flags): New, set to -frounding-math.
40961         (+cflags): Add +math-flags so that all of glibc gets compiled with
40962         it.
40963
40964         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
40965
40966 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
40967
40968         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
40969         Disable one test.
40970
40971         [BZ #13787]
40972         [BZ #13922]
40973         [BZ #14036]
40974         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
40975         (__ieee754_expl): Allow for and saturate large arguments.
40976         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
40977         (u_threshold): Likewise.
40978         (__exp): Call __ieee754_exp before checking for overflow and
40979         underflow.
40980         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
40981         (u_threshold): Likewise.
40982         (__expf): Call __ieee754_expf before checking for overflow and
40983         underflow.
40984         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
40985         (u_threshold): Likewise.
40986         (__expl): Call __ieee754_expl before checking for overflow and
40987         underflow.
40988         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
40989         (__ieee754_expl): Allow for and saturate large arguments.
40990         * math/libm-test.inc (exp_test): Add another test.  Do not allow
40991         missing overflow exception on overflow.
40992         (expm1_test): Do not allow missing overflow exception on overflow.
40993
40994         * sysdeps/i386/fpu/e_expl.c: Move to ...
40995         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
40996         rather than using inline asm.
40997         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
40998         * sysdeps/x86_64/fpu/e_expl.S: Copy from
40999         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
41000
41001         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
41002         (nice): Likewise.
41003         (poll): Likewise.
41004         (signal): Likewise.
41005         (time): Likewise.
41006         (times): Likewise.
41007
41008 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
41009
41010         * sysdeps/unix/syscalls.list (adjtime): Add entry from
41011         sysdeps/unix/common/syscalls.list.
41012         (fchmod): Likewise.
41013         (fchown): Likewise.
41014         (ftruncate): Likewise.
41015         (getrusage): Likewise.
41016         (gettimeofday): Likewise.
41017         (setpgid): Likewise.
41018         (setregid): Likewise.
41019         (setreuid): Likewise.
41020         (sigaction): Likewise.
41021         (truncate): Likewise.
41022         (vhangup): Likewise.
41023         * sysdeps/unix/common/syscalls.list: Remove file.
41024         * sysdeps/unix/bsd/Implies: Don't include unix/common.
41025         * sysdeps/unix/sysv/linux/Implies: Likewise.
41026
41027 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
41028
41029         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
41030         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
41031         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
41032         Moved to ...
41033         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
41034         Here.
41035         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
41036         to ...
41037         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
41038         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
41039         to ...
41040         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
41041         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
41042         to ...
41043         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
41044         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
41045         to ...
41046         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
41047         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
41048         to ...
41049         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
41050         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
41051         to ...
41052         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
41053         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
41054         to ...
41055         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
41056         Here.
41057         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
41058         to ...
41059         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
41060         Here.
41061         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
41062         to ...
41063         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
41064         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
41065         Moved to ...
41066         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
41067         Here.
41068         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
41069         to ...
41070         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
41071
41072 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
41073
41074         * sysdeps/unix/common/bits/dirent.h: Remove file.
41075         * sysdeps/unix/common/bits/fcntl.h: Likewise.
41076
41077         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
41078         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
41079         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
41080         * sysdeps/unix/bsd/isatty.c: Likewise.
41081         * sysdeps/unix/bsd/tcdrain.c: Likewise.
41082         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
41083         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
41084
41085 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41086
41087         [BZ #13563]
41088         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
41089         long double comparison inaccuracies.
41090         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
41091         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
41092
41093 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
41094
41095         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
41096         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
41097
41098 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
41099
41100         [BZ #14049]
41101         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
41102         nonzero digits before rounding a hex value.
41103         * stdlib/tst-strtod.c (tests): Add another test.
41104
41105 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
41106
41107         * sysdeps/s390/fpu/libm-test-ulps: Update.
41108
41109 2012-05-03  Andreas Jaeger  <aj@suse.de>
41110
41111         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
41112         does not get optimized out.
41113         (malloc_opt_barrier): New.
41114
41115 2012-05-03  Andreas Jaeger  <aj@suse.de>
41116             Roland McGrath  <roland@hack.frob.com>
41117
41118         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
41119         intermediate file deletion.
41120         (generated): Add .symlist files.
41121
41122 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
41123
41124         [BZ #13775]
41125         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
41126         Redirect under this condition.
41127         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
41128         [__USE_GNU] (__dprintf_chk): Not under this condition.
41129         [__USE_GNU] (__vdprintf_chk): Likewise.
41130         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
41131         under this condition.
41132         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
41133         [__USE_XOPEN2K8] (dprintf): Define under this condition.
41134         [__USE_XOPEN2K8] (vdprintf): Likewise.
41135         [__USE_GNU] (__dprintf_chk): Not under this condition.
41136         [__USE_GNU] (__vdprintf_chk): Likewise.
41137         [__USE_GNU] (dprintf): Likewise.
41138         [__USE_GNU] (vdprintf): Likewise.
41139
41140 2012-05-03  Roland McGrath  <roland@hack.frob.com>
41141
41142         * elf/Makefile (common-generated): Set this instead of generated for
41143         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
41144         $(all-built-dso)-derived lists.
41145
41146 2012-05-03  Andreas Jaeger  <aj@suse.de>
41147
41148         * sysdeps/i386/fpu/libm-test-ulps: Update.
41149
41150         * FAQ: Removed.
41151         * FAQ.in: Likewise.
41152         * scripts/gen-FAQ.pl: Likewise.
41153         * manual/install.texi (Installation): Point to online location of
41154         FAQ.
41155         * Makefile (files-for-dist): Remove FAQ.
41156         (FAQ): Remove.
41157
41158 2012-05-02  Allan McRae  <allan@archlinux.org>
41159
41160         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
41161         (LDFLAGS-reldepmod5.so): Likewise.
41162         (LDFLAGS-reldep6mod1.so): Likewise.
41163         (LDFLAGS-reldep6mod4.so): Likewise.
41164         (LDFLAGS-reldep8mod3.so): Likewise.
41165         (LDFLAGS-unload4mod1.so): Likewise.
41166         (LDFLAGS-unload4mod2.so): Likewise.
41167         (LDFLAGS-tst-initorder): Likewise.
41168         (LDFLAGS-tst-initordera2.so): Likewise.
41169         (LDFLAGS-tst-initordera3.so): Likewise.
41170         (LDFLAGS-tst-initordera4.so): Likewise.
41171         (LDFLAGS-tst-initorderb2.so): Likewise.
41172         (LDFLAGS-noload): Likewise.
41173         (LDFLAGS-next): Likewise.
41174         (LDFLAGS-order2mod1.so): Likewise.
41175         (LDFLAGS-order2mod2.so): Likewise.
41176         (LDFLAGS-tst-initorder2): Likewise.
41177         (LDFLAGS-tst-initorder2a.so): Likewise.
41178         (LDFLAGS-tst-initorder2b.so): Likewise.
41179         (LDFLAGS-tst-initorder2c.so): Likewise.
41180         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
41181
41182 2012-05-02  David S. Miller  <davem@davemloft.net>
41183
41184         * sysdeps/sparc/fpu/libm-test-ulps: Update.
41185
41186 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
41187
41188         [BZ #14055]
41189         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
41190
41191 2012-05-02  Andreas Jaeger  <aj@suse.de>
41192
41193         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
41194         since we manipulate rounding mode.
41195         (CPPFLAGS-test-idouble.c): Likewise.
41196         (CPPFLAGS-test-ifloat.c): Likewise.
41197         (CFLAGS-test-ldouble.c): Likewise.
41198         (CFLAGS-test-double.c): Likewise.
41199         (CFLAGS-test-float.c): Likewise.
41200         (CFLAGS-test-misc.c): Likewise.
41201         (CFLAGS-test-test-fenv.c): Likewise.
41202
41203 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41204
41205         [BZ #2550]
41206         [BZ #2570]
41207         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
41208         comparisons to determine direction to adjust input.
41209
41210 2012-05-01  Roland McGrath  <roland@hack.frob.com>
41211
41212         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
41213         output to the target.
41214
41215         * scripts/localplt.awk: New file.
41216         * elf/Makefile ($(objpfx)check-localplt): Target removed.
41217         (check-localplt-CFLAGS): Variable removed.
41218         ($(all-built-dso:=.jmprel)): New static pattern rule.
41219         (generated): Add those targets.
41220         (localplt-built-dso): New variable.
41221         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
41222
41223         * elf/check-localplt.c: File removed.
41224
41225         * scripts/check-execstack.awk: New file.
41226         * elf/Makefile ($(objpfx)check-execstack): Target removed.
41227         (check-execstack-CFLAGS): Variable removed.
41228         ($(objpfx)check-execstack.h): Target removed.
41229         ($(objpfx)execstack-default): New target.
41230         (generated): Add that instead of check-execstack.h.
41231         ($(all-built-dso:=.phdr)): New static pattern rule.
41232         (generated): Add those targets.
41233         * elf/check-execstack.c: File removed.
41234
41235         * scripts/check-textrel.awk: New file.
41236         * elf/Makefile ($(objpfx)check-textrel): Target removed.
41237         (check-textrel-CFLAGS): Variable removed.
41238         (all-built-dso): Use := to define.o
41239         ($(all-built-dso:=.dyn)): New static pattern rule.
41240         (generated): Add those targets.
41241         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
41242         * config.make.in (READELF): New substituted variable.
41243         * elf/check-textrel.c: File removed.
41244
41245 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
41246
41247         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
41248         allow.
41249         * conform/data/ctype.h-data [C99-based standards] (isblank):
41250         Expect function.
41251         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
41252         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
41253         [ISO || ISO99 || ISO11] (*_t): Do not allow.
41254         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
41255         Specify type.  Require positive value.
41256         (EILSEQ): Likewise.
41257         (ERANGE): Likewise.
41258         [ISO || POSIX] (EILSEQ): Do not expect.
41259         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
41260         Specify type.  Require positive value.
41261         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
41262         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
41263         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
41264         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
41265         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
41266         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
41267         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
41268         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
41269         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
41270         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
41271         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
41272         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
41273         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
41274         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
41275         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
41276         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
41277         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
41278         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
41279         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
41280         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
41281         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
41282         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
41283         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
41284         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
41285         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
41286         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
41287         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
41288         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
41289         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
41290         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
41291         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
41292         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
41293         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
41294         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
41295         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
41296         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
41297         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
41298         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
41299         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
41300         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
41301         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
41302         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
41303         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
41304         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
41305         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
41306         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
41307         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
41308         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
41309         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
41310         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
41311         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
41312         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
41313         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
41314         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
41315         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
41316         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
41317         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
41318         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
41319         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
41320         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
41321         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
41322         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
41323         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
41324         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
41325         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
41326         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
41327         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
41328         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
41329         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
41330         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
41331         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
41332         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
41333         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
41334         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
41335         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
41336         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
41337         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
41338         Require >= 2.
41339         (FLT_ROUNDS): Expect as macro, not constant.
41340         (FLT_MANT_DIG): Use macro-int-constant.
41341         (DBL_MANT_DIG): Likewise.
41342         (LDBL_MANT_DIG): Likewise.
41343         (FLT_DIG): Likewise.
41344         (DBL_DIG): Likewise.
41345         (LDBL_DIG): Likewise.
41346         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
41347         (DBL_MIN_EXP): Likewise.
41348         (LDBL_MIN_EXP): Likewise.
41349         (FLT_MAX_EXP): Use macro-int-constant.
41350         (DBL_MAX_EXP): Likewise.
41351         (LDBL_MAX_EXP): Likewise.
41352         (FLT_MAX_10_EXP): Likewise.
41353         (DBL_MAX_10_EXP): Likewise.
41354         (LDBL_MAX_10_EXP): Likewise.
41355         (FLT_MAX): Use macro-constant.
41356         (DBL_MAX): Likewise.
41357         (LDBL_MAX): Likewise.
41358         (FLT_EPSILON): Use macro-constant.  Give upper bound.
41359         (DBL_EPSILON): Likewise.
41360         (LDBL_EPSILON): Likewise.
41361         (FLT_MIN): Likewise.
41362         (DBL_MIN): Likewise.
41363         (LDBL_MIN): Likewise.
41364         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
41365         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
41366         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
41367         [ISO11] (FLT_HAS_SUBNORM): Likewise.
41368         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
41369         [ISO11] (DBL_DECIMAL_DIG): Likewise.
41370         [ISO11] (FLT_DECIMAL_DIG): Likewise.
41371         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
41372         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
41373         [ISO11] (FLT_TRUE_MIN): Likewise.
41374         [ISO11] (LDBL_TRUE_MIN): Likewise.
41375         [ISO || ISO99 || ISO11] (*_t): Do not allow.
41376         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
41377         (SCHAR_MIN): Use macro-int-constant.  Specify type.
41378         (SCHAR_MAX): Likewise.
41379         (UCHAR_MAX): Likewise.
41380         (CHAR_MIN): Likewise.
41381         (CHAR_MAX): Likewise.
41382         (MB_LEN_MAX): Use macro-int-constant.
41383         (SHRT_MIN): Use macro-int-constant.  Specify type.
41384         (SHRT_MAX): Likewise.
41385         (USHRT_MAX): Likewise.
41386         (INT_MAX): Likewise.
41387         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
41388         bound negative.
41389         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
41390         bound with "U".
41391         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
41392         bound with "L".
41393         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
41394         bound negative.  Suffix upper bound with "L".
41395         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
41396         bound with "UL".
41397         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
41398         Specify type.
41399         [C99-based standards] (LLONG_MAX): Likewise.
41400         [C99-based standards] (ULLONG_MAX): Likewise.
41401         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
41402         == 0.
41403         [ISO11] (max_align_t): Require type.
41404         [ISO || ISO99 || ISO11] (*_t): Do not allow.
41405
41406         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
41407         from $CFLAGS, without defining away __attribute__ calls.
41408         (checknamespace): Use $CFLAGS_namespace.
41409
41410         * conform/conformtest.pl (@keywords): Only include C99 keywords
41411         for standards based on C99 or C11.
41412
41413         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
41414         Disable tests.
41415         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
41416         UNIX98]: Likewise.
41417
41418         * conform/conformtest.pl: Handle "macro-int-constant" and test for
41419         usability of symbols in #if.
41420
41421         * conform/conformtest.pl: If macro or constant types start
41422         "promoted:", expect the symbol to be of the following type
41423         promoted by the integer promotions.
41424
41425         * conform/conformtest.pl: Parse all "constant" and "macro" lines
41426         in one place.  Also handle "macro-constant".
41427
41428         * conform/conformtest.pl: Only accept expected macro values with
41429         "==".  Parse all "macro" lines in one place.
41430         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
41431
41432         * conform/conformtest.pl: Handle braced types on "constant" lines
41433         instead of handling "typed-constant".
41434         * conform/data/signal.h-data: Use "constant" instead of
41435         "typed-constant".
41436
41437         * conform/conformtest.pl: Handle "optional-" at start of lines in
41438         one place rather than duplicating several cases.  Handle each
41439         format of "macro" line with initial "optional-".
41440
41441         * conform/conformtest.pl: Only accept expected constant or
41442         optional-constant values with "==".  Parse all "constant" lines in
41443         one place.  Parse all "optional-constant" lines in one place.
41444         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
41445         * conform/data/fmtmsg.h-data: Likewise.
41446         * conform/data/netinet/in.h-data: Likewise.
41447         * conform/data/tar.h-data: Likewise.
41448         * conform/data/limits.h-data: Use "==" form on "constant" and
41449         "optional-constant" lines.
41450
41451         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
41452         Use -std=c99 for XOPEN2K.
41453         (@knownproblems): Remove.
41454         (newtoken): Don't check %isknown.
41455
41456         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
41457         Do not expect macro.
41458         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
41459         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
41460         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
41461         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
41462         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
41463         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
41464         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
41465         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
41466         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
41467         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
41468         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
41469         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
41470         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
41471         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
41472         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
41473         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
41474         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
41475         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
41476         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
41477         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
41478         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
41479         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
41480         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
41481         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
41482         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
41483         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
41484         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
41485         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
41486         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
41487         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
41488         [XPG3] (acosh): Likewise.
41489         [XPG3] (asinh): Likewise.
41490         [XPG3] (atanh): Likewise.
41491         [XPG3] (cbrt): Likewise.
41492         [XPG3] (expm1): Likewise.
41493         [XPG3] (ilogb): Likewise.
41494         [XPG3] (log1p): Likewise.
41495         [XPG3] (logb): Likewise.
41496         [XPG3] (nextafter): Likewise.
41497         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
41498         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
41499         [XPG3] (remainder): Likewise.
41500         [XPG3] (rint): Likewise.
41501         [XPG3 || XPG4 || UNIX98] (round): Likewise.
41502         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
41503         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
41504         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
41505         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
41506         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
41507         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
41508         [UNIX98 || XOPEN2K] (scalb): Expect.
41509         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
41510         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
41511         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
41512         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
41513         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
41514         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
41515         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
41516         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
41517         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
41518         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
41519         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
41520         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
41521         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
41522         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
41523         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
41524         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
41525         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
41526         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
41527         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
41528         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
41529         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
41530         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
41531         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
41532         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
41533         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
41534         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
41535         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
41536         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
41537         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
41538         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
41539         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
41540         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
41541         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
41542         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
41543         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
41544         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
41545         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
41546         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
41547         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
41548         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
41549         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
41550         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
41551         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
41552         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
41553         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
41554         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
41555         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
41556         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
41557         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
41558         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
41559         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
41560         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
41561         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
41562         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
41563         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
41564         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
41565         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
41566         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
41567         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
41568         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
41569         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
41570         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
41571         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
41572         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
41573         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
41574         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
41575         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
41576         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
41577         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
41578         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
41579         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
41580         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
41581         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
41582         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
41583         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
41584         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
41585         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
41586         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
41587         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
41588         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
41589         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
41590         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
41591         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
41592         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
41593         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
41594         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
41595         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
41596         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
41597         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
41598         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
41599         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
41600         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
41601         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
41602         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
41603         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
41604         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
41605         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
41606         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
41607         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
41608         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
41609         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
41610         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
41611         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
41612         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
41613         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
41614         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
41615         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
41616         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
41617         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
41618         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
41619         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
41620         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
41621         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
41622         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
41623         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
41624         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
41625         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
41626         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
41627         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
41628         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
41629         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
41630         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
41631         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
41632         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
41633         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
41634         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
41635         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
41636         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
41637         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
41638         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
41639         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
41640         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
41641         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
41642         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
41643         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
41644         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
41645         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
41646
41647         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
41648         _XOPEN_SOURCE_EXTENDED for XPG4.
41649
41650         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
41651
41652         * Makeconfig (localtime): Remove variable.
41653         (inst_localtime-file): Likewise.
41654
41655 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
41656
41657         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
41658         Update.
41659         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
41660         Update.
41661         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
41662         Update.
41663         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
41664         Update.
41665         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
41666         Update.
41667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
41668         Update.
41669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
41670         Update.
41671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
41672         Update.
41673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
41674         Update.
41675
41676 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
41677
41678         [BZ #2550]
41679         [BZ #2570]
41680         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
41681         comparisons to determine direction to adjust input.
41682         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
41683         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
41684         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
41685         Likewise.
41686         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
41687         Likewise.
41688         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
41689         Likewise.
41690         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
41691         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
41692         Likewise.
41693         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
41694         Likewise.
41695         * math/libm-test.inc (nexttoward_test): Add more tests.
41696
41697 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
41698
41699         [BZ #14040]
41700         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
41701         in version GLIBC_2.1, not GLIBC_2.0.
41702         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
41703         Likewise.
41704
41705 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
41706
41707         [BZ #13942]
41708         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
41709         (1 - x) * (1 + x).
41710         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
41711         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
41712         * math/libm-test.inc (acos_test): Add more tests.
41713         (asin_test): Likewise.
41714         * sysdeps/i386/fpu/libm-test-ulps: Update.
41715         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
41716
41717         [BZ #14034]
41718         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
41719         of square root.
41720         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
41721         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
41722         * math/libm-test.inc (acos_test_tonearest): New function.
41723         (acos_test_towardzero): Likewise.
41724         (acos_test_downward): Likewise.
41725         (acos_test_upward): Likewise.
41726         (asin_test_tonearest): Likewise.
41727         (asin_test_towardzero): Likewise.
41728         (asin_test_downward): Likewise.
41729         (asin_test_upward): Likewise.
41730         (main): Call the new functions.
41731         * sysdeps/i386/fpu/libm-test-ulps: Update.
41732         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
41733
41734         [BZ #13884]
41735         [BZ #13924]
41736         * math/e_exp10.c: Include <float.h>.
41737         (__ieee754_exp10): Handle underflow here rather than multiplying
41738         large negative argument by M_LN10.
41739         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
41740         of __ieee754_expf.
41741         * math/e_exp10l.c: Include <float.h>.
41742         (__ieee754_exp10l): Handle underflow here rather than multiplying
41743         large negative argument by M_LN10l.
41744         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
41745         spurious overflow exception on underflow.
41746
41747 2012-04-29  Marek Polacek  <polacek@redhat.com>
41748
41749         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
41750         (__fortify_function): New macro.
41751         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
41752         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
41753         __extern_always_inline.
41754         * libio/bits/stdio2.h: Likewise.
41755         * libio/bits/stdio.h: Likewise.
41756         * string/string.h: Likewise.
41757         * string/bits/string3.h: Likewise.
41758         * include/stdio.h: Likewise.
41759         * stdlib/bits/stdlib.h: Likewise.
41760         * stdlib/stdlib.h: Likewise.
41761         * rt/bits/mqueue2.h: Likewise.
41762         * rt/mqueue.h: Likewise.
41763         * posix/bits/unistd.h: Likewise.
41764         * posix/unistd.h: Likewise.
41765         * io/bits/poll2.h: Likewise.
41766         * io/bits/fcntl2.h: Likewise.
41767         * io/fcntl.h: Likewise.
41768         * io/sys/poll.h: Likewise.
41769         * misc/bits/syslog.h: Likewise.
41770         * misc/bits/syslog-ldbl.h: Likewise.
41771         * misc/sys/syslog.h: Likewise.
41772         * socket/bits/socket2.h: Likewise.
41773         * socket/sys/socket.h: Likewise.
41774         * debug/tst-chk1.c: Likewise.
41775         * wcsmbs/bits/wchar2.h: Likewise.
41776         * wcsmbs/bits/wchar-ldbl.h: Likewise.
41777         * wcsmbs/wchar.h: Likewise.
41778
41779 2012-04-29  Andreas Jaeger  <aj@suse.de>
41780
41781         * Makerules (tests): Remove enable-check-abi protection.
41782         (check-abi-warn): Remove.
41783         (check-abi-%): Remove check-abi-warn usage.
41784
41785         * configure.in: Remove check-abi configure option.
41786         * configure: Regenerated.
41787         * config.make.in (enable-check-abi): Remove.
41788
41789 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
41790
41791         [BZ #14033]
41792         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
41793         double functions to double *_finite functions.
41794
41795         [BZ #13941]
41796         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
41797         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
41798         LDBL_MIN_EXP.
41799         * stdio-common/Makefile (tests): Add tst-sprintf3.
41800         * stdio-common/tst-sprintf3.c: New file.
41801
41802         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
41803         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
41804
41805 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
41806
41807         * conform/conformtest.pl: Remove duplicate typed-constant
41808         handling.
41809
41810 2012-04-28  David S. Miller  <davem@davemloft.net>
41811
41812         * Makerules (%.abilist): Add vpath on sysdep_dirs.
41813         (check-abi-%): Remove AWK script prerequisite and explicit
41814         abilist directory.
41815         (check-abi): Rewrite to just diff the symlist with the abilist.
41816         (config-tls, config-abi-config): Delete, no longer used.
41817         (update-abi-%): Remove AWK script and explicit abilist directory.
41818         (update-abi): Rewrite to simply compare and conditionally copy the
41819         symlist and the sysdep abilist file.  Remove update-abi-config
41820         checks.
41821         * abilist/ld.abilist: Remove.
41822         * abilist/libBrokenLocale.abilist: Remove.
41823         * abilist/libanl.abilist: Remove.
41824         * abilist/libcrypt.abilist: Remove.
41825         * abilist/libdl.abilist: Remove.
41826         * abilist/librt.abilist: Remove.
41827         * abilist/libthread_db.abilist: Remove.
41828         * abilist/libutil.abilist: Remove.
41829         * scripts/extract-abilist.awk: Remove.
41830         * scripts/merge-abilist.awk: Remove.
41831         * sysdeps/generic/libcidn.abilist: New file.
41832         * sysdeps/generic/libnss_compat.abilist: New file.
41833         * sysdeps/generic/libnss_db.abilist: New file.
41834         * sysdeps/generic/libnss_dns.abilist: New file.
41835         * sysdeps/generic/libnss_files.abilist: New file.
41836         * sysdeps/generic/libnss_hesiod.abilist: New file.
41837         * sysdeps/generic/libnss_nis.abilist: New file.
41838         * sysdeps/generic/libnss_nisplus.abilist: New file.
41839         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
41840         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
41841         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
41842         file.
41843         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
41844         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
41845         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
41846         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
41847         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
41848         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
41849         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
41850         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
41851         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
41852         file.
41853         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
41854         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
41855         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
41856         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
41857         file.
41858         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
41859         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
41860         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
41861         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
41862         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
41863         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
41864         file.
41865         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
41866         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
41867         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
41868         file.
41869         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
41870         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
41871         New file.
41872         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
41873         New file.
41874         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
41875         New file.
41876         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
41877         New file.
41878         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
41879         New file.
41880         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
41881         New file.
41882         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
41883         New file.
41884         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
41885         New file.
41886         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
41887         New file.
41888         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
41889         New file.
41890         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
41891         New file.
41892         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
41893         New file.
41894         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
41895         New file.
41896         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
41897         file.
41898         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
41899         New file.
41900         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
41901         New file.
41902         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
41903         file.
41904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
41905         New file.
41906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
41907         New file.
41908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
41909         file.
41910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
41911         New file.
41912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
41913         New file.
41914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
41915         New file.
41916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
41917         New file.
41918         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
41919         New file.
41920         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
41921         New file.
41922         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
41923         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
41924         file.
41925         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
41926         New file.
41927         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
41928         file.
41929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
41930         file.
41931         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
41932         file.
41933         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
41934         file.
41935         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
41936         file.
41937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
41938         New file.
41939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
41940         file.
41941         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
41942         file.
41943         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
41944         New file.
41945         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
41946         file.
41947         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
41948         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
41949         file.
41950         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
41951         New file.
41952         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
41953         file.
41954         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
41955         file.
41956         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
41957         file.
41958         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
41959         file.
41960         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
41961         file.
41962         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
41963         New file.
41964         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
41965         file.
41966         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
41967         file.
41968         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
41969         New file.
41970         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
41971         file.
41972         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
41973         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
41974         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
41975         file.
41976         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
41977         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
41978         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
41979         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
41980         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
41981         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
41982         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
41983         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
41984         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
41985         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
41986         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
41987         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
41988         file.
41989         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
41990         New file.
41991         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
41992         file.
41993         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
41994         file.
41995         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
41996         file.
41997         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
41998         file.
41999         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
42000         file.
42001         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
42002         New file.
42003         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
42004         New file.
42005         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
42006         file.
42007         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
42008         New file.
42009         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
42010         file.
42011         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
42012         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
42013         file.
42014         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
42015         New file.
42016         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
42017         file.
42018         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
42019         file.
42020         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
42021         file.
42022         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
42023         file.
42024         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
42025         file.
42026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
42027         New file.
42028         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
42029         New file.
42030         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
42031         file.
42032         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
42033         New file.
42034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
42035         file.
42036
42037 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
42038
42039         * conform/conformtest.pl: Fix typo in handling typed-constant from
42040         allow-header.
42041
42042 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
42043
42044         * README: Cut down references to pre-2.6 Linux kernels and
42045         Linuxthreads.  Update lists of configurations in libc and ports
42046         and sort alphabetically.  Say "or newer" with Linux kernel version
42047         requirements.
42048
42049         * config.h.in [IS_IN_build]: Allow compiling without optimization.
42050
42051 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
42052
42053         [BZ #887]
42054         * math/libm-test.inc (logb_test_downward): New test to expose
42055         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
42056         rounding mode.
42057
42058 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
42059
42060         [BZ #14027]
42061         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
42062         to be done.
42063         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
42064         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
42065
42066 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
42067
42068         * sysdeps/unix/i386/brk.S: Remove file.
42069         * sysdeps/unix/i386/dl-brk.S: Likewise.
42070         * sysdeps/unix/i386/pipe.S: Likewise.
42071         * sysdeps/unix/i386/sigreturn.S: Likewise.
42072         * sysdeps/unix/i386/syscall.S: Likewise.
42073         * sysdeps/unix/i386/vfork.S: Likewise.
42074         * sysdeps/unix/i386/wait.S: Likewise.
42075
42076         * sysdeps/unix/common/tcsendbrk.c: Move to ...
42077         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
42078
42079         * configure.in (arm*-none*): Do not allow without
42080         --enable-hacker-mode.
42081         (netbsd*): Remove case setting base_os.
42082         (386bsd*): Likewise.
42083         (freebsd*): Likewise.
42084         (bsdi*): Likewise.
42085         (osf*): Likewise.
42086         (sunos*): Likewise.
42087         (ultrix*): Likewise.
42088         (newsos*): Likewise.
42089         (dynix*): Likewise.
42090         (*bsd*): Likewise.
42091         (sysv*): Likewise.
42092         (isc*): Likewise.
42093         (esix*): Likewise.
42094         (sco*): Likewise.
42095         (minix*): Likewise.
42096         (irix4*): Likewise.
42097         (irix6*): Likewise.
42098         (solaris[2-9]*): Likewise.
42099         (none): Likewise.
42100         * configure: Regenerated.
42101
42102 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42103
42104         [BZ #11521]
42105         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
42106         overflow or cancellation in calculating denominator.
42107         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
42108         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
42109         down expression to avoid unexpected rounding in newer GCCs.
42110         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
42111
42112 2012-04-26  David S. Miller  <davem@davemloft.net>
42113
42114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
42115         long-double compat symbols.
42116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
42117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
42118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
42119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
42120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
42121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
42122         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
42123         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
42124         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
42125         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
42126         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
42127         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
42128         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
42129
42130 2012-04-25  David S. Miller  <davem@davemloft.net>
42131
42132         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
42133         HWCAP_* values only after the memory barriers have been defined.
42134         (atomic_full_barrier): Define.
42135         (atomic_read_barrier): Define.
42136         (atomic_write_barrier): Define.
42137
42138 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
42139
42140         * shlib-versions: Add libgcc_s version information.
42141         * sysdeps/generic/libgcc_s.h: Remove.
42142         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
42143         libgcc_s.h.
42144         * sysdeps/gnu/unwind-resume.c: Likewise.
42145         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
42146
42147 2012-04-25  David S. Miller  <davem@davemloft.net>
42148
42149         * sysdeps/unix/sparc/brk.S: Delete.
42150         * sysdeps/unix/sparc/dl-brk.S: Delete.
42151         * sysdeps/unix/sparc/pipe.S: Delete.
42152         * sysdeps/unix/sparc/sysdep.S: Delete.
42153         * sysdeps/unix/sparc/sysdep.h: Delete.
42154         * sysdeps/unix/sparc/vfork.S: Delete.
42155         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
42156         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
42157         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
42158         (ret_ERRVAL, r0, r1, MOVE): Define.
42159         (JUMPTARGET): Remove.
42160         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
42161         sysdeps/unix/sparc/sysdep.h
42162         (ENTRY, END): Remove.
42163         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
42164
42165 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
42166
42167         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
42168         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
42169         -DIS_IN_build.
42170
42171         * timezone/README: Update upstream location and email address for
42172         tzcode and tzdata.
42173         * timezone/zdump.c: Update from tzcode 2012b.
42174         * timezone/zic.c: Likewise.
42175
42176         * configure.in (libc_cv_as_needed): Remove test.
42177         * configure: Regenerated.
42178         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
42179         conditional definition.
42180         [$(have-as-needed) != yes] (no-as-needed): Likewise.
42181         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
42182         * config.make.in (have-as-needed): Remove variable.
42183
42184 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
42185             Paul Pluzhnikov  <ppluzhnikov@google.com>
42186
42187         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
42188         strings correctly.
42189
42190 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
42191
42192         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
42193         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
42194         * sysdeps/sh/strlen.S: Likewise.
42195
42196 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
42197
42198         * sysdeps/unix/fork.S: Remove file.
42199         * sysdeps/unix/i386/fork.S: Likewise.
42200         * sysdeps/unix/sparc/fork.S: Likewise.
42201
42202         * sysdeps/unix/system.c: Remove file.
42203         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
42204
42205         * sysdeps/unix/getegid.S: Remove file.
42206         * sysdeps/unix/geteuid.S: Likewise.
42207
42208 2012-04-24  Roland McGrath  <roland@hack.frob.com>
42209
42210         * scripts/check-localplt.awk: New file.
42211         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
42212         of diff.
42213         * scripts/data/localplt-generic.data: Add a comment.
42214
42215         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
42216         NODE when __dir_mkfile failed.
42217         * sysdeps/mach/hurd/symlinkat.c: Likewise.
42218         Reported by Ludovic Courtès <ludo@gnu.org>.
42219
42220 2012-04-24  Andreas Jaeger  <aj@suse.de>
42221
42222         * Makerules (common-clean): Also remove gen-as-const-headers
42223         files.
42224
42225 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
42226
42227         * Makerules (native-compile): Do not change working directory for
42228         build.  Use $(OUTPUT_OPTION) in command.
42229         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
42230
42231 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42232
42233         [BZ #13886]
42234         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
42235         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
42236         * math/libm-test.inc (floor_test): Add more tests.
42237         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
42238
42239 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
42240
42241         * sysdeps/unix/getdents.c: Remove file.
42242         * sysdeps/unix/sysv/getdents.c: Likewise.
42243         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
42244
42245         * sysdeps/unix/syscalls.list (madvise): Add syscall from
42246         sysdeps/unix/mman/syscalls.list.
42247         (mmap): Likewise.
42248         (mprotect): Likewise.
42249         (msync): Likewise.
42250         (munmap): Likewise.
42251         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
42252         * sysdeps/unix/mman/syscalls.list: Remove.
42253         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
42254
42255         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
42256         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
42257         * configure: Regenerated.
42258         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
42259         $(libgcc_s_suffix).
42260         * config.make.in (libgcc_s_suffix): Remove variable.
42261
42262 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
42263
42264         * sysdeps/unix/sysv/gethostname.c: Move to ...
42265         * sysdeps/posix/gethostname.c: ... here.
42266
42267         * sysdeps/unix/execve.S: Remove file.
42268
42269         * sysdeps/unix/_exit.S: Remove file.
42270
42271 2012-04-23  Andreas Jaeger  <aj@suse.de>
42272
42273         [BZ #13739]
42274         * manual/Makefile: Remove make dist support, there's no
42275         need for a stand-alone documentation tar ball.
42276         (TEXI2DVI): Define always, it's not in Makeconfig.
42277         (dist): Removed.
42278         (tar-it): Removed.
42279         (edition): Removed.
42280         (glibc-doc-$(edition).tar): Removed
42281         (%.Z): Removed.
42282         (%.gz): Removed.
42283         (%.uu): Removed.
42284         (ETAGS): Remove, it's in Makeconfig.
42285         (move-if-change): Remove, it's in Makeconfig.
42286
42287 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
42288
42289         [BZ #13970]
42290         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
42291         (strtod, strtof, strtold, strtol, strtoul, strtoq)
42292         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
42293         (strtod_l, strtof_l, strtold_l): Remove __wur.
42294         It is not necessarily an error to ignore strtol's return value.
42295         One can reliably look at the stored endptr to decide whether
42296         the number had valid syntax.
42297
42298 2012-04-21  Andreas Jaeger  <aj@suse.de>
42299
42300         [BZ #13739]
42301         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
42302
42303 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
42304
42305         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
42306         * sysdeps/unix/sysv/Versions: Remove file.
42307
42308 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
42309
42310         [BZ #13927]
42311         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
42312
42313 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
42314
42315         [BZ #7064]
42316         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
42317         version from __vm86.
42318
42319 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
42320
42321         * sysdeps/unix/common/lxstat.c: Remove file.
42322         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
42323
42324         * sysdeps/unix/sysv/Makefile: Remove file.
42325
42326         * sysdeps/unix/sysv/direct.h: Remove file.
42327
42328         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
42329         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
42330         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
42331         * sysdeps/unix/sysv/bits/signum.h: Likewise.
42332         * sysdeps/unix/sysv/bits/stat.h: Likewise.
42333         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
42334         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
42335
42336         * sysdeps/unix/sysv/setrlimit.c: Remove file.
42337
42338         * sysdeps/unix/xmknod.c: Remove file.
42339         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
42340
42341         * sysdeps/unix/sysv/settimeofday.c: Remove file.
42342
42343         * sysdeps/unix/sysv/i386/time.S: Remove file.
42344
42345         * sysdeps/unix/fxstat.c: Remove file.
42346         * sysdeps/unix/xstat.c: Likewise.
42347         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
42348
42349         * sysdeps/unix/sysv/sigaction.c: Remove file.
42350
42351         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
42352         (sysdep_headers): Remove variable.
42353         [termio.h not in sysdep_headers] (generated): Likewise.
42354         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
42355         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
42356         * sysdeps/unix/sysv/tcdrain.c: Likewise.
42357         * sysdeps/unix/sysv/tcflow.c: Likewise.
42358         * sysdeps/unix/sysv/tcflush.c: Likewise.
42359         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
42360         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
42361         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
42362         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
42363         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
42364
42365         * sysdeps/unix/siglist.c: Remove file.
42366
42367         * sysdeps/unix/getppid.S: Remove file.
42368
42369         * sysdeps/unix/mkdir.c: Remove file.
42370         * sysdeps/unix/rmdir.c: Likewise.
42371
42372 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
42373
42374         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
42375         ERR_MAX value.
42376         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
42377         errlist-compat value.
42378
42379 2012-04-18  David S. Miller  <davem@davemloft.net>
42380
42381         * sysdeps/generic/memcopy.h (reg_char): Delete.
42382         * debug/strcat_chk.c: Use char, not reg_char.
42383         * debug/strcpy_chk.c: Likewise.
42384         * debug/strncat_chk.c: Likewise.
42385         * debug/strncpy_chk.c: Likewise.
42386         * string/memchr.c: Likewise.
42387         * string/memrchr.c: Likewise.
42388         * string/rawmemchr.c: Likewise.
42389         * string/strcat.c: Likewise.
42390         * string/strchr.c: Likewise.
42391         * string/strchrnul.c: Likewise.
42392         * string/strcmp.c: Likewise.
42393         * string/strcpy.c: Likewise.
42394         * string/strncat.c: Likewise.
42395         * string/strncmp.c: Likewise.
42396         * string/strncpy.c: Likewise.
42397
42398 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
42399
42400         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
42401         __builtin_memcopy is called when src and dest ranges are known to not
42402         overlap.
42403
42404 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
42405
42406         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
42407         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
42408         fwd_align_merge macro call.
42409         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
42410         bwd_align_merge macro call.
42411         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
42412
42413 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
42414
42415         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
42416         bwd_align_merge macros.
42417         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
42418         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
42419         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
42420
42421 2012-04-18  David S. Miller  <davem@davemloft.net>
42422
42423         * sysdeps/sparc/sparc64/memcopy.h: Delete.
42424
42425 2012-04-18  Andreas Jaeger  <aj@suse.de>
42426
42427         [BZ# 6794]
42428         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
42429         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
42430         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
42431
42432         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
42433         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
42434         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
42435
42436         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
42437         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
42438         Adjust for changed ldbl-128 files.
42439
42440         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
42441         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
42442         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
42443
42444 2012-04-17  David S. Miller  <davem@davemloft.net>
42445
42446         * sysdeps/sparc/sparc32/memcopy.h: Delete.
42447
42448 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
42449
42450         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
42451         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
42452         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
42453         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
42454         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
42455         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
42456
42457 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42458
42459         [BZ #6794]
42460         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
42461         * math/libm-test.inc: Add ilogb errno and exception tests.
42462         * math/w_ilogb.c: New file: ilogb wrapper.
42463         * math/w_ilogbf.c: New file: ilogbf wrapper.
42464         * math/w_ilogbl.c: New file: ilogbl wrapper.
42465         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
42466         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
42467         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
42468         exception being thrown with 0.0 as argument.
42469         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
42470         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
42471         exception being thrown with 0.0 as argument.
42472         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
42473         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
42474         exception being thrown with 0.0 as argument.
42475         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
42476         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
42477         exception being thrown with 0.0 as argument.
42478         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
42479         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
42480         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
42481         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
42482         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
42483         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
42484         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
42485         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
42486         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
42487
42488 2012-04-17  Petr Baudis  <pasky@ucw.cz>
42489
42490         * include/sys/uio.h: Change __vector to __iovec to avoid clash
42491         with altivec.
42492
42493 2012-04-16  Marek Polacek  <polacek@redhat.com>
42494
42495         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
42496
42497 2012-04-16  Marek Polacek  <polacek@redhat.com>
42498
42499         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
42500         operands of fdivp instruction.
42501
42502 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
42503
42504         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
42505         * elf/tst-auditmod3b.c: Likewise.
42506         * elf/tst-auditmod4b.c: Likewise.
42507         * elf/tst-auditmod5b.c: Likewise.
42508         * elf/tst-auditmod6b.c: Likewise.
42509         * elf/tst-auditmod6c.c: Likewise.
42510         * elf/tst-auditmod7b.c: Likewise.
42511         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
42512         * sysdeps/x86_64/preconfigure.in: Likewise.
42513         * sysdeps/x86_64/preconfigure: Regenerated.
42514
42515 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
42516
42517         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
42518         __ILP32__.
42519
42520 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
42521
42522         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
42523         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
42524
42525 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
42526
42527         [BZ #13973]
42528         * locale/iso-639.def: Fix gl language name. Spotted by
42529         Yaron Shahrabani.
42530
42531 2012-04-12  Roland McGrath  <roland@hack.frob.com>
42532
42533         [BZ #2074]
42534         * libio/libio.h (__io_write_fn): Update comment.
42535
42536 2012-04-12  Petr Baudis  <pasky@ucw.cz>
42537
42538         [BZ #2074]
42539         * stdio.texi (Hook Functions): The user provided writer function
42540         is not allowed to return -1.
42541
42542 2012-04-11  David S. Miller  <davem@davemloft.net>
42543
42544         * sysdeps/sparc/fpu/libm-test-ulps: Update.
42545
42546 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
42547
42548         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
42549         Add a leading slash to rtkaio.
42550
42551 2012-04-11  Jim Meyering  <meyering@redhat.com>
42552
42553         [BZ #11959]
42554         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
42555         It is not necessarily an error to ignore fwrite's return
42556         value.  One can reliably use ferror to test for errors after
42557         the fact.
42558
42559 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
42560
42561         * bits/types.h (__snseconds_t): New type.
42562         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
42563
42564         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
42565         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
42566         (__SNSECONDS_T_TYPE): Likewise.
42567         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
42568         (__SNSECONDS_T_TYPE): Likewise.
42569         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
42570         (__SNSECONDS_T_TYPE): Likewise.
42571
42572 2012-04-10  Andreas Jaeger  <aj@suse.de>
42573
42574         [BZ #2636]
42575         * manual/time.texi (Processor Time): Return type of times is
42576         elapsed real time since an arbitrary point in the past.
42577         (CPU Time): Move CLK_TCK from here...
42578         (Processor Time): ...to here.  Correct description.
42579         * manual/conf.texi (Constants for Sysconf): Correct description of
42580         _SC_CLK_TCK.
42581
42582 2012-04-10  David S. Miller  <davem@davemloft.net>
42583
42584         [BZ #13967]
42585         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
42586         where the is a gap between DT_REL(A) and DT_JMPREL.
42587
42588 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
42589
42590         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
42591         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
42592         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
42593
42594 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
42595
42596         * elf/dl-support.c (_dl_inhibit_cache): New variable.
42597         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
42598         (dl_main): Handle --inhibit-cache.
42599         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
42600         _dl_inhibit_cache.
42601         * elf/dl-load.c (_dl_map_object): Use it.
42602         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
42603
42604 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
42605
42606         [BZ #13872]
42607         * sysdeps/i386/fpu/e_powl.S (p78): New object.
42608         (__ieee754_powl): Saturate large exponents rather than testing for
42609         overflow of y*log2(x).
42610         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
42611         * math/libm-test.inc (pow_test): Do not permit spurious overflow
42612         exceptions.
42613
42614         [BZ #11521]
42615         * math/s_ctan.c: Include <float.h>.
42616         (__ctan): Avoid internal overflow or cancellation in calculating
42617         denominator.
42618         * math/s_ctanf.c: Likewise.
42619         * math/s_ctanl.c: Likewise.
42620         * math/s_ctanh.c: Likewise.
42621         * math/s_ctanhf.c: Likewise.
42622         * math/s_ctanhl.c: Likewise.
42623         * math/libm-test.inc (ctan_test): Add more tests.
42624         (ctanh_test): Likewise.
42625         * sysdeps/i386/fpu/libm-test-ulps: Update.
42626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
42627
42628 2012-04-09  Andreas Jaeger  <aj@suse.de>
42629
42630         [BZ #6894]
42631         * manual/filesys.texi (Directory Entries): Mention that d_namlen
42632         is an optional BSD extension.
42633
42634         [BZ #10254]
42635         * manual/stdio.texi (Opening Streams): Document additional fopen
42636         parameters.
42637
42638 2012-04-09  Roland McGrath  <roland@hack.frob.com>
42639
42640         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
42641         %eax without telling the compiler.
42642
42643 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
42644
42645         [BZ # 13963]
42646         * manual/install.texi: Use sourceware.org.
42647
42648 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
42649
42650         [BZ #13873]
42651         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
42652         (__ieee754_pow): Generate overflow and underflow using huge*huge
42653         and tiny*tiny rather than just returning constant infinity or zero
42654         for large exponents.
42655         * math/libm-test.inc (pow_test): Require overflow exceptions for
42656         applicable cases of large exponents.
42657
42658         [BZ #706]
42659         * sysdeps/i386/fpu/e_pow.S (p10): New object.
42660         (__ieee754_pow): Use iterative multiplication algorithm only for
42661         integer exponents with absolute value below 1024.  Check for odd
42662         integer exponents when using algorithm for real exponents.
42663         * math/libm-test.inc (pow_test): Add more tests.
42664         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
42665
42666 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
42667
42668         [BZ #13705]
42669         * math/libm-test.inc (exp_test): Do not allow overflow exception
42670         on underflow test.
42671
42672 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
42673
42674         [BZ #13705]
42675         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
42676         instead of __kernel_standard_f.
42677
42678 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
42679
42680         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
42681         * sysdeps/x86_64/memset_chk.S: Likewise.
42682
42683 2012-04-08  Andreas Jaeger  <aj@suse.de>
42684
42685         [BZ #10153]
42686         * manual/startup.texi (Environment Access): Describe return value
42687         for putenv and setenv.
42688
42689         [BZ #6895]
42690         * manual/filesys.texi (Directory Entries): Add description for
42691         DT_LNK.
42692
42693         [BZ #6890]
42694         * manual/filesys.texi (Directory Entries): Clarify that it's file
42695         system not operating system in the description of DT_UNKNOWN.
42696
42697         [BZ #6578]
42698         * manual/syslog.texi (closelog): Fix reference, it's openlog.
42699
42700 2012-04-08  Stephen Compall  <s11@member.fsf.org>
42701
42702         [BZ #6649]
42703         * manual/llio.texi (Opening and Closing Files): Add cross
42704         reference to explain mode argument.
42705
42706 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
42707
42708         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
42709         * sysdeps/x86_64/memset_chk.S: Likewise.
42710
42711 2012-04-07  David S. Miller  <davem@davemloft.net>
42712
42713         * elf/elf.h (R_SPARC_WDISP10): Define.
42714         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
42715         R_SPARC_SIZE32.
42716         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
42717         R_SPARC_SIZE64 and R_SPARC_H34.
42718
42719 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
42720
42721         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
42722         conditions and remove no longer applicable assertion.
42723
42724 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
42725
42726         * bits/byteswap.h: Include <features.h>.
42727         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
42728         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
42729
42730 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
42731
42732         * bits/byteswap.h (__bswap_16): Removed.
42733         Include <bits/byteswap-16.h> to get __bswap_16.
42734         * sysdeps/i386/bits/byteswap.h: Likewise.
42735         * sysdeps/s390/bits/byteswap.h: Likewise.
42736         * sysdeps/x86_64/bits/byteswap.h: Likewise.
42737         * bits/byteswap-16.h: New file.
42738         * sysdeps/i386/bits/byteswap-16.h: Likewise.
42739         * sysdeps/s390/bits/byteswap-16.h: Likewise.
42740         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
42741         * string/Makefile (headers): Add bits/byteswap-16.h.
42742
42743 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
42744
42745         [BZ #13895]
42746         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
42747         extra indirection.
42748         * nss/Makefile (tests-static, tests): Add tst-nss-static.
42749         * nss/tst-nss-static.c: New.
42750
42751 2012-04-06  Robert Millan  <rmh@gnu.org>
42752
42753         [BZ #6486]
42754         * manual/llio.texi (File Position Primitive): lseek
42755         refers to WHENCE when it really means OFFSET.
42756
42757 2012-04-06  Andreas Jaeger  <aj@suse.de>
42758
42759         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
42760         strncmp declarations.
42761
42762         * abilist/libc.abilist: Add __poll and __ppoll.
42763
42764 2012-04-05  David S. Miller  <davem@davemloft.net>
42765
42766         * scripts/check-local-headers.sh: Accept a host triplet in the
42767         path matched by the exclude regexp.
42768
42769         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
42770         definition.
42771         * sysdeps/powerpc/powerpc32/dl-machine.h
42772         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
42773         * sysdeps/s390/s390-32/dl-machine.h
42774         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
42775         * sysdeps/sparc/sparc32/dl-machine.h
42776         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
42777         * sysdeps/sparc/sparc64/dl-machine.h
42778         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
42779
42780         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
42781         lazy binding.
42782         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
42783         undefined symbol errors.
42784
42785         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
42786         DT_NEEDED entries.
42787
42788 2012-04-05  Michael Matz  <matz@suse.de>
42789
42790         [BZ #13592]
42791         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
42792
42793 2012-04-05  Andreas Jaeger  <aj@suse.de>
42794
42795         [BZ #13908]
42796         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
42797         comment.
42798
42799 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
42800
42801         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
42802         which ROUND is no valid rounding mode.
42803
42804 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
42805
42806         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
42807         read again.
42808         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
42809
42810 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
42811
42812         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
42813         an exception using FPU order intentionally.
42814
42815 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
42816
42817         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
42818         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
42819         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
42820         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
42821
42822 2012-04-05  Simon Josefsson  <simon@josefsson.org>
42823
42824         [BZ #12340]
42825         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
42826         EINVAL when BUFLEN is too smal.
42827
42828 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
42829
42830         [BZ #13553]
42831         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
42832         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
42833
42834 2012-04-03  Andreas Jaeger  <aj@suse.de>
42835
42836         [BZ #13938]
42837         * manual/setjmp.texi (System V contexts): Fix sentence.
42838
42839         [BZ #13926]
42840         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
42841         New macro for this case.
42842         [!__GNUC__] (__bswap_64): New inline function for this case.
42843         * sysdeps/x86_64/bits/byteswap.h: Likewise.
42844         * bits/byteswap.h: Likewise.
42845         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
42846         ull, guard with __GLIBC_HAVE_LONG_LONG.
42847
42848         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
42849         __GLIBC_HAVE_LONG_LONG.
42850
42851         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
42852         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
42853
42854 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
42855
42856         [BZ #13691]
42857         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
42858         inptr and inend, rather than using last_ch.
42859
42860 2012-04-02  David S. Miller  <davem@davemloft.net>
42861
42862         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
42863         * stdio-common/printf-parse.h (read_int): Change return type to
42864         'int', return -1 on INT_MAX overflow.
42865         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
42866         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
42867         overflows INT_MAX.  Check for overflow of in-format-string precision
42868         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
42869         SIZE_MAX not INT_MAX for integer overflow test.
42870         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
42871         skip the construct in the format string but do not record anything.
42872         * stdio-common/bug22.c: Adjust to test both width/prevision
42873         INT_MAX overflow as well as total length INT_MAX overflow.  Check
42874         explicitly for proper errno values.
42875
42876 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
42877
42878         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
42879         CHAR_MAX.
42880         * string/test-strcmp.c [! WIDE]: Likewise.
42881         * time/tst-mktime2.c: Likewise for INT_MAX.
42882         * string/test-string.h: #include <sys/param.h> for MIN.
42883
42884         * csu/init-first.c (__libc_init_first): Call __ctype_init.
42885         * sysdeps/i386/init-first.c (init): Likewise.
42886         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
42887         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
42888         * sysdeps/sh/init-first.c (init): Likewise.
42889
42890 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
42891
42892         * po/ru.po: Update from translation team.
42893         * po/vi.po: Likewise.
42894
42895 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
42896
42897         * resolv/nss_dns/dns-host.c: Merge copyright years.
42898
42899 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42900
42901         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
42902         Optimize memcpy with prefetch if
42903         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
42904         src, dst pointers have unequal 16 byte alignments.
42905
42906 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
42907
42908         [BZ #13928]
42909         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
42910         from a CNAME entry and return the minimum ttl for the query.
42911         (gaih_getanswer_slice): Likewise.
42912
42913 2012-03-30  Jeff Law  <law@redhat.com>
42914
42915         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
42916         due to long keys.
42917         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
42918         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
42919
42920         * resolv/nss_dns/dns-host.c: Update copyright year.
42921
42922 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
42923
42924         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
42925         requests to save a system call.  Fix check that all bytes are sent.
42926
42927         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
42928         comments for sendmmsg.
42929
42930 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
42931
42932         [BZ #13691]
42933         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
42934         with only 1 character between 0x0041 and 0x01b0.
42935         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
42936         * wcsmbs/tst-mbsnrtowcs.c: New file.
42937
42938 2012-03-29  David S. Miller  <davem@davemloft.net>
42939
42940         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
42941         small copies by hand.
42942
42943 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
42944
42945         [BZ #13761]
42946         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
42947         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
42948         group memberships.
42949
42950 2012-03-28  David S. Miller  <davem@davemloft.net>
42951
42952         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
42953         that branches into memcpy.
42954         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
42955         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
42956         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
42957         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
42958         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
42959         bits.
42960         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
42961         implementation too.
42962         * sysdeps/sparc/mempcpy.S: New file.
42963
42964         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
42965         the IFUNC routine in the libc case.
42966         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
42967
42968         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
42969         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
42970         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
42971         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
42972         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
42973         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
42974         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
42975         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
42976
42977         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
42978         loop to 256 bytes instead of 64 bytes and fix test signedness.
42979
42980         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
42981         * sysdeps/sparc/sparc32/Makefile: rather than here...
42982         * sysdeps/sparc/sparc64/Makefile: and here.
42983
42984 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
42985
42986         * malloc/mallocbug.c: Avoid warnings about unused variables.
42987
42988 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
42989
42990         [BZ #13760]
42991         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
42992         in the right place. Discard and retry query if response is
42993         larger than input buffer size.
42994
42995 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
42996
42997         [BZ #369]
42998         [BZ #2678]
42999         [BZ #3866]
43000         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
43001         x for large integer exponent.
43002         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
43003         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
43004         sign of result as needed afterwards.
43005         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
43006         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
43007         result for underflowing pow the same as for overflow.
43008         (__kernel_standard_l): Handle powl overflow and underflow here
43009         rather than calling __kernel_standard.
43010         * math/libm-test.inc (pow_test): Add more tests.
43011
43012         [BZ #3868]
43013         [BZ #13879]
43014         [BZ #13910]
43015         [BZ #13911]
43016         [BZ #13912]
43017         [BZ #13913]
43018         [BZ #13915]
43019         [BZ #13916]
43020         [BZ #13917]
43021         [BZ #13918]
43022         [BZ #13919]
43023         [BZ #13920]
43024         [BZ #13921]
43025         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
43026         * sysdeps/ieee754/k_standard.c: Include <float.h>.
43027         (__kernel_standard_l): New function.
43028         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
43029         __kernel_standard.
43030         * math/w_acosl.c (__acosl): Likewise.
43031         * math/w_asinl.c (__asinl): Likewise.
43032         * math/w_atan2l.c (__atan2l): Likewise.
43033         * math/w_atanhl.c (__atanhl): Likewise.
43034         * math/w_coshl.c (__coshl): Likewise.
43035         * math/w_exp10l.c (__exp10l): Likewise.
43036         * math/w_exp2l.c (__exp2l): Likewise.
43037         * math/w_fmodl.c (__fmodl): Likewise.
43038         * math/w_hypotl.c (__hypotl): Likewise.
43039         * math/w_j0l.c (__j0l, __y0l): Likewise.
43040         * math/w_j1l.c (__j1l, __y1l): Likewise.
43041         * math/w_jnl.c (__jnl, __ynl): Likewise.
43042         * math/w_lgammal.c (__lgammal): Likewise.
43043         * math/w_log10l.c (__log10l): Likewise.
43044         * math/w_log2l.c (__log2l): Likewise.
43045         * math/w_logl.c (__logl): Likewise.
43046         * math/w_powl.c (__powl): Likewise.
43047         * math/w_remainderl.c (__remainderl): Likewise.
43048         * math/w_scalbl.c (sysv_scalbl): Likewise.
43049         * math/w_sinhl.c (__sinhl): Likewise.
43050         * math/w_sqrtl.c (__sqrtl): Likewise.
43051         * math/w_tgammal.c (__tgammal): Likewise.
43052         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
43053         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
43054         * math/libm-test.inc (acos_test): Add more tests.
43055         (acosh_test): Likewise.
43056         (asin_test): Likewise.
43057         (atanh_test): Likewise.
43058         (exp_test): Likewise.
43059         (exp10_test): Likewise.
43060         (exp2_test): Likewise.
43061         (expm1_test): Likewise.
43062         (lgamma_test): Likewise.
43063         (log_test): Likewise.
43064         (log10_test): Likewise.
43065         (log1p_test): Likewise.
43066         (log2_test): Likewise.
43067         (pow_test): Do not allow some spurious overflow exceptions.
43068         (sqrt_test): Add more tests.
43069         (tgamma_test): Likewise.
43070         (y0_test): Likewise.
43071         (y1_test): Likewise.
43072         (yn_test): Likewise.
43073
43074 2012-03-27  Anton Blanchard  <anton@samba.org>
43075
43076         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
43077         MAP_HUGETLB.
43078         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
43079         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
43080         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
43081
43082 2012-03-27  David S. Miller  <davem@davemloft.net>
43083
43084         * conform/Makefile: Run run-conformtest.sh using $(BASH).
43085
43086         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
43087         have-as-vis3 check.
43088
43089 2012-03-27  Andreas Jaeger  <aj@suse.de>
43090
43091         * sysdeps/x86_64/elf/configure.in: Moved to ...
43092         * sysdeps/x86_64/configure.in: ... here.
43093         * sysdeps/x86_64/elf/start.S: Moved to ...
43094         * sysdeps/x86_64/start.S: ... here.
43095         * sysdeps/x86_64/elf/configure: Delete.
43096
43097         * sysdeps/x86_64/configure.in: Merge contents from
43098         sysdeps/i386/configure.in (without i686 check).
43099
43100         * sysdeps/i386/elf/Versions: Merge into ...
43101         * sysdeps/i386/Versions: ... this.
43102         * sysdeps/i386/elf/Versions: Delete file.
43103         * sysdeps/i386/elf/start.S: Moved to ...
43104         * sysdeps/i386/start.S: ...here.
43105         * sysdeps/i386/elf/configure.in: Merge into...
43106         * sysdeps/i386/configure.in: ...here.
43107         * sysdeps/i386/elf/configure.in: Delete file.
43108         * sysdeps/i386/elf/configure: Delete file.
43109
43110         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
43111         * debug/backtracesyms.c: ... here.
43112         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
43113         * debug/backtracesymsfd.c: ... here.
43114         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
43115         * sysdeps/generic/ifunc-sel.h: ... here.
43116
43117         * sysdeps/unix/i386/start.c: Delete file.
43118         * sysdeps/unix/sparc/start.c: Delete file.
43119         * sysdeps/unix/start.c: Delete file.
43120
43121         * sysdeps/sh/elf/configure.in: Moved to ...
43122         * sysdeps/sh/configure.in: ... here.
43123         * sysdeps/sh/elf/start.S: Moved to ...
43124         * sysdeps/sh/start.S: ... here.
43125         * sysdeps/sh/elf/configure: Delete file.
43126
43127         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
43128         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
43129         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
43130         * sysdeps/powerpc/powerpc64/entry.h: ... here.
43131         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
43132         * sysdeps/powerpc/powerpc64/start.S: here.
43133         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
43134         * sysdeps/powerpc/powerpc64/Makefile: ... this.
43135         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
43136         * sysdeps/powerpc/powerpc64/configure.in: ... this.
43137         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
43138
43139         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
43140         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
43141         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
43142         * sysdeps/powerpc/powerpc32/start.S: ... here.
43143         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
43144         * sysdeps/powerpc/powerpc32/configure.in: ... this.
43145         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
43146
43147         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
43148         * sysdeps/powerpc/ifunc-sel.h: ... here.
43149         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
43150         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
43151
43152         * sysdeps/sparc/elf/configure.in: Moved to ...
43153         * sysdeps/sparc/configure.in: ... here.
43154         * sysdeps/sparc/elf/configure: Delete file.
43155         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
43156         * sysdeps/sparc/sparc32/start.S: ... here.
43157         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
43158         * sysdeps/sparc/sparc64/start.S: ... here.
43159         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
43160         * sysdeps/sparc/sparc32/Makefile: ... this.
43161         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
43162         * sysdeps/sparc/sparc64/Makefile: ... this.
43163
43164         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
43165         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
43166         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
43167         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
43168         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
43169         * sysdeps/s390/s390-32/setjmp.S: ... here.
43170         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
43171         * sysdeps/s390/s390-32/configure.in: ... here.
43172         * sysdeps/s390/s390-32/elf/configure: Delete file.
43173         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
43174         * sysdeps/s390/s390-32/start.S: ... here.
43175
43176         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
43177         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
43178         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
43179         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
43180         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
43181         * sysdeps/s390/s390-64/setjmp.S: ... here.
43182         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
43183         * sysdeps/s390/s390-64/configure.in: ... here
43184         * sysdeps/s390/s390-64/elf/configure: Delete file.
43185         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
43186         * sysdeps/s390/s390-64/start.S: ... here.
43187         * sysdeps/s390/s390-64/elf/configure: Delete.
43188
43189         * configure.in: Remove support for elf directories in sysdeps.
43190
43191         * configure: Regenerated.
43192         * sysdeps/i386/configure: Regenerated.
43193         * sysdeps/powerpc/powerpc32/configure: Regenerated.
43194         * sysdeps/powerpc/powerpc64/configure: Regenerated.
43195         * sysdeps/s390/s390-32/configure: Regenerated.
43196         * sysdeps/s390/s390-64/configure: Regenerated.
43197         * sysdeps/sh/configure: Regenerated.
43198         * sysdeps/sparc/configure: Regenerated.
43199         * sysdeps/x86_64/configure: Regenerated.
43200
43201 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
43202
43203         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43204
43205         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
43206         denormal result into account.
43207
43208 2012-03-25  Roland McGrath  <roland@hack.frob.com>
43209
43210         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
43211         Reported by Allan McRae <allan@archlinux.org>.
43212
43213 2012-03-23  Jeff Law  <law@redhat.com>
43214
43215         * nss/getnssent.c (__nss_getent): Fix typo.
43216
43217 2012-03-23  David S. Miller  <davem@davemloft.net>
43218
43219         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43220
43221 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
43222
43223         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
43224         to pad to uint64_t for each field.
43225         (dl_tls_index): Replace unsigned long with uint64_t.
43226
43227 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
43228         Paul Pluzhnikov  <ppluzhnikov@google.com>
43229
43230         [BZ #6528]
43231         * grp/Makefile (otherlibs): Don't set it.
43232         * inet/Makefile (otherlibs): Likewise.
43233         * login/Makefile (otherlibs): Likewise.
43234         * nscd/Makefile (otherlibs): Likewise.
43235         * posix/Makefile (otherlibs): Likewise.
43236         * pwd/Makefile (otherlibs): Likewise.
43237         * rt/Makefile (otherlibs): Likewise.
43238         * sunrpc/Makefile (otherlibs): Likewise.
43239         * nss/Makefile (otherlibs): Likewise.
43240         Add libnss_files to routines and static-only-routines.
43241         ($(objpfx)getent): Remove rule.
43242         * resolv/Makefile: Add libnss_dns and libresolv to routines and
43243         static-only-routines.
43244
43245 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
43246
43247         [BZ #13892]
43248         * math/s_cexp.c: Include <float.h>.
43249         (__cexp): Handle exp result overflowing not necessarily
43250         overflowing both real and imaginary parts of result.
43251         * math/s_cexpf.c: Likewise.
43252         * math/s_cexpl.c: Likewise.
43253         * math/libm-test.inc (cexp_test): Add more tests.
43254         * sysdeps/i386/fpu/libm-test-ulps: Update.
43255         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43256
43257 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
43258
43259         * include/link.h (ELFW): New macro.
43260         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
43261         Replace ELF64_R_TYPE with ELFW(R_TYPE).
43262
43263 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
43264
43265         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
43266         with uint64_t.
43267
43268 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
43269
43270         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
43271         declaration.
43272         (struct La_x32_retval): Likewise.
43273
43274 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
43275
43276         * sysdeps/x86_64/preconfigure.in: New file.
43277         * sysdeps/x86_64/preconfigure: New generated file.
43278
43279 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
43280
43281         [BZ #13824]
43282         * math/e_exp2l.c: Include <float.h>.
43283         (__ieee754_exp2l): Handle overflow and underflow cases
43284         separately.  Only pass fractional part of argument to
43285         __ieee754_expl.
43286         * math/libm-test.inc (exp2_test): Add more tests.
43287
43288         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
43289         negating x to take absolute value.
43290         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
43291         Likewise.
43292         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
43293         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
43294         Likewise.
43295         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
43296         computing low part if x was negated.
43297         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
43298
43299 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
43300
43301         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
43302         la_x32_gnu_pltexit.
43303         (pltexit): Cast int_retval to ptrdiff_t.
43304         * elf/tst-auditmod3b.c: Likewise.
43305         * elf/tst-auditmod4b.c: Likewise.
43306         * elf/tst-auditmod5b.c: Likewise.
43307         * elf/tst-auditmod6b.c: Likewise.
43308         * elf/tst-auditmod6c.c: Likewise.
43309         * elf/tst-auditmod7b.c: Likewise.
43310
43311         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
43312         and x32_gnu_pltexit.
43313
43314         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
43315         __ELF_NATIVE_CLASS.
43316         (La_x32_regs): New macro.
43317         (La_x32_retval): Likewise.
43318         (la_x32_gnu_pltenter): New function prototype.
43319         (la_x32_gnu_pltexit): Likewise.
43320
43321 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
43322
43323         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
43324         exponent.
43325
43326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43327
43328         * configure.in (libc_cv_cc_nofma): Check for option to disable
43329         generation of FMA instructions.
43330         * configure: Regenerate.
43331         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
43332         * sysdeps/ieee754/dbl-64/Makefile: New file.
43333         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
43334         Remove brandred-fma4.
43335         (CFLAGS-brandred-fma4.c): Remove.
43336         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
43337         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
43338         define.
43339         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
43340         define.
43341
43342 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
43343
43344         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
43345         LLONG_MAX != LONG_MAX.
43346         (_itoa_word): Use _ITOA_WORD_TYPE on value.
43347         (_fitoa_word): Likewise.
43348         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
43349         LLONG_MAX != LONG_MAX.
43350         * stdio-common/_itowa.h: Include <_itoa.h>.
43351         (_itowa_word): Use _ITOA_WORD_TYPE on value.
43352         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
43353         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
43354         only if not defined.
43355         (_ITOA_WORD_TYPE): Likewise.
43356         (_itoa_word): Use _ITOA_WORD_TYPE on value.
43357         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
43358
43359 2012-03-21  David S. Miller  <davem@davemloft.net>
43360
43361         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43362
43363 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
43364
43365         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
43366         of x86_64 when setting libc_cv_slibdir, libdir and
43367         libc_cv_localedir.
43368         * sysdeps/unix/sysv/linux/configure: Regenerated.
43369
43370 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
43371
43372         * manual/lang.texi (Old Varargs): Remove section.
43373         (How Variadic): Update menu.
43374         (va_start): Do not mention varargs.h.
43375
43376 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
43377             Joseph Myers  <joseph@codesourcery.com>
43378
43379         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
43380         link test.
43381         * configure: Regenerated.
43382
43383 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
43384
43385         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
43386         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
43387         conformtest.pl
43388
43389 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
43390
43391         * NOTES: Remove.
43392         * Makefile (files-for-dist): Remove NOTES.
43393         (NOTES): Remove rule.
43394         * README: Don't refer to NOTES.
43395         * manual/creature.texi: Don't include macros.texi.
43396         * manual/intro.texi (creature.texi): Remove comment referring to
43397         NOTES.
43398
43399         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
43400         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
43401         * configure: Regenerated.
43402         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
43403         LIBC_TRY_CC_OPTION.
43404         (libc_cv_as_i686): Likewise.
43405         (libc_cv_cc_avx): Likewise.
43406         (libc_cv_cc_sse2avx): Likewise.
43407         (libc_cv_cc_fma4): Likewise.
43408         (libc_cv_cc_novzeroupper): Likewise.
43409         * sysdeps/i386/configure: Regenerated.
43410
43411         [BZ #13883]
43412         * sysdeps/i386/fpu/s_cexp.S: Remove.
43413         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
43414         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
43415         * math/libm-test.inc (cexp_test): Add more tests.
43416         * sysdeps/i386/fpu/libm-test-ulps: Update.
43417         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43418
43419 2012-03-21  Allan McRae  <allan@archlinux.org>
43420
43421         * timezone/Makefile: Do not install iso3166.tab and zone.tab
43422
43423 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
43424
43425         [BZ #13871]
43426         * math/w_exp2.c: Do not include <float.h>.
43427         (o_threshold, u_threshold): Remove.
43428         (__exp2): Calculate result before checking finiteness and calling
43429         __kernel_standard.
43430         * math/w_exp2f.c: Likewise.
43431         * math/w_exp2l.c: Likewise.
43432         * math/libm-test.inc (exp2_test): Require overflow exception for
43433         1e6 input.
43434
43435         [BZ #3866]
43436         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
43437         range of signed 64-bit integers before using fistpll.  Remove
43438         checks for whether integers fit in mantissa bits.
43439         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
43440         the range of signed 32-bit integers before using fistpl.  Remove
43441         checks for whether integers fit in mantissa bits.
43442         * sysdeps/i386/fpu/e_powl.S (p64): New object.
43443         (__ieee754_powl): Test for y outside the range of signed 64-bit
43444         integers before using fistpll.  Reduce 64-bit values to 63-bit
43445         ones as needed.
43446         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
43447         divide-by-zero is raised for zero to large negative powers.
43448         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
43449         (__ieee754_powl): Test for y outside the range of signed 64-bit
43450         integers before using fistpll.  Reduce 64-bit values to 63-bit
43451         ones as needed.
43452         * math/libm-test.inc (pow_test): Add more tests.
43453
43454 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
43455
43456         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
43457         <stdio-common/_itoa.h>.
43458         * debug/segfault.c: Likewise.
43459         * elf/dl-cache.c: Likewise.
43460         * elf/dl-minimal.c: Likewise.
43461         * elf/dl-misc.c: Likewise.
43462         * elf/dl-sysdep.c: Likewise.
43463         * elf/dl-version.c: Likewise.
43464         * elf/rtld.c: Likewise.
43465         * hurd/hurdsock.c: Likewise.
43466         * hurd/lookup-retry.c: Likewise.
43467         * malloc/malloc.c: Likewise.
43468         * malloc/mtrace.c: Likewise.
43469         * nscd/nscd_getgr_r.c: Likewise.
43470         * nscd/nscd_getpw_r.c: Likewise.
43471         * nscd/nscd_getserv_r.c: Likewise.
43472         * posix/getopt_init.c: Likewise.
43473         * posix/wordexp.c: Likewise.
43474         * stdio-common/_itoa.c: Likewise.
43475         * stdio-common/printf_fphex.c: Likewise.
43476         * stdio-common/vfprintf.c: Likewise.
43477         * string/_strerror.c: Likewise.
43478         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
43479         * sysdeps/i386/i686/hp-timing.h: Likewise.
43480         * sysdeps/mach/_strerror.c: Likewise.
43481         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
43482         * sysdeps/mach/hurd/sethostid.c: Likewise.
43483         * sysdeps/mach/hurd/xmknodat.c: Likewise.
43484         * sysdeps/mach/xpg-strerror.c: Likewise.
43485         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
43486         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
43487         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
43488         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
43489         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
43490         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
43491         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
43492         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
43493         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
43494         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
43495         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
43496         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
43497         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
43498         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
43499         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
43500         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
43501         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
43502         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
43503         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
43504         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
43505         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
43506
43507         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
43508
43509         * stdio-common/_itoa.h: Moved to ...
43510         * sysdeps/generic/_itoa.h: Here.
43511
43512         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
43513
43514         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
43515         instead of "_itoa.h" and "_itowa.h".
43516         * stdio-common/vfprintf.: Likewise.
43517
43518 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
43519
43520         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
43521         <bits/wordsize.h>.
43522         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
43523         (__signbit): Likwise.
43524         (llrintf): Likwise.
43525         (llrint): Likwise.
43526
43527 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
43528
43529         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
43530         __WORDSIZE != 64.
43531
43532 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
43533
43534         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
43535         OVERFLOW_EXCEPTION_OK.
43536         * math/libm-test.inc ("Philosophy"): Update comment about
43537         exception testing.
43538         (OVERFLOW_EXCEPTION): Define.
43539         (OVERFLOW_EXCEPTION_OK): Likewise.
43540         (INVALID_EXCEPTION_OK): Renumber.
43541         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
43542         (IGNORE_ZERO_INF_SIGN): Likewise.
43543         (test_exceptions): Handle FE_OVERFLOW.
43544         (exp10_test): Expect overflow exceptions.
43545         (exp2_test): Likewise.
43546         (expm1_test): Likewise.
43547         (nextafter_test): Likewise.
43548         (pow_test): Likewise.
43549         (scalbn_test): Likewise.
43550         (scalbln_test): Likewise.
43551
43552 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
43553
43554         * sysdeps/x86_64/bits/atomic.h
43555         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
43556         64bit integer.
43557         (atomic_exchange_acq): Likewise.
43558         (__arch_exchange_and_add_body): Likewise.
43559         (__arch_add_body): Likewise.
43560         (atomic_add_negative): Likewise.
43561         (atomic_add_zero): Likewise.
43562
43563 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
43564
43565         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
43566         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
43567
43568 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
43569
43570         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
43571         Check __x86_64__ instead of __WORDSIZE.
43572
43573 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
43574
43575         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
43576
43577 2012-03-19  David S. Miller  <davem@davemloft.net>
43578
43579         * sysdeps/sparc/fpu/libm-test-ulps: Update.
43580
43581         * sysdeps/sparc/fpu/fenv_private.h: New file.
43582         * sysdeps/sparc/fpu/math_private.h: Use it.
43583         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
43584         Remove.
43585         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
43586         (libc_feholdexcept_setroundl): Remove.
43587         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
43588         Remove.
43589         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
43590         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
43591
43592 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
43593
43594         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
43595         int64_t instead of long int.
43596         (INSERT_WORDS64): Likwise.
43597
43598 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
43599
43600         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
43601         _Unwind_GetCFA return to _Unwind_Ptr first.
43602
43603 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
43604
43605         [BZ #13629]
43606         * math/s_clog.c: Include <float.h>.
43607         (__clog): Scale large or subnormal inputs.
43608         * math/s_clogf.c: Likewise.
43609         * math/s_clogl.c: Likewise.
43610         * math/s_clog10.c: Include <float.h>.
43611         (M_LOG10_2): Define.
43612         (__clog10): Scale large or subnormal inputs.
43613         * math/s_clog10f.c: Likewise.
43614         * math/s_clog10l.c: Likewise.
43615         * math/libm-test.inc (clog_test): Add more tests.
43616         (clog10_test): Likewise.
43617         * sysdeps/i386/fpu/libm-test-ulps: Update.
43618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43619
43620         [BZ #11451]
43621         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
43622         x and y.
43623         * math/libm-test.inc (atan2_test): Add another test.
43624
43625         * Makerules (common-objdir-compile): Remove.
43626         * sysdeps/unix/Makefile (config-generated): Do not add
43627         $(unix-generated) to variable.
43628         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
43629         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
43630         Remove rule.
43631         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
43632         Likewise.
43633         [generic bits/local_lim.h] (before-compile): Do not append to
43634         variable.
43635         [generic bits/local_lim.h] (common-generated): Likewise.
43636         [generic sys/param.h] (before-compile): Do not append to variable.
43637         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
43638         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
43639         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
43640         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
43641         include.
43642         [generic sys/param.h] (sys/param.h-includes): Remove variable.
43643         [generic sys/param.h] (sys/param.h-includes): Remove rule.
43644         [generic sys/param.h] ($(addprefix
43645         $(common-objpfx),$(sys/param.h-includes))): Likewise.
43646         [generic sys/param.h] (common-generated): Do not append to
43647         variable.
43648         [generic sys/param.h] (sysdep_headers): Likewise.
43649         [generic bits/errno.h] (before-compile): Do not append to
43650         variable.
43651         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
43652         rule.
43653         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
43654         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
43655         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
43656         [generic bits/errno.h] (common-generated): Do not append to
43657         variable.
43658         [generic bits/ioctls.h] (before-compile): Do not append to
43659         variable.
43660         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
43661         rule.
43662         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
43663         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
43664         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
43665         rule.
43666         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
43667         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
43668         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
43669         [generic bits/ioctls.h] (common-generated): Do not append to
43670         variable.
43671         [generic sys/syscall.h] (syscall.h): Remove variable.
43672         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
43673         rule.
43674         [generic sys/syscall.h] (before-compile): Do not append to
43675         variable.
43676         [generic sys/syscall.h] (common-generated): Likewise.
43677         * sysdeps/unix/errnos-tmpl.c: Remove file.
43678         * sysdeps/unix/errnos.awk: Likewise.
43679         * sysdeps/unix/ioctls-tmpl.c: Likewise.
43680         * sysdeps/unix/ioctls.awk: Likewise.
43681         * sysdeps/unix/mk-local_lim.c: Likewise.
43682         * sysdeps/unix/snarf-ioctls: Likewise.
43683
43684 2012-03-19  Richard Henderson  <rth@twiddle.net>
43685
43686         * sysdeps/i386/fpu/fenv_private.h: New file.
43687         * sysdeps/i386/fpu/math_private.h: Use it.
43688         (math_opt_barrier, math_force_eval): Remove.
43689         (libc_feholdexcept_setround_53bit): Remove.
43690         (libc_feupdateenv_53bit): Remove.
43691         * sysdeps/x86_64/fpu/math_private.h: Likewise.
43692         (math_opt_barrier, math_force_eval): Remove.
43693         (libc_feholdexcept): Remove.
43694         (libc_feholdexcept_setround): Remove.
43695         (libc_fetestexcept, libc_fesetenv): Remove.
43696         (libc_feupdateenv_test): Remove.
43697         (libc_feupdateenv, libc_feholdsetround): Remove.
43698         (libc_feresetround): Remove.
43699
43700         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
43701         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
43702
43703         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
43704         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
43705         (libc_feupdateenv_testl): New.
43706         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
43707         (libc_feupdateenv_testf): New.
43708         (libc_feupdateenv): Use libc_feupdateenv_test.
43709         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
43710         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
43711
43712         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
43713         (libc_feholdsetroundf, libc_feholdsetroundl): New.
43714         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
43715         (libc_feresetround_noex): New.
43716         (libc_feresetround_noexf): New.
43717         (libc_feresetround_noexl): New.
43718         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
43719         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
43720         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
43721         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
43722         SET_RESTORE_ROUND.
43723         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
43724         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
43725         (__cos): Likewise.
43726         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
43727         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
43728         SET_RESTORE_ROUND_NOEX.
43729         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
43730         SET_RESTORE_ROUND_NOEXF.
43731         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
43732         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
43733         (libc_feholdsetroundf): New.
43734         (libc_feresetround, libc_feresetroundf): New.
43735
43736         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
43737         (libc_feholdexcept_setround_53bit): Convert from macro to function.
43738         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
43739
43740         * sysdeps/generic/math_private.h: Include <fenv.h>.
43741         (default_libc_feholdexcept): New.
43742         (default_libc_feholdexcept_setround): New.
43743         (default_libc_fesetenv, default_libc_feupdateenv): New.
43744         (libc_feholdexcept): Only define if undefined.
43745         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
43746         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
43747         (libc_feholdexcept_setroundl): Likewise.
43748         (libc_feholdexcept_setround_53bit): Likewise.
43749         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
43750         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
43751         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
43752         (libc_feupdateenv_53bit): Likewise.
43753         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
43754         (libc_feholdexcept): Convert from macro to inline function.
43755         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
43756         (libc_fesetenv, libc_feupdateenv): Likewise.
43757
43758         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
43759         not previously defined.
43760         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
43761         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
43762         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
43763         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
43764         * sysdeps/ieee754/flt-32/math_private.h: New file.
43765         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
43766         math_private.h below SET_FLOAT_WORD.
43767         (__isnan, __isinf_ns, __finite): Remove.
43768         (__isnanf, __isinf_nsf, __finitef): Remove.
43769
43770 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
43771
43772         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
43773
43774 2012-03-17  David S. Miller  <davem@davemloft.net>
43775
43776         [BZ #6471]
43777         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
43778         for 2.16.
43779
43780 2012-03-16  David S. Miller  <davem@davemloft.net>
43781
43782         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
43783         warnings.
43784
43785         [BZ #6471]
43786         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
43787         properly.
43788         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
43789         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
43790         sysdep_routines when subdir is sysvipc.
43791         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
43792         __getshmlba helper.
43793
43794         * sysdeps/sparc/fpu/libm-test/ulps: Update.
43795
43796 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
43797
43798         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
43799         [__LP64__].
43800
43801 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
43802
43803         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
43804         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
43805         (__lround): Renamed to ...
43806         (__llround): This.  Replace long int with long long int.
43807         Define lround functions as aliases of llround functions.
43808         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
43809
43810 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
43811
43812         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
43813         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
43814         adresses to uintptr_t.  Replace "long int" and "unsigned long
43815         int" with "greg_t" on va_arg.
43816
43817 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
43818
43819         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
43820         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
43821
43822         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
43823         Move e_machine check before EI_CLASS check.  Handle x32
43824         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
43825         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
43826         SKIP_EM_IA_64 and include
43827         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
43828
43829         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
43830         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
43831         (add_system_dir): New macro.
43832
43833         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
43834         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
43835
43836 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
43837
43838         [BZ #2551]
43839         [BZ #2552]
43840         [BZ #2553]
43841         [BZ #2554]
43842         [BZ #2562]
43843         [BZ #2563]
43844         [BZ #2565]
43845         [BZ #2566]
43846         [BZ #2576]
43847         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
43848         (y0): Likewise.
43849         * math/w_j0f.c (j0f): Likewise.
43850         (y0f): Likewise.
43851         * math/w_j0l.c (__j0l): Likewise.
43852         (__y0l): Likewise.
43853         * math/w_j1.c (j1): Likewise.
43854         (y1): Likewise.
43855         * math/w_j1f.c (j1f): Likewise.
43856         (y1f): Likewise.
43857         * math/w_j1l.c (__j1l): Likewise.
43858         (__y1l): Likewise.
43859         * math/w_jn.c (jn): Likewise.
43860         (yn): Likewise.
43861         * math/w_jnf.c (jnf): Likewise.
43862         (ynf): Likewise.
43863         * math/w_jnl.c (__jnl): Likewise.
43864         (__ynl): Likewise.
43865         * math/libm-test.inc (j0_test): Add more tests.
43866         (j1_test): Likewise.
43867         (jn_test): Likewise.  Add trailing semicolon to existing test.
43868         (y0_test): Likewise.
43869         (y1_test): Likewise.
43870         * sysdeps/i386/fpu/libm-test-ulps: Update.
43871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43872
43873         [BZ #13851]
43874         [BZ #13854]
43875         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
43876         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
43877         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
43878         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
43879         (__tanl): Set errno for infinite argument.
43880         * sysdeps/i386/fpu/mptan.c: Remove.
43881         * sysdeps/i386/fpu/s_tan.S: Likewise.
43882         * sysdeps/i386/fpu/s_tanl.S: Likewise.
43883         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
43884         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
43885         * math/libm-test.inc (tan_test): Add more tests and enable more
43886         tests for double and long double.
43887         * sysdeps/i386/fpu/libm-test-ulps: Update.
43888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43889
43890 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
43891
43892         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
43893         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
43894
43895 2012-03-16  Roland McGrath  <roland@hack.frob.com>
43896
43897         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
43898         * configure.in: Use it for both main tree and add-ons.
43899         * configure: Regenerated.
43900
43901 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
43902
43903         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
43904
43905 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
43906
43907         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
43908         in comment.
43909
43910         [BZ #13851]
43911         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
43912         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
43913         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
43914         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
43915         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
43916         infinite argument.
43917         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
43918         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
43919         != 0 for prec == 2.
43920         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
43921         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
43922         * sysdeps/i386/fpu/s_cosl.S: Likewise.
43923         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
43924         * sysdeps/i386/fpu/s_sinl.S: Likewise.
43925         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
43926         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
43927         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
43928         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
43929         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
43930         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
43931         * math/libm-test.inc (cos_test): Add more tests and enable more
43932         tests for long double.
43933         (sin_test): Likewise.
43934         (sincos_test): Likewise.
43935         * sysdeps/i386/fpu/libm-test-ulps: Update.
43936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
43937
43938 2012-03-16  David S. Miller  <davem@davemloft.net>
43939
43940         * sysdeps/sparc/fpu/math_private.h: New file.
43941
43942 2012-03-15  David S. Miller  <davem@davemloft.net>
43943
43944         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
43945         file.
43946         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
43947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
43948         file.
43949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
43950         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
43951         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
43952         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
43953         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
43954         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
43955         sysdep routines.
43956         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
43957
43958         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
43959         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
43960
43961         * sysdeps/sparc/sparc-ifunc.h: New file.
43962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
43963         sparc-ifunc.h
43964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
43965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
43966         Likewise.
43967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
43968         Likewise.
43969         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
43970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
43971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
43972         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
43973         Likewise.
43974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
43975         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
43976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
43977         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
43978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
43979         Likewise.
43980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
43981         Likewise.
43982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
43983         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
43984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
43985         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
43986         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
43987         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
43988         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
43989         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
43990         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
43991         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
43992         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
43993         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
43994         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
43995         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
43996         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
43997         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
43998         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
43999         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
44000         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
44001         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
44002         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
44003         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
44004         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
44005         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
44006
44007 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
44008
44009         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
44010         scaling.
44011         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44012
44013 2012-03-15  Andreas Jaeger  <aj@suse.de>
44014
44015         [BZ #13852]
44016         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
44017         ieee754/flt-32 implementation for sin, cos and sincos.
44018         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
44019         * sysdeps/i386/fpu/s_cosf.S: Likewise.
44020         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
44021         * sysdeps/i386/fpu/s_sinf.S: Likewise.
44022         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
44023         ieee754/flt-32 implementation for tan.
44024
44025         * math/libm-test.inc (cos_test): Enable some large input tests for
44026         float as well
44027         (sin_test): Likewise.
44028         (sincos_test): Likewise.
44029         (tan_test): Add tests for large input.
44030
44031         * sysdeps/i386/fpu/libm-test-ulps: Update.
44032
44033 2012-03-15  Andreas Jaeger  <aj@suse.de>
44034
44035         [BZ #13658]
44036         * math/libm-test.inc (cos_test): Add more test cases.
44037         (sin_test): Likewise.
44038         (sincos_test): Likewise.
44039
44040 2012-03-15  Andreas Jaeger  <aj@suse.de>
44041
44042         [BZ #13837]
44043         * math/libm-test.inc (cos_test): Add a test case for large input
44044         value.
44045         (sin_test): Likewise.
44046         (sincos_test): Likewise.
44047
44048 2012-03-15  Andreas Jaeger  <aj@suse.de>
44049             Joseph Myers  <joseph@codesourcery.com>
44050
44051         [BZ #13658]
44052         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
44053         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
44054         * sysdeps/i386/fpu/branred.c: Likewise.
44055         * sysdeps/i386/fpu/dosincos.c: Likewise.
44056         * sysdeps/i386/fpu/mpa.c: Likewise.
44057         * sysdeps/i386/fpu/s_cos.S: Likewise.
44058         * sysdeps/i386/fpu/s_sin.S: Likewise.
44059         * sysdeps/i386/fpu/s_sincos.S: Likewise.
44060         * sysdeps/i386/fpu/sincos32.c: Likewise.
44061
44062         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
44063         Define.
44064         (libc_feupdateenv_53bit): Define.
44065         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
44066         Define.
44067         (libc_feupdateenv_53bit): Define.
44068
44069         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
44070         53 bit (without extend i386 double precision).
44071
44072         * math/libm-test.inc (sincos_test): Add tests for large input.
44073         (sin): Likewise.
44074         (cos): Likewise.
44075
44076         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
44077
44078 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
44079
44080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44081
44082 2012-03-15  David S. Miller  <davem@davemloft.net>
44083
44084         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
44085         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
44086         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
44087         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
44088         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
44089         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
44090         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
44091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
44092         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
44093         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
44094         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
44095         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
44096         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
44097         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
44098         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
44099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
44100         file.
44101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
44102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
44103         file.
44104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
44105         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
44106         file.
44107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
44108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
44109         file.
44110         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
44111         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
44112         fmin/fmax sysdep routines.
44113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
44114
44115 2012-03-14  David S. Miller  <davem@davemloft.net>
44116
44117         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
44118         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
44119         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
44120         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
44121         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
44122         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
44123         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
44124         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
44125         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
44126         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
44127         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
44128         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
44129         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
44130         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
44131         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
44132         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
44133         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
44134         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
44135         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
44136         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
44137         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
44138         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
44139         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
44140         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
44141         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
44142         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
44143         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
44144         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
44145         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
44146         routines.
44147         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
44148         file.
44149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
44150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
44151         file.
44152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
44153         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
44154         file.
44155         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
44156         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
44157         file.
44158         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
44159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
44160         file.
44161         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
44162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
44163         file.
44164         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
44165         file.
44166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
44167         file.
44168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
44169         file.
44170         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
44171         New file.
44172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
44173         file.
44174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
44175         file.
44176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
44177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
44178         file.
44179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
44180         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
44181         file.
44182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
44183         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
44184         file.
44185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
44186         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
44187         VIS3 routines.
44188
44189         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
44190         New file.
44191
44192         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44193
44194         * sysdeps/sparc/configure.in: New file.
44195         * sysdeps/sparc/configure: Generate.
44196         * configure.in (libc_cv_sparc_as_vis3): Substitute.
44197         * configure: Regenerate.
44198         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
44199         * config.make.in (have-as-vis3): New.
44200         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
44201         available use -Av9d instead of -Av9a.
44202         * sysdeps/sparc/sparc64/Makefile: Likewise.
44203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
44204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
44205         New file.
44206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
44207         file.
44208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
44209         New file.
44210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
44211         file.
44212         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
44213         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
44214         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
44215         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
44216         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
44217
44218         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
44219         fzeros/fnegs to load 0x80000000 into a float register instead of
44220         using the stack.
44221         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
44222
44223 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
44224
44225         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
44226         bits/syscall.h.
44227         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
44228         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
44229         ($(inst_includedir)/bits/syscall.h): Remove rule.
44230         ($(objpfx)bits/syscall.d): Include instead of
44231         $(objpfx)syscall-list.d.
44232         (generated): Change syscall-list.h and syscall-list.d to
44233         bits/syscall.h and bits/syscall.d.
44234
44235 2012-03-14  Roland McGrath  <roland@hack.frob.com>
44236
44237         [BZ #13846]
44238         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
44239
44240 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
44241
44242         [BZ #13841]
44243         * math/s_csqrt.c: Include <float.h>.
44244         (__csqrt): Scale large or subnormal inputs.
44245         * math/s_csqrtf.c: Likewise.
44246         * math/s_csqrtl.c: Likewise.
44247         * math/libm-test.inc (csqrt_test): Add more tests.
44248         * sysdeps/i386/fpu/libm-test-ulps: Update.
44249         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44250
44251         [BZ #13840]
44252         * math/libm-test.inc (hypot_test): Add more tests.
44253
44254 2012-03-13  David S. Miller  <davem@davemloft.net>
44255
44256         [BZ #13840]
44257         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
44258         double-precision for the calculation instead of scaling.
44259
44260 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
44261
44262         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
44263         manipulate bits before adding and subtracting TWO52[sx].
44264         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
44265         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
44266         Likewise.
44267         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
44268
44269 2012-03-13  David S. Miller  <davem@davemloft.net>
44270
44271         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
44272         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
44273         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
44274         rtld-global-offsets.h
44275         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
44276
44277         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
44278         large parameters.
44279
44280         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
44281
44282         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
44283         'err' in the ifdef scope in which it is actually used.
44284
44285         * nss/nss_db/db-init.c: Include string.h
44286
44287 2012-03-12  David S. Miller  <davem@davemloft.net>
44288
44289         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
44290         masking out of the most significant byte of random value used.
44291         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44292         Fix coding style in previous change.
44293
44294         * sysdeps/unix/sysv/linux/kernel-features.h
44295         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
44296         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
44297         expression.
44298         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
44299         later.
44300
44301 2012-03-11  David S. Miller  <davem@davemloft.net>
44302
44303         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
44304         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
44305         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
44306         for 'resultvar' otherwise things get truncated on 64-bit.
44307
44308         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
44309         Fix masking out of the most significant byte of random value used.
44310
44311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44312
44313 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
44314
44315         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44316
44317 2012-03-09  David S. Miller  <davem@davemloft.net>
44318
44319         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
44320         variables with appropriate CPP guards.
44321         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
44322         from the frame pointer, not the stack pointer.  Correct layout
44323         comments.  Fix test on resulting framesize and the management of
44324         the outregs buffer for pltexit.  Preserve floating point return
44325         values across _dl_call_pltexit call.
44326         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
44327         framesize and the management of the outregs buffer for pltexit.
44328         Preserve floating point return values across _dl_call_pltexit
44329         call.
44330         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
44331         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
44332         (la_sparc64_gnu_pltexit): New functions.
44333         (print_exit): Fix format string for return register value.
44334
44335 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
44336
44337         * sunrpc/Makefile (others): Add rpcgen.
44338         ($(objpfx)rpcgen): Remove special build rule and dependency on
44339         libc.
44340         * sunrpc/rpcgen.c: New file.
44341
44342 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
44343
44344         [BZ #13673]
44345         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
44346         * stdio-common/bug-vfprintf-nargs.c: Likewise.
44347         * sysdeps/i386/crti.S: Likewise.
44348         * sysdeps/i386/crtn.S: Likewise.
44349         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
44350         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
44351         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
44352         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
44353         * sysdeps/sh/crti.S: Likewise.
44354         * sysdeps/sh/crtn.S: Likewise.
44355         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
44356
44357         [BZ #13673]
44358         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
44359         with URL.
44360         * locale/programs/locfile-kw.gperf: Likewise.
44361         * locale/programs/charmap-kw.h: Regenerated.
44362         * locale/programs/locfile-kw.h: Likewise.
44363
44364         [BZ #13673]
44365         * intl/plural.y: Replace FSF snail mail address with URL.
44366         * intl/plural.c: Regenerated.
44367
44368 2012-03-09  Richard Henderson  <rth@twiddle.net>
44369
44370         * include/math_private.h: Remove file.
44371         * math/math_private.h: Move file ...
44372         * sysdeps/generic/math_private.h: ... here.
44373
44374         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
44375         * sysdeps/powerpc/fpu/math_private.h: Likewise.
44376         * sysdeps/x86_64/fpu/math_private.h: Likewise.
44377
44378         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
44379         and <math_private.h>.
44380         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
44381         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
44382         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
44383         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
44384         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
44385         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
44386         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
44387         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
44388         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
44389         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
44390         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
44391         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
44392         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
44393         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
44394         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
44395         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
44396         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
44397         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
44398         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
44399         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
44400         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
44401         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
44402         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
44403         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
44404         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
44405         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
44406         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
44407         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
44408         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
44409         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
44410         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
44411         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
44412         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
44413         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
44414         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
44415         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
44416         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
44417         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
44418         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
44419         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
44420         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
44421         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
44422         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
44423         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
44424         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
44425         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
44426         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
44427         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
44428         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
44429         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
44430         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
44431         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
44432         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
44433         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
44434         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
44435         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
44436         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
44437         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
44438         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
44439         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
44440         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
44441         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
44442         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
44443         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
44444         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
44445         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
44446         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
44447         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
44448         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
44449         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
44450         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
44451         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
44452         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
44453         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
44454         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
44455         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
44456         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
44457         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
44458         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
44459         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
44460         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
44461         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
44462         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
44463         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
44464         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
44465         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
44466         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
44467         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
44468         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
44469         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
44470         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
44471         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
44472         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
44473         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
44474         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
44475         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
44476         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
44477         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
44478         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
44479         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
44480         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
44481         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
44482         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
44483         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
44484         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
44485         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
44486         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
44487         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
44488         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
44489         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
44490         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
44491         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
44492         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
44493         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
44494         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
44495         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
44496         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
44497         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
44498         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
44499         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
44500         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
44501         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
44502         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
44503         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
44504         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
44505         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
44506         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
44507         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
44508         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
44509         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
44510         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
44511         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
44512         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
44513         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
44514         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
44515         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
44516         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
44517         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
44518         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
44519         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
44520         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
44521         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
44522         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
44523         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
44524         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
44525         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
44526         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
44527         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
44528         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
44529         * sysdeps/ieee754/k_standard.c: Likewise.
44530         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
44531         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
44532         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
44533         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
44534         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
44535         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
44536         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
44537         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
44538         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
44539         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
44540         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
44541         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
44542         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
44543         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
44544         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
44545         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
44546         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
44547         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
44548         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
44549         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
44550         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
44551         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
44552         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
44553         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
44554         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
44555         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
44556         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
44557         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
44558         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
44559         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
44560         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
44561         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
44562         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
44563         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
44564         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
44565         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
44566         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
44567         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
44568         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
44569         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
44570         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
44571         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
44572         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
44573         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
44574         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
44575         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
44576         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
44577         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
44578         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
44579         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
44580         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
44581         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
44582         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
44583         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
44584         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
44585         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
44586         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
44587         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
44588         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
44589         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
44590         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
44591         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
44592         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
44593         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
44594         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
44595         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
44596         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
44597         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
44598         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
44599         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
44600         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
44601         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
44602         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
44603         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
44604         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
44605         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
44606         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
44607         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
44608         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
44609         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
44610         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
44611         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
44612         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
44613         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
44614         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
44615         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
44616         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
44617         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
44618         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
44619         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
44620         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
44621         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
44622         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
44623         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
44624         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
44625         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
44626         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
44627         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
44628         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
44629         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
44630         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
44631         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
44632         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
44633         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
44634         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
44635         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
44636         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
44637         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
44638         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
44639         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
44640         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
44641         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
44642         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
44643         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
44644         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
44645         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
44646         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
44647         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
44648         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
44649         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
44650         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
44651         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
44652         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
44653         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
44654         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
44655         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
44656         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
44657         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
44658         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
44659         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
44660         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
44661         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
44662         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
44663         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
44664         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
44665         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
44666         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
44667         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
44668         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
44669         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
44670         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
44671         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
44672         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
44673         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
44674         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
44675         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
44676         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
44677         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
44678         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
44679         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
44680         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
44681         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
44682         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
44683         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
44684         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
44685         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
44686         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
44687         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
44688         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
44689         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
44690         * sysdeps/ieee754/s_lib_version.c: Likewise.
44691         * sysdeps/ieee754/s_matherr.c: Likewise.
44692         * sysdeps/ieee754/s_signgam.c: Likewise.
44693         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
44694         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
44695         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
44696         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
44697         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
44698         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
44699         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
44700         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
44701         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
44702         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
44703         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
44704         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
44705         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
44706         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
44707         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
44708         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
44709         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
44710         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
44711         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
44712         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
44713         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
44714
44715 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
44716
44717         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
44718         * sunrpc/rpc_main.c: Likewise.
44719         * sunrpc/rpc_svcout.c: Likewise.
44720
44721 2012-03-09  David S. Miller  <davem@davemloft.net>
44722
44723         * include/math_private.h: New file.
44724
44725 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
44726
44727         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
44728         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
44729         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
44730         from <bits/socket_type.h>.
44731         (enum __socket_type): Don't define here.
44732         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
44733         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
44734         bits/socket_type.h.
44735
44736         [BZ #13566]
44737         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
44738         checking __USE_GNU.
44739
44740         * Makerules ($(inst_includedir)/%.h): New rule.
44741         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
44742         (install-others): Remove variable setting.
44743         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
44744
44745 2012-03-08  Richard Henderson  <rth@twiddle.net>
44746
44747         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
44748         from macro to inline function; merge with the
44749         !__LIBC_INTERNAL_MATH_INLINES version.
44750         (__ieee754_sqrtf): Likewise.
44751
44752         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
44753         to inline function.
44754         (__rintf, __floor, __floorf): Likewise.
44755
44756         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
44757         macro to inline function.
44758         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
44759
44760         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
44761         not <math/math_private.h>.
44762
44763 2012-03-08  David S. Miller  <davem@davemloft.net>
44764
44765         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
44766         copyright year.
44767         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
44768
44769 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
44770
44771         * resolv/gai_misc.c (handle_requests): Fix struct timespec
44772         normalization.
44773         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
44774         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
44775
44776 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
44777
44778         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
44779         be defined individually, they must be defined as a block.  Define
44780         S for printing a string instead of hidint the different by using a
44781         macro for adding the 'l'.
44782         * stdio-common/tst-fphex-wide.c: Adjust.
44783
44784 2012-03-07  Marek Polacek  <polacek@redhat.com>
44785
44786         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
44787
44788 2012-03-08  Marek Polacek  <polacek@redhat.com>
44789
44790         [BZ #13806]
44791         * stdio-common/Makefile (tests): Add tst-fphex-wide.
44792         * stdio-common/tst-fphex.c: Define a few macros to make the
44793         test reusable.  Use them.
44794         * stdio-common/tst-fphex-wide.c: New file.
44795
44796 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
44797
44798         [BZ #6911]
44799         * manual/macros.texi (gnusystems): New macro.
44800         (nongnusystems): Likewise.
44801         (gnulinuxhurdsystems): Likewise.
44802         (gnuhurdsystems): Likewise..
44803         (gnulinuxsystems): Likewise.
44804         * manual/charset.texi: Use new macros or @theglibc{} to refer to
44805         variants of the GNU system, not "GNU system".
44806         * manual/conf.texi: Likewise.
44807         * manual/errno.texi: Likewise.  Update example of errno macro
44808         expansion.
44809         * manual/filesys.texi: Likewise.
44810         (getumask): Document as specific to GNU/Hurd.
44811         * manual/install.texi: Likewise.  Reword some references to
44812         GNU/Linux.
44813         * manual/intro.texi: Likewise.
44814         * manual/io.texi: Likewise.
44815         (File Name Portability): Detail which constraints are inapplicable
44816         to all GNU systems and which are only inapplicable to GNU/Hurd.
44817         * manual/job.texi: Likewise.
44818         * manual/llio.texi: Likewise.
44819         (O_NOCTTY): Document as present on GNU/Linux.
44820         * manual/maint.texi: Likewise.
44821         * manual/memory.texi: Likewise.
44822         * manual/pattern.texi: Likewise.
44823         * manual/pipe.texi: Likewise.
44824         * manual/process.texi: Likewise.
44825         * manual/resource.texi: Likewise.
44826         (RUSAGE_CHILDREN): Remove statement about specifying a particular
44827         child on GNU/Hurd.
44828         * manual/setjmp.texi: Likewise.
44829         * manual/signal.texi: Likewise.
44830         * manual/startup.texi: Likewise.
44831         * manual/stdio.texi: Likewise.
44832         * manual/terminal.texi: Likewise.
44833         (ONLCR): Document as POSIX.
44834         (OXTABS): Document availability on GNU/Linux as XTABS.
44835         (ONOEOT): Document availability separately from other bits.
44836         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
44837         * manual/time.texi: Likewise.
44838         * manual/users.texi: Likewise.
44839         * INSTALL: Regenerated.
44840         * sysdeps/gnu/errlist.c: Regenerated.
44841
44842         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
44843         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
44844         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
44845         puts.
44846         * configure: Regenerated.
44847
44848 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
44849
44850         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
44851         default includes instead of AC_HEADER_CHECK.
44852         * sysdeps/i386/configure: Regenerated.
44853
44854         [BZ #10716]
44855         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
44856         * math/s_cacoshf.c (__cacoshf): Likewise.
44857         * math/s_cacoshl.c (__cacoshl): Likewise.
44858         * math/s_casinh.c (__casinh): Set signs of result from argument.
44859         * math/s_casinhf.c (__casinhf): Likewise.
44860         * math/s_casinhl.c (__casinhl): Likewise.
44861         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
44862         (casinh_test): Add more tests.
44863         * sysdeps/i386/fpu/libm-test-ulps: Update.
44864         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44865
44866 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
44867
44868         * po/zh_TW.po: Update from translation team.
44869
44870         * login/Makefile (distribute): Remove variable.
44871         * catgets/Makefile: Likewise.
44872         * mach/Makefile: Likewise.
44873         * malloc/Makefile: Likewise.
44874         * misc/Makefile: Likewise.
44875         * iconv/Makefile: Likewise.
44876         * nscd/Makefile: Likewise.
44877         * hurd/Makefile: Likewise.
44878         * manual/Makefile: Likewise.
44879         * locale/Makefile: Likewise.
44880         * intl/Makefile: Likewise.
44881         * conform/Makefile: Likewise.
44882         * nss/Makefile: Likewise.
44883         * time/Makefile: Likewise.
44884         * soft-fp/Makefile: Likewise.
44885         * dirent/Makefile: Likewise.
44886         * gmon/Makefile: Likewise.
44887         * po/Makefile: Likewise.
44888         * rt/Makefile: Likewise.
44889         * socket/Makefile: Likewise.
44890         * math/Makefile: Likewise.
44891         * signal/Makefile: Likewise.
44892         * debug/Makefile: Likewise.
44893         * elf/Makefile: Likewise.
44894         * timezone/Makefile: Likewise.
44895         * stdlib/Makefile: Likewise.
44896         * iconvdata/Makefile: Likewise.
44897         * sunrpc/Makefile: Likewise.
44898         * io/Makefile: Likewise.
44899         * argp/Makefile: Likewise.
44900         * inet/Makefile: Likewise.
44901         * hesiod/Makefile: Likewise.
44902         * grp/Makefile: Likewise.
44903         * csu/Makefile: Likewise.
44904         * wctype/Makefile: Likewise.
44905         * crypt/Makefile: Likewise.
44906         * libio/Makefile: Likewise.
44907         * string/Makefile: Likewise.
44908         * nis/Makefile: Likewise.
44909         * resolv/Makefile: Likewise.
44910         * stdio-common/Makefile: Likewise.
44911         * wcsmbs/Makefile: Likewise.
44912         * dlfcn/Makefile: Likewise.
44913         * posix/Makefile: Likewise.
44914
44915         [BZ #6959]
44916         * timezone/Makefile: Don't install timezone files, just the programs
44917         and scripts.
44918
44919 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
44920
44921         * nss/databases.def: Add missing gshadow entry.
44922
44923         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
44924
44925 2012-03-06  Marek Polacek  <polacek@redhat.com>
44926
44927         [BZ #13726]
44928         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
44929         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
44930         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
44931         * stdio-common/tst-long-dbl-fphex.c: New file.
44932
44933 2012-03-06  David S. Miller  <davem@davemloft.net>
44934
44935         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
44936         (set_obp_int): New function.
44937         (get_obp_int): New function.
44938         (__get_clockfreq_via_dev_openprom): Likewise.
44939         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
44940         Avoid unused variable warnings on 'val' and use builtin_expect.
44941         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
44942         __builtin_expect.
44943         (INLINE_CLONE_SYSCALL): Likewise.
44944
44945 2012-03-05  David S. Miller  <davem@davemloft.net>
44946
44947         * sysdeps/sparc/fpu/libm-test-ulps: Update.
44948
44949 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
44950
44951         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
44952
44953         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
44954         only for |x| >= 40.
44955         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
44956
44957 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
44958
44959         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
44960         Replace gettimeofday with __vdso_gettimeofday.
44961
44962         * sysdeps/unix/sysv/linux/x86_64/init-first.c
44963         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
44964         __vdso_clock_gettime and __vdso_getcpu.
44965
44966         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
44967         time with __vdso_time.
44968
44969 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
44970
44971         * manual/lang.texi (size_t): Note types to which size_t may be
44972         equivalent with the GNU C Library, but do not describe when
44973         differences between them are significant.
44974
44975 2012-03-05  Andreas Jaeger  <aj@suse.de>
44976
44977         * sysdeps/i386/fpu/libm-test-ulps: Update.
44978
44979 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
44980
44981         [BZ #3976]
44982         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
44983         (__ieee754_pow): Save and restore rounding mode and use
44984         round-to-nearest for main computations.
44985         * math/libm-test.inc (pow_test_tonearest): New function.
44986         (pow_test_towardzero): Likewise.
44987         (pow_test_downward): Likewise.
44988         (pow_test_upward): Likewise.
44989         (main): Call the new functions.
44990         * sysdeps/i386/fpu/libm-test-ulps: Update.
44991         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
44992
44993         [BZ #3976]
44994         * math/libm-test.inc (cosh_test_tonearest): New function.
44995         (cosh_test_towardzero): Likewise.
44996         (cosh_test_downward): Likewise.
44997         (cosh_test_upward): Likewise.
44998         (sinh_test_tonearest): Likewise.
44999         (sinh_test_towardzero): Likewise.
45000         (sinh_test_downward): Likewise.
45001         (sinh_test_upward): Likewise.
45002         (main): Call the new functions.
45003         * sysdeps/i386/fpu/libm-test-ulps: Update.
45004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45005
45006 2012-03-05  Tom de Vries  <tom@codesourcery.com>
45007
45008         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
45009         default stack guard is set in last bytes.
45010         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
45011
45012 2012-03-05  Kees Cook  <keescook@chromium.org>
45013
45014         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
45015
45016         [BZ #13656]
45017         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
45018         possibly allocate from heap instead of stack.
45019         * stdio-common/bug-vfprintf-nargs.c: New file.
45020         * stdio-common/Makefile (tests): Add nargs overflow test.
45021
45022 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
45023
45024         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
45025
45026 2012-03-03  Marek Polacek  <polacek@redhat.com>
45027
45028         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
45029         * math/math_private.h: Likewise.
45030         * stdlib/tst-strtod.c: Likewise.
45031         * sysdeps/i386/i486/bits/atomic.h: Likewise.
45032         * sysdeps/x86_64/bits/atomic.h: Likewise.
45033
45034 2012-03-02  David S. Miller  <davem@davemloft.net>
45035
45036         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
45037         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
45038         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
45039         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
45040         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
45041         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
45042         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
45043         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
45044
45045 2012-03-02  Roland McGrath  <roland@hack.frob.com>
45046
45047         [BZ #13792]
45048         * manual/examples/README: New file, says the example source files
45049         can be used under GPL>=2.
45050         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
45051         line containing just "*/".
45052         * manual/examples/add.c: Add copyright header (GPL>=2).
45053         * manual/examples/argp-ex1.c: Likewise.
45054         * manual/examples/argp-ex2.c: Likewise.
45055         * manual/examples/argp-ex3.c: Likewise.
45056         * manual/examples/argp-ex4.c: Likewise.
45057         * manual/examples/atexit.c: Likewise.
45058         * manual/examples/db.c: Likewise.
45059         * manual/examples/dir.c: Likewise.
45060         * manual/examples/dir2.c: Likewise.
45061         * manual/examples/execinfo.c: Likewise.
45062         * manual/examples/filecli.c: Likewise.
45063         * manual/examples/filesrv.c: Likewise.
45064         * manual/examples/fmtmsgexpl.c: Likewise.
45065         * manual/examples/genpass.c: Likewise.
45066         * manual/examples/inetcli.c: Likewise.
45067         * manual/examples/inetsrv.c: Likewise.
45068         * manual/examples/isockad.c: Likewise.
45069         * manual/examples/longopt.c: Likewise.
45070         * manual/examples/memopen.c: Likewise.
45071         * manual/examples/memstrm.c: Likewise.
45072         * manual/examples/mkfsock.c: Likewise.
45073         * manual/examples/mkisock.c: Likewise.
45074         * manual/examples/mygetpass.c: Likewise.
45075         * manual/examples/pipe.c: Likewise.
45076         * manual/examples/popen.c: Likewise.
45077         * manual/examples/rprintf.c: Likewise.
45078         * manual/examples/search.c: Likewise.
45079         * manual/examples/select.c: Likewise.
45080         * manual/examples/setjmp.c: Likewise.
45081         * manual/examples/sigh1.c: Likewise.
45082         * manual/examples/sigusr.c: Likewise.
45083         * manual/examples/stpcpy.c: Likewise.
45084         * manual/examples/strdupa.c: Likewise.
45085         * manual/examples/strftim.c: Likewise.
45086         * manual/examples/strncat.c: Likewise.
45087         * manual/examples/subopt.c: Likewise.
45088         * manual/examples/swapcontext.c: Likewise.
45089         * manual/examples/termios.c: Likewise.
45090         * manual/examples/testopt.c: Likewise.
45091         * manual/examples/testpass.c: Likewise.
45092         * manual/examples/timeval_subtract.c: Likewise.
45093
45094         [BZ #13792]
45095         * manual/time.texi (Elapsed Time): Move timeval_subtract example
45096         function to ...
45097         * manual/timeval_subtract.c.texi: ... here, new file.
45098
45099 2012-03-02  David S. Miller  <davem@davemloft.net>
45100
45101         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
45102
45103 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
45104
45105         [BZ #3976]
45106         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
45107         (__sin): Save and restore rounding mode and use round-to-nearest
45108         for all computations.
45109         (__cos): Save and restore rounding mode and use round-to-nearest
45110         for all computations.
45111         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
45112         <fenv.h>.
45113         (tan): Save and restore rounding mode and use round-to-nearest for
45114         all computations.
45115         * math/libm-test.inc (cos_test_tonearest): New function.
45116         (cos_test_towardzero): Likewise.
45117         (cos_test_downward): Likewise.
45118         (cos_test_upward): Likewise.
45119         (sin_test_tonearest): Likewise.
45120         (sin_test_towardzero): Likewise.
45121         (sin_test_downward): Likewise.
45122         (sin_test_upward): Likewise.
45123         (tan_test_tonearest): Likewise.
45124         (tan_test_towardzero): Likewise.
45125         (tan_test_downward): Likewise.
45126         (tan_test_upward): Likewise.
45127         (main): Call the new functions.
45128         * sysdeps/i386/fpu/libm-test-ulps: Update.
45129         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45130
45131         [BZ #10135]
45132         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
45133         small n, then large n, before computing and testing k+n.
45134         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
45135         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
45136         Likewise.
45137         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
45138         Likewise.
45139         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
45140         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
45141         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
45142         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
45143         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
45144         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
45145         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
45146         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
45147         * math/libm-test.inc (scalbn_test): Add more tests.
45148         (scalbln_test): Likewise.
45149
45150         * manual/filesys.texi (mode_t): Describe constraints on size and
45151         signedness, not exact equivalence to a particular type.
45152         (ino_t): Likewise.
45153         (ino64_t): Likewise.
45154         (dev_t): Likewise.
45155         (nlink_t): Likewise.
45156         (blkcnt_t): Likewise.
45157         (blkcnt64_t): Likewise.
45158         * manual/llio.texi (off_t): Likewise.
45159
45160         [BZ #3976]
45161         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
45162         (__ieee754_exp): Save and restore rounding mode and use
45163         round-to-nearest for all computations.
45164         * math/libm-test.inc (exp_test_tonearest): New function.
45165         (exp_test_towardzero): Likewise.
45166         (exp_test_downward): Likewise.
45167         (exp_test_upward): Likewise.
45168         (main): Call the new functions.
45169         * sysdeps/i386/fpu/libm-test-ulps: Update.
45170         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45171
45172 2012-03-01  Chris Demetriou  <cgd@google.com>
45173
45174         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
45175         have predictable order.
45176
45177 2012-03-01  David S. Miller  <davem@davemloft.net>
45178
45179         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
45180
45181         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
45182         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
45183         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
45184         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
45185
45186         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
45187         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
45188         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
45189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
45190         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
45191         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
45192         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
45193         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
45194         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
45195
45196         * sysdeps/sparc/fpu/libm-test-ulps: Update.
45197
45198         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
45199         * sysdeps/sparc/fpu/libm-test-ulps: to here.
45200         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
45201
45202         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
45203         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
45204         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
45205         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
45206         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
45207         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
45208         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
45209         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
45210         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
45211         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
45212         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
45213         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
45214         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
45215         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
45216         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
45217         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
45218         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
45219         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
45220         * sysdeps/sparc/elf/configure: Regenerated.
45221
45222 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
45223
45224         * configure.in (AS, LD): Require binutils 2.20 or later.
45225         * configure: Regenerated.
45226         * manual/install.texi (Tools for Compilation): Give binutils 2.20
45227         as required minimum version.
45228         * INSTALL: Regenerated.
45229
45230         [BZ #2541]
45231         [BZ #4108]
45232         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
45233         before squaring exponent.
45234         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
45235         bottom long double and 27 bits of top long double before squaring
45236         exponent.
45237         * math/libm-test.inc (erfc_test): Add more tests.
45238         * sysdeps/i386/fpu/libm-test-ulps: Update.
45239         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
45240         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45241
45242 2012-03-01  Kai Tietz  <ktietz@redhat.com>
45243
45244         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
45245         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
45246         containing bit-fields.
45247         * soft-fp/extended.h (_FP_UNION_E): Likewise.
45248         * soft-fp/single.h (_FP_UNION_S): Likewise.
45249         * soft-fp/double.h (_FP_UNION_D): Likewise.
45250
45251 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
45252
45253         [BZ #13786]
45254         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
45255         not include ../strcmp.S.
45256         [USE_AS_STRNCASECMP_L]: Likewise.
45257         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
45258         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
45259         * sysdeps/i386/i686/multiarch/strncase_l-c.c
45260         (__strncasecmp_l_ia32): Define as alias to
45261         __strncasecmp_l_nonascii.
45262
45263         [BZ #5794]
45264         * math/libm-test.inc (expm1_test): Add test for bug 5794.
45265         * sysdeps/i386/fpu/libm-test-ulps: Update.
45266         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45267
45268         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
45269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45270
45271 2012-02-29  Jeff Law  <law@redhat.com>
45272
45273         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
45274         out of bounds read.
45275
45276 2012-02-29  Marek Polacek  <polacek@redhat.com>
45277
45278         [BZ #13706]
45279         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
45280         * elf/Makefile: Add rules to run tst-unused-dep.out.
45281
45282 2012-02-28  David S. Miller  <davem@davemloft.net>
45283
45284         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
45285         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
45286         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
45287         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
45288         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
45289         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
45290
45291 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
45292
45293         * math/libm-test.inc (llround_test): Move one test from
45294         lround_test.  Use TEST_f_L in moved test.
45295         (lround_test): Move misplaced test to llround_test.  Add testcase
45296         from bug 2561.
45297
45298 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
45299
45300         * sysdeps/x86_64/fpu/e_expf.S: New file.
45301         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
45302
45303 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
45304
45305         [BZ #13637]
45306         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
45307         of remain_len that may cause incomplete multi-byte character and
45308         false match.
45309         * posix/bug-regex33.c: New file.
45310         * posix/Makefile (tests): Add bug-regex33.
45311
45312 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
45313
45314         * manual/macros.texi: New file.
45315         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
45316         * manual/libc.texinfo: Include macros.texi.
45317         * manual/creatute.texi: Likewise.
45318         * manual/install.texi: Likewise.
45319         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
45320         @glibcadj{} in references to the GNU C Library.
45321         * manual/charset.texi: Likewise.
45322         * manual/conf.texi: Likewise.
45323         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
45324         when not using those macros.
45325         * manual/creature.texi: Likewise.
45326         * manual/crypt.texi: Likewise.
45327         * manual/errno.texi: Likewise.
45328         * manual/filesys.texi: Likewise.
45329         * manual/header.texi: Likewise.
45330         * manual/install.texi: Likewise.
45331         * manual/intro.texi: Likewise.
45332         * manual/io.texi: Likewise.
45333         * manual/job.texi: Likewise.
45334         * manual/lang.texi: Likewise.
45335         * manual/libc.texiinfo: Likewise.
45336         * manual/llio.texi: Likewise.
45337         * manual/locale.texi: Likewise.
45338         * manual/maint.texi: Likewise.
45339         * manual/math.texi: Likewise.
45340         * manual/memory.texi: Likewise.
45341         * manual/message.texi: Likewise.
45342         * manual/nss.texi: Likewise.
45343         * manual/pattern.texi: Likewise.
45344         * manual/process.texi: Likewise.
45345         * manual/resource.texi: Likewise.
45346         * manual/search.texi: Likewise.
45347         * manual/setjmp.texi: Likewise.
45348         * manual/signal.texi: Likewise.
45349         * manual/socket.texi: Likewise.
45350         * manual/startup.texi: Likewise.
45351         * manual/stdio.texi: Likewise.
45352         * manual/string.texi: Likewise.
45353         * manual/sysinfo.texi: Likewise.
45354         * manual/syslog.texi: Likewise.
45355         * manual/terminal.texi: Likewise.
45356         * manual/time.texi: Likewise.
45357         * manual/users.texi: Likewise.
45358         * INSTALL: Regenerated.
45359         * NOTES: Regenerated.
45360         * sysdeps/gnu/errlist.c: Regenerated.
45361
45362 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
45363
45364         * include/dirent.h: Include <dirstream.h> before
45365         <dirent/dirent.h>.
45366
45367 2012-02-28  David S. Miller  <davem@davemloft.net>
45368
45369         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
45370         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
45371         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
45372         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
45373
45374 2012-02-27  David S. Miller  <davem@davemloft.net>
45375
45376         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
45377         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
45378         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
45379         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
45380
45381         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
45382         frame pointer instead of stack pointer relative arg slot.
45383         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
45384         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
45385         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
45386
45387 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
45388
45389         [BZ #3992]
45390         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
45391
45392 2012-02-27  David S. Miller  <davem@davemloft.net>
45393
45394         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
45395         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
45396         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
45397         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
45398         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
45399         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
45400         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
45401         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
45402
45403 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
45404
45405         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
45406         later.  Allow versions 5-9.
45407         * configure: Regenerated.
45408         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
45409         required minimum version and 4.6 as recommended version.  Do not
45410         mention bugs in GCC 2.7 and 2.8.
45411         * INSTALL: Regenerated.
45412
45413 2012-02-27  David S. Miller  <davem@davemloft.net>
45414
45415         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
45416         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
45417         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
45418         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
45419         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
45420         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
45421         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
45422         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
45423
45424         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
45425         manipulate bits before adding and subtracting TWO112[sx].
45426         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
45427
45428 2012-02-27  Roland McGrath  <roland@hack.frob.com>
45429
45430         [BZ #13775]
45431         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
45432         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
45433         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
45434         being in POSIX, because they are in 1003.1-2008.
45435
45436         * rt/tst-aio.c: Include <fcntl.h>.
45437         * rt/tst-aio7.c: Likewise.
45438         * rt/tst-aio64.c: Likewise.
45439
45440         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
45441
45442 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
45443
45444         * manual/install.texi (--with-headers): Describe headers as
45445         interface headers, not private headers.
45446         (Specific advice for GNU/Linux systems): Describe use of headers
45447         from "make headers_install", not private headers from older
45448         kernels.
45449         * INSTALL: Regenerated.
45450         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
45451         Change to 2.6.19.
45452         * sysdeps/unix/sysv/linux/configure: Regenerated.
45453
45454         * manual/llio.texi (fclean): Remove documentation.
45455
45456         * manual/Makefile (libc-texi-generated): New variable.  Include
45457         version.texi.
45458         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
45459         $(libc-texi-generated), not duplicated list of files.
45460         (version.texi, stamp-version): New rules.
45461         (realclean): Remove $(libc-texi-generated), not individual files
45462         from that list.  Do not remove dir-add.texinfo.
45463         * manual/libc.texinfo: Comment out uses of edition numbers and
45464         references to printed manual.  Remove last-updated dates.
45465         (EDITION): Comment out.
45466         (ISBN): Likewise.
45467         (VERSION, UPDATED): Remove.
45468         (version.texi): Include.
45469
45470 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
45471
45472         * sysdeps/posix/spawni.c: Include <signal.h>.
45473         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
45474         * sysdeps/pthread/aio_fsync.c: Likewise.
45475
45476 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
45477
45478         * conform/Makefile (tests): Run only when not cross-compiling and
45479         when fast-check is not defined.
45480
45481         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
45482         * conform/data/limits.h-data: Fixes for POSIX2008.
45483         * conform/run-conformtest.sh: Run all tests.
45484         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
45485         headers.
45486         * include/bits/dlfcn.h: Likewise.
45487         * include/langinfo.h: Likewise.
45488         * include/monetary.h: Likewise.
45489         * include/sys/poll.h: Likewise.
45490
45491         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
45492         for __USE_GNU.
45493         * posix/spawn.h: Define __need_sigset_t.
45494         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
45495         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
45496         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
45497         to get sigevent_t only.
45498         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
45499         only for __USE_GNU.
45500         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
45501         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
45502         process_vm_writev only for __USE_GNU.
45503         * termios/termios.h: Declare tcgetsid also for POSIX2008.
45504
45505         * conform/Makefile: For now ignore errors from run-conformtest.
45506         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
45507         POSIX to avoid namespace pollution.  Don't prepend headers.
45508         * conform/data/aio.h-data: Fixes for POSIX testing.
45509         * conform/data/fcntl.h-data: Likewise.
45510         * conform/data/glob.h-data: Likewise.
45511         * conform/data/grp.h-data: Likewise.
45512         * conform/data/pthread.h-data: Likewise.
45513         * conform/data/pwd.h-data: Likewise.
45514         * conform/data/signal.h-data: Likewise.
45515         * conform/data/spawn.h-data: Likewise.
45516         * conform/data/stdio.h-data: Likewise.
45517         * conform/data/stdlib.h-data: Likewise.
45518         * conform/data/stropts.h-data: Likewise.
45519         * conform/data/sys/mman.h-data: Likewise.
45520         * conform/data/sys/stat.h-data: Likewise.
45521         * conform/data/sys/types.h-data: Likewise.
45522         * conform/data/sys/wait.h-data: Likewise.
45523         * conform/data/time.h-data: Likewise.
45524         * conform/data/unistd.h-data: Likewise.
45525         * conform/data/utime.h-data: Likewise.
45526
45527         * io/sys/stat.h: fchmod was always in POSIX.
45528         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
45529         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
45530         * rt/aio.h: Define __need_timespec before including <time.h>.
45531         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
45532         struct.  Add forward declaration of pthread_attr_t and use it in
45533         sigevent.
45534         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
45535         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
45536         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
45537         always remove CLK_TCK definition.
45538
45539 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
45540
45541         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
45542
45543 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
45544
45545         * conform/run-conformtest.sh: New file.
45546         * conform/Makefile: Run run-conformtest for tests.
45547         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
45548         support.
45549
45550         * conform/data/uchar.h-data: New file.
45551         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
45552         * conform/data/arpa/inet.h-data: Likewise.
45553         * conform/data/assert.h-data: Likewise.
45554         * conform/data/complex.h-data: Likewise.
45555         * conform/data/cpio.h-data: Likewise.
45556         * conform/data/ctype.h-data: Likewise.
45557         * conform/data/dirent.h-data: Likewise.
45558         * conform/data/dlfcn.h-data: Likewise.
45559         * conform/data/errno.h-data: Likewise.
45560         * conform/data/fcntl.h-data: Likewise.
45561         * conform/data/float.h-data: Likewise.
45562         * conform/data/fmtmsg.h-data: Likewise.
45563         * conform/data/fnmatch.h-data: Likewise.
45564         * conform/data/ftw.h-data: Likewise.
45565         * conform/data/glob.h-data: Likewise.
45566         * conform/data/grp.h-data: Likewise.
45567         * conform/data/iconv.h-data: Likewise.
45568         * conform/data/inttypes.h-data: Likewise.
45569         * conform/data/langinfo.h-data: Likewise.
45570         * conform/data/libgen.h-data: Likewise.
45571         * conform/data/limits.h-data: Likewise.
45572         * conform/data/locale.h-data: Likewise.
45573         * conform/data/math.h-data: Likewise.
45574         * conform/data/monetary.h-data: Likewise.
45575         * conform/data/mqueue.h-data: Likewise.
45576         * conform/data/ndbm.h-data: Likewise.
45577         * conform/data/net/if.h-data: Likewise.
45578         * conform/data/netdb.h-data: Likewise.
45579         * conform/data/netinet/in.h-data: Likewise.
45580         * conform/data/nl_types.h-data: Likewise.
45581         * conform/data/poll.h-data: Likewise.
45582         * conform/data/pthread.h-data: Likewise.
45583         * conform/data/pwd.h-data: Likewise.
45584         * conform/data/regex.h-data: Likewise.
45585         * conform/data/sched.h-data: Likewise.
45586         * conform/data/search.h-data: Likewise.
45587         * conform/data/semaphore.h-data: Likewise.
45588         * conform/data/setjmp.h-data: Likewise.
45589         * conform/data/signal.h-data: Likewise.
45590         * conform/data/spawn.h-data: Likewise.
45591         * conform/data/stdarg.h-data: Likewise.
45592         * conform/data/stdio.h-data: Likewise.
45593         * conform/data/stdlib.h-data: Likewise.
45594         * conform/data/string.h-data: Likewise.
45595         * conform/data/strings.h-data: Likewise.
45596         * conform/data/stropts.h-data: Likewise.
45597         * conform/data/sys/ipc.h-data: Likewise.
45598         * conform/data/sys/mman.h-data: Likewise.
45599         * conform/data/sys/msg.h-data: Likewise.
45600         * conform/data/sys/resource.h-data: Likewise.
45601         * conform/data/sys/select.h-data: Likewise.
45602         * conform/data/sys/sem.h-data: Likewise.
45603         * conform/data/sys/shm.h-data: Likewise.
45604         * conform/data/sys/socket.h-data: Likewise.
45605         * conform/data/sys/stat.h-data: Likewise.
45606         * conform/data/sys/statvfs.h-data: Likewise.
45607         * conform/data/sys/time.h-data: Likewise.
45608         * conform/data/sys/timeb.h-data: Likewise.
45609         * conform/data/sys/times.h-data: Likewise.
45610         * conform/data/sys/types.h-data: Likewise.
45611         * conform/data/sys/uio.h-data: Likewise.
45612         * conform/data/sys/un.h-data: Likewise.
45613         * conform/data/sys/utsname.h-data: Likewise.
45614         * conform/data/sys/wait.h-data: Likewise.
45615         * conform/data/syslog.h-data: Likewise.
45616         * conform/data/tar.h-data: Likewise.
45617         * conform/data/termios.h-data: Likewise.
45618         * conform/data/utime.h-data: Likewise.
45619         * conform/data/utmpx.h-data: Likewise.
45620         * conform/data/varargs.h-data: Likewise.
45621         * conform/data/wchar.h-data: Likewise.
45622         * conform/data/wctype.h-data: Likewise.
45623         * conform/data/wordexp.h-data: Likewise.
45624
45625         * include/stropts.h: New file.
45626         * include/uchar.h: New file.
45627         * include/aio.h: Changes to allow conformtest.pl to use the headers.
45628         * include/assert.h: Likewise.
45629         * include/ctype.h: Likewise.
45630         * include/dirent.h: Likewise.
45631         * include/dlfcn.h: Likewise.
45632         * include/fcntl.h: Likewise.
45633         * include/fnmatch.h: Likewise.
45634         * include/glob.h: Likewise.
45635         * include/grp.h: Likewise.
45636         * include/libio.h: Likewise.
45637         * include/locale.h: Likewise.
45638         * include/math.h: Likewise.
45639         * include/net/if.h: Likewise.
45640         * include/netdb.h: Likewise.
45641         * include/netinet/in.h: Likewise.
45642         * include/pthread.h: Likewise.
45643         * include/pwd.h: Likewise.
45644         * include/regex.h: Likewise.
45645         * include/sched.h: Likewise.
45646         * include/search.h: Likewise.
45647         * include/setjmp.h: Likewise.
45648         * include/signal.h: Likewise.
45649         * include/stdio.h: Likewise.
45650         * include/stdlib.h: Likewise.
45651         * include/string.h: Likewise.
45652         * include/sys/cdefs.h: Likewise.
45653         * include/sys/mman.h: Likewise.
45654         * include/sys/msg.h: Likewise.
45655         * include/sys/resource.h: Likewise.
45656         * include/sys/select.h: Likewise.
45657         * include/sys/socket.h: Likewise.
45658         * include/sys/stat.h: Likewise.
45659         * include/sys/statvfs.h: Likewise.
45660         * include/sys/time.h: Likewise.
45661         * include/sys/times.h: Likewise.
45662         * include/sys/uio.h: Likewise.
45663         * include/sys/utsname.h: Likewise.
45664         * include/sys/wait.h: Likewise.
45665         * include/termios.h: Likewise.
45666         * include/time.h: Likewise.
45667         * include/ulimit.h: Likewise.
45668         * include/unistd.h: Likewise.
45669         * include/utime.h: Likewise.
45670         * include/wchar.h: Likewise.
45671         * include/wctype.h: Likewise.
45672         * include/wordexp.h: Likewise.
45673
45674         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
45675
45676         * time/time.h: TIME_UTC must be a macro.
45677         Make timespec_get available for ISO C11 only as well.
45678
45679 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
45680
45681         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
45682         Reported by Peng Haitao <penght@cn.fujitsu.com>.
45683
45684 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
45685
45686         * configure.in: Use -o not -a in test for unsupported multi-arch.
45687
45688 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
45689
45690         * manual/texinfo.tex: Update to version 2012-01-19.16.
45691
45692 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
45693
45694         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
45695
45696 2012-02-24  Roland McGrath  <roland@hack.frob.com>
45697
45698         [BZ #13738]
45699         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
45700         * manual/fdl-1.3.texi: New file.
45701         * manual/fdl-1.1.texi: File removed.
45702
45703         [BZ #13738]
45704         * manual/libc.texinfo (FDL_VERSION): New @set.
45705         Use it for mention of FDL in cover text.
45706         (Documentation License): Use it in @include file name.
45707
45708 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
45709             Roland McGrath  <roland@hack.frob.com>
45710
45711         [BZ #5461]
45712         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
45713         (not LONG_LONG_MAX and LONG_LONG_MIN.
45714         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
45715         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
45716         name.
45717         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
45718
45719 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
45720
45721         [BZ #2547]
45722         [BZ #11365]
45723         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
45724         manipulate bits before adding and subtracting TWO23[sx].
45725         * math/libm-test.inc (nearbyint_test): Add more tests.
45726
45727 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
45728
45729         [BZ #2548]
45730         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
45731         bits before adding and subtracting TWO23[sx].
45732         * math/libm-test.inc (rint_test): Add more tests.
45733         (rint_test_tonearest): Likewise.
45734         (rint_test_towardzero): Likewise.
45735         (rint_test_downward): Likewise.
45736         (rint_test_upward: Likewise.
45737
45738 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
45739
45740         [BZ #10110]
45741         * include/stdc-predef.h: New file.  Extracted from features.h.
45742         * include/features.h: Include stdc-predef.h.
45743         * Makefile (headers): Add stdc-predef.h.
45744         * CONFORMANCE (Compiler limitations): Update.
45745
45746 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
45747
45748         * manual/libc.texinfo (VERSION, UPDATED): Revert.
45749
45750 2012-02-21  David S. Miller  <davem@davemloft.net>
45751
45752         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
45753         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
45754
45755 2012-02-20  David S. Miller  <davem@davemloft.net>
45756
45757         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
45758         using a normal save/restore sequence, rather than allocating a
45759         dummy stack frame just to store a frame pointer and restore.
45760         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
45761
45762 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
45763
45764         * manual/install.texi: Fix stray word in line-wrapped comment.
45765
45766 2012-02-20  David S. Miller  <davem@davemloft.net>
45767
45768         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
45769         both binutils and gcc support GOTDATA.
45770
45771         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
45772         "rd %pc" in the PIC register setup sequences.
45773
45774         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
45775         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
45776         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
45777         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
45778         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
45779         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
45780         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
45781         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
45782         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
45783         (SYSCALL_ERROR_HANDLER): Likewise.
45784         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
45785         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
45786         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
45787         (SYSCALL_ERROR_HANDLER): Likewise.
45788
45789         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
45790         (HAVE_GCC_GOTDATA): New.
45791         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
45792         relocation support in both binutils and gcc.
45793         * sysdeps/sparc/elf/configure: Regenerate.
45794
45795         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
45796         * sysdeps/sparc/sparc32/elf/configure: Delete.
45797         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
45798         * sysdeps/sparc/sparc64/elf/configure: Delete.
45799         * sysdeps/sparc/elf/configure.in: New file.
45800         * sysdeps/sparc/elf/configure: Generate.
45801
45802         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
45803         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
45804         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
45805         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
45806         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
45807
45808 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
45809
45810         * manual/install.texi: Do not mention specific glibc version
45811         numbers.
45812         * manual/libc.texinfo (VERSION, UPDATED): Update.
45813         (@copying): Use @copyright{} and range of years.
45814
45815 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
45816
45817         [BZ #13695]
45818         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
45819         [crti.S not in sysdirs] (generated): Do not append.
45820         [crti.S not in sysdirs] (omit-deps): Likewise.
45821         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
45822         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
45823         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
45824         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
45825         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
45826         Likewise.
45827         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
45828         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
45829         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
45830         * csu/defs.awk: Remove file.
45831         * sysdeps/generic/initfini.c: Likewise.
45832         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
45833         variable.
45834         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
45835         Likewise.
45836
45837 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
45838
45839         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
45840         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
45841         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
45842         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
45843         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
45844         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
45845         <bits/epoll.h>.
45846         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
45847         (__EPOLL_PACKED): Define to empty if not defined by
45848         <bits/epoll.h>.
45849         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
45850         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45851         bits/epoll.h.
45852
45853 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
45854
45855         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
45856         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
45857         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
45858         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
45859         <bits/timerfd.h>.
45860         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
45861         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
45862         bits/timerfd.h.
45863
45864 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
45865
45866         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
45867         in C locale.
45868         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
45869         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
45870         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
45871         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
45872
45873 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
45874
45875         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
45876         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
45877
45878 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
45879
45880         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
45881         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
45882         defined.
45883         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
45884         Likewise.
45885         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
45886         entry for 2.16.
45887
45888 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
45889
45890         * math/w_acos.c: Use non-signaling floating-point comparisons.
45891         * math/w_acosf.c: Likewise.
45892         * math/w_acosh.c: Likewise.
45893         * math/w_acoshf.c: Likewise.
45894         * math/w_acoshl.c: Likewise.
45895         * math/w_acosl.c: Likewise.
45896         * math/w_asin.c: Likewise.
45897         * math/w_asinf.c: Likewise.
45898         * math/w_asinl.c: Likewise.
45899         * math/w_atanh.c: Likewise.
45900         * math/w_atanhf.c: Likewise.
45901         * math/w_atanhl.c: Likewise.
45902         * math/w_exp2.c: Likewise.
45903         * math/w_exp2f.c: Likewise.
45904         * math/w_exp2l.c: Likewise.
45905         * math/w_j0.c: Likewise.
45906         * math/w_j0f.c: Likewise.
45907         * math/w_j0l.c: Likewise.
45908         * math/w_j1.c: Likewise.
45909         * math/w_j1f.c: Likewise.
45910         * math/w_j1l.c: Likewise.
45911         * math/w_jn.c: Likewise.
45912         * math/w_jnf.c: Likewise.
45913         * math/w_log.c: Likewise.
45914         * math/w_log10.c: Likewise.
45915         * math/w_log10f.c: Likewise.
45916         * math/w_log10l.c: Likewise.
45917         * math/w_log2.c: Likewise.
45918         * math/w_log2f.c: Likewise.
45919         * math/w_log2l.c: Likewise.
45920         * math/w_logf.c: Likewise.
45921         * math/w_logl.c: Likewise.
45922         * math/w_sqrt.c: Likewise.
45923         * math/w_sqrtf.c: Likewise.
45924         * math/w_sqrtl.c: Likewise.
45925         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
45926         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
45927         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
45928         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
45929         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
45930
45931 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
45932
45933         [BZ #9739]
45934         * manual/string.texi (strnlen): Use correct parameter name in
45935         equivalent expression.
45936
45937 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
45938
45939         [BZ #11174]
45940         * manual/users.texi (seteuid): Consistently use neweuid for
45941         argument name.
45942
45943 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
45944
45945         [BZ #13704]
45946         * manual/nss.texi (Services in the NSS configuration): Correct
45947         list of services in example configuration file.
45948
45949 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
45950
45951         [BZ #11322]
45952         * manual/arith.texi: Remove statements about negative zero
45953         behaving identically to zero.
45954
45955 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
45956
45957         [BZ #5993]
45958         * manual/install.texi: Do not document upgrading from libc5.
45959
45960 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
45961
45962         [BZ #4596]
45963         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
45964
45965 2012-02-18  David S. Miller  <davem@davemloft.net>
45966
45967         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
45968         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
45969         %o7 across the call.
45970         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
45971         instead.
45972         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
45973         SETUP_PIC_REG_LEAF.
45974         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
45975         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
45976         * sysdeps/sparc/crtn.S: Likewise.
45977
45978 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
45979
45980         * aout/Makefile: Remove.
45981
45982 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
45983
45984         [BZ #13058]
45985         * manual/examples/argp-ex1.c (main): Format definition in GNU
45986         style.
45987         * manual/examples/argp-ex2.c (main): Likewise.
45988         * manual/examples/argp-ex3.c (main): Likewise.
45989         * manual/examples/argp-ex4.c (main): Likewise.
45990         * manual/examples/longopt.c (main): Use new-style prototype
45991         definition.
45992         * manual/examples/strncat.c (main): Specify return type and use
45993         (void) for arguments.
45994         * manual/examples/subopt.c (main): Use char **argv argument.
45995
45996 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
45997
45998         [BZ #5077]
45999         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
46000         rounding modes.
46001
46002 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
46003
46004         [BZ #6907]
46005         * manual/string.texi (strchr): Change when strchrnul is
46006         recommended.
46007
46008 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
46009
46010         [BZ #174]
46011         * manual/locale.texi (setlocale): Document LOCPATH.
46012
46013 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
46014
46015         [BZ #10210]
46016         * manual/process.texi (execle): Move @dots{} before last argument.
46017
46018 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
46019
46020         [BZ #12047]
46021         * manual/charset.texi (Generic Charset Conversion): Fix typo
46022         (LC_TYPE -> LC_CTYPE).
46023
46024 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
46025
46026         [BZ #5805]
46027         * manual/arith.texi (scalbn): Use @var{} on parameter names.
46028         (scalbnf): Likewise.
46029         (scalbnl): Likewise.
46030         (scalbln): Likewise.
46031         (scalblnf): Likewise.
46032         (scalblnl): Likewise.
46033         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
46034         (vwarnx): Likewise.
46035         (verr): Likewise.
46036         (verrx): Likewise.
46037         * manual/filesys.texi (telldir): Use braces around return type.
46038         * manual/llio.texi (mmap): Add space after comma.
46039         (mmap64): Likewise.
46040         * manual/math.texi (jn): Use @var{} on parameter names.
46041         (jnf): Likewise.
46042         (jnl): Likewise.
46043         (yn): Likewise.
46044         (ynf): Likewise.
46045         (ynl): Likewise.
46046         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
46047         line.
46048         * manual/resource.texi (ulimit): Use @dots{} instead of literal
46049         "...".
46050         (sched_get_priority_min): Remove semicolon on @deftypefun line.
46051         (sched_get_priority_max): Likewise.
46052         * manual/signal.texi (sigvec): Add space after comma.
46053         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
46054         names.
46055         (if_indextoname): Likewise.
46056         (if_freenameindex): Likewise.
46057         (sendto): Use ',' instead of '.' in prototype.
46058         * manual/startup.texi (syscall): Use @dots{} instead of literal
46059         "...".
46060         * manual/stdio.texi (__fpending): Separate initial words of
46061         paragraph from @deftypefun line.
46062         * manual/syslog.texi (syslog): Use @dots{} instead of literal
46063         "...".
46064         (vsyslog): Use @var{} on parameter names.
46065         * manual/terminal.texi (stty): Use @var{} on parameter names.
46066         * manual/users.texi (getutmp): Use @var{} on parameter names.
46067         (getutmpx): Likewise.
46068
46069 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
46070
46071         [BZ #6884]
46072         * manual/stdio.texi (fopen): Fix typos in description of
46073         ",ccs=STRING".
46074
46075 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
46076
46077         [BZ #4026]
46078         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
46079         get clock_id definition.
46080
46081 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
46082
46083         [BZ #4822]
46084         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
46085         (madvise): Cast every argument to void on its own.
46086
46087 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
46088
46089         [BZ #9902]
46090         * manual/startup.texi (Exit Status): Fix typo.
46091
46092 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
46093
46094         [BZ #10140]
46095         * manual/examples/argp-ex1.c: Include <stdlib.h>.
46096         * manual/examples/argp-ex2.c: Likewise.
46097         * manual/examples/argp-ex3.c: Likewise.
46098
46099 2012-02-16  Richard Henderson  <rth@redhat.com>
46100
46101         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
46102         * sysdeps/s390/s390-32/initfini.c: Remove.
46103         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
46104         * sysdeps/s390/s390-64/initfini.c: Remove.
46105
46106 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
46107
46108         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
46109         compiler output for sysdeps/generic/initfini.c.
46110         * sysdeps/sh/elf/initfini.c: Remove file.
46111
46112 2012-02-16  David S. Miller  <davem@davemloft.net>
46113
46114         [BZ #11494]
46115         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
46116
46117         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
46118         * sysdeps/sparc/crti.S: New file.
46119         * sysdeps/sparc/crtn.S: New file.
46120         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
46121         * sysdeps/sparc/sparc64/Makefile: Likewise.
46122
46123 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
46124
46125         [BZ #3335]
46126         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
46127
46128 2012-02-15  Roland McGrath  <roland@hack.frob.com>
46129
46130         [BZ #4822]
46131         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
46132
46133         * mach/devstream.c (cookie_io_functions_t): Macro removed.
46134         (write, read, close): Likewise.
46135         Patch by Aurelien Jarno <aurelien@aurel32.net>.
46136
46137 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
46138
46139         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
46140         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
46141         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
46142         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
46143         <bits/signalfd.h>.
46144         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
46145         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
46146         bits/signalfd.h.
46147
46148 2012-02-14  Marek Polacek  <polacek@redhat.com>
46149
46150         * sysdeps/x86_64/crti.S: New file.
46151         * sysdeps/x86_64/crtn.S: New file.
46152         * sysdeps/x86_64/elf/initfini.c: Remove file.
46153
46154 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
46155
46156         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
46157         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
46158         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
46159         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
46160         <bits/inotify.h>.
46161         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
46162         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
46163         bits/inotify.h.
46164
46165 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
46166
46167         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
46168         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
46169         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
46170         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
46171         <bits/eventfd.h>.
46172         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
46173         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
46174         bits/eventfd.h.
46175
46176 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
46177
46178         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
46179         __feraiseexcept instead of feraiseexcept.
46180
46181         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
46182         nanosleep invocations.
46183         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
46184         strings, and add error checking for a nanosleep invocations.
46185
46186 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
46187
46188         Replace FSF snail mail address with URLs, as per GNU coding standards.
46189         Most of the snail mail addresses were wrong anyway, and omitting
46190         them makes the source code easier to maintain.  Almost all of the
46191         changes are to license notices and to locale LC_IDENTIFICATION
46192         addresses, except for this one:
46193         * manual/libc.texinfo: In "Published by", give the FSF's URL,
46194         not its snail mail address.
46195
46196 2012-02-09  Richard Henderson  <rth@twiddle.net>
46197
46198         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
46199         of kernel-features.h.
46200
46201         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
46202
46203 2012-02-08  Marek Polacek  <polacek@redhat.com>
46204
46205         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
46206         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
46207         * sysdeps/gnu/_G_config.h: Likewise.
46208         * sysdeps/generic/_G_config.h: Likewise.
46209
46210 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
46211
46212         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
46213         tests.
46214         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
46215
46216         * sysdeps/powerpc/powerpc32/crti.S: New file.
46217         * sysdeps/powerpc/powerpc32/crtn.S: New file.
46218         * sysdeps/powerpc/powerpc64/crti.S: New file.
46219         * sysdeps/powerpc/powerpc64/crtn.S: New file.
46220
46221         * Makeconfig (have-initfini): Don't set.
46222         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
46223         * configure.in (nopic_initfini): Don't substitute.
46224         * config.h.in (HAVE_INITFINI): Don't #undef.
46225         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
46226         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
46227
46228 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
46229
46230         Support crti.S and crtn.S provided directly by architectures.
46231         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
46232         [crti.S in sysdirs] (omit-deps): Likewise.
46233         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
46234         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
46235         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
46236         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
46237         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
46238         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
46239         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
46240         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
46241         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
46242         compiler output for sysdeps/generic/initfini.c.
46243         * sysdeps/i386/elf/Makefile: Remove file.
46244         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
46245
46246 2012-02-07  Marek Polacek  <polacek@redhat.com>
46247
46248         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
46249         * sysdeps/gnu/_G_config.h: Likewise.
46250         * sysdeps/mach/hurd/_G_config.h: Likewise.
46251
46252 2012-02-07  Marek Polacek  <polacek@redhat.com>
46253
46254         * math/Makefile (tests): Add tst-CMPLX2.
46255         * math/tst-CMPLX2.c: New file.
46256
46257 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
46258
46259         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
46260
46261         * math/libm-test.inc (jn_test): Add missing L suffix.
46262
46263 2012-02-06  Marek Polacek  <polacek@redhat.com>
46264
46265         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
46266         * sysdeps/i386/fpu/e_powf.S: Likewise.
46267         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
46268         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
46269         * sysdeps/i386/fpu/e_acosh.S: Likewise.
46270         * sysdeps/i386/fpu/e_pow.S: Likewise.
46271         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
46272         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
46273         * sysdeps/i386/fpu/s_expm1.S: Likewise.
46274         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
46275         * sysdeps/i386/fpu/e_log2.S: Likewise.
46276         * sysdeps/i386/fpu/e_log2l.S: Likewise.
46277         * sysdeps/i386/fpu/e_scalb.S: Likewise.
46278         * sysdeps/i386/fpu/e_powl.S: Likewise.
46279         * sysdeps/i386/fpu/s_log1p.S: Likewise.
46280         * sysdeps/i386/fpu/e_log10f.S: Likewise.
46281         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
46282         * sysdeps/i386/fpu/e_logl.S: Likewise.
46283         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
46284         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
46285         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
46286         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
46287         * sysdeps/i386/fpu/e_log2f.S: Likewise.
46288         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
46289         * sysdeps/i386/fpu/e_log.S: Likewise.
46290         * sysdeps/i386/fpu/s_cexp.S: Likewise.
46291         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
46292         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
46293         * sysdeps/i386/fpu/e_logf.S: Likewise.
46294         * sysdeps/i386/fpu/e_log10l.S: Likewise.
46295         * sysdeps/i386/fpu/e_atanh.S: Likewise.
46296         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
46297         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
46298         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
46299         * sysdeps/i386/fpu/e_log10.S: Likewise.
46300         * sysdeps/i386/fpu/s_frexp.S: Likewise.
46301         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
46302         * sysdeps/i386/fpu/s_asinh.S: Likewise.
46303         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
46304         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
46305         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
46306         * sysdeps/i386/asm-syntax.h: Likewise.
46307         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
46308         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
46309         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
46310         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
46311         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
46312         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
46313         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
46314         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
46315         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
46316         * sysdeps/powerpc/sysdep.h: Likewise.
46317         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
46318         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
46319
46320 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
46321
46322         [BZ #411]
46323         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
46324
46325 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
46326
46327         * sysdeps/i386/sysdep.h: Include <features.h>.
46328         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
46329         version.
46330
46331 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
46332
46333         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
46334         Define.
46335         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
46336         LOAD_PIC_REG_STR.
46337
46338 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
46339
46340         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
46341         (SETUP_PIC_REG): Use GET_PC_THUNK.
46342         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
46343         macro.
46344
46345 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
46346
46347         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
46348         for non-PIC compilation.
46349         (SETUP_PIC_REG): Add .p2align directive.
46350         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
46351         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
46352         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
46353         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
46354         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
46355         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
46356         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
46357         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
46358         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
46359         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
46360         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
46361         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
46362         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
46363         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
46364         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
46365         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
46366         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
46367         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
46368         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
46369         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
46370         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
46371         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
46372         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
46373         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
46374         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
46375         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
46376         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
46377         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
46378         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
46379         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
46380         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
46381         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
46382         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
46383         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
46384         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
46385         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
46386         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
46387         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
46388         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
46389         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
46390         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
46391
46392 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
46393
46394         * math/tst-CMPLX.c: Include <stdio.h>.
46395
46396 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
46397
46398         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
46399         float.
46400         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
46401         * sysdeps/sparc/bits/mathdef.h: Likewise.
46402
46403 2012-01-31  Marek Polacek  <polacek@redhat.com>
46404
46405         * libio/libio.h: Don't define _PARAMS.
46406         * locale/programs/config.h: Don't define PARAMS.
46407         * stdlib/strtol_l.c: Likewise.
46408         (__strtol_l): Remove PARAMS from the prototype.
46409
46410 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
46411
46412         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
46413         names.  Just use the correct names.  Remove unnecessary wrapper
46414         functions.
46415         * malloc/arena.c: Likewise.
46416         * malloc/hooks.c: Likewise.
46417
46418         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
46419         ARENA_TEST says not to.  Simplify test for creation of a new arena.
46420         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
46421
46422 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
46423
46424         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
46425         into tail calls.
46426         (update_get_addr): New function.
46427         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
46428         GET_ADDR_MODULE parameter.
46429
46430 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
46431
46432         * crypt/cert.c: Remove __STDC__ conditionals.
46433         * crypt/crypt-entry.c: Likewise.
46434         * crypt/crypt_util.c: Likewise.
46435         * libio/filedoalloc.c: Likewise.
46436         * libio/fileops.c: Likewise.
46437         * libio/genops.c: Likewise.
46438         * libio/iofclose.c: Likewise.
46439         * libio/iofdopen.c: Likewise.
46440         * libio/iofopen.c: Likewise.
46441         * libio/iofopen64.c: Likewise.
46442         * libio/iogetdelim.c: Likewise.
46443         * libio/iopopen.c: Likewise.
46444         * libio/obprintf.c: Likewise.
46445         * libio/oldfileops.c: Likewise.
46446         * libio/oldiofclose.c: Likewise.
46447         * libio/oldiofdopen.c: Likewise.
46448         * libio/oldiofopen.c: Likewise.
46449         * libio/oldiopopen.c: Likewise.
46450         * libio/wfiledoalloc.c: Likewise.
46451         * libio/wgenops.c: Likewise.
46452         * locale/programs/xmalloc.c: Likewise.
46453         * misc/syslog.c: Likewise.
46454         * stdio-common/xbug.c: Likewise.
46455         * string/memchr.c: Likewise.
46456         * string/memcmp.c: Likewise.
46457         * string/memrchr.c: Likewise.
46458         * string/rawmemchr.c: Likewise.
46459         * sysdeps/posix/getcwd.c: Likewise.
46460         * time/strftime_l.c: Likewise.
46461
46462 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
46463
46464         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
46465         * config.make.in (config-cflags-sse2avx): Define.
46466         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
46467         Fix typo.
46468
46469 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
46470
46471         * scripts/config.guess: Update from upstream config git repository.
46472         * scripts/config.sub: Likewise.
46473
46474 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
46475
46476         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
46477         (EM_NUM): Update.
46478         (R_TILEPRO_*, R_TILEGX_*): New macros.
46479
46480         * scripts/firstversions.awk: Fix bug in version range handling.
46481
46482         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
46483
46484         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
46485
46486         * include/sys/epoll.h: New file.
46487         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
46488         libc_hidden_def.
46489
46490 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
46491
46492         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
46493         Avoid unnecessary __WORDSIZE == 64 test.
46494         (fmaxf): Use VEX format if possible.
46495         (fmax): Likewise.
46496         (fminf): Likewise.
46497         (fmin): Likewise.
46498
46499         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
46500         * math/math_private.h: Remove libc_fegetround* and
46501         libc_fesetround*.
46502         * sysdeps/i386/configure.in: Check for -msse2avx.
46503         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
46504         also if SSE2AVX is defined.
46505         Remove libc_fegetround* and libc_fesetround*.
46506         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
46507         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
46508         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
46509         of HAS_YMM_USABLE.
46510         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
46511         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
46512         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
46513         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
46514         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
46515
46516         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
46517
46518 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
46519
46520         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
46521         size is not set.
46522         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
46523
46524 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
46525
46526         [BZ #13618]
46527         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
46528         relocation.
46529         * Makeconfig (libm): Define.
46530         * elf/Makefile: Add rules to build and run tst-relsort1.
46531         * elf/tst-relsort1.c: New file.
46532         * elf/tst-relsort1mod1.c: New file.
46533         * elf/tst-relsort1mod2.c: New file.
46534
46535 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
46536
46537         * math/s_ldexp.c: Remove __STDC__ conditionals.
46538         * math/s_ldexpf.c: Likewise.
46539         * math/s_ldexpl.c: Likewise.
46540         * math/s_nextafter.c: Likewise.
46541         * math/s_nexttowardf.c: Likewise.
46542         * math/s_significand.c: Likewise.
46543         * math/s_significandf.c: Likewise.
46544         * math/s_significandl.c: Likewise.
46545         * math/w_jnl.c: Likewise.
46546         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
46547         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
46548         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
46549         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
46550         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
46551         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
46552         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
46553         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
46554         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
46555         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
46556         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
46557         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
46558         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
46559         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
46560         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
46561         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
46562         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
46563         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
46564         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
46565         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
46566         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
46567         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
46568         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
46569         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
46570         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
46571         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
46572         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
46573         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
46574         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
46575         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
46576         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
46577         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
46578         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
46579         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
46580         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
46581         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
46582         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
46583         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
46584         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
46585         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
46586         * sysdeps/ieee754/k_standard.c: Likewise.
46587         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
46588         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
46589         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
46590         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
46591         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
46592         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
46593         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
46594         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
46595         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
46596         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
46597         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
46598         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
46599         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
46600         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
46601         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
46602         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
46603         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
46604         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
46605         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
46606         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
46607         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
46608         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
46609         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
46610         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
46611         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
46612         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
46613         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
46614         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
46615         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
46616         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
46617         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
46618         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
46619         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
46620         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
46621         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
46622         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
46623         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
46624         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
46625         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
46626         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
46627         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
46628         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
46629         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
46630         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
46631         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
46632         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
46633         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
46634         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
46635         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
46636         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
46637         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
46638         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
46639         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
46640         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
46641         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
46642         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
46643         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
46644         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
46645         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
46646         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
46647         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
46648         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
46649         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
46650         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
46651         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
46652         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
46653         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
46654         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
46655         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
46656         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
46657         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
46658         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
46659         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
46660         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
46661         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
46662         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
46663         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
46664         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
46665         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
46666         * sysdeps/ieee754/s_matherr.c: Likewise.
46667         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
46668         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
46669         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
46670         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
46671
46672 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
46673
46674         * crypt/md5.h: Remove __STDC__ conditionals.
46675         * libio/libioP.h: Likewise.
46676         * locale/programs/config.h: Likewise.
46677         * sysdeps/generic/sysdep.h: Likewise.
46678         * sysdeps/i386/asm-syntax.h: Likewise.
46679         * sysdeps/s390/asm-syntax.h: Likewise.
46680         * sysdeps/unix/sysdep.h: Likewise.
46681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
46682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
46683
46684 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
46685
46686         * libio/libio.h: Remove __STDC__ conditionals.
46687         * malloc/obstack.h: Likewise.
46688         * math/complex.h: Likewise.
46689         * math/math.h: Likewise.
46690         * sysdeps/generic/_G_config.h: Likewise.
46691         * sysdeps/gnu/_G_config.h: Likewise.
46692         * sysdeps/mach/hurd/_G_config.h: Likewise.
46693         * sysdeps/powerpc/bits/mathdef.h: Likewise.
46694         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
46695         * sysdeps/sparc/bits/mathdef.h: Likewise.
46696
46697 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
46698
46699         [BZ #13583]
46700         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
46701         Clean up HAS_* macros.
46702         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
46703         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
46704         possible.
46705         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
46706         HAS_AVX.
46707         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
46708         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
46709         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
46710         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
46711         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
46712
46713 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
46714
46715         * elf/tst-unique3.cc (gets): Remove declaration.
46716         * elf/tst-unique3lib.cc (gets): Likewise.
46717         * elf/tst-unique3lib2.cc (gets): Likewise.
46718         * elf/tst-unique4.cc (gets): Likewise.
46719
46720 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
46721
46722         * include/stdio.h: Add C++ protection.  Add gets declarations and
46723         definitions.
46724         * debug/tst-chk1.c: Don't declare gets here.
46725         * stdio-common/tst-gets.c: Likewise.
46726
46727 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
46728
46729         * posix/glob: Remove directory.
46730
46731 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
46732
46733         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
46734
46735 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
46736
46737         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
46738         of the non-standard EPFNOSUPPORT.
46739
46740 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46741
46742         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
46743         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
46744         ANYWHERE set to 1 only on KERN_NO_SPACE error.
46745
46746 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
46747
46748         * wcsmbs/uchar.h: Test __STDC_VERSION__.
46749
46750 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
46751
46752         * nscd/aicache.c (addhstaiX): Do not cache negative results of
46753         transient errors.
46754         * nscd/grpcache.c (cache_addgr): Likewise.
46755         * nscd/hstcache.c (cache_addhst): Likewise.
46756         * nscd/initgrcache.c (addinitgroupsX): Likewise.
46757         * nscd/pwdcache.c (cache_addpw): Likewise.
46758         * nscd/servicescache.c (cache_addserv): Likewise.
46759
46760 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
46761
46762         * malloc/malloc.c: Various cleanups.
46763         * malloc/hooks.c: Likewise.
46764
46765         * stdlib/Makefile (tests): Add bug-fmtmsg1.
46766         * stdlib/bug-fmtmsg1.c: New file.
46767
46768         * stdlib/fmtmsg.c (init): Add missing unlock.
46769         Patch by Peng Haitao <penght@cn.fujitsu.com>.
46770
46771 2012-01-12  Marek Polacek  <polacek@redhat.com>
46772
46773         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
46774         and _GNU_SOURCE.
46775
46776 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
46777
46778         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
46779         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
46780         macro to ensure uniqueness of label name.
46781         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
46782         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
46783
46784 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
46785
46786         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
46787
46788         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
46789         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
46790         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
46791         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
46792
46793 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
46794
46795         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
46796
46797         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
46798         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
46799         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
46800
46801         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
46802
46803         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
46804         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
46805         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
46806         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
46807
46808         * math/bits/math-finite.h: Add ldexp support.
46809
46810 2012-01-10  Marek Polacek  <polacek@redhat.com>
46811
46812         * locale/programs/localedef.h (show_archive_content): Add noreturn
46813         attribute.
46814
46815 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
46816
46817         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
46818
46819 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
46820
46821         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
46822
46823         * io/Makefile (headers): Add bits/poll2.h.
46824
46825 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
46826
46827         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
46828         typo #include statement.
46829
46830 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
46831
46832         * include/sys/cdefs.h: Define __attribute_alloc_size.
46833         * catgets/gencat.c: Add alloc_size attribute and apply consistently
46834         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
46835         * elf/pldd.c: Likewise.
46836         * iconv/iconv_charmap.c: Likewise.
46837         * iconv/iconvconfig.c: Likewise.
46838         * iconv/strtab.c: Likewise.
46839         * locale/programs/locale.c: Likewise.
46840         * locale/programs/localedef.h: Likewise.
46841         * locale/programs/simple-hash.c: Likewise.
46842         * nscd/nscd.h: Likewise.
46843         * nss/makedb.c: Likewise.
46844         * sysdeps/generic/ldconfig.h: Likewise.
46845         * locale/programs/localedef.c: Remove xmalloc prototype.
46846         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
46847
46848 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
46849
46850         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
46851         appropriate.
46852
46853 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
46854
46855         * math/Makefile (tests): Add tst-CMPLX.
46856         * math/tst-CMPLX.c: New file.
46857
46858         * math/complex.h (CMPLXL): Fix typo.
46859
46860         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
46861         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
46862         GLIBC_2.16.
46863         * debug/tst-chk1.c: Add poll and ppoll tests.
46864         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
46865         * include/sys/poll.h: Add hidden proto for ppoll.
46866         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
46867         * sysdeps/mach/hurd/ppoll.c: Likewise.
46868         * io/ppoll.c: Likewise.
46869         * debug/poll_chk.c: New file.
46870         * debug/ppoll_chk.c: New file.
46871         * include/bits/poll2.h: New file.
46872         * io/bits/poll2.h: New file.
46873
46874         [BZ #1350]
46875         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
46876
46877         * configure.in: static is always set to yes.  Remove.
46878         * config.make.in: Don't set build-static.
46879         * Makeconfig: Remove use of build-static.
46880         * dlfcn/Makefile: Likewise.
46881         * elf/Makefile: Likewise.
46882         * math/Makefile: Likewise.
46883         * misc/Makefile: Likewise.
46884         * nptl/Makefile: Likewise.
46885         * sysdeps/mach/hurd/Makefile: Likewise.
46886
46887         * configure.in: PWD_P is not used anymore.
46888         * config.make.in: Remove PWD_P entry.
46889
46890         * configure.in: Remove last remnants of RANLIB.
46891         No need to check for signed size_t anymore.
46892         Don't set libc_commonpagesize and libc_relro_required here for Alpha
46893         and IA-64.
46894         Remove __builtin_expect test because we require at least gcc 3.4.
46895         * aclocal.m4: Likewise.
46896
46897         * wcsmbs/mbrtoc16.c: Implement using towc function.
46898         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
46899         * wcsmbs/wcsmbsload.c: Likewise.
46900         * iconv/gconv_simple.c: Likewise.
46901         * iconv/gconv_int.h: Likewise.
46902         * iconv/gconv_builtin.h: Likewise.
46903         * iconv/iconv_prog.c: Remove CHAR16 handling.
46904
46905         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
46906
46907         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
46908
46909         * configure.in: Remove --with-elf and --enable-bounded options.
46910         Dont set base_machine for ia64.  More non-ELF conditions removed.
46911         Remove testing and setting of leading underscore information.
46912         * config.make.in (build-bounded): Set to no.
46913         * config.h.in: Remove NO_UNDERSCORES entry.
46914         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
46915         them.
46916         * csu/start.c: Remove !NO_UNDERSCORE code.
46917         * locale/localeinfo.h: Likewise.
46918         * sysdeps/generic/machine-gmon.h: Likewise.
46919         * sysdeps/generic/sysdep.h: Likewise.
46920         * sysdeps/i386/sysdep.h: Likewise.
46921         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
46922         * sysdeps/mach/sysdep.h: Likewise.
46923         * sysdeps/s390/s390-32/sysdep.h: Likewise.
46924         * sysdeps/s390/s390-64/sysdep.h: Likewise.
46925         * sysdeps/sh/sysdep.h: Likewise.
46926         * sysdeps/sparc/sparc32/alloca.S: Likewise.
46927         * sysdeps/unix/i386/sysdep.S: Likewise.
46928         * sysdeps/unix/sparc/start.c: Likewise.
46929         * sysdeps/unix/sparc/sysdep.S: Likewise.
46930         * sysdeps/unix/sparc/sysdep.h: Likewise.
46931         * sysdeps/unix/start.c: Likewise.
46932         * sysdeps/unix/x86_64/sysdep.S: Likewise.
46933         * sysdeps/x86_64/sysdep.h: Likewise.
46934
46935 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
46936
46937         [BZ #13553]
46938         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
46939         for non-gcc.
46940         * argp/argp-fmtstream.h: Use const instead __const.
46941         * argp/argp.h: Likewise.
46942         * assert/assert.h: Likewise.
46943         * bits/fenv.h: Likewise.
46944         * bits/sched.h: Likewise.
46945         * bits/sigset.h: Likewise.
46946         * bits/sigthread.h: Likewise.
46947         * catgets/nl_types.h: Likewise.
46948         * conform/data/pthread.h-data: Likewise.
46949         * crypt/crypt-private.h: Likewise.
46950         * crypt/crypt.h: Likewise.
46951         * crypt/crypt_util.c: Likewise.
46952         * ctype/ctype.h: Likewise.
46953         * debug/execinfo.h: Likewise.
46954         * debug/mbsnrtowcs_chk.c: Likewise.
46955         * debug/mbsrtowcs_chk.c: Likewise.
46956         * debug/wcsnrtombs_chk.c: Likewise.
46957         * debug/wcsrtombs_chk.c: Likewise.
46958         * debug/wcstombs_chk.c: Likewise.
46959         * dirent/dirent.h: Likewise.
46960         * dlfcn/dlfcn.h: Likewise.
46961         * elf/neededtest4.c: Likewise.
46962         * grp/grp.h: Likewise.
46963         * gshadow/gshadow.h: Likewise.
46964         * iconv/gconv.h: Likewise.
46965         * iconv/gconv_int.h: Likewise.
46966         * iconv/gconv_simple.c: Likewise.
46967         * iconv/iconv.h: Likewise.
46968         * iconv/loop.c: Likewise.
46969         * iconv/skeleton.c: Likewise.
46970         * include/aio.h: Likewise.
46971         * include/aliases.h: Likewise.
46972         * include/argz.h: Likewise.
46973         * include/arpa/inet.h: Likewise.
46974         * include/assert.h: Likewise.
46975         * include/dirent.h: Likewise.
46976         * include/dlfcn.h: Likewise.
46977         * include/execinfo.h: Likewise.
46978         * include/fcntl.h: Likewise.
46979         * include/fenv.h: Likewise.
46980         * include/glob.h: Likewise.
46981         * include/grp.h: Likewise.
46982         * include/libintl.h: Likewise.
46983         * include/mntent.h: Likewise.
46984         * include/netdb.h: Likewise.
46985         * include/pwd.h: Likewise.
46986         * include/rpc/netdb.h: Likewise.
46987         * include/sched.h: Likewise.
46988         * include/search.h: Likewise.
46989         * include/shadow.h: Likewise.
46990         * include/signal.h: Likewise.
46991         * include/stdio.h: Likewise.
46992         * include/stdlib.h: Likewise.
46993         * include/string.h: Likewise.
46994         * include/sys/socket.h: Likewise.
46995         * include/sys/stat.h: Likewise.
46996         * include/sys/statfs.h: Likewise.
46997         * include/sys/statvfs.h: Likewise.
46998         * include/sys/syslog.h: Likewise.
46999         * include/sys/time.h: Likewise.
47000         * include/sys/uio.h: Likewise.
47001         * include/time.h: Likewise.
47002         * include/unistd.h: Likewise.
47003         * include/utmp.h: Likewise.
47004         * include/wchar.h: Likewise.
47005         * include/wctype.h: Likewise.
47006         * inet/aliases.h: Likewise.
47007         * inet/arpa/inet.h: Likewise.
47008         * inet/netinet/ether.h: Likewise.
47009         * inet/netinet/in.h: Likewise.
47010         * intl/libintl.h: Likewise.
47011         * io/bits/fcntl2.h: Likewise.
47012         * io/fcntl.h: Likewise.
47013         * io/ftw.h: Likewise.
47014         * io/sys/poll.h: Likewise.
47015         * io/sys/stat.h: Likewise.
47016         * io/sys/statfs.h: Likewise.
47017         * io/sys/statvfs.h: Likewise.
47018         * io/utime.h: Likewise.
47019         * libio/bits/stdio.h: Likewise.
47020         * libio/bits/stdio2.h: Likewise.
47021         * libio/libio.h: Likewise.
47022         * libio/libioP.h: Likewise.
47023         * libio/stdio.h: Likewise.
47024         * locale/lc-ctype.c: Likewise.
47025         * locale/locale.h: Likewise.
47026         * login/utmp.h: Likewise.
47027         * malloc/arena.c: Likewise.
47028         * malloc/malloc.c: Likewise.
47029         * malloc/malloc.h: Likewise.
47030         * malloc/mcheck.c: Likewise.
47031         * malloc/mtrace.c: Likewise.
47032         * math/bits/mathcalls.h: Likewise.
47033         * math/fenv.h: Likewise.
47034         * math/math_private.h: Likewise.
47035         * misc/bits/error.h: Likewise.
47036         * misc/bits/syslog.h: Likewise.
47037         * misc/err.h: Likewise.
47038         * misc/error.h: Likewise.
47039         * misc/fstab.h: Likewise.
47040         * misc/mntent.h: Likewise.
47041         * misc/regexp.h: Likewise.
47042         * misc/search.h: Likewise.
47043         * misc/sgtty.h: Likewise.
47044         * misc/sys/mman.h: Likewise.
47045         * misc/sys/syslog.h: Likewise.
47046         * misc/sys/uio.h: Likewise.
47047         * misc/sys/xattr.h: Likewise.
47048         * misc/ttyent.h: Likewise.
47049         * nis/rpcsvc/ypclnt.h: Likewise.
47050         * nss/nss.h: Likewise.
47051         * posix/bits/unistd.h: Likewise.
47052         * posix/fnmatch.h: Likewise.
47053         * posix/glob.h: Likewise.
47054         * posix/sched.h: Likewise.
47055         * posix/spawn.h: Likewise.
47056         * posix/sys/wait.h: Likewise.
47057         * posix/unistd.h: Likewise.
47058         * posix/wordexp.h: Likewise.
47059         * pwd/pwd.h: Likewise.
47060         * resolv/netdb.h: Likewise.
47061         * resource/sys/resource.h: Likewise.
47062         * rt/aio.h: Likewise.
47063         * rt/bits/mqueue2.h: Likewise.
47064         * rt/mqueue.h: Likewise.
47065         * shadow/shadow.h: Likewise.
47066         * signal/signal.h: Likewise.
47067         * socket/send.c: Likewise.
47068         * socket/sendto.c: Likewise.
47069         * socket/sys/socket.h: Likewise.
47070         * stdio-common/printf.h: Likewise.
47071         * stdlib/bits/stdlib.h: Likewise.
47072         * stdlib/fmtmsg.h: Likewise.
47073         * stdlib/monetary.h: Likewise.
47074         * stdlib/stdlib.h: Likewise.
47075         * stdlib/ucontext.h: Likewise.
47076         * streams/stropts.h: Likewise.
47077         * string/argz.h: Likewise.
47078         * string/bits/string2.h: Likewise.
47079         * string/string.h: Likewise.
47080         * string/strings.h: Likewise.
47081         * sunrpc/rpc/auth.h: Likewise.
47082         * sunrpc/rpc/auth_des.h: Likewise.
47083         * sunrpc/rpc/clnt.h: Likewise.
47084         * sunrpc/rpc/netdb.h: Likewise.
47085         * sunrpc/rpc/pmap_clnt.h: Likewise.
47086         * sunrpc/rpc/xdr.h: Likewise.
47087         * sysdeps/generic/inttypes.h: Likewise.
47088         * sysdeps/generic/net/if.h: Likewise.
47089         * sysdeps/generic/sys/swap.h: Likewise.
47090         * sysdeps/gnu/net/if.h: Likewise.
47091         * sysdeps/gnu/utmpx.h: Likewise.
47092         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
47093         * sysdeps/i386/i486/bits/string.h: Likewise.
47094         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
47095         * sysdeps/s390/bits/string.h: Likewise.
47096         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
47097         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
47098         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
47099         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
47100         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
47101         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
47102         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
47103         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
47104         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
47105         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
47106         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
47107         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
47108         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
47109         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
47110         * sysdeps/unix/sysv/linux/readv.c: Likewise.
47111         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
47112         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
47113         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
47114         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
47115         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
47116         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
47117         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
47118         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
47119         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
47120         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
47121         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
47122         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
47123         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
47124         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
47125         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
47126         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
47127         * sysvipc/sys/ipc.h: Likewise.
47128         * sysvipc/sys/msg.h: Likewise.
47129         * sysvipc/sys/sem.h: Likewise.
47130         * sysvipc/sys/shm.h: Likewise.
47131         * termios/termios.h: Likewise.
47132         * time/sys/time.h: Likewise.
47133         * time/time.h: Likewise.
47134         * wcsmbs/bits/wchar2.h: Likewise.
47135         * wcsmbs/uchar.h: Likewise.
47136         * wcsmbs/wchar.h: Likewise.
47137         * wctype/wctype.h: Likewise.
47138
47139         [BZ #13551]
47140         * Makeconfig: Remove all but ELF support including AIX support.
47141         * Makerules: Likewise.
47142         * config.h.in: Likewise.
47143         * config.make.in: Likewise.
47144         * configure: Likewise.
47145         * configure.in: Likewise.
47146         * csu/Makefile: Likewise.
47147         * csu/version.c: Likewise.
47148         * debug/Makefile: Likewise.
47149         * dlfcn/Makefile: Likewise.
47150         * elf/Makefile: Likewise.
47151         * extra-lib.mk: Likewise.
47152         * iconv/Makefile: Likewise.
47153         * include/libc-symbols.h: Likewise.
47154         * include/shlib-compat.h: Likewise.
47155         * resolv/Makefile: Likewise.
47156         * resolv/res_libc.c: Likewise.
47157         * rt/Makefile: Likewise.
47158         * sysdeps/i386/asm-syntax.h: Likewise.
47159         * sysdeps/i386/sysdep.h: Likewise.
47160         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
47161         * sysdeps/mach/sysdep.h: Likewise.
47162         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
47163         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
47164         * sysdeps/s390/asm-syntax.h: Likewise.
47165         * sysdeps/s390/s390-32/sysdep.h: Likewise.
47166         * sysdeps/s390/s390-64/sysdep.h: Likewise.
47167         * sysdeps/sh/sysdep.h: Likewise.
47168         * sysdeps/unix/sparc/sysdep.h: Likewise.
47169         * sysdeps/wordsize-32/divdi3.c: Likewise.
47170         * sysdeps/x86_64/sysdep.h: Likewise.
47171
47172         * argp/Versions: Remove _argp_unlock_xxx.
47173
47174         [BZ #13559]
47175         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
47176         * abilist/libBrokenLocale.abilist: Likewise.
47177         * abilist/libanl.abilist: Likewise.
47178         * abilist/libc.abilist: Likewise.
47179         * abilist/libcrypt.abilist: Likewise.
47180         * abilist/libdl.abilist: Likewise.
47181         * abilist/libm.abilist: Likewise.
47182         * abilist/libnsl.abilist: Likewise.
47183         * abilist/libpthread.abilist: Likewise.
47184         * abilist/libresolv.abilist: Likewise.
47185         * abilist/librt.abilist: Likewise.
47186         * abilist/libthread_db.abilist: Likewise.
47187         * abilist/libutil.abilist: Likewise.
47188         * abilist/libnss_db.abilist: New file.
47189
47190         * scripts/abilist.awk: Add support for indirect functions.
47191
47192         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
47193
47194         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
47195
47196         * shlib-versions: Remove entries for ports architectures.
47197
47198         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
47199         files in ports.
47200         * elf/stackguard-macros.h: Remove support for IA-64.
47201         * elf/tst-auditmod1.c: Likewise.
47202         * sysdeps/generic/ldsodefs.h: Likewise.
47203
47204         * sysdeps/unix/sysv/linux/configure.in: Ports should define
47205         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
47206         configure files.
47207
47208         [BZ #13552]
47209         * configure.in: Remove --enable-omitfp support.
47210         * FAQ.in: Adjust.
47211         * config.make.in: Likewise.
47212         * Makeconfig: Likewise.
47213         * manual/install.texi: Likewise.
47214
47215         In case anyone cares, the IA-64 architecture could move to ports.
47216         * sysdeps/ia64/*: Removed.
47217         * sysdeps/unix/sysv/linux/ia64/*: Removed.
47218         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
47219
47220         [BZ #13555]
47221         * configure.in: Remove entries for unsupported architectures.
47222
47223         [BZ #13533]
47224         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
47225         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
47226         routines.
47227         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
47228         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
47229         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
47230         fall back to using wcrtomb.
47231         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
47232         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
47233         renaming.
47234         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
47235         * wcsmbs/tst-c16c32-1.c: New file.
47236
47237         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
47238         local variable.
47239
47240         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
47241
47242         * elf/tst-unique3.cc: Add explicit declaration of gets.
47243         * elf/tst-unique3lib.cc: Likewise.
47244         * elf/tst-unique3lib2.cc: Likewise.
47245         * elf/tst-unique4.cc: Likewise.
47246
47247         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
47248
47249 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
47250
47251         [BZ #13566]
47252         * assert/assert.h (static_assert): Don't define for C++.
47253         * libio/stdio.h (gets): Do declare for C++ <= C++11.
47254         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
47255
47256 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
47257
47258         * iconv/loop.c (single loop): Fix assertion in storing of
47259         remaining bytes.
47260
47261         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
47262
47263 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
47264
47265         * posix/getconf.c: Update copyright year.
47266         * nss/getent.c: Likewise.
47267         * nss/makedb.c: Likewise.
47268         * iconv/iconvconfig.c: Likewise.
47269         * iconv/iconv_prog.c: Likewise.
47270         * elf/ldconfig.c: Likewise.
47271         * elf/pldd.c: Likewise.
47272         * elf/sotruss.ksh: Likewise.
47273         * catgets/gencat.c: Likewise.
47274         * csu/version.c: Likewise.
47275         * elf/ldd.bash.in: Likewise.
47276         * elf/sprof.c (print_version): Likewise.
47277         * locale/programs/locale.c: Likewise.
47278         * locale/programs/localedef.c: Likewise.
47279         * login/programs/pt_chown.c: Likewise.
47280         * nscd/nscd.c (print_version): Likewise.
47281         * debug/xtrace.sh: Likewise.
47282         * malloc/memusage.sh: Likewise.
47283         * malloc/mtrace.pl: Likewise.
47284         * debug/catchsegv.sh: Likewise.
47285
47286 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
47287
47288         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
47289         pure attribute.
47290
47291 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
47292
47293         [BZ #13533]
47294         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
47295         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
47296         transformations.
47297         * iconv/gconv_int.h: Likewise.
47298         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
47299         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
47300         from libc for GLIBC_2.16.
47301         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
47302         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
47303         * wcsmbs/uchar.h: Really define mbstate_t.
47304         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
47305         * wcsmbs/c16rtomb.c: New file.
47306         * wcsmbs/mbrtoc16.c: New file.
47307         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
47308         for C/POSIX locale.
47309         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
47310         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
47311
47312         * wcsmbs/wchar.h: Add missing __restrict.
47313
47314 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
47315
47316         [BZ #13532]
47317         * time/Makefile (routines): Add timespec_get.
47318         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
47319         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
47320         timespec for ISO C11.
47321         * time/timespec_get.c: New file.
47322         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
47323         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
47324
47325         [BZ #13531]
47326         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
47327         * stdlib/stdlib.h: Declare aligned_alloc.
47328         * Versions.def: Add GLIBC_2.16 for libc.
47329         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
47330
47331         [BZ 13527]
47332         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
47333         ISO C11.
47334
47335         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
47336         code.
47337
47338         [BZ #13528]
47339         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
47340
47341         [BZ #13529]
47342         * assert/assert.h (static_assert): Define.
47343
47344         * version.h: Update for 2.16 development version.
47345
47346         [BZ #13526]
47347         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
47348         _ISOC11_SOURCE.
47349
47350         * version.h (RELEASE): Bump for 2.15 release.
47351         * include/features.h (__GLIBC_MINOR__): Bump to 15.
47352
47353         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
47354         Patch by Marek Polacek <mpolacek@redhat.com>.
47355
47356         * bits/byteswap.h: Protect long long constants with __extension__.
47357         * sysdeps/i386/bits/byteswap.h: Likewise.
47358         * sysdeps/ia64/bits/byteswap.h: Likewise.
47359         * sysdeps/s390/bits/byteswap.h: Likewise.
47360         * sysdeps/x86_64/bits/byteswap.h: Likewise.
47361
47362 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
47363
47364         [BZ #13540]
47365         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
47366         destination buffer.
47367         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
47368
47369 2011-12-23  Marek Polacek  <polacek@redhat.com>
47370
47371         * elf/dl-addr.c (determine_info): Add inline keyword.
47372         * elf/tst-auditmod4b.c (check_avx): Likewise.
47373         * elf/tst-auditmod6b.c (check_avx): Likewise.
47374         * elf/tst-auditmod6c.c (check_avx): Likewise.
47375         * elf/tst-auditmod7b.c (check_avx): Likewise.
47376
47377 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
47378
47379         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
47380         !__SSE_MATH__.
47381
47382 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
47383
47384         [BZ #13540]
47385         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
47386         processing for last bytes.
47387
47388 2011-08-06  Bruno Haible  <bruno@clisp.org>
47389
47390         [BZ #13061]
47391         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
47392         U+0385, not to U+1FEE.
47393
47394         [BZ #13062]
47395         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
47396         entry for U+00A5 U+0301.
47397
47398 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
47399
47400         [BZ #13166]
47401         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
47402         buffer for the output is too small.
47403
47404         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
47405         optimization.
47406
47407         [BZ #13185]
47408         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
47409         SSE flags if possible.
47410
47411 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
47412
47413         [BZ #13540]
47414         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
47415         processing for last bytes.
47416
47417 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
47418
47419         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
47420         (syscall-list-default-options, syscall-list-default-condition)
47421         (syscall-list-includes): Define.
47422         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
47423         list of ABIs and options and #if conditions for each ABI.  Do not
47424         handle common syscalls between ABIs specially.
47425         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
47426         Remove.
47427         (syscall-list-variants, syscall-list-32bit-options)
47428         (syscall-list-32bit-condition, syscall-list-64bit-options)
47429         (syscall-list-64bit-condition): Define.
47430         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
47431         (syscall-list-variants, syscall-list-32bit-options)
47432         (syscall-list-32bit-condition, syscall-list-64bit-options)
47433         (syscall-list-64bit-condition): Define.
47434         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
47435         Remove.
47436         (syscall-list-variants, syscall-list-32bit-options)
47437         (syscall-list-32bit-condition, syscall-list-64bit-options)
47438         (syscall-list-64bit-condition): Define.
47439         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
47440         Remove.
47441         (syscall-list-variants, syscall-list-32bit-options)
47442         (syscall-list-32bit-condition, syscall-list-64bit-options)
47443         (syscall-list-64bit-condition): Define.
47444
47445 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
47446
47447         * locale/iso-639.def: Add brx entry.
47448
47449         [BZ #13328]
47450         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
47451         Proposed by Mariusz_Cukr <marcukr@op.pl>.
47452
47453         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
47454         __feraiseexcept_renamed.
47455
47456 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
47457
47458         [BZ #13538]
47459         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
47460         EPOLLET with unsigned values.
47461         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
47462         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
47463
47464         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
47465         to large cancellation.
47466         * math/s_cacoshf.c: Likewise.
47467         * math/s_cacoshl.c: Likewise.
47468
47469 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
47470
47471         [BZ #13305]
47472         [BZ #12786]
47473         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
47474         * math/s_cacoshf.c: Likewise.
47475         * math/s_cacoshl.c: Likewise.
47476
47477 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
47478
47479         [BZ #13439]
47480         * iconv/gconv.h: Define __GCONV_SWAP.
47481         * iconvdata/unicode.c: The swap bit must be stored in __flags.
47482         * iconvdata/utf-16.c: Likewise.
47483         * iconvdata/utf-32.c: Likewise.
47484
47485 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
47486
47487         [BZ #13524]
47488         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
47489         numerator after shifting it by one limb.
47490
47491 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
47492
47493         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
47494         under [__USE_EXTERN_INLINES].
47495
47496 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
47497
47498         [BZ #13446]
47499         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
47500
47501 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47502
47503         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
47504         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
47505         optimized code.
47506         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
47507         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
47508         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
47509         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
47510         for strncasecmp/strncasecmp_l compilation.
47511         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
47512         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
47513
47514 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
47515
47516         [BZ #13484]
47517         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
47518         of __asm__.
47519
47520 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
47521
47522         [BZ #13506]
47523         * time/tzfile.c (__tzfile_read): Check values from file header.
47524
47525 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
47526
47527         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
47528         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
47529         * powerpc/powerpc32/dl-start.S: Likewise.
47530         * powerpc/powerpc32/elf/start.S: Likewise.
47531         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
47532         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
47533         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
47534         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
47535         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
47536         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
47537         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
47538         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
47539         * powerpc/powerpc32/fpu/s_round.S: Likewise.
47540         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
47541         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
47542         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
47543         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
47544         * powerpc/powerpc32/memset.S: Likewise.
47545         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
47546         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
47547         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
47548         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
47549         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
47550         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
47551         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
47552         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
47553         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
47554         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
47555         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
47556         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
47557         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
47558
47559 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47560
47561         * math/libm-test.inc: Added more nearbyint tests.
47562         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
47563         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
47564         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
47565         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
47566
47567 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
47568
47569         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
47570         FD_CLOEXEC.
47571
47572 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
47573
47574         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
47575         Add wcscpy-ssse3 wcscpy-c.
47576         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
47577         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
47578         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
47579         * sysdeps/x86_64/wcschr.S: New file.
47580         * sysdeps/x86_64/wcsrchr.S: New file.
47581         * string/test-strcmp.c: Remove checking of wcscmp function for
47582         wrong alignments.
47583         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
47584         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
47585         wcsrchr-sse2 wcsrchr-c.
47586         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
47587         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
47588         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
47589         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
47590         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
47591         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
47592         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
47593         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
47594         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
47595         * wcsmbc/wcschr.c (WCSCHR): New macro.
47596
47597 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
47598
47599         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
47600         * wcsmbs/test-wcsrchr.c: New file.
47601         * string/test-strrchr.c: Add wcsrchr support.
47602         (WIDE): New macro.
47603         * wcsmbs/test-wcscpy.c: New file.
47604         * string/test-strcpy.c: Add wcscpy support.
47605         (WIDE): New macro.
47606
47607 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
47608
47609         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
47610         the inner loop.
47611
47612 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
47613
47614         [BZ #13472]
47615         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
47616
47617 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
47618
47619         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
47620         Minor optimizations.
47621
47622         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
47623         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
47624         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
47625
47626 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
47627
47628         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
47629         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
47630         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
47631         for gcc to avoid warnings.
47632         * inet/Makefile (tests): Add tst-checks.
47633         * inet/tst-checks.c: New file.
47634
47635         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
47636         warning.
47637
47638         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
47639         __wmemcmp_sse2.
47640
47641         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
47642         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
47643
47644         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
47645
47646 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
47647
47648         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
47649         problem.
47650
47651         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
47652
47653 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
47654
47655         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
47656         conditional on GCC version.
47657         (__arch_compare_and_exchange_val_8_acq)
47658         (__arch_compare_and_exchange_val_16_acq)
47659         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
47660         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
47661         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
47662
47663 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
47664
47665         * sysdeps/sh/backtrace.c: New file.
47666
47667 2011-12-02  Andreas Schwab  <schwab@redhat.com>
47668
47669         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
47670         parenthesis.
47671
47672 2011-12-01  Andreas Schwab  <schwab@redhat.com>
47673
47674         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
47675         falling back to utime.
47676
47677 2011-11-30  Andreas Schwab  <schwab@redhat.com>
47678
47679         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
47680         expectations for float.
47681
47682 2011-11-29  Andreas Schwab  <schwab@redhat.com>
47683
47684         * locale/weight.h (findidx): Add parameter len.
47685         * locale/weightwc.h (findidx): Likewise.
47686         * posix/fnmatch_loop.c (FCT): Adjust caller.
47687         * posix/regcomp.c (build_equiv_class): Likewise.
47688         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
47689         * posix/regexec.c (check_node_accept_bytes): Likewise.
47690         * string/strcoll_l.c (STRCOLL): Likewise.
47691         * string/strxfrm_l.c (STRXFRM): Likewise.
47692
47693 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
47694
47695         * Makefile.in: Remove CVSOPT handling.
47696         * configure.in: Remove use of AC_REVISION.
47697         * iconvdata/Makefile (distribute): No need to filter out CVS.
47698         * scripts/list-sources.sh: Remove CVS, subversion and monotone
47699         handling.
47700
47701 2011-11-16  Andreas Schwab  <schwab@redhat.com>
47702
47703         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
47704         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
47705         [USE_AS_STRNCASECMP_L]: Likewise.
47706         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
47707         NO_TLS_DIRECT_SEG_REFS.
47708         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
47709         Fix argument offsets for non-PIC.
47710         [USE_AS_STRNCASECMP_L]: Likewise.
47711         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
47712         NO_TLS_DIRECT_SEG_REFS.
47713
47714 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
47715
47716         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
47717         O_CLOEXEC.
47718         * locale/loadlocale.c (_nl_load_locale): Likewise.
47719
47720 2011-11-15  Andreas Schwab  <schwab@redhat.com>
47721
47722         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
47723         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
47724         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
47725         (SYSCALL_GETTIME): Set errno on error.
47726
47727         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
47728         count references to noai6ai_cached.
47729
47730 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
47731
47732         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
47733
47734         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
47735         FD_CLOEXEC for /proc/self/maps.
47736
47737         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
47738         FD_CLOEXEC for /proc/meminfo.
47739
47740         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
47741         gai.conf.
47742
47743         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
47744         FD_CLOEXEC for given file.
47745
47746         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
47747
47748         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
47749         FD_CLOEXEC for /etc/hosts.
47750         (_gethtent): Likewise.
47751
47752         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
47753
47754         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
47755         cancellation and set FD_CLOEXEC for /etc/netgroup.
47756
47757         * nss/nss_files/files-key.c (search): Don't allow cancellation when
47758         reading /etc/publickey.
47759
47760         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
47761         allow cancellation when reading /etc/group.
47762
47763         * nss/nss_files/files-alias.c (internal_setent): Don't allow
47764         cancellation.
47765         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
47766
47767         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
47768         when using data file.
47769
47770         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
47771
47772         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
47773         (write_nis_obj): Use "c" and "e" in fopen.
47774
47775         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
47776
47777         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
47778
47779         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
47780
47781         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
47782
47783         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
47784         locale.alias.
47785
47786         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
47787
47788         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
47789
47790         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
47791
47792         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
47793         file parsing and set FD_CLOEXEC.
47794
47795 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
47796
47797         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
47798
47799 2011-11-14  Andreas Schwab  <schwab@redhat.com>
47800
47801         * malloc/arena.c (arena_get2): Don't call reused_arena when
47802         _int_new_arena failed.
47803
47804 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
47805
47806         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
47807         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
47808         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
47809         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
47810         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
47811         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
47812         to compile strcasecmp and strncasecmp.
47813         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
47814         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
47815
47816         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
47817
47818 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
47819
47820         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
47821         locale-defines.sym to gen-as-const-headers.
47822         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
47823         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
47824         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
47825         to compile strcasecmp and strncasecmp.
47826         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
47827         strcasecmp_l and strncasecmp_l.
47828         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
47829         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
47830         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
47831         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
47832         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
47833         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
47834         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
47835         * sysdeps/i386/i686/multiarch/strncase.S: New file.
47836         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
47837         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
47838         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
47839
47840 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
47841
47842         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
47843         result of SYSDEP_GETTIME_CPU to retval.
47844         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
47845         parameter list to macro.  Remove trailing semicolon.  Adjust users.
47846
47847         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
47848         variable.
47849
47850         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
47851         mantissa words.
47852         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
47853
47854         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
47855         from unused variable.
47856
47857         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
47858         DWARF definitions.
47859         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
47860         for assembling.
47861
47862         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
47863         over namespaces.
47864
47865         * sunrpc/rpc_prot.c (rejected): Fix case value.
47866
47867         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
47868         unsigned long long int to avoid warnings in shift.
47869
47870         * posix/regex_internal.c (re_string_reconstruct): Actually use result
47871         of use of trans.
47872         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
47873         variable tmp.
47874
47875         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
47876         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
47877         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
47878
47879         * nis/nis_table.c (nis_list): Use variable of correct type for
47880         result of __follow_path call.
47881
47882 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
47883
47884         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
47885         of math functions ceil, trunc, floor, round, and sqrt, when
47886         avaliable on the platform.
47887         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
47888         name clash.
47889         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
47890         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
47891         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
47892
47893 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
47894
47895         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
47896         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
47897
47898 2011-11-11  Roland McGrath  <roland@hack.frob.com>
47899
47900         * include/unistd.h: Fix __readlink return type.
47901         Reported by Chris Metcalf <cmetcalf@tilera.com>.
47902
47903 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
47904
47905         * stdlib/ucontext.h: Undo last change for makecontext.
47906
47907 2011-11-11  Andreas Schwab  <schwab@redhat.com>
47908
47909         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
47910
47911         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
47912         * setjmp/setjmp.h: Mark functions as non-leaf.
47913         * setjmp/bits/setjmp2.h: Likewise.
47914         * stdlib/ucontext.h: Likewise.
47915
47916 2011-11-10  Andreas Schwab  <schwab@redhat.com>
47917
47918         * malloc/arena.c (_int_new_arena): Don't increment narenas.
47919         (reused_arena): Don't check arena limit.
47920         (arena_get2): Atomically check arena limit.
47921
47922 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
47923
47924         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
47925         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
47926
47927         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
47928         instructions.
47929
47930 2011-11-07  Andreas Schwab  <schwab@redhat.com>
47931
47932         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
47933         handler when locking.
47934
47935         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
47936         Fix size of allocated buffer.
47937
47938 2011-11-04  Andreas Schwab  <schwab@redhat.com>
47939
47940         [BZ #10103]
47941         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
47942         declarations for long double functions.
47943         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
47944
47945         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
47946
47947 2011-11-03  Andreas Schwab  <schwab@redhat.com>
47948
47949         * nscd/nscd.c (main): Don't start AVC thread until credentials are
47950         installed.
47951
47952         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
47953         is disabled.
47954
47955 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47956
47957         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
47958
47959 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
47960
47961         * include/alloca.h (stackinfo_alloca_round): Define.
47962         (extend_alloca): Use it.
47963         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
47964         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
47965         here.
47966
47967         * scripts/check-local-headers.sh: Ignore libaudit.h.
47968
47969         * nscd/Makefile (extra-objs): Make recursively expanded.
47970
47971 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
47972
47973         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
47974         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
47975
47976         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
47977         * posix/tst-rfc3484-2.c: Likewise.
47978         * posix/tst-rfc3484-3.c: Likewise.
47979
47980         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
47981         process_vm_writev.
47982         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
47983         process_vm_writev.
47984         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
47985         process_vm_writev from libc using GLIBC_2.15 version.
47986
47987         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
47988
47989 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
47990
47991         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
47992         stack usage.
47993
47994 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
47995
47996         [BZ #13367]
47997         * nss/getent.c (initgroups_keys): Show error message in case no group
47998         names are given.
47999
48000         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
48001         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
48002         __bump_nl_timestamp.
48003         * nscd/connections (nscd_init): When host database is served open
48004         netlink socket and request notification about configuration changes.
48005         (main_loop_poll): Track netlink file descriptor and bump timestamp
48006         in case data becomes available.
48007         (main_loop_epoll): Likewise.
48008         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
48009         (database_pers_head): Add extra_data fileds.
48010         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
48011         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
48012         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
48013         Adjust caller.
48014         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
48015         in6ai data, call __free_in6ai.
48016         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
48017         Add -DHAVE_NETLINK.
48018         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
48019         interface information.  Reuse previous data if netlink timestamp
48020         is not changed.
48021         (__bump_nl_timestamp): New function.
48022         (__free_in6ai): New function.
48023
48024 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
48025
48026         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
48027         close_not_cancel_no_status here.
48028         (__check_pf): Reorganize code a bit to not call close twice if OOM.
48029
48030 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
48031
48032         [BZ #13276]
48033         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
48034         return value.
48035
48036         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
48037         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
48038         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
48039
48040 2011-07-03  Andreas Jaeger  <aj@suse.de>
48041
48042         [BZ #10709]
48043         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
48044         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
48045         * math/libm-test.inc (sin_test): Add test case.
48046
48047 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
48048
48049         [BZ #13337]
48050         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
48051         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
48052
48053         * elf/chroot_canon.c (chroot_canon): Cleanups.
48054
48055         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
48056
48057         [BZ #13335]
48058         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
48059         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
48060
48061         * string/test-strchr.c: Make usable for strchrnul testing.
48062         * string/test-strchrnul.c: New file.
48063         * string/Makefile (strop-tests): Add strchrnul.
48064
48065         * po/it.po: Update from translation team.
48066         * po/es.po: Likewise.
48067
48068 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
48069
48070         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
48071         the three constants needed as parameters.  Drop the others.
48072         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
48073         __m128i_strloadu_tolower.
48074         Create and initialize variable zero and use it in all the places
48075         where _mm_setzero_si128 was used.
48076
48077         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
48078         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
48079         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
48080         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
48081         anymore.
48082         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
48083         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
48084         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
48085         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
48086         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
48087         __mpranred, __mptan.
48088         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
48089         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
48090         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
48091         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
48092         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
48093         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
48094         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
48095         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
48096         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
48097
48098 2011-10-28  Andreas Schwab  <schwab@redhat.com>
48099
48100         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
48101         redefine if SHARED.
48102         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
48103
48104         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
48105         wide char related routines to wcsmbs subdir.
48106
48107 2011-10-27  Andreas Schwab  <schwab@redhat.com>
48108
48109         [BZ #13344]
48110         * misc/sys/cdefs.h (__THROWNL): Define.
48111         * posix/unistd.h: Use __THREADNL instead of __THREAD
48112         for memory synchronization functions.
48113
48114 2011-10-26  Roland McGrath  <roland@hack.frob.com>
48115
48116         [BZ #13349]
48117         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
48118         doesn't exist.
48119         * manual/stdio.texi (Obstack Streams): Node removed.
48120
48121 2011-10-26  Andreas Schwab  <schwab@redhat.com>
48122
48123         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
48124         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
48125         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
48126
48127         * math/math_private.h (math_force_eval): Allow non-addressable
48128         arguments.
48129         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
48130
48131 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
48132
48133         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
48134         file is not needed.
48135
48136         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
48137         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
48138         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
48139         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
48140         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
48141         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
48142         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
48143         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
48144         Add AVX variants.
48145         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
48146         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
48147         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
48148         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
48149         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
48150         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
48151         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
48152         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
48153         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
48154         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
48155         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
48156         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
48157         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
48158         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
48159         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
48160         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
48161         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
48162         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
48163         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
48164
48165         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
48166         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
48167
48168         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
48169         place.  Use VEX encoding when compiling for AVX.
48170
48171 2011-10-25  Andreas Schwab  <schwab@redhat.com>
48172
48173         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
48174         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
48175
48176         * string/test-strchr.c (do_test): Don't generate NUL bytes.
48177
48178 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
48179
48180         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
48181         useless if() expression.
48182         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
48183         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
48184         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
48185         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
48186         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
48187         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
48188         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
48189         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48190         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
48191         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
48192         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
48193         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
48194         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
48195         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
48196         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
48197         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
48198         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
48199         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
48200         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
48201
48202         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
48203
48204 2011-10-25  Andreas Schwab  <schwab@redhat.com>
48205
48206         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
48207         condition.
48208         * elf/dl-fini.c (_dl_sort_fini): Likewise.
48209
48210 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
48211
48212         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
48213         .text section.  Avoid duplicate constants.
48214         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
48215         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48216         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
48217         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48218         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
48219         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48220         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
48221         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48222         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
48223         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
48224         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
48225         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
48226         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
48227         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
48228         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
48229         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
48230         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
48231         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
48232         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
48233         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48234         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
48235         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
48236         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
48237         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
48238         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
48239         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
48240         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
48241         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
48242         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
48243         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
48244         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
48245         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
48246         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
48247         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
48248         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
48249         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
48250         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
48251         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
48252         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
48253         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
48254         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
48255         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
48256         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
48257         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
48258         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
48259
48260 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
48261
48262         * sysdeps/x86_64/dla.h: Move to ...
48263         * sysdeps/x86_64/fpu/dla.h: ...here.
48264         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
48265         situations.  Use __builtin_fma only for gcc 4.6 and up.
48266
48267         * config.make.in: Add have-mfma4 entry.
48268         * configure.in: Substitute libc_cv_cc_fma4.
48269         * math/Makefile (dbl-only-routines): Add sincostab.
48270         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
48271         Use __sincostab not sincos.
48272         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
48273         name is a macro.
48274         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
48275         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48276         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
48277         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
48278         using __copysign.
48279         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
48280         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
48281         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
48282         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
48283         and __inv.
48284         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
48285         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
48286         __copysign.
48287         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
48288         define aliases when function name is a macro.
48289         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
48290         sysdeps/ieee754/dbl-64/sincos.tbl.
48291         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
48292         fma4-enabled routines.
48293         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
48294         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
48295         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
48296         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
48297         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
48298         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
48299         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
48300         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
48301         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
48302         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
48303         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
48304         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
48305         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
48306         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
48307         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
48308         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
48309         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
48310         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
48311         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
48312         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
48313         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
48314         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
48315         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
48316         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
48317         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
48318         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
48319         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
48320         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
48321         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
48322         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
48323
48324         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
48325         rename.
48326         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48327         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48328         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48329         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48330         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
48331         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48332         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48333         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48334
48335 2011-10-24  Andreas Schwab  <schwab@redhat.com>
48336
48337         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
48338
48339 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
48340
48341         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
48342
48343         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
48344         prediction.
48345         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
48346
48347         * string/strnlen.c: Don't define STRNLEN, reverse logic.
48348         Remove unused variable magic_bits.
48349         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
48350
48351         * string/strnlen.c: Define and use STRNLEN macro.
48352         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
48353         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
48354         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
48355         * wcsmbs/wcslen.c: Define and use WCSLEN.
48356         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
48357         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
48358         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
48359         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
48360         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
48361         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
48362         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
48363
48364 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
48365
48366         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
48367         strnlen-sse2-no-bsf.
48368         Rename strlen-no-bsf to strlen-sse2-no-bsf.
48369         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
48370         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
48371         Add strnlen support.
48372         (USE_AS_STRNLEN): New macro.
48373         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
48374         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
48375         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
48376         * sysdeps/x86_64/wcslen.S: New file.
48377
48378 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
48379
48380         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
48381         XMM-moves are used for copying on small sizes.
48382
48383 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
48384
48385         * wcsmbs/Makefile (strop-tests): Add wcschr.
48386         * wcsmbs/test-wcschr.c: New file.
48387         * string/test-strchr.c: Update.
48388         Add wcschr support.
48389         (WIDE): New macro.
48390
48391 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
48392
48393         * wcsmbs/Makefile (strop-tests): Add wcslen.
48394         * wcsmbs/test-wcslen.c: New file.
48395         * string/test-strlen.c: Update.
48396         Add wcslen support.
48397         (WIDE): New macro.
48398
48399 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
48400
48401         * po/it.po: Update from translation team.
48402
48403 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
48404
48405         * sysdeps/x86_64/wcscmp.S: Update.
48406         Fix wrong comparison semantics.
48407         wcscmp shall use signed comparison not unsigned.
48408         Don't use substraction to avoid overflow bug.
48409         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
48410         * wcsmbc/wcscmp.c: Likewise.
48411         * string/test-strcmp.c: Likewise.
48412         Add new tests to check cases with negative values.
48413
48414 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
48415
48416         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
48417         * sysdeps/x86_64/dla.h: ...here.  New file.
48418         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
48419         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48420         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48421         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48422         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
48423         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
48424         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48425         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48426         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48427
48428 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
48429
48430         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
48431         __ynl_finite aliases.
48432
48433 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
48434
48435         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
48436
48437         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
48438         define DLA_FMA.
48439         [DLA_FMA] (EMULV): Use DLA_FMA.
48440         [DLA_FMA] (MUL12): Use EMULV.
48441         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
48442         that are not needed.
48443         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
48444         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48445         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48446         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
48447         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48448         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
48449         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
48450
48451 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
48452
48453         * math/s_nan.c: Undef __nan.
48454         * math/s_nanf.c: Undef __nanf.
48455         * math/s_nanl.c: Undef __nanl.
48456         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
48457         "math_private.h".
48458
48459 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
48460
48461         * math/s_catan.c: Add branch predictions.
48462         * math/s_catanf.c: Likewise.
48463         * math/s_catanh.c: Likewise.
48464         * math/s_catanhf.c: Likewise.
48465         * math/s_catanhl.c: Likewise.
48466         * math/s_catanl.c: Likewise.
48467         * math/s_cexp.c: Likewise.
48468         * math/s_cexpf.c: Likewise.
48469         * math/s_cexpl.c: Likewise.
48470         * math/s_clog.c: Likewise.
48471         * math/s_clog10.c: Likewise.
48472         * math/s_clog10f.c: Likewise.
48473         * math/s_clog10l.c: Likewise.
48474         * math/s_clogf.c: Likewise.
48475         * math/s_clogl.c: Likewise.
48476         * math/s_csqrt.c: Likewise.
48477         * math/s_csqrtf.c: Likewise.
48478         * math/s_csqrtl.c: Likewise.
48479         * math/s_ctanf.c: Likewise.
48480         * math/s_ctanh.c: Likewise.
48481         * math/s_ctanhf.c: Likewise.
48482         * math/s_ctanhl.c: Likewise.
48483         * math/s_ctanl.c: Likewise.
48484
48485         * math/math_private.h: Define __nan, __nanf, __nanl.
48486         * math/s_cacosh.c: Include <math_private.h>.
48487         * math/s_cacoshl.c: Likewise.
48488         * math/s_casinh.c: Likewise.
48489         * math/s_casinhf.c: Likewise.
48490         * math/s_casinhl.c: Likewise.
48491         * math/s_ccos.c: Rely entire on ccosh.
48492         * math/s_ccosf.c: Rely entire on ccoshf.
48493         * math/s_ccosl.c: Rely entirely on ccoshl.
48494         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
48495         Remove tests for FE_INVALID.
48496         * math/s_ccoshf.c: Likewise.
48497         * math/s_ccoshl.c: Likewise.
48498         * math/s_csin.c: Likewise.
48499         * math/s_csinf.c: Likewise.
48500         * math/s_csinh.c Likewise.
48501         * math/s_csinhf.c: Likewise.
48502         * math/s_csinhl.c: Likewise.
48503         * math/s_csinl.c: Likewise.
48504         * math/s_ctan.c: Likewise.
48505         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
48506         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
48507         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
48508
48509 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
48510
48511         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
48512         compilation problems.
48513
48514         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
48515         __builtin_expect.
48516
48517 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
48518
48519         * sysdeps/i386/configure.in: Test for -mfma4 option.
48520         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
48521         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
48522         COMMON_CPUID_INDEX_80000001.
48523         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
48524         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
48525         use it if FMA3 is not supported.
48526         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
48527
48528         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
48529         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
48530
48531 2011-10-20  Andreas Schwab  <schwab@redhat.com>
48532
48533         [BZ #12892]
48534         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
48535         it would create a cycle with a link time dependency.
48536
48537 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
48538
48539         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
48540         instruction.
48541         * string/Makefile (strop-tests): Add rawmemchr.
48542         * string/test-rawmemchr.c: New file.
48543
48544         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
48545         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
48546         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
48547         when compiling str{,n}casecmp and when AVX is available.  Hook up
48548         new optimized code in initializers.
48549
48550 2011-10-19  Andreas Schwab  <schwab@redhat.com>
48551
48552         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
48553         __feraiseexcept instead of feraiseexcept.
48554
48555 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
48556
48557         * math/math_private.h: Define defaults for libc_fetestexcept and
48558         libc_feupdateenv.
48559         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
48560         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
48561         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
48562         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
48563         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
48564         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
48565         libc_fetestexcept and libc_feupdateenv.
48566
48567         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
48568         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
48569         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
48570         * sysdeps/x86_64/fpu/math_private.h: Define special version of
48571         libc_feholdexcept_setround.
48572
48573         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
48574         Add s_nearbyint-c and s_nearbyintf-c.
48575         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
48576         nearbyintf inlines.
48577         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
48578         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
48579         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
48580         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
48581
48582         * math/math_private.h: Define defaults for libc_fegetround,
48583         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
48584         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
48585         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
48586         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
48587         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
48588         standard functions.
48589         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
48590         Remove comments and hacks for old compiler versions.
48591         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
48592         libc_fegetround, libc_fesetround, libc_feholdexcept, and
48593         libc_feholdexceptl.
48594
48595 2011-10-18  Andreas Schwab  <schwab@redhat.com>
48596
48597         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
48598         (__feraiseexcept_renamed): Add __NTH.
48599         (feraiseexcept): Add __NTH.  Rename local variables to fix
48600         namespace violations.
48601
48602 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
48603
48604         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
48605
48606         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
48607
48608         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
48609         recently added interfaces.
48610         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
48611
48612         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
48613         about macro parameter expansion.
48614
48615         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
48616         __NO_MATH_INLINES is defined.  Cleanups.
48617
48618         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
48619         and __floorf is target has SSE4.1.
48620         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
48621         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
48622         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
48623         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
48624
48625         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
48626         name.
48627         (floorf): Likewise.
48628
48629         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
48630
48631 2011-10-17  Andreas Schwab  <schwab@redhat.com>
48632
48633         * misc/sys/cdefs.h: Fix last change.
48634
48635         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
48636         database lookup.
48637
48638 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
48639
48640         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
48641
48642         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
48643         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
48644         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
48645         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
48646         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
48647         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
48648         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
48649         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
48650         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
48651         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
48652         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
48653         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
48654         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
48655         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
48656         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
48657         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
48658         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
48659         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
48660         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
48661         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
48662         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
48663         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
48664
48665         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
48666         ceil, ceilf, floor, floorf.
48667
48668         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
48669         Perform IRELATIVE relocations last.
48670
48671         * elf/do-rel.h: Add another parameter nrelative, replacing the
48672         local variable with the same name.  Change name of the function
48673         to end in Rel or Rela (uppercase).
48674         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
48675         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
48676         elf_dynamic_do_##reloc function.
48677
48678 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
48679
48680         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
48681         is sufficient, at least on modern CPUs.
48682
48683         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
48684
48685         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
48686         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
48687
48688         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
48689         __expl_finite.
48690         * math/bits/math-finite.h: Add entries for exp.
48691         * math/e_expl.c: Add __*_finite alias.
48692         * sysdeps/i386/fpu/e_exp.S: Likewise.
48693         * sysdeps/i386/fpu/e_expf.S: Likewise.
48694         * sysdeps/i386/fpu/e_expl.c: Likewise.
48695         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
48696         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
48697         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
48698         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
48699         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
48700         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
48701         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
48702
48703         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
48704         is sufficient, at least on modern CPUs.
48705
48706         * ctype/ctype-info.c (__ctype_init): Define.
48707         * include/ctype.h (__ctype_init): Declare.
48708         (__ctype_b_loc): The variable is always initialized.
48709         (__ctype_toupper_loc): Likewise.
48710         (__ctype_tolower_loc): Likewise.
48711         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
48712         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
48713
48714 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
48715
48716         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
48717
48718         * configure.in: Also look in $cxxmachine/include for C++ system
48719         headers.
48720
48721 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
48722
48723         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
48724         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
48725         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
48726         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
48727         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
48728         (USE_AS_WMEMCMP): New macro.
48729         Fixing indents.
48730         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
48731         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
48732         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
48733         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
48734         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
48735         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
48736         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
48737         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
48738         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
48739         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
48740         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
48741         (USE_AS_WMEMCMP): New macro.
48742         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
48743         * sysdeps/string/test-memcmp.c: Update.
48744         Fix simple_wmemcmp.
48745         Add new tests.
48746         * wcsmbs/wmemcmp.c: Update.
48747         (WMEMCMP): New macro.
48748         Fix overflow bug.
48749
48750 2011-10-12  Andreas Jaeger  <aj@suse.de>
48751
48752         [BZ #13268]
48753         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
48754
48755 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
48756
48757         * libio/iofwide.c (do_length): Avoid warning.
48758
48759         * ctype/ctype.h (__isctype_f): Add missing __THROW.
48760
48761 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
48762
48763         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
48764
48765         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
48766         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
48767         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
48768         * sysdeps/i386/i686/fpu/e_log.S: New file.
48769         * sysdeps/i386/i686/fpu/e_logf.S: New file.
48770         * sysdeps/i386/i686/fpu/e_logl.S: New file.
48771
48772         * ctype/ctype.h: Add support for inlined isXXX functions when
48773         compiling C++ code.
48774
48775 2011-10-14  Andreas Schwab  <schwab@redhat.com>
48776
48777         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
48778
48779         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
48780
48781 2011-10-13  Roland McGrath  <roland@hack.frob.com>
48782
48783         [BZ #13291]
48784         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
48785
48786 2011-10-13  Andreas Schwab  <schwab@redhat.com>
48787
48788         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
48789         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
48790         feraiseexcept.
48791
48792         * sysdeps/x86_64/memrchr.S: Check for zero size.
48793
48794         * string/stratcliff.c: Add memrchr tests.
48795
48796 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
48797
48798         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
48799         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
48800         rawmemchr-sse2 rawmemchr-sse2-bsf.
48801         * sysdeps/i386/i686/multiarch/memchr.S: New file.
48802         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
48803         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
48804         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
48805         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
48806         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
48807         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
48808         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
48809         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
48810         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
48811         * string/memrchr.c (MEMRCHR): New macro.
48812
48813 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
48814
48815         Add integration with gcc's -ffinite-math-only and optimize wrapper
48816         functions in libm.
48817         * Versions.def: Define GLIBC_2.15 version for libm.
48818         * math/Makefile (headers): Add bits/math-finite.h.
48819         * math/bits/math-finite.h: New file.
48820         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
48821         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
48822         * math/e_acoshl.c: Add __*_finite alias.
48823         * math/e_acosl.c: Likewise.
48824         * math/e_asinl.c: Likewise.
48825         * math/e_atan2l.c: Likewise.
48826         * math/e_atanhl.c: Likewise.
48827         * math/e_coshl.c: Likewise.
48828         * math/e_exp10.c: Likewise.
48829         * math/e_exp10f.c: Likewise.
48830         * math/e_exp10l.c: Likewise.
48831         * math/e_exp2l.c: Likewise.
48832         * math/e_fmodl.c: Likewise.
48833         * math/e_gammal_r.c: Likewise.
48834         * math/e_hypotl.c: Likewise.
48835         * math/e_j0l.c: Likewise.
48836         * math/e_j1l.c: Likewise.
48837         * math/e_jnl.c: Likewise.
48838         * math/e_lgammal_r.c: Likewise.
48839         * math/e_log10l.c: Likewise.
48840         * math/e_log2l.c: Likewise.
48841         * math/e_logl.c: Likewise.
48842         * math/e_powl.c: Likewise.
48843         * math/e_sinhl.c: Likewise.
48844         * math/e_sqrtl.c: Likewise.
48845         * math/e_scalb.c: Completely rewritten and optimized.
48846         * math/e_scalbf.c: Likewise.
48847         * math/e_scalbl.c: Likewise.
48848         * math/w_acos.c: Likewise.
48849         * math/w_acosf.c: Likewise.
48850         * math/w_acosl.c: Likewise.
48851         * math/w_acosh.c: Likewise.
48852         * math/w_acoshf.c: Likewise.
48853         * math/w_acoshl.c: Likewise.
48854         * math/w_asin.c: Likewise.
48855         * math/w_asinf.c: Likewise.
48856         * math/w_asinl.c: Likewise.
48857         * math/w_atan2.c: Likewise.
48858         * math/w_atan2f.c: Likewise.
48859         * math/w_atan2l.c: Likewise.
48860         * math/w_atanh.c: Likewise.
48861         * math/w_atanhf.c: Likewise.
48862         * math/w_atanhl.c: Likewise.
48863         * math/w_exp10.c: Likewise.
48864         * math/w_exp10f.c: Likewise.
48865         * math/w_exp10l.c: Likewise.
48866         * math/w_fmod.c: Likewise.
48867         * math/w_fmodf.c: Likewise.
48868         * math/w_fmodl.c: Likewise.
48869         * math/w_j0.c: Likewise.
48870         * math/w_j0f.c: Likewise.
48871         * math/w_j0l.c: Likewise.
48872         * math/w_j1.c: Likewise.
48873         * math/w_j1f.c: Likewise.
48874         * math/w_j1l.c: Likewise.
48875         * math/w_jn.c: Likewise.
48876         * math/w_jnf.c: Likewise.
48877         * math/w_log.c: Likewise.
48878         * math/w_logf.c: Likewise.
48879         * math/w_logl.c: Likewise.
48880         * math/w_log10.c: Likewise.
48881         * math/w_log10f.c: Likewise.
48882         * math/w_log10l.c: Likewise.
48883         * math/w_log2.c: Likewise.
48884         * math/w_log2f.c: Likewise.
48885         * math/w_log2l.c: Likewise.
48886         * math/w_pow.c: Likewise.
48887         * math/w_powf.c: Likewise.
48888         * math/w_powl.c: Likewise.
48889         * math/w_remainder.c: Likewise.
48890         * math/w_remainderf.c: Likewise.
48891         * math/w_remainderl.c: Likewise.
48892         * math/w_scalb.c: Likewise.
48893         * math/w_scalbf.c: Likewise.
48894         * math/w_scalbl.c: Likewise.
48895         * math/w_sqrt.c: Likewise.
48896         * math/w_sqrtf.c: Likewise.
48897         * math/w_sqrtl.c: Likewise.
48898         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
48899         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
48900         used.
48901         * math/math_private.h: Declare __kernel_standard_f.
48902         * math/w_cosh.c: Remove cruft and optimize a bit.
48903         * math/w_coshf.c: Likewise.
48904         * math/w_coshl.c: Likewise.
48905         * math/w_exp2.c: Likewise.
48906         * math/w_exp2f.c: Likewise.
48907         * math/w_exp2l.c: Likewise.
48908         * math/w_hypot.c: Likewise.
48909         * math/w_hypotf.c: Likewise.
48910         * math/w_hypotl.c: Likewise.
48911         * math/w_lgamma.c: Likewise.
48912         * math/w_lgamma_r.c: Likewise.
48913         * math/w_lgammaf.c: Likewise.
48914         * math/w_lgammaf_r.c: Likewise.
48915         * math/w_lgammal.c: Likewise.
48916         * math/w_lgammal_r.c: Likewise.
48917         * math/w_sinh.c: Likewise.
48918         * math/w_sinhf.c: Likewise.
48919         * math/w_sinhl.c: Likewise.
48920         * math/w_tgamma.c: Likewise.
48921         * math/w_tgammaf.c: Likewise.
48922         * math/w_tgammal.c: Likewise.
48923         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
48924         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
48925         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
48926         Minor optimizations.  Pretty printing.  Remove cruft.
48927         * sysdeps/i386/fpu/e_acosf.S: Likewise.
48928         * sysdeps/i386/fpu/e_acosh.S: Likewise.
48929         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
48930         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
48931         * sysdeps/i386/fpu/e_acosl.c: Likewise.
48932         * sysdeps/i386/fpu/e_asin.S: Likewise.
48933         * sysdeps/i386/fpu/e_asinf.S: Likewise.
48934         * sysdeps/i386/fpu/e_atan2.S: Likewise.
48935         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
48936         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
48937         * sysdeps/i386/fpu/e_atanh.S: Likewise.
48938         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
48939         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
48940         * sysdeps/i386/fpu/e_exp10.S: Likewise.
48941         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
48942         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
48943         * sysdeps/i386/fpu/e_exp2.S: Likewise.
48944         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
48945         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
48946         * sysdeps/i386/fpu/e_fmod.S: Likewise.
48947         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
48948         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
48949         * sysdeps/i386/fpu/e_hypot.S: Likewise.
48950         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
48951         * sysdeps/i386/fpu/e_log.S: Likewise.
48952         * sysdeps/i386/fpu/e_log10.S: Likewise.
48953         * sysdeps/i386/fpu/e_log10f.S: Likewise.
48954         * sysdeps/i386/fpu/e_log10l.S: Likewise.
48955         * sysdeps/i386/fpu/e_log2.S: Likewise.
48956         * sysdeps/i386/fpu/e_log2f.S: Likewise.
48957         * sysdeps/i386/fpu/e_log2l.S: Likewise.
48958         * sysdeps/i386/fpu/e_logf.S: Likewise.
48959         * sysdeps/i386/fpu/e_logl.S: Likewise.
48960         * sysdeps/i386/fpu/e_pow.S: Likewise.
48961         * sysdeps/i386/fpu/e_powf.S: Likewise.
48962         * sysdeps/i386/fpu/e_powl.S: Likewise.
48963         * sysdeps/i386/fpu/e_remainder.S: Likewise.
48964         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
48965         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
48966         * sysdeps/i386/fpu/e_scalb.S: Likewise.
48967         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
48968         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
48969         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
48970         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
48971         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
48972         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
48973         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
48974         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
48975         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
48976         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
48977         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
48978         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
48979         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
48980         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
48981         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
48982         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
48983         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
48984         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
48985         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
48986         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
48987         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
48988         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
48989         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
48990         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
48991         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
48992         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
48993         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
48994         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
48995         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
48996         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
48997         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
48998         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
48999         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
49000         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
49001         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
49002         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
49003         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
49004         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
49005         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
49006         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
49007         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
49008         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
49009         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
49010         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
49011         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
49012         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
49013         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
49014         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
49015         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
49016         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
49017         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
49018         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
49019         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
49020         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
49021         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
49022         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
49023         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
49024         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
49025         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
49026         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
49027         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
49028         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
49029         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
49030         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
49031         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
49032         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
49033         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
49034         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
49035         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
49036         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
49037         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
49038         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
49039         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
49040         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
49041         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
49042         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
49043         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
49044         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
49045         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
49046         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
49047         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
49048         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
49049         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
49050         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
49051         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
49052         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
49053         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
49054         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
49055         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
49056         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
49057         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
49058         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
49059         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
49060         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
49061         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
49062         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
49063         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
49064         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
49065         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
49066         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
49067         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
49068         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
49069         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
49070         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
49071         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
49072         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
49073         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
49074         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
49075         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
49076         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
49077         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
49078         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
49079         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
49080         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
49081         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
49082         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
49083         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
49084         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
49085         (__isnanf): Likewise.
49086         (__isinf_ns): Likewise.
49087         (__isinf_nsf): Likewise.
49088         (__finite): Likewise.
49089         (__finitef): Likewise.
49090         (__ieee754_sqrt): Define as macro.
49091         (__ieee754_sqrtf): Define as macro.
49092         (__ieee754_sqrtl): Define as macro.
49093         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
49094         inlined copy.
49095         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
49096         __FINITE_MATH_ONLY__ consistent.
49097         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
49098
49099 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
49100
49101         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
49102         of rawmemchr.
49103
49104         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
49105
49106 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
49107
49108         * po/ja.po: Update from translation team.
49109
49110 2011-10-08  Roland McGrath  <roland@hack.frob.com>
49111
49112         * locale/programs/locarchive.c (prepare_address_space): New function.
49113         (create_archive, enlarge_archive, open_archive): Use it.
49114
49115         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
49116         inside [SHARED], where it is used.
49117
49118         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
49119
49120         * nss/getent.c (netgroup_keys): Remove unused variable.
49121         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
49122
49123 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
49124
49125         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
49126         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
49127         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
49128         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
49129         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
49130         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
49131         * math/Makefile (libm-calls): Add s_isinf_ns.
49132         * math/divtc3.c: Use __isinf_nsl instead of isinf.
49133         * math/multc3.c: Likewise.
49134         * math/s_casin.c: Likewise.
49135         * math/s_casinf.c: Likewise.
49136         * math/s_casinl.c: Likewise.
49137         * math/s_ccos.c: Likewise.
49138         * math/s_ccosf.c: Likewise.
49139         * math/s_ccosl.c: Likewise.
49140         * math/s_ctan.c: Likewise.
49141         * math/s_ctanf.c: Likewise.
49142         * math/s_ctanh.c: Likewise.
49143         * math/s_ctanhf.c: Likewise.
49144         * math/s_ctanhl.c: Likewise.
49145         * math/s_ctanl.c: Likewise.
49146         * math/w_fmod.c: Likewise.
49147         * math/w_fmodf.c: Likewise.
49148         * math/w_fmodl.c: Likewise.
49149         * math/w_remainder.c: Likewise.
49150         * math/w_remainderf.c: Likewise.
49151         * math/w_remainderl.c: Likewise.
49152         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
49153         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
49154         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
49155         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
49156         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
49157         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
49158         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
49159         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
49160
49161         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
49162         of the number.
49163         * stdio-common/printf_fphex.c: Likewise.
49164         * stdio-common/printf_size.c: Likewise.
49165
49166         * math/e_exp10.c: Include math_private.h using <...> not "...".
49167         * math/e_exp10f.c: Likewise.
49168         * math/e_exp10l.c: Likewise.
49169         * math/e_exp2l.c: Likewise.
49170         * math/e_j0l.c: Likewise.
49171         * math/e_j1l.c: Likewise.
49172         * math/e_jnl.c: Likewise.
49173         * math/e_lgammal_r.c: Likewise.
49174         * math/e_rem_pio2l.c: Likewise.
49175         * math/e_scalb.c: Likewise.
49176         * math/e_scalbf.c: Likewise.
49177         * math/e_scalbl.c: Likewise.
49178         * math/k_cosl.c: Likewise.
49179         * math/k_sinl.c: Likewise.
49180         * math/k_tanl.c: Likewise.
49181         * math/s_cacoshf.c: Likewise.
49182         * math/s_catan.c: Likewise.
49183         * math/s_catanf.c: Likewise.
49184         * math/s_catanh.c: Likewise.
49185         * math/s_catanhf.c: Likewise.
49186         * math/s_catanhl.c: Likewise.
49187         * math/s_catanl.c: Likewise.
49188         * math/s_ccosh.c: Likewise.
49189         * math/s_ccoshf.c: Likewise.
49190         * math/s_ccoshl.c: Likewise.
49191         * math/s_cexp.c: Likewise.
49192         * math/s_cexpf.c: Likewise.
49193         * math/s_cexpl.c: Likewise.
49194         * math/s_clog.c: Likewise.
49195         * math/s_clog10.c: Likewise.
49196         * math/s_clog10f.c: Likewise.
49197         * math/s_clog10l.c: Likewise.
49198         * math/s_clogf.c: Likewise.
49199         * math/s_clogl.c: Likewise.
49200         * math/s_csin.c: Likewise.
49201         * math/s_csinf.c: Likewise.
49202         * math/s_csinh.c: Likewise.
49203         * math/s_csinhf.c: Likewise.
49204         * math/s_csinhl.c: Likewise.
49205         * math/s_csinl.c: Likewise.
49206         * math/s_csqrt.c: Likewise.
49207         * math/s_csqrtf.c: Likewise.
49208         * math/s_csqrtl.c: Likewise.
49209         * math/s_ctan.c: Likewise.
49210         * math/s_ctanf.c: Likewise.
49211         * math/s_ctanh.c: Likewise.
49212         * math/s_ctanhf.c: Likewise.
49213         * math/s_ctanhl.c: Likewise.
49214         * math/s_ctanl.c: Likewise.
49215         * math/s_ldexp.c: Likewise.
49216         * math/s_ldexpf.c: Likewise.
49217         * math/s_ldexpl.c: Likewise.
49218         * math/s_significand.c: Likewise.
49219         * math/s_significandf.c: Likewise.
49220         * math/s_significandl.c: Likewise.
49221         * math/w_acos.c: Likewise.
49222         * math/w_acosf.c: Likewise.
49223         * math/w_acosh.c: Likewise.
49224         * math/w_acoshf.c: Likewise.
49225         * math/w_acoshl.c: Likewise.
49226         * math/w_acosl.c: Likewise.
49227         * math/w_asin.c: Likewise.
49228         * math/w_asinf.c: Likewise.
49229         * math/w_asinl.c: Likewise.
49230         * math/w_atan2.c: Likewise.
49231         * math/w_atan2f.c: Likewise.
49232         * math/w_atan2l.c: Likewise.
49233         * math/w_atanh.c: Likewise.
49234         * math/w_atanhf.c: Likewise.
49235         * math/w_atanhl.c: Likewise.
49236         * math/w_cosh.c: Likewise.
49237         * math/w_coshf.c: Likewise.
49238         * math/w_coshl.c: Likewise.
49239         * math/w_dremf.c: Likewise.
49240         * math/w_exp10.c: Likewise.
49241         * math/w_exp10f.c: Likewise.
49242         * math/w_exp10l.c: Likewise.
49243         * math/w_exp2.c: Likewise.
49244         * math/w_exp2f.c: Likewise.
49245         * math/w_fmod.c: Likewise.
49246         * math/w_fmodf.c: Likewise.
49247         * math/w_fmodl.c: Likewise.
49248         * math/w_hypot.c: Likewise.
49249         * math/w_hypotf.c: Likewise.
49250         * math/w_hypotl.c: Likewise.
49251         * math/w_j0.c: Likewise.
49252         * math/w_j0f.c: Likewise.
49253         * math/w_j0l.c: Likewise.
49254         * math/w_j1.c: Likewise.
49255         * math/w_j1f.c: Likewise.
49256         * math/w_j1l.c: Likewise.
49257         * math/w_jn.c: Likewise.
49258         * math/w_jnf.c: Likewise.
49259         * math/w_jnl.c: Likewise.
49260         * math/w_lgamma.c: Likewise.
49261         * math/w_lgamma_r.c: Likewise.
49262         * math/w_lgammaf.c: Likewise.
49263         * math/w_lgammaf_r.c: Likewise.
49264         * math/w_lgammal.c: Likewise.
49265         * math/w_lgammal_r.c: Likewise.
49266         * math/w_log.c: Likewise.
49267         * math/w_log10.c: Likewise.
49268         * math/w_log10f.c: Likewise.
49269         * math/w_log10l.c: Likewise.
49270         * math/w_log2.c: Likewise.
49271         * math/w_log2f.c: Likewise.
49272         * math/w_log2l.c: Likewise.
49273         * math/w_logf.c: Likewise.
49274         * math/w_logl.c: Likewise.
49275         * math/w_pow.c: Likewise.
49276         * math/w_powf.c: Likewise.
49277         * math/w_powl.c: Likewise.
49278         * math/w_remainder.c: Likewise.
49279         * math/w_remainderf.c: Likewise.
49280         * math/w_remainderl.c: Likewise.
49281         * math/w_scalb.c: Likewise.
49282         * math/w_scalbf.c: Likewise.
49283         * math/w_scalbl.c: Likewise.
49284         * math/w_sinh.c: Likewise.
49285         * math/w_sinhf.c: Likewise.
49286         * math/w_sinhl.c: Likewise.
49287         * math/w_sqrt.c: Likewise.
49288         * math/w_sqrtf.c: Likewise.
49289         * math/w_sqrtl.c: Likewise.
49290         * math/w_tgamma.c: Likewise.
49291         * math/w_tgammaf.c: Likewise.
49292         * math/w_tgammal.c: Likewise.
49293
49294         * po/ja.po: Update from translation team.
49295
49296 2011-09-29  Andreas Jaeger  <aj@suse.de>
49297
49298         [BZ #13179]
49299         * sunrpc/netname.c (netname2host): Fix logic.
49300
49301         [BZ #6779]
49302         [BZ #6783]
49303         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
49304         correctly.
49305         * math/w_remainder.c (__remainder): Likewise.
49306         * math/w_remainderf.c (__remainderf): Likewise.
49307         * math/libm-test.inc (remainder_test): Add test cases.
49308
49309 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
49310
49311         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
49312         sdiv_qrnnd.
49313
49314 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
49315
49316         * string/test-memcmp.c: Avoid unncessary #defines.
49317         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
49318
49319 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
49320
49321         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
49322         Use new sse2 version for core i3 - i7 as it's faster
49323         than sse42 version.
49324         (bit_Prefer_PMINUB_for_stringop): New.
49325         * sysdeps/x86_64/rawmemchr.S: Update.
49326         Replace with faster SSE2 version.
49327         * sysdeps/x86_64/memrchr.S: New file.
49328         * sysdeps/x86_64/memchr.S: Update.
49329         Replace with faster SSE2 version.
49330
49331 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
49332
49333         * elf/dl-load.c (lose): Add cast to avoid warning.
49334
49335 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
49336
49337         * po/ca.po: Update from translation team.
49338
49339         * inet/getnetgrent_r.c: Hook up nscd.
49340         * nscd/Makefile (routines): Add nscd_netgroup.
49341         (nscd-modules): Add netgroupcache.
49342         (CFLAGS-netgroupcache.c): Define.
49343         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
49344         (cache_search): Add const to second parameter.
49345         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
49346         INNETGR.
49347         (dbs): Add netgrdb entry.
49348         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
49349         (verify_persistent_db): Handle netgrdb.
49350         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
49351         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
49352         GETFDNETGR.
49353         (netgroup_response_header): Define.
49354         (innetgroup_response_header): Define.
49355         (datahead): Add netgroup_response_header and innetgroup_response_header
49356         elements.
49357         * nscd/nscd.conf: Add entries for netgroup cache.
49358         * nscd/nscd.h (dbtype): Add netgrdb.
49359         (_PATH_NSCD_NETGROUP_DB): Define.
49360         (netgroup_iov_disabled): Declare.
49361         (xmalloc, xcalloc, xrealloc): Move declarations here.
49362         (cache_search): Adjust prototype.
49363         Add netgroup-related prototypes.
49364         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
49365         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
49366         (__nscd_innetgr): Declare.
49367         * nscd/selinux.c (perms): Use access_vector_t as element type and
49368         add netgroup-related initializers.
49369         * nscd/netgroupcache.c: New file.
49370         * nscd/nscd_netgroup.c: New file.
49371         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
49372         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
49373         For four parameters use innetgr.
49374         * nss/nss_files/files-init.c: Add definition and callback for netgr.
49375         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
49376         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
49377         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
49378
49379         * nscd/connections.c (register_traced_file): Don't register file
49380         for disabled databases.
49381
49382 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
49383
49384         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
49385
49386         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
49387         from tree and freeing node.
49388
49389 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
49390
49391         * nss/nsswitch.c (__nss_database_lookup): Handle
49392         nss_parse_service_list out of memory case.
49393
49394 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
49395
49396         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
49397         out of memory case.
49398
49399 2011-10-04  Andreas Schwab  <schwab@redhat.com>
49400
49401         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
49402         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
49403         pass it down.
49404         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
49405         elf_machine_rela, elf_machine_lazy_rel.
49406         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
49407         (ELF_DYNAMIC_DO_REL): Likewise.
49408         (ELF_DYNAMIC_DO_RELA): Likewise.
49409         (ELF_DYNAMIC_RELOCATE): Likewise.
49410         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
49411         to ELF_DYNAMIC_DO_REL.
49412         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
49413         (dl_main): In trace mode always set __RTLD_NOIFUNC.
49414         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
49415         elf_machine_rela.
49416         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
49417         skip_ifunc, don't call ifunc function if non-zero.
49418         (elf_machine_rela): Likewise.
49419         (elf_machine_lazy_rel): Likewise.
49420         (elf_machine_lazy_rela): Likewise.
49421         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
49422         (elf_machine_lazy_rel): Likewise.
49423         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
49424         Likewise.
49425         (elf_machine_lazy_rel): Likewise.
49426         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
49427         Likewise.
49428         (elf_machine_lazy_rel): Likewise.
49429         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
49430         (elf_machine_lazy_rel): Likewise.
49431         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
49432         (elf_machine_lazy_rel): Likewise.
49433         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
49434         (elf_machine_lazy_rel): Likewise.
49435         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
49436         (elf_machine_lazy_rel): Likewise.
49437         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
49438         (elf_machine_lazy_rel): Likewise.
49439         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
49440         (elf_machine_lazy_rel): Likewise.
49441
49442 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
49443
49444         * nss/nss_files/files-init.c (_nss_files_init): Use static
49445         initialization for all the *_traced_file variables.
49446
49447 2011-09-28  Andreas Schwab  <schwab@redhat.com>
49448
49449         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
49450
49451 2011-09-27  Roland McGrath  <roland@hack.frob.com>
49452
49453         [BZ #13226]
49454         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
49455
49456 2011-09-27  Andreas Schwab  <schwab@redhat.com>
49457
49458         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
49459         Reread the line before reparsing it.
49460
49461 2011-09-26  Andreas Schwab  <schwab@redhat.com>
49462
49463         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
49464
49465 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
49466             Maxim Kuvyrkov  <maxim@codesourcery.com>
49467             Joseph Myers  <joseph@codesourcery.com>
49468
49469         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
49470         if needed for __stack_chk_guard.
49471
49472 2011-09-19  Roland McGrath  <roland@hack.frob.com>
49473
49474         * sysdeps/posix/spawni.c (script_execute): Always define it.
49475         It will be optimized away if unused.
49476         (maybe_script_execute): New function.
49477         (__spawni): Call it.
49478
49479         * Makerules: Don't include tls.make.
49480         (config-tls): Always set to thread.
49481         * tls.make.c: File removed.
49482
49483 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
49484
49485         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
49486         * config.make.in (CPPFLAGS-config): New substituted variable.
49487
49488 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
49489
49490         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
49491
49492         [BZ #13192]
49493         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
49494         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
49495
49496 2011-09-15  Roland McGrath  <roland@hack.frob.com>
49497
49498         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
49499         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
49500         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
49501         (CALL_FAIL): Likewise.
49502         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
49503         (CALL_FAIL): Macro removed.
49504         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
49505
49506 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
49507
49508         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
49509         for __FINITE_MATH_ONLY__ == 1.
49510
49511 2011-09-15  Andreas Schwab  <schwab@redhat.com>
49512
49513         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
49514         __ieee754_sqrt instead of sqrt.
49515         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
49516         __ieee754_sqrtf instead of sqrtf.
49517         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
49518         __floorf instead of floorf.
49519         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
49520         __floorf, __truncf instead of floorf, truncf.
49521
49522 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
49523
49524         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
49525
49526         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
49527         __extern_always_inline.
49528         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
49529         32-bit.
49530
49531 2011-09-14  Andreas Schwab  <schwab@redhat.com>
49532
49533         * elf/rtld.c (dl_main): Also relocate in dependency order when
49534         doing symbol dependency testing.
49535
49536 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
49537
49538         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
49539         Always define `refsym'.
49540
49541 2011-09-13  Andreas Schwab  <schwab@redhat.com>
49542
49543         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
49544         (__FD_ELT): Renamed from __FDELT.
49545         * misc/bits/select2.h (__FD_ELT): Likewise.
49546         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
49547         __FD_MASK instead of __FDELT, __FDMASK.
49548         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
49549         Likewise.
49550         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
49551         Likewise.
49552
49553         * elf/Makefile (gen-ldd): Fix pattern.
49554
49555         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
49556         (init_tls): Likewise.
49557
49558 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
49559
49560         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
49561
49562 2011-09-12  Andreas Schwab  <schwab@redhat.com>
49563
49564         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
49565         `struct cmsghdr *' instead of `void *'.
49566         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
49567         Likewise.
49568
49569 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
49570
49571         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
49572         if non-absolute.
49573         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
49574         ldd_rewrite_script.
49575
49576 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
49577
49578         * configure.in: Remove --with-tls option.
49579         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
49580         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
49581         out in case it is missing.
49582         * sysdeps/ia64/elf/configure.in: Likewise.
49583         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
49584         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
49585         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
49586         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
49587         * sysdeps/sh/elf/configure.in: Likewise.
49588         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
49589         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
49590         * sysdeps/x86_64/elf/configure.in: Likewise.
49591         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
49592         * sysdeps/mach/hurd/tls.h: Likewise.
49593
49594         [BZ #13067]
49595         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
49596
49597         [BZ #13090]
49598         * configure.in: Fix use of AC_INIT.
49599
49600         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
49601
49602 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
49603
49604         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
49605         __set_errno.
49606         * malloc/hooks.c: Likewise.
49607
49608         [BZ #11929]
49609         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
49610         variables statically.
49611         (narenas): Initialize.
49612         (list_lock): Initialize.
49613         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
49614         initializtion of main_arena and list_lock.  Small cleanups.
49615         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
49616         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
49617         Add initializers to main_arena and mp_.
49618         (malloc_state): Remove pagesize member.  Change all users to use
49619         GLRO(dl_pagesize).
49620
49621         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
49622         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
49623         is always initialized.
49624
49625         * malloc/malloc.c: Removed unused configurations and dead code.
49626         * malloc/arena.c: Likewise.
49627         * malloc/hooks.c: Likewise.
49628         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
49629
49630         * include/tls.h: Removed.  USE___THREAD must always be defined.
49631         * bits/libc-tsd.h: Don't handle !USE___THREAD.
49632         * elf/dl-libc.c: Likewise.
49633         * elf/dl-tsd.c: Likewise.
49634         * include/errno.h: Likewise.
49635         * include/netdb.h: Likewise.
49636         * include/resolv.h: Likewise.
49637         * inet/herrno-loc.c: Likewise.
49638         * inet/herrno.c: Likewise.
49639         * malloc/arena.c: Likewise.
49640         * malloc/hooks.c: Likewise.
49641         * malloc/malloc.c: Likewise.
49642         * resolv/res-state.c: Likewise.
49643         * resolv/res_libc.c: Likewise.
49644         * sysdeps/i386/dl-machine.h: Likewise.
49645         * sysdeps/ia64/dl-machine.h: Likewise.
49646         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
49647         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
49648         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
49649         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
49650         * sysdeps/sh/dl-machine.h: Likewise.
49651         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
49652         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
49653         * sysdeps/unix/i386/sysdep.S: Likewise.
49654         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
49655         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
49656         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
49657         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
49658         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
49659         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
49660         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
49661         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
49662         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
49663         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
49664         * sysdeps/unix/x86_64/sysdep.S: Likewise.
49665         * sysdeps/x86_64/dl-machine.h: Likewise.
49666         * tls.make.c: Likewise.
49667
49668         * configure.in: Remove --with-__thread option.  Make tests for
49669         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
49670         tls_model attribute fail if no support is available.  Remove
49671         USE_IN_LIBIO.
49672         * Makeconfig: Adjust for dropped configure option.  All features are
49673         now mandatory.
49674         * Makerules: Likewise.
49675         * Versions.def: Likewise.
49676         * argp/argp-fmtstream.c: Likewise.
49677         * argp/argp-fmtstream.h: Likewise.
49678         * argp/argp-help.c: Likewise.
49679         * assert/assert.c: Likewise.
49680         * config.h.in: Likewise.
49681         * config.make.in: Likewise.
49682         * configure: Likewise.
49683         * configure.in: Likewise.
49684         * csu/Versions: Likewise.
49685         * csu/init.c: Likewise.
49686         * elf/tst-audit2.c: Likewise.
49687         * elf/tst-tls10.c: Likewise.
49688         * elf/tst-tls10.h: Likewise.
49689         * elf/tst-tls11.c: Likewise.
49690         * elf/tst-tls12.c: Likewise.
49691         * elf/tst-tls14.c: Likewise.
49692         * elf/tst-tlsmod11.c: Likewise.
49693         * elf/tst-tlsmod12.c: Likewise.
49694         * elf/tst-tlsmod13.c: Likewise.
49695         * elf/tst-tlsmod13a.c: Likewise.
49696         * elf/tst-tlsmod14a.c: Likewise.
49697         * elf/tst-tlsmod15b.c: Likewise.
49698         * elf/tst-tlsmod16a.c: Likewise.
49699         * elf/tst-tlsmod16b.c: Likewise.
49700         * elf/tst-tlsmod7.c: Likewise.
49701         * elf/tst-tlsmod8.c: Likewise.
49702         * elf/tst-tlsmod9.c: Likewise.
49703         * gmon/gmon.c: Likewise.
49704         * grp/fgetgrent_r.c: Likewise.
49705         * grp/putgrent.c: Likewise.
49706         * hurd/fopenport.c: Likewise.
49707         * include/libc-symbols.h: Likewise.
49708         * include/tls.h: Likewise.
49709         * intl/gettextP.h: Likewise.
49710         * intl/loadinfo.h: Likewise.
49711         * locale/global-locale.c: Likewise.
49712         * locale/localeinfo.h: Likewise.
49713         * mach/devstream.c: Likewise.
49714         * malloc/arena.c: Likewise.
49715         * malloc/set-freeres.c: Likewise.
49716         * misc/err.c: Likewise.
49717         * misc/getttyent.c: Likewise.
49718         * misc/mntent_r.c: Likewise.
49719         * posix/getopt.c: Likewise.
49720         * posix/wordexp.c: Likewise.
49721         * pwd/fgetpwent_r.c: Likewise.
49722         * resolv/Versions: Likewise.
49723         * resolv/res_hconf.c: Likewise.
49724         * shadow/fgetspent_r.c: Likewise.
49725         * shadow/putspent.c: Likewise.
49726         * stdio-common/printf_fphex.c: Likewise.
49727         * stdio-common/tmpfile.c: Likewise.
49728         * stdlib/abort.c: Likewise.
49729         * stdlib/fmtmsg.c: Likewise.
49730         * sunrpc/auth_unix.c: Likewise.
49731         * sunrpc/clnt_perr.c: Likewise.
49732         * sunrpc/clnt_tcp.c: Likewise.
49733         * sunrpc/clnt_udp.c: Likewise.
49734         * sunrpc/clnt_unix.c: Likewise.
49735         * sunrpc/openchild.c: Likewise.
49736         * sunrpc/svc_simple.c: Likewise.
49737         * sunrpc/svc_tcp.c: Likewise.
49738         * sunrpc/svc_udp.c: Likewise.
49739         * sunrpc/svc_unix.c: Likewise.
49740         * sunrpc/xdr.c: Likewise.
49741         * sunrpc/xdr_array.c: Likewise.
49742         * sunrpc/xdr_rec.c: Likewise.
49743         * sunrpc/xdr_ref.c: Likewise.
49744         * sunrpc/xdr_stdio.c: Likewise.
49745
49746 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
49747
49748         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
49749
49750 2011-07-03  Andreas Jaeger  <aj@suse.de>
49751
49752         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
49753         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
49754         regenerate with gen-libm-tests.pl.
49755
49756 2010-05-12  Petr Baudis  <pasky@suse.cz>
49757
49758         [BZ #11589]
49759         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
49760         around j0() zero points by switching to j1().
49761         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
49762         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
49763         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
49764         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
49765
49766 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
49767
49768         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
49769         instead of 0.
49770         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
49771         instead of 0.
49772         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
49773         Patch in part by Pavel Roskin <proski@gnu.org>.
49774
49775         [BZ #13138]
49776         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
49777         realloc.
49778         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
49779         Free memory block if necessary.
49780
49781         [BZ #12847]
49782         * libio/genops.c (INTDEF): For string streams the _lock pointer can
49783         be NULL.  Don't lock in this case.
49784
49785 2011-09-09  Roland McGrath  <roland@hack.frob.com>
49786
49787         * elf/elf.h (ELFOSABI_GNU): New macro.
49788         (ELFOSABI_LINUX): Define to that.
49789
49790 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
49791
49792         * string/strncat.c (strncat): Undef the symbol in case it has been
49793         defined in bits/string.h.
49794
49795 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
49796
49797         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
49798
49799         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
49800         link map.
49801
49802 2011-08-17  Andreas Jaeger  <aj@suse.de>
49803
49804         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
49805
49806 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
49807             Ian Lance Taylor  <iant@google.com>
49808
49809         * math/libm-test.inc (lround_test): New testcase.
49810         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
49811
49812 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
49813
49814         * Makefile: Remove support for automatic cvs check-ins.
49815         * Makerules: Likewise.
49816         * config.make.in: Likewise.
49817         * configure.in: Likewise.
49818         * intl/Makefile: Likewise.
49819         * locale/Makefile: Likewise.
49820         * po/Makefile: Likewise.
49821         * posix/Makefile: Likewise.
49822         * sysdeps/gnu/Makefile: Likewise.
49823         * sysdeps/mach/hurd/Makefile: Likewise.
49824         * sysdeps/sparc/sparc32/Makefile: Likewise.
49825
49826         [BZ #13118]
49827         * posix/Makefile (bug-regex32-ENV): Define.
49828         Patch by John Stanley <jpsinthemix@verizon.net>.
49829
49830         * misc/Makefile (headers): Add bits/select2.h.
49831         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
49832         * misc/bits/select2.h: New file.
49833         * include/bits/select2.h: New file.
49834         * debug/Makefile (routines): Add fdelt_chk.
49835         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
49836         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
49837         FD_ISSET.
49838         * debug/fdelt_chk.c: New file.
49839
49840         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
49841         * wcsmbs/test-wmemcmp.c: Likewise.
49842         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
49843         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
49844
49845 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
49846
49847         * string/Makefile (strop-tests): Add memcmp.
49848         * string/test-wmemcmp.c: New file.
49849         * string/test-memcmp.c: Add wmemcmp support.
49850
49851 2011-09-08  Roland McGrath  <roland@hack.frob.com>
49852
49853         [BZ #13153]
49854         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
49855         2011-07-19 change.
49856
49857         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
49858         garbage value in a __mach_port_mod_refs call in the cases of the
49859         task-self and thread-self ports.
49860
49861 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
49862
49863         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
49864
49865 2011-09-08  Andreas Schwab  <schwab@redhat.com>
49866
49867         * elf/dl-load.c (lose): Check for non-null L.
49868
49869 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
49870
49871         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
49872
49873         * elf/dl-libc.c (dlerror_run): Pass back error code from
49874         dl_catch_error.
49875
49876         [BZ #13123]
49877         * elf/dl-load.c (lose): Free l_origin if it is valid.
49878
49879         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
49880         names.
49881         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
49882         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
49883         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
49884         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
49885         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
49886         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
49887
49888 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
49889
49890         * sysdeps/powerpc/fpu/e_hypot.c: New file.
49891         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
49892         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
49893         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
49894         * sysdeps/powerpc/fpu/k_cosf.c: New file.
49895         * sysdeps/powerpc/fpu/k_sinf.c: New file.
49896         * sysdeps/powerpc/fpu/s_cosf.c: New file.
49897         * sysdeps/powerpc/fpu/s_sinf.c: New file.
49898         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
49899         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
49900
49901 2011-08-15  Alan Modra  <amodra@gmail.com>
49902
49903         [BZ #13092]
49904         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
49905         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
49906         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
49907         ppc_mcount to static-only-routines.
49908         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
49909         __mcount_internal.
49910         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
49911         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
49912
49913 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
49914
49915         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
49916         for finite and infinity parameters.
49917
49918 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
49919
49920         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
49921         and add nop instructions for throughput optimization.
49922         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
49923
49924 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
49925
49926         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
49927         aligned copy for power7 with vector-scalar instructions.
49928         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
49929
49930 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
49931
49932         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
49933         AVX check.
49934
49935 2011-09-07  Andreas Schwab  <schwab@redhat.com>
49936
49937         [BZ #13144]
49938         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
49939         last change.
49940
49941 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
49942
49943         * sysdeps/unix/sysv/linux/x86_64/init-first.c
49944         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
49945         syscall wrapper around clock_gettime in __vdso_clock_gettime.
49946         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
49947         clock_gettime.
49948
49949 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
49950
49951         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
49952         Forgot to demangle the pointer.
49953
49954         * sysdeps/i386/sysdep.h: Define atom_text_section.
49955         * sysdeps/x86_64/sysdep.h: Likewise.
49956         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
49957         section with atom_text_section.
49958         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
49959         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
49960         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
49961         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
49962         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
49963
49964         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
49965         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
49966         already be defined.  Change to take two parameters and don't assign
49967         result to variable.  Adjust all users.
49968         Define INTERNAL_GETTIME if not already defined.
49969         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
49970         call.
49971         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
49972         HAVE_CLOCK_GETTIME_VSYSCALL.
49973         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
49974
49975         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
49976         gettimeofday vsyscall, just use time.
49977
49978 2011-09-06  Andreas Schwab  <schwab@redhat.com>
49979
49980         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
49981         <errno.h>.
49982
49983 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
49984
49985         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
49986         syscall on x86-64.
49987         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
49988         syscall.
49989         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
49990         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
49991         syscall if possible.
49992
49993 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
49994
49995         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
49996         e_ident.  Don't pass to find_mapsXX.
49997         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
49998
49999 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50000
50001         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
50002         strchr-sse2-no-bsf strrchr-sse2-no-bsf
50003         * sysdeps/x86_64/multiarch/strchr.S: Update.
50004         Check bit_slow_BSF bit.
50005         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
50006         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
50007         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
50008
50009 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
50010
50011         [BZ #13134]
50012         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
50013         before glibc 2.15.
50014         (tryshell): Define.
50015         (__spawni): Change last parameter to be flag.  Test
50016         SPAWN_XFLAGS_USE_PATH flag to use path or not.
50017         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
50018         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
50019         * posix/spawni.c: Likewise.
50020         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
50021         * posix/spawnp.c: Likewise.  Change normal version to use
50022         SPAWN_XFLAGS_USE_PATH.
50023         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
50024         SPAWN_XFLAGS_TRY_SHELL.
50025
50026         [BZ #13150]
50027         * posix/glob.h: Remove gcc 1.x support.
50028
50029         [BZ #13068]
50030         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
50031
50032 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50033
50034         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
50035         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
50036         strrchr-sse2-bsf
50037         * sysdeps/i386/i686/multiarch/strchr.S: New file.
50038         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
50039         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
50040         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
50041         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
50042         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
50043
50044 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
50045
50046         * sysdeps/x86_64/wcscmp.S: New file.
50047
50048         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
50049         wcscmp-c wcscmp-sse2
50050         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
50051         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
50052         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
50053         * wcsmbs/wcscmp.c: Allow renaming.
50054
50055 2011-09-05  David S. Miller  <davem@davemloft.net>
50056
50057         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
50058         stack slot, rather than the struct return pointer slot.
50059         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
50060         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
50061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
50062         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
50063
50064 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
50065
50066         * po/ja.po: Update from translation team.
50067
50068         [BZ #13144]
50069         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
50070         kernel in 64-bit binaries.
50071
50072 2011-09-01  David S. Miller  <davem@davemloft.net>
50073
50074         * elf/elf.h (HWCAP_SPARC_*): Move to..
50075         * sysdeps/sparc/sysdep.h: this new file and add new values.
50076         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
50077         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
50078         _DL_HWCAP_COUNT to 24.
50079         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
50080         entries.
50081         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
50082         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
50083         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
50084         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
50085         instead of magic constants.
50086         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
50087
50088 2011-08-31  David S. Miller  <davem@davemloft.net>
50089
50090         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
50091         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
50092         Reimplement to do errno handling inline.
50093         (SYSCALL_ERROR_HANDLER): New macro.
50094         (__SYSCALL_STRING): Do not do errno handling in asm.
50095         (__CLONE_SYSCALL_STRING): Delete.
50096         (__INTERNAL_SYSCALL_STRING): Delete.
50097         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
50098         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
50099         (PSEUDO): Reimplement to do errno handling inline.
50100         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
50101         (SYSCALL_ERROR_HANDLER): New macro.
50102         (__SYSCALL_STRING): Do not do errno handling in asm.
50103         (__CLONE_SYSCALL_STRING): Delete.
50104         (__INTERNAL_SYSCALL_STRING): Delete.
50105         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
50106         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
50107         i386.
50108         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
50109         (inline_syscall*): Add 'err' argument.
50110         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
50111         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
50112         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
50113         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
50114
50115         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
50116         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
50117
50118 2011-08-30  Andreas Schwab  <schwab@redhat.com>
50119
50120         * elf/rtld.c (dl_main): Relocate objects in dependency order.
50121
50122 2011-08-29  Jiri Olsa <jolsa@redhat.com>
50123
50124         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
50125         directive.
50126
50127 2011-08-24  David S. Miller  <davem@davemloft.net>
50128
50129         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
50130
50131 2011-08-24  Andreas Schwab  <schwab@redhat.com>
50132
50133         * elf/Makefile: Add rules to build and run unload8 test.
50134         * elf/unload8.c: New file.
50135         * elf/unload8mod1.c: New file.
50136         * elf/unload8mod1x.c: New file.
50137         * elf/unload8mod2.c: New file.
50138         * elf/unload8mod3.c: New file.
50139
50140         * elf/dl-close.c (_dl_close_worker): Reset private search list if
50141         it wasn't used.
50142
50143 2011-08-23  David S. Miller  <davem@davemloft.net>
50144
50145         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
50146         subtract stack bias.
50147         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
50148         %sp not %fp in calculations.
50149         (_JMPBUF_UNWINDS_ADJ): Likewise.
50150
50151         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
50152         (aio_suspend): Call it to force an exception region around the
50153         AIO_MISC_WAIT() invocation.
50154
50155 2011-08-23  Andreas Schwab  <schwab@redhat.com>
50156
50157         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
50158         backslash.
50159
50160 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
50161
50162         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
50163         protection macro.
50164         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
50165         and <dl-machine.h>.
50166         (Elf64_FuncDesc): Remove.
50167
50168 2011-08-22  David S. Miller  <davem@davemloft.net>
50169
50170         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
50171         sigaltstack check, add missing cfi directives.
50172         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
50173         missing cfi directives, and sigaltstack handling.
50174
50175 2011-08-16  Andreas Schwab  <schwab@redhat.com>
50176
50177         [BZ #11724]
50178         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
50179         object is seen twice.
50180         * elf/dl-fini.c (_dl_sort_fini): Likewise.
50181
50182         * elf/Makefile (distribute): Add tst-initorder2.c.
50183         (tests): Add tst-initorder2.
50184         (modules-names): Add tst-initorder2a tst-initorder2b
50185         tst-initorder2c tst-initorder2d.  Add rules to build them.
50186         ($(objpfx)tst-initorder2.out): New rule.
50187         * elf/tst-initorder2.c: New file.
50188         * elf/tst-initorder2.exp: New file.
50189
50190 2011-08-22  Andreas Schwab  <schwab@redhat.com>
50191
50192         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
50193
50194         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
50195         dependencies back to end of function.
50196
50197         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
50198         $(elfobjdir)/ld.so.
50199
50200 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
50201
50202         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
50203         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
50204         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
50205         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
50206         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
50207         of __vdso_gettimeofday.
50208         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
50209         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
50210         attribute_hidden.
50211         (_libc_vdso_platform_setup): Remove initialization of
50212         __vdso_gettimeofday and __vdso_time.
50213
50214 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
50215
50216         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
50217         and fgetc_unlocked.
50218         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
50219         getc_unlocked.
50220
50221         * elf/dl-open.c (add_to_global): Report additions to the global scope
50222         for LD_DEBUG=scopes.
50223         (dl_open_worker): Also print scope of newly loaded dependencies.
50224         (_dl_show_scope): Indicate if there is no scope.
50225
50226         [BZ #13114]
50227         * stdio-common/Makefile (tests): Add bug24.
50228         * stdio-common/bug24.c: New file.
50229
50230 2011-08-19  Andreas Jaeger  <aj@suse.de>
50231
50232         [BZ #13114]
50233         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
50234         non-existant file when using close-on-exec mode.
50235
50236 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
50237
50238         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
50239         the very first instruction.
50240
50241         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
50242         the CFI state in the end.
50243         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
50244         inclusion of dl-trampoline.h.
50245         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
50246
50247 2011-08-19  Andreas Schwab  <schwab@redhat.com>
50248
50249         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
50250         expectations for long double.
50251
50252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
50253         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
50254
50255 2011-08-14  David S. Miller  <davem@davemloft.net>
50256
50257         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
50258         artificual limit depends upon the system page size.
50259
50260 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
50261
50262         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
50263         * resolv/Makefile: Define CFLAGS-libresolv.
50264
50265 2011-08-17  Andreas Schwab  <schwab@redhat.com>
50266
50267         * nss/makedb.c (compute_tables): Make variables used in nested
50268         function static.
50269
50270 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
50271
50272         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
50273         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
50274         if buffer was too small.
50275
50276         * elf/pldd.c (main): Attach to all threads in the process.
50277         Rewrite /proc handling to use *at functions.
50278
50279 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
50280
50281         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
50282         specifies first scope to show.
50283         (dl_open_worker): Update callers.  Move printing scope of new
50284         object to before the relocation.
50285         * elf/rtld.c (dl_main): Update _dl_show_scope call.
50286         * sysdeps/generic/ldsodefs.h: Update declaration.
50287
50288         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
50289         string for the scope number.
50290
50291 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
50292
50293         * nscd/servicescache.c (cache_addserv): Make sure written is always
50294         initialized.
50295
50296 2011-08-14  Roland McGrath  <roland@hack.frob.com>
50297
50298         * sysdeps/i386/i486/bits/atomic.h
50299         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
50300         statement expression, so as to suppress "set but not used" warning.
50301         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
50302
50303         * string/strncat.c (STRNCAT): Use prototype definition.
50304
50305         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
50306         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
50307         -Iprograms here.
50308         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
50309         (localedef-modules): Add localedef.
50310         (locale-modules): Add locale.
50311
50312         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
50313         * elf/rtld.c (dl_main): Invert order of assignment in last change,
50314         to avoid a warning.
50315
50316 2011-08-14  David S. Miller  <davem@davemloft.net>
50317
50318         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
50319         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
50320
50321 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
50322
50323         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
50324         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
50325         * elf/rtld.c (dl_main): Set l_name of vDSO.
50326         Call _dl_show_scope when DL_DEBUG_SCOPES.
50327         (process_dl_debug): Recognize scopes flag and also set it for all.
50328         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
50329         Declare _dl_show_scope.
50330
50331         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
50332         (do_dlopen): Pass caller_dlopen to dl_open.
50333         (__libc_dlopen_mode): Initialize caller_dlopen.
50334
50335         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
50336         of libc.  Make tolower call locale-independent.  Optimize a bit by
50337         using isdigit instead of isalnum.
50338         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
50339
50340 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
50341
50342         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
50343         was a dependency or dynamically loaded.
50344
50345 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
50346
50347         * intl/l10nflist.c: Allow architecture-specific pop function.
50348         * sysdeps/x86_64/l10nflist.c: New file.
50349
50350         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
50351         classification.
50352
50353 2011-08-10  Andreas Schwab  <schwab@redhat.com>
50354
50355         * include/dirent.h: Add libc_hidden_proto for scandirat and
50356         scandirat64.  Don't declare __scandirat64.
50357         * dirent/scandirat.c: Add libc_hidden_def.
50358         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
50359         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
50360
50361 2011-08-10  David S. Miller  <davem@davemloft.net>
50362
50363         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
50364         enum.
50365         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
50366         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
50367         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
50368
50369 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
50370
50371         * Versions.def [libc]: Add GLIBC_2.15.
50372         * dirent/Makefile (routines): Add scandirat and scandirat64.
50373         * dirent/Versions [libc]: Export scandirat and scandirat64 for
50374         GLIBC_2.15.
50375         * dirent/dirent.h: Declare scandirat and scandirat64.
50376         * dirent/scandirat.c: New file.
50377         * dirent/scandirat64.c: New file.
50378         * sysdeps/wordsize-64/scandirat.c: New file.
50379         * sysdeps/wordsize-64/scandirat64.c: New file.
50380         * dirent/opendir.c: Define opendirat.
50381         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
50382         using scandirat.
50383         * dirent/scandir64.c: Adjust for scandir.c change.
50384         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
50385         __scandirat64, and __scandir_cancel_handler.
50386         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
50387         additional parameter and use openat instead of open (outside of ld.so).
50388         Add new __opendir as wrapper around __opendirat.
50389         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
50390         here without requiring old scandirat implementation.
50391
50392 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
50393
50394         * dirent/scandir.c (cancel_handler): Renamed to
50395         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
50396         defined.  Adjust users.
50397         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
50398         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
50399
50400 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
50401
50402         * string/test-string.h (IMPL): Use __STRING to expand name and then
50403         stringify it.
50404
50405         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
50406         of cleanups.
50407
50408 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
50409
50410         * string/Makefile: Update.
50411         (strop-tests): Append strncat.
50412         * string/test-wcscmp.c: New file.
50413         New comprehensive test for wcscmp.
50414         * string/test-strcmp.c: Update.
50415         (WIDE): New define.
50416
50417 2011-07-22  Andreas Schwab  <schwab@redhat.com>
50418
50419         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
50420         line.
50421
50422 2011-07-26  Andreas Schwab  <schwab@redhat.com>
50423
50424         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
50425         encoding to ACE if AI_IDN.
50426
50427 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
50428
50429         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
50430         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
50431
50432 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50433
50434         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
50435         Fix overflow bug in strncat.
50436         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
50437
50438         * string/test-strncat.c: Update.
50439         Add new tests for checking overflow bugs.
50440
50441 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50442
50443         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
50444         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
50445         * sysdeps/i386/i686/multiarch/strcat.S: New file.
50446         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
50447         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
50448         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
50449         * sysdeps/i386/i686/multiarch/strncat.S: New file.
50450         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
50451         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
50452
50453         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
50454         (USE_AS_STRCAT): Define.
50455         Add strcat and strncat support.
50456         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
50457
50458 2011-07-25  Andreas Schwab  <schwab@redhat.com>
50459
50460         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
50461         __n bigger than INT_MAX+1.
50462         (__strncmp_g): Likewise.
50463
50464 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
50465
50466         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
50467         * libio/stido.h: Likewise.
50468
50469         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
50470         (AF_NFC): Define.
50471         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
50472         (AF_NFC): Define.
50473
50474         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
50475         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
50476         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
50477         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
50478         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
50479
50480         [BZ #13021]
50481         * scripts/test-installation.pl: Don't expect libnss_test1 to be
50482         installed.
50483
50484         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
50485         typo.
50486         (_dl_x86_64_save_sse): Likewise.
50487
50488 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
50489
50490         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
50491         OSXSAVE.
50492         (_dl_x86_64_save_sse): Likewise.
50493
50494         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
50495
50496         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
50497
50498 2011-07-21  Andreas Schwab  <schwab@redhat.com>
50499
50500         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
50501         change.
50502         (_dl_x86_64_save_sse): Use correct AVX check.
50503
50504 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
50505
50506         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
50507         bug in strncpy/strncat.
50508         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
50509
50510 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
50511
50512         * string/tester.c (test_strcat): Add tests for different alignments
50513         of source and destination.
50514         (test_strncat): Likewise.
50515
50516 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
50517
50518         [BZ #12852]
50519         * posix/glob.c (glob): Check passed in values before using them in
50520         expressions to avoid some overflows.
50521         (glob_in_dir): Likewise.
50522
50523         [BZ #13007]
50524         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
50525         check for AVX enablement so that we don't crash with old kernels and
50526         new hardware.
50527         * elf/tst-audit4.c: Add same checks here.
50528         * elf/tst-audit6.c: Likewise.
50529
50530         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
50531
50532 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
50533
50534         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
50535
50536 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
50537
50538         * po/cs.po: Update from translation team.
50539         * po/bg.po: Likewise.
50540
50541 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
50542
50543         * misc/sys/cdefs.h: Add support for const attribute.
50544         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
50545         to gnu_dev_{major,minor,makedev} functions.
50546
50547 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
50548
50549         * intl/dcigettext.c (get_output_charset): Add missing bracket.
50550
50551 2011-07-20  Andreas Schwab  <schwab@redhat.com>
50552
50553         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
50554         strlen results.
50555
50556 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
50557
50558         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
50559         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
50560         register in order to avoid conflicts with the soft frame pointer
50561         being held in r11 when necessary.
50562         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
50563         (INTERNAL_VSYSCALL_NCS): Likewise.
50564
50565 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
50566
50567         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
50568         * elf/dl-fini.c (_dl_fini): Adjust caller.
50569         * elf/dl-close.c (_dl_close_worker): Likewise.
50570         * sysdeps/generic/ldsodefs.h: Adjust declaration.
50571
50572 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
50573
50574         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
50575         "aux_cache->nlibs < 0".
50576
50577         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
50578         in the reload-count case.
50579
50580 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
50581
50582         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
50583         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
50584         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
50585         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
50586         * sysdeps/x86_64/multiarch/strcat.S: New file.
50587         * sysdeps/x86_64/multiarch/strncat.S: New file.
50588         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
50589         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
50590         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
50591         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
50592         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
50593         (USE_AS_STRCAT): Define.
50594         Add strcat and strncat support.
50595         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
50596         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
50597         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
50598         * string/strncat.c: Update.
50599         (USE_AS_STRNCAT): Define.
50600         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
50601         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
50602         and i7.
50603         * sysdeps/x86_64/multiarch/init-arch.h
50604         (bit_Prefer_PMINUB_for_stringop): New.
50605         (index_Prefer_PMINUB_for_stringop): Likewise.
50606         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
50607         bit_Prefer_PMINUB_for_stringop.
50608
50609 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
50610
50611         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
50612         buffer64.
50613         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
50614         of casting of buffer.
50615         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
50616         buffer32 and buffer64.
50617         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
50618         writes instead of casting of buffer.
50619         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
50620         buffer32.
50621         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
50622         casting of buffer.
50623
50624 2011-07-19  Andreas Schwab  <schwab@redhat.com>
50625
50626         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
50627
50628 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
50629
50630         * nscd/nscd.c (termination_handler): Don't do anything for a database
50631         if it has not yet been initialized.
50632
50633 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
50634
50635         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
50636
50637 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
50638
50639         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
50640
50641 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
50642
50643         * po/nl.po: Update from translation team.
50644         * po/sv.po: Likewise.
50645
50646 2011-07-16  Roland McGrath  <roland@hack.frob.com>
50647
50648         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
50649         now disallowed by GCC.
50650
50651         * configure.in (use-default-link): Default to yes if a test -shared
50652         link meets our qualifications.
50653         * configure: Regenerated.
50654
50655         * config.make.in (output-format): New variable.
50656         * configure.in: Check for ld --print-output-format support.
50657         * configure: Regenerated.
50658         * Makerules ($(common-objpfx)format.lds)
50659         [$(output-format) != unknown]: Just use $(output-format),
50660         instead of the linker-script munging.
50661
50662 2011-07-14  Roland McGrath  <roland@hack.frob.com>
50663
50664         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
50665         of $(common-objpfx)shlib.lds.
50666         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
50667
50668         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
50669         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
50670
50671         * configure.in (-z relro check): Adjust test code to add a large
50672         writable data section after it.
50673         * configure: Regenerated.
50674
50675 2011-07-11  Roland McGrath  <roland@hack.frob.com>
50676
50677         * configure.in (-z relro check): Fix test code to make the variable
50678         truly const.
50679         * configure: Regenerated.
50680
50681 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
50682
50683         * nscd/nscd.h (struct traced_file): Define.
50684         (struct database_dyn): Remove inotify_descr, reset_res, and filename
50685         elements.  Add traced_files.
50686         (inotify_fd): Declare.
50687         (register_traced_file): Declare.
50688         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
50689         (inotify_fd): Export.
50690         (resolv_conf_descr): Remove.
50691         (nscd_init): Move inotify descriptor creation to main.
50692         Don't register files for notification here.
50693         (register_traced_file): New function.
50694         (invalidate_cache): Don't use reset_res to determine whether to call
50695         res_init, go through the list of registered files.
50696         (main_loop_poll): The inotify descriptors are now stored in the
50697         structures for the traced files.
50698         (main_loop_epoll): Likewise
50699         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
50700         to __nss_disable_nscd.
50701         * nscd/cache.c (prune_cache): There is no single inotify descriptor
50702         for a database anymore.  Check the records for all the registered
50703         files instead.
50704         * nss/Makefile (libnss_files-routines): Add files-init.
50705         (libnss_db-routines): Add db-init.
50706         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
50707         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
50708         * nss/nss_db/db-init.c: New file.
50709         * nss/nss_files/files-init.c: New file.
50710         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
50711         __nss_lookup_function.
50712         (__nss_lookup_function): Call nss_load_library.
50713         (nss_load_all_libraries): New function.
50714         (__nss_disable_nscd): Take parameter with callback function for files
50715         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
50716         used for the cached services.
50717         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
50718         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
50719         options for features to all the files in nscd.
50720
50721         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
50722
50723 2011-07-10  Roland McGrath  <roland@hack.frob.com>
50724
50725         * csu/elf-init.c (__libc_csu_init): Comment typo.
50726
50727 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
50728
50729         * po/pl.po: Update from translation team.
50730         * po/ja.po: Likewise.
50731         * po/ru.po: Likewise.
50732         * po/ko.po: Likewise.
50733         * po/fr.po: Likewise.
50734
50735 2011-07-09  Roland McGrath  <roland@hack.frob.com>
50736
50737         * configure.in (.ctors/.dtors header and trailer check):
50738         Use an empirical test on a built program.
50739         * configure: Regenerated.
50740
50741         * configure.in (-z relro check): Use an empirical test on a built DSO.
50742         Detect, but do not require, on ia64.
50743         * configure: Regenerated.
50744
50745         * configure.in (READELF): Find it with AC_CHECK_TOOL.
50746         Update tests that use readelf to use $READELF instead.
50747         * configure: Regenerated.
50748
50749 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
50750
50751         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
50752         if the result is not used.
50753
50754 2011-07-05  Andreas Jaeger  <aj@suse.de>
50755
50756         [BZ#9696]
50757         * stdlib/tst-strtod.c: Add testcase.
50758
50759 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
50760
50761         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
50762         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
50763         The latter has a higher limit.  Take additional parameter to pass to
50764         the new function.
50765         (__pathconf): Pass file to __statfs_link_max.
50766         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
50767         __statfs_link_max.
50768         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
50769         __statfs_link_max.
50770
50771         [BZ #12868]
50772         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
50773         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
50774         Handle Lustre.
50775         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
50776         (__statfs_filesize_max): Likewise.
50777         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
50778
50779 2011-07-05  Andreas Jaeger  <aj@suse.de>
50780
50781         * resolv/res_comp.c (dn_skipname): Remove unused variable.
50782
50783 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
50784
50785         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
50786         `status' variable.
50787         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
50788         Likewise.
50789
50790 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
50791
50792         * Makefile (strop-tests): Add strncat.
50793         * string/test-strncat.c: New file.
50794
50795 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
50796
50797         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
50798
50799 2011-06-21  Andreas Jaeger  <aj@suse.de>
50800
50801         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
50802         Copy rule from iconvdata/Makefile.
50803
50804 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
50805
50806         [BZ #12922]
50807         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
50808         but no long options are defined, just return 'W'.
50809
50810 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
50811
50812         [BZ #9696]
50813         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
50814
50815 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
50816
50817         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
50818         netgroups to read.
50819         (innetgr): Likewise.
50820
50821 2011-07-05  Roland McGrath  <roland@hack.frob.com>
50822
50823         * config.make.in (install_root): Default to $(DESTDIR).
50824
50825 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
50826
50827         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
50828
50829 2011-07-02  Roland McGrath  <roland@hack.frob.com>
50830
50831         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
50832
50833         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
50834         containing directory rather than embedding absolute directory names.
50835
50836         * scripts/check-local-headers.sh: Rewritten using awk.
50837         Match by word, not by line.  Print error messages for matches.
50838         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
50839
50840         * Makerules [shlib-lds-flags empty]:
50841         ($(common-objpfx)libc_pic.opts): New target.
50842         ($(common-objpfx)libc_pic.os.clean): New target.
50843         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
50844
50845         * config.make.in (OBJCOPY): New variable.
50846         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
50847         * configure: Regenerated.
50848
50849         * config.make.in (use-default-link): New variable.
50850         * configure.in (use_default_link): Grok --with-default-link to set it.
50851         * configure: Regenerated.
50852         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
50853         (shlib-lds, shlib-lds-flags): Define to empty.
50854
50855         * Makerules (shlib-lds): New variable.
50856         (shlib-lds-flags): New variable.
50857         (build-shlib, build-moduile, build-module-asneeded): Use it.
50858         ($(common-objpfx)libc.so): Use $(shlib-lds).
50859         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
50860         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
50861
50862         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
50863         DT_FLAGS/DT_FLAGS_1 with zero flags.
50864
50865         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
50866         linker script munging.
50867
50868 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
50869
50870         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
50871         as 128-bit value.
50872         * crypt/sha512.c (sha512_process_block): Perform total addition using
50873         128-bit if possible.
50874         (__sha512_finish_ctx): Likewise.
50875         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
50876         as 64-bit value.
50877         * crypt/sha256.c (SWAP64): Define.
50878         (sha256_process_block): Perform total addition using 64-bit if
50879         possible.
50880         (__sha256_finish_ctx): Likewise.
50881
50882 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
50883
50884         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
50885         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50886         * nscd/hstcache.c (cache_addhst): Likewise.
50887         * nscd/grpcache.c (cache_addgr): Likewise.
50888         * nscd/aicache.c (addhstaiX): Likewise
50889         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
50890
50891 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
50892
50893         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
50894         * nscd/initgrcache.c (addinitgroupsX): Likewise.
50895         * nscd/hstcache.c (cache_addhst): Likewise.
50896         * nscd/grpcache.c (cache_addgr): Likewise.
50897         * nscd/aicache.c (addhstaiX): Likewise
50898
50899 2011-07-01  Andreas Schwab  <schwab@redhat.com>
50900
50901         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
50902         domain only when needed.
50903
50904 2011-06-30  Andreas Schwab  <schwab@redhat.com>
50905
50906         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
50907         is always restored.
50908
50909 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
50910
50911         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
50912         are re-adding the entry.
50913         * nscd/servicescache.c (cache_addserv): Likewise.
50914
50915 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
50916
50917         * sysdeps/generic/dl-irel.h: fix protection against multiple
50918         inclusions.
50919         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
50920
50921 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
50922
50923         [BZ #12935]
50924         * malloc/memusage.sh: Fix quoting in message.
50925         * debug/xtrace.sh: Likewise.
50926
50927         * configure.in: Remove support for --experimental-malloc option, make
50928         it the default.
50929         * config.make.in: Likewise.
50930         * malloc/Makefile: Likewise.
50931
50932 2011-06-27  Andreas Schwab  <schwab@redhat.com>
50933
50934         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
50935         two-byte characters.
50936
50937 2011-06-27  Roland McGrath  <roland@hack.frob.com>
50938
50939         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
50940         AC_CACHE_CHECK invocation.
50941         * configure: Regenerated.
50942
50943         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
50944
50945 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
50946
50947         [BZ #12350]
50948         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
50949         bit from old_res_options.
50950
50951         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
50952
50953         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
50954         value type for setfct.
50955
50956 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
50957
50958         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
50959         __gettimeofday instead of gettimeofday.
50960
50961 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
50962
50963         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
50964
50965 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
50966
50967         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
50968
50969         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
50970         info.
50971
50972 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
50973
50974         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
50975         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
50976         strcpy-sse2-unaligned strncpy-sse2-unaligned
50977         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
50978         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
50979         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
50980         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
50981         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
50982         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
50983         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
50984         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
50985         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
50986         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
50987         (STRCPY): Support SSE2 and SSSE3 versions.
50988
50989 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
50990
50991         [BZ #12874]
50992         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
50993         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
50994         kernels which artificially limit size of requests.
50995
50996 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
50997
50998         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
50999         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
51000         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
51001         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
51002         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
51003         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
51004         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
51005         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
51006         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
51007         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
51008         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
51009         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
51010         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
51011         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
51012         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
51013         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51014         Enable unaligned load optimization for Intel Core i3, i5 and i7
51015         processors.
51016         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
51017         Define.
51018         (index_Fast_Unaligned_Load): Define.
51019         (HAS_FAST_UNALIGNED_LOAD): Define.
51020
51021 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
51022
51023         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
51024
51025 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
51026
51027         [BZ #12907]
51028         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
51029         until it is clear that the information is realy needed.
51030         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
51031
51032 2011-06-22  Andreas Schwab  <schwab@redhat.com>
51033
51034         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
51035
51036 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
51037
51038         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
51039         /sys/devices/system/cpu/online if it is usable.
51040
51041         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
51042         reading the information from the /proc filesystem to once a second.
51043
51044 2011-06-21  Andreas Jaeger  <aj@suse.de>
51045
51046         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
51047         NULL after inclusion of kernel headers.
51048
51049 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
51050
51051         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
51052         calls to internal_setent.
51053
51054         [BZ #12885]
51055         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
51056         addresses using gethostbyname4_r ignore IPv4 addresses.
51057
51058         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
51059         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
51060
51061         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
51062
51063 2011-06-20  David S. Miller  <davem@davemloft.net>
51064
51065         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
51066         inclusions.
51067         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
51068
51069         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
51070         (elf_irel): Use it.
51071         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
51072         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
51073         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
51074         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
51075         * sysdeps/x86_64/dl-irel.h: Likewise.
51076
51077         * elf/dl-runtime.c: Use elf_ifunc_invoke.
51078         * elf/dl-sym.c: Likewise.
51079
51080 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
51081
51082         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
51083         need to dereference resplen2.
51084
51085 2011-06-14  Andreas Schwab  <schwab@redhat.com>
51086
51087         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
51088
51089 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
51090
51091         * Makeconfig: Define vardbdir and inst_vardbdir.
51092         * nss/Makefile: Add rules to install db-Makefile.
51093
51094         * nss/nss_db/db-XXX.c: Cleanup.
51095
51096         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
51097         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
51098         GLIBC_PRIVATE.
51099         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
51100         * nss/makedb.c: Implement -g option to specify that value strings
51101         are generated and should not be added to table iterated over for
51102         get*ent calls.
51103         * nss/nss_db/db-initgroups.c: New file.
51104
51105         * nss/getent.c: Add support for initgroups lookups through getgrouplist
51106         interface.
51107
51108         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
51109         (internal_getgrouplist): Adjust to name change.
51110         Update use_initgroups_entry if this is not the first call.
51111         * nss/databases.def: Add initgroups entry.
51112
51113         * nss/makedb.c (compute_tables): Check result of multiple hash table
51114         sizes to minimize maximum chain length.
51115
51116 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
51117
51118         * Versions.def: Add entry for libnss_db.
51119         * shlib-versions: Likewise.
51120         * nss/Makefile: Add rules to build libnss_db.
51121         * nss/Versions: Add libnss_db information.  Organize libnss_files
51122         entries better.
51123         * nss/db-Makefile: Add gshadow support.  Change rules for the new
51124         makedb progra.  Some minor improvements to generate smaller files.
51125         * nss/nss_db/nss_db.h: Move NSS database header data structures to
51126         here from...
51127         * nss/makedb.c: ...here.
51128         Improve database format to be smaller and require less memory at
51129         runtime.
51130         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
51131         db anymore.
51132         * nss/nss_db/db-netgrp.c: Likewise.
51133         * nss/nss_db/db-open.c: Likewise.
51134         * nss/nss_files/flies-XXX.x: Adjust comments.
51135         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
51136         * nss/nss_files/files-grp.c: Likewise.
51137         * nss/nss_files/files-hosts.c: Likewise.
51138         * nss/nss_files/files-network.c: Likewise.
51139         * nss/nss_files/files-proto.c: Likewise.
51140         * nss/nss_files/files-pwd.c: Likewise.
51141         * nss/nss_files/files-rpc.c: Likewise.
51142         * nss/nss_files/files-service.c: Likewise.
51143         * nss/nss_files/files-sgrp.c: Likewise.
51144         * nss/nss_files/files-spwd.c: Likewise.
51145         * nss/nss_db/db-alias.c: Removed.
51146         * nss/nss_db/dummy-db.h: Removed.
51147
51148 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
51149
51150         * nss/makedb.c: Rewritten to not use database library.
51151         * nss/Makefile: Update to build new makedb program.
51152
51153 2011-06-14  Andreas Jaeger  <aj@suse.de>
51154
51155         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
51156         memset declaration.
51157
51158 2011-06-10  Andreas Schwab  <schwab@redhat.com>
51159
51160         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
51161         tmpbuf.
51162
51163 2011-06-10  Roland McGrath  <roland@hack.frob.com>
51164
51165         * Makerules (shlib.lds): Fail if the linker script comes out empty.
51166         * elf/Makefile ($(objpfx)ld.so): Likewise.
51167
51168         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
51169         Don't list ld.so twice in dependencies.
51170
51171         * posix/bug-regex31.c: Include <stdlib.h>.
51172
51173         * nscd/hstcache.c (cache_addhst): Remove unused variable.
51174
51175         * nis/nss_compat/compat-spwd.c
51176         (getspent_next_nss_netgr): Remove unused variable.
51177         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
51178
51179         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
51180         nonmembers" output to use the right array.
51181
51182         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
51183
51184         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
51185
51186         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
51187         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
51188         * catgets/gencat.c (read_input_file): Likewise.
51189         * locale/programs/locarchive.c (enlarge_archive): Likewise.
51190
51191         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
51192         variable definition inside #if's controlling its use.
51193
51194         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
51195
51196         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
51197
51198         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
51199
51200         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
51201         unreachable code.
51202
51203         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
51204
51205         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
51206         * configure: Regenerated.
51207
51208         * Makerules: Revert last change.
51209         * elf/Makefile: Likewise.
51210
51211 2011-06-09  Roland McGrath  <roland@hack.frob.com>
51212
51213         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
51214         * elf/Makefile ($(objpfx)librtld.os): Likewise.
51215         (reloc-link): Likewise.
51216
51217 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
51218
51219         * elf/Makefile: Add rules to build pldd.
51220         * elf/pldd.c: New file.
51221         * elf/pldd-xx.c: New file.
51222
51223 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
51224
51225         * version.h: Update for 2.15 development version.
51226
51227 2011-06-07  David S. Miller  <davem@davemloft.net>
51228
51229         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
51230         ifuncs.
51231         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
51232         elf_machine_lazy_rel): Likewise.
51233         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
51234         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
51235         elf_machine_lazy_rel): Likewise.
51236         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
51237         dl_hwcap via passed in argument.
51238         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
51239         Likewise.
51240
51241 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51242
51243         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
51244
51245 2011-06-06  Roland McGrath  <roland@hack.frob.com>
51246
51247         [BZ #12849]
51248         * manual/fdl-1.1.texi: New file, verbatim from:
51249         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
51250         * manual/lgpl-2.1.texi: New file, verbatim from:
51251         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
51252         * manual/Makefile (licenses): New variable, list those new file names.
51253         (texis): Use it.
51254         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
51255
51256         * manual/fdl.texi: File removed.
51257         * manual/lesser.texi: File removed.
51258         * manual/libc.texinfo (Copying, Documentation License):
51259         Use new @include file names, put @appendix directive before @include.
51260
51261 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
51262
51263         [BZ #12841]
51264         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
51265         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
51266         (mq_open): Add __NTH.
51267
51268 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
51269
51270         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
51271         Assume Intel Core i3/i5/i7 processor if AVX is available.
51272
51273 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
51274
51275         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
51276         typo.
51277
51278 2011-05-31  Andreas Schwab  <schwab@redhat.com>
51279
51280         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
51281         memory.  Use alloca_account.  Fix memory leak when retrying.
51282
51283 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
51284
51285         * version.h (RELEASE): Bump for 2.14 release.
51286         * include/features.h (__GLIBC_MINOR__): Bump to 14.
51287
51288         * config.make.in (RANLIB): Remove entry.
51289
51290 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
51291
51292         * po/Makefile (po-sed-cmd): Add ksh to extensions.
51293         (libc.pot): Work around missing support for .ksh extension in xgettext.
51294
51295         [BZ #12684]
51296         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
51297         if both request failed.
51298         (send_dg): In case of server errors clear resplen or *resplen2.
51299
51300         [BZ #12454]
51301         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
51302         when there are multiple maps.
51303         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
51304         (_dl_fini): Remove test here.
51305
51306         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
51307
51308 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
51309
51310         [BZ #12350]
51311         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
51312         bit from old_res_options.
51313         (gaih_inet): Likewise.
51314
51315         [BZ #11099]
51316         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
51317         as signed.
51318
51319         * resolv/res_init.c (res_setoptions): Make the code more compact.
51320
51321         [BZ #11558]
51322         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
51323         set RES_USEVC.
51324
51325         [BZ #11634]
51326         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
51327
51328         * malloc/malloc.h: Mark malloc hook variables as deprecated.
51329
51330         [BZ #11781]
51331         * malloc/malloc.h: Declare malloc hook variables as volatile.
51332
51333         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
51334         in last patch.
51335
51336         [BZ #11799]
51337         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
51338         raise in the comment.
51339         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
51340         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
51341         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
51342
51343 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
51344
51345         [BZ #12811]
51346         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
51347         grow the buffers more if it already has to be sufficient.
51348         (build_wcs_upper_buffer): Likewise.
51349         * posix/regexec.c (check_matching): Likewise.
51350         (clean_state_log_if_needed): Likewise.
51351         (extend_buffers): Don't enlarge buffers beyond size of the input
51352         buffer.
51353         Patches mostly by Emil Wojak <emil@wojak.eu>.
51354         * posix/bug-regex32.c: New file.
51355         * posix/Makefile (tests): Add bug-regex32.
51356
51357         * locale/findlocale.c (_nl_find_locale): Return right away if
51358         _nl_explode_name failed.
51359         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
51360
51361         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
51362
51363         * debug/xtrace.sh: Unify messages.
51364         * malloc/memusage.sh: Likewise.
51365
51366         [BZ #12813]
51367         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
51368         time symbol from vDSO.  Substitute with vsyscall if not available.
51369         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
51370         __vdso_time.
51371
51372         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
51373         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
51374         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
51375         Add sendmmsg and internal_sendmmsg.
51376         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
51377         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
51378         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
51379
51380         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
51381         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
51382         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
51383
51384 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
51385
51386         [BZ #12813]
51387         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
51388         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
51389         available.
51390         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
51391         __vdso_getcpu.
51392
51393         [BZ #12814]
51394         * iconvdata/Makefile (tests): Add bug-iconv9.
51395         * iconvdata/bug-iconv9.c: New file.
51396
51397 2011-05-27  Andreas Schwab  <schwab@redhat.com>
51398
51399         [BZ #12814]
51400         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
51401
51402 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
51403
51404         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
51405         (struct user_regs_struct): Change intcs field back to cs.
51406
51407 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
51408
51409         * po/ja.po: Update from translation team.
51410
51411 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
51412
51413         [BZ #12795]
51414         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
51415         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
51416
51417 2011-05-20  Andreas Schwab  <schwab@redhat.com>
51418
51419         * stdlib/longlong.h: Update from GCC.
51420
51421 2011-05-23  Andreas Schwab  <schwab@redhat.com>
51422
51423         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
51424         parameter name.
51425         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
51426         Add parameter name.
51427         (__sysconf): Pass it down.
51428
51429 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
51430
51431         [BZ #12671]
51432         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
51433         some situations.
51434         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
51435         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
51436         add in in __libc_use_alloca calls.  Adjust callers.
51437         (glob): Use malloc in some situations.
51438
51439         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
51440         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
51441         pltexit.
51442
51443 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
51444
51445         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
51446         and CLOCK_BOOTTIME_ALARM.
51447
51448         [BZ #12782]
51449         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
51450         is returned.
51451
51452         * string/_strerror.c (__strerror_r): Print negative errors as signed
51453         numbers.
51454
51455         [BZ #12777]
51456         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
51457         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
51458         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
51459
51460         * configure.in: Fix typo in redirection and correct removal of test
51461         files in two cases.
51462
51463         [BZ #12788]
51464         * locale/setlocale.c (new_composite_name): Fix test to check for
51465         identical name of all categories.
51466
51467         [BZ #12792]
51468         * libio/filedoalloc.c (local_isatty): New function.
51469         (_IO_file_doallocate): Use local_isatty.
51470         * stdio-common/perror.c (perror): In case a new stream is used
51471         forward the stream error.
51472         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
51473         error flag.
51474
51475 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
51476
51477         [BZ #11869]
51478         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
51479         alloca.
51480         * include/alloca.h (extend_alloca_account): Define.
51481
51482         [BZ #11857]
51483         * posix/regex.h: Fix comments with documentation of user-accessible
51484         fields after compilation and describe correct free'ing of pattern
51485         after re_compile_pattern.
51486         Patch by Reuben Thomas <rrt@sc3d.org>.
51487
51488 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
51489
51490         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
51491         and -mno-altivec to prevent the compiler from using Altivec and/or
51492         VSX instructions when the corresponding registers are not available.
51493
51494 2011-05-19  Andreas Schwab  <schwab@redhat.com>
51495
51496         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
51497
51498 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
51499
51500         * libio/freopen.c (freopen): Use __dup2, not dup2.
51501         * libio/freopen64.c (freopen64): Likewise.
51502
51503 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
51504
51505         [BZ #12775]
51506         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
51507         * math/Makefile (tests): Add test-powl.
51508         (CFLAGS-test-powl.c): Define.
51509         * math/test-powl.c: New file.
51510
51511 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
51512
51513         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
51514
51515 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
51516
51517         [BZ #11837]
51518         * iconvdata/gb18030.c: Update to GB18020-2005.
51519
51520 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
51521
51522         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
51523         RE_SYNTAX_POSIX_AWK): Update to match recent development.
51524         Patch by Aharon Robbins <arnold@skeeve.com>.
51525
51526         [BZ #11892]
51527         * stdlib/putenv.c (putenv): Don't always create copy of the variable
51528         on the stack.
51529
51530         [BZ #11895]
51531         * misc/pselect.c (__pselect): Handle timeout value errors hidden
51532         through underflows.
51533
51534         [BZ #12766]
51535         * misc/error.c (error_at_line): Ensure file_name and old_file_name
51536         point to strings before performing equality test for error_one_per_line
51537         mode.
51538
51539         [BZ #11697]
51540         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
51541
51542         [BZ #11820]
51543         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
51544         (struct user_fpregs_struct): Avoid __uint*_t types.
51545
51546         [BZ #6420]
51547         * malloc/mtrace.c (tr_where): Add additional parameter to point to
51548         symbol info.  Use it instead of calling _dl_addr locally.
51549         (lock_and_info): New function.
51550         (tr_freehook): Call lock_and_info and pass symbol info as additional
51551         parameter to tr_where.
51552         (tr_mallochook): Likewise.
51553         (tr_reallochook): Likewise.
51554         (tr_memalignhook): Likewise.
51555
51556         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
51557         used and couldn't be at all thread-safe.
51558
51559 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
51560
51561         * libio/freopen.c (freopen): Don't close old file descriptor
51562         before the new one is opened.  Instead dup the new file descriptor
51563         to the old one after the new stream is created.
51564         * libio/freopen64.c (freopen64): Likewise.
51565         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
51566         * libio/fileops.c (_IO_new_file_close_it): Handle new
51567         _IO_FLAGS2_NOCLOSE flag.
51568         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
51569         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
51570         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
51571         _IO_FLAGS2_NOCLOSE flag.
51572         * include/unistd.h: Add hidden_proto for dup3.
51573         Define __have_dup3.
51574         * io/dup3.c: Define hidden symbol.
51575         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
51576
51577         [BZ #7101]
51578         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
51579         when an incomplete long option is used.
51580         * posix/tst-getopt_long1.c: New file.
51581         * posix/Makefile (tests): Add tst-getopt_long1.
51582
51583         [BZ #10138]
51584         * scripts/config.guess: Update from autoconf-2.68.
51585         * scripts/config.sub: Likewise.
51586
51587         [BZ #10157]
51588         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
51589         tests into ...
51590         (has_cpuclock): ...this.  New function.
51591         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
51592         macro here based on has_cpuclock code.
51593
51594         [BZ #10149]
51595         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
51596         First byte (not low byte) is now always NUL.
51597         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
51598
51599         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
51600         Use non-cancelable interfaces.
51601
51602         [BZ #9809]
51603         * locale/iso-639.def: Add entry for Sorani.
51604
51605         [BZ #11901]
51606         * include/stdlib.h: Move include protection to the right place.
51607         Define abort_msg_s.  Declare __abort_msg with it.
51608         * stdlib/abort.c (__abort_msg): Adjust type.
51609         * assert/assert.c (__assert_fail_base): New function.  Majority
51610         of code from __assert_fail.  Allocate memory for __abort_msg with
51611         mmap.
51612         (__assert_fail): Now call __assert_fail_base.
51613         * assert/assert-perr.c: Remove bulk of implementation.  Use
51614         __assert_fail_base.
51615         * include/assert.hL Declare __assert_fail_base.
51616         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
51617         mmap.
51618         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
51619
51620 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
51621
51622         [BZ #11952]
51623         [BZ #12453]
51624         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
51625         until all modules are registered in the DTV.
51626         * elf/Makefile: Add rules to build and run tst-tls19.
51627         * elf/tst-tls19.c: New file.
51628         * elf/tst-tls19mod1.c: New file.
51629         * elf/tst-tls19mod2.c: New file.
51630         * elf/tst-tls19mod3.c: New file.
51631         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
51632
51633         [BZ #12083]
51634         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
51635         correctly.
51636
51637         [BZ #12601]
51638         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
51639         two-byte sequence errors.
51640         * iconvdata/Makefile (tests): Add bug-iconv8.
51641         * iconvdata/bug-iconv8.c: New file.
51642
51643         [BZ #12626]
51644         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
51645         buf2 definition.
51646
51647         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
51648
51649         [BZ #12432]
51650         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
51651         (dummy_getcfa): New function.
51652         (init): Get _Unwind_GetCFA address, use dummy if not found.
51653         (backtrace_helper): In recursion check, also check whether CFA changes.
51654         (__backtrace): Completely initialize arg.
51655
51656         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
51657         storing incomplete byte sequence in state object.  Avoid testing for
51658         guaranteed too small input if we know there is enough data available.
51659
51660 2011-05-11  Andreas Schwab  <schwab@redhat.com>
51661
51662         * Makeconfig (+link-pie): Indent.
51663         * Rules (binaries-pie): Define if $(have-fpie) and
51664         $(build-shared).
51665         (binaries-shared): Also filter out $(binaries-pie).
51666         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
51667         * nscd/Makefile (others-pie): Add nscd.
51668         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
51669         ($(objpfx)nscd): Remove command override.
51670         * login/Makefile (others-pie): Add pt_chown.
51671         ($(objpfx)pt_chown): Remove command override.
51672         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
51673         remove command overrides.
51674
51675 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
51676
51677         * libio/tst_putwc.c: Fix error messages.
51678
51679         [BZ #12724]
51680         * libio/fileops.c (_IO_new_file_close_it): Always flush when
51681         currently writing and seek to current position when not.
51682         * libio/Makefile (tests): Add bug-fclose1.
51683         * libio/bug-fclose1.c: New file.
51684
51685 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
51686
51687         [BZ #12511]
51688         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
51689         don't set DF_1_NODELETE here.
51690         (do_lookup_x): When entering new entry test for copy relocation
51691         and if necessary set DF_1_NODELETE flag.
51692         * elf/tst-unique4.cc: New file.
51693         * elf/tst-unique4.h: New file.
51694         * elf/tst-unique4lib.cc: New file.
51695         * elf/Makefile: Add rules to build and run tst-unique4.
51696         Patch by Piotr Bury <pbury@goahead.com>.
51697
51698 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
51699
51700         [BZ #12052]
51701         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
51702
51703         [BZ #12625]
51704         * misc/mntent_r.c (addmntent): Flush the stream after the output
51705
51706         [BZ #12393]
51707         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
51708         (is_trusted_path_normalize): Skip initial colon.  Append slash
51709         to empty buffer.  Duplicate is_trusted_path code but allow
51710         constructed patch to be prefix.
51711         (is_dst): Allow $ORIGIN followed by /.
51712         (_dl_dst_substitute): Correct clearing of check_for_trusted.
51713         Correct testing of result of is_trusted_path_normalize
51714         (decompose_rpath): Fix warning.
51715
51716 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
51717
51718         [BZ #11257]
51719         * grp/initgroups.c (internal_getgrouplist): When we found the service
51720         list through the initgroups entry in nsswitch.conf do not always
51721         continue on a successful lookup.  Don't always use the
51722         __nss_group_database value if it is set.
51723         * nss/nsswitch.conf (initgroups): Change action for successful db
51724         lookup to continue for compatibility.
51725
51726 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
51727
51728         [BZ #11532]
51729         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
51730         and CP774 modules.
51731         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
51732         and CP774 modules.
51733         * iconvdata/tst-tables.sh: Likewise.
51734         * iconvdata/cp770.c: New file.
51735         * iconvdata/cp771.c: New file.
51736         * iconvdata/cp772.c: New file.
51737         * iconvdata/cp773.c: New file.
51738         * iconvdata/cp774.c: New file.
51739         * iconvdata/testdata/CP770: New file.
51740         * iconvdata/testdata/CP770..UTF8: New file.
51741         * iconvdata/testdata/CP771: New file.
51742         * iconvdata/testdata/CP771..UTF8: New file.
51743         * iconvdata/testdata/CP772: New file.
51744         * iconvdata/testdata/CP772..UTF8: New file.
51745         * iconvdata/testdata/CP773: New file.
51746         * iconvdata/testdata/CP773..UTF8: New file.
51747         * iconvdata/testdata/CP774: New file.
51748         * iconvdata/testdata/CP774..UTF8: New file.
51749
51750         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
51751         END CHARMAP line.
51752         * iconvdata/gen-8bit-gap.sh: Likewise.
51753         * iconvdata/gen-8bit.sh: Likewise.
51754
51755         * locale/iso-639.def: Add ary entry.
51756
51757         [BZ #11258]
51758         * locale/C-translit.h.in: Add U20A1 transliteration.
51759
51760         [BZ #12178]
51761         * locale/iso-639.def: Add wae entry.
51762         Patch by Kevin Bortis <bortis@translate-wae.ch>.
51763
51764         [BZ #12545]
51765         * locale/programs/localedef.c (construct_output_path): Use ssize_t
51766         for n.
51767
51768         [BZ #12711]
51769         * locale/C-translit.h.in: Add entry for U20B9.
51770         Patch by pravin.d.s@gmail.com.
51771
51772 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
51773
51774         [BZ #12713]
51775         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
51776         ENAMETOOLONG use generic getcwd.
51777         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
51778         in rtld.  Use *stat64.
51779         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
51780         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
51781         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
51782         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
51783         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
51784         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
51785         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
51786         __fstatat64 macros.
51787         * include/dirent.h: Add libc_hidden_proto for rewinddir.
51788         * dirent/rewinddir.c: Add libc_hidden_def.
51789         * sysdeps/mach/hurd/rewinddir.c: Likewise.
51790         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
51791
51792         * include/dirent.h (__alloc_dir): Add flags parameter.
51793         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
51794         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
51795         __alloc_dir.
51796         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
51797         from fdopendir if O_CLOEXEC is already set.
51798
51799 2011-03-15  Alan Modra  <amodra@gmail.com>
51800
51801         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
51802         l_tls_firstbyte_offset non-zero.  Save padding offset in
51803         l_tls_firstbyte_offset for later use.
51804         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
51805         freeing static tls block.
51806
51807 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
51808
51809         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
51810         where #ifdef was intended.  The intent is to prevent ARG_MAX from
51811         being defined by the kernel headers.
51812
51813 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
51814
51815         [BZ #12734]
51816         * resolv/resolv.h: Define RES_NOTLDQUERY.
51817         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
51818         no-tld-query and set RES_NOTLDQUERY.
51819         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
51820         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
51821         modern BIND to search name as TLD unless forbidden.
51822
51823 2011-05-07  Petr Baudis  <pasky@suse.cz>
51824             Ulrich Drepper  <drepper@gmail.com>
51825
51826         [BZ #12393]
51827         * elf/dl-load.c (fillin_rpath): Move trusted path check...
51828         (is_trusted_path): ...to here.
51829         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
51830         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
51831         using is_trusted_path_normalize() in setuid scripts.
51832
51833 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
51834
51835         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
51836         __BEGIN/__END_DECLS.
51837
51838 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
51839
51840         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
51841         NSS_STATUS_NOTFOUND if no record was found.
51842
51843 2011-05-05  Andreas Schwab  <schwab@redhat.com>
51844
51845         * sunrpc/Makefile (headers): Add rpc/netdb.h.
51846         (headers-not-in-tirpc): Remove rpc/netdb.h
51847         * resolv/netdb.h: Revert last change.
51848
51849 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
51850
51851         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
51852         circular dependency between libgcc.a and libc.a.
51853
51854 2011-05-05  Andreas Schwab  <schwab@redhat.com>
51855
51856         * resolv/netdb.h: Don't include <rpc/netdb.h>.
51857         * nis/Makefile: Don't install rpcsvc/*.
51858         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
51859         instead of <rpc/types.h>.
51860         (MAXHOSTNAMELEN): Define.
51861
51862 2011-05-03  Andreas Schwab  <schwab@redhat.com>
51863
51864         * elf/ldconfig.c (add_dir): Don't crash on empty path.
51865
51866 2011-04-28  Maciej Babinski  <mbabinski@google.com>
51867
51868         [BZ #12714]
51869         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
51870         gethostbyname4_r when IPv6 results are possible.
51871
51872 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
51873
51874         [BZ #12723]
51875         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
51876         _PC_PIPE_BUF handling.
51877
51878 2011-04-30  Bruno Haible  <bruno@clisp.org>
51879
51880         [BZ #12717]
51881         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
51882         * resolv/netdb.h (getnameinfo): Change type of flags parameter
51883         to 'int'.
51884         * inet/getnameinfo.c (getnameinfo): Likewise.
51885
51886 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
51887
51888         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
51889         to groups setting in database lookup.
51890         * nss/nsswitch.conf: Add initgroups entry.
51891
51892 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
51893
51894         [BZ #12685]
51895         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
51896         mode string.
51897         Patch by Eric Blake <eblake@redhat.com>.
51898
51899 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
51900
51901         * sunrpc/Makefile (need-export-routines): Add svc_run.
51902         (routines): Remove svc_run.
51903         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
51904         * sunrpc/clnt_perr.c (clnt_perrno): Export.
51905         * sunrpc/svc_run.c (svc_run): Likewise.
51906         * sunrpc/svc_udp.c (svcudp_create): Likewise.
51907
51908 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
51909
51910         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
51911         problem in reallocation in last patch.
51912
51913 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
51914
51915         * sunrpc/Makefile: Move inclusion of Rules.
51916
51917 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
51918
51919         * nss/nss_files/files-initgroups.c: New file.
51920         * nss/Makefile (libnss_files-routines): Add files-initgroups.
51921         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
51922         _nss_files_initgroups_dyn.
51923
51924 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
51925
51926         * elf/elf.h (R_ARM_IRELATIVE): Define.
51927
51928 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
51929
51930         * po/ru.po: Update from translation team.
51931
51932 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
51933
51934         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
51935         dependencies.
51936
51937 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
51938
51939         [BZ #12653]
51940         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
51941         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
51942         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
51943         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
51944         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
51945
51946 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
51947
51948         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
51949         differing bytes.
51950         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
51951         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
51952         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
51953
51954 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
51955
51956         [BZ #12420]
51957         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
51958         storing it.
51959         * stdlib/bug-getcontext.c: New file.
51960         * stdlib/Makefile: Add rules to build and run bug-getcontext.
51961
51962 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51963
51964         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
51965         instructions into .machine "z9-109".
51966         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
51967         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
51968
51969 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
51970
51971         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
51972         between environment variables and auxiliary vector.
51973
51974 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
51975
51976         * Makefile: Add rules to build linkobj/libc.so.
51977         * include/libc-symbols.h: Define libc_hidden_nolink.
51978         * include/rpc/auth.h: Mark functions which are to be hidden.
51979         * include/rpc/auth_des.h: Likewise.
51980         * include/rpc/auth_unix.h: Likewise.
51981         * include/rpc/clnt.h: Likewise.
51982         * include/rpc/des_crypt.h: Likewise.
51983         * include/rpc/key_prot.h: Likewise.
51984         * include/rpc/pmap_clnt.h: Likewise.
51985         * include/rpc/pmap_prot.h: Likewise.
51986         * include/rpc/pmap_rmt.h: Likewise.
51987         * include/rpc/rpc_msg.h: Likewise.
51988         * include/rpc/svc.h: Likewise.
51989         * include/rpc/svc_auth.h: Likewise.
51990         * include/rpc/xdr.h: Likewise.
51991         * nis/Makefile: Link all DSOs against linkobj/libc.so.
51992         * nss/Makefile: Likewise.
51993         * sunrpc/Makefile: Don't install headers.  Build library with normal
51994         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
51995         * sunrpc/auth_des.c: Hide exported symbols by default, export some
51996         for the compat linking library.  Remove use of INTDEF/INTUSE.
51997         * sunrpc/auth_none.c: Likewise.
51998         * sunrpc/auth_unix.c: Likewise.
51999         * sunrpc/authdes_prot.c: Likewise.
52000         * sunrpc/authuxprot.c: Likewise.
52001         * sunrpc/clnt_gen.c: Likewise.
52002         * sunrpc/clnt_perr.c: Likewise.
52003         * sunrpc/clnt_raw.c: Likewise.
52004         * sunrpc/clnt_simp.c: Likewise.
52005         * sunrpc/clnt_tcp.c: Likewise.
52006         * sunrpc/clnt_udp.c: Likewise.
52007         * sunrpc/clnt_unix.c: Likewise.
52008         * sunrpc/des_crypt.c: Likewise.
52009         * sunrpc/des_soft.c: Likewise.
52010         * sunrpc/get_myaddr.c: Likewise.
52011         * sunrpc/key_call.c: Likewise.
52012         * sunrpc/key_prot.c: Likewise.
52013         * sunrpc/netname.c: Likewise.
52014         * sunrpc/pm_getmaps.c: Likewise.
52015         * sunrpc/pm_getport.c: Likewise.
52016         * sunrpc/pmap_clnt.c: Likewise.
52017         * sunrpc/pmap_prot.c: Likewise.
52018         * sunrpc/pmap_prot2.c: Likewise.
52019         * sunrpc/pmap_rmt.c: Likewise.
52020         * sunrpc/publickey.c: Likewise.
52021         * sunrpc/rpc_cmsg.c: Likewise.
52022         * sunrpc/rpc_common.c: Likewise.
52023         * sunrpc/rpc_dtable.c: Likewise.
52024         * sunrpc/rpc_prot.c: Likewise.
52025         * sunrpc/rpc_thread.c: Likewise.
52026         * sunrpc/rtime.c: Likewise.
52027         * sunrpc/svc.c: Likewise.
52028         * sunrpc/svc_auth.c: Likewise.
52029         * sunrpc/svc_authux.c: Likewise.
52030         * sunrpc/svc_raw.c: Likewise.
52031         * sunrpc/svc_run.c: Likewise.
52032         * sunrpc/svc_simple.c: Likewise.
52033         * sunrpc/svc_tcp.c: Likewise.
52034         * sunrpc/svc_udp.c: Likewise.
52035         * sunrpc/svc_unix.c: Likewise.
52036         * sunrpc/svcauth_des.c: Likewise.
52037         * sunrpc/xcrypt.c: Likewise.
52038         * sunrpc/xdr.c: Likewise.
52039         * sunrpc/xdr_array.c: Likewise.
52040         * sunrpc/xdr_float.c: Likewise.
52041         * sunrpc/xdr_intXX_t.c: Likewise.
52042         * sunrpc/xdr_mem.c: Likewise.
52043         * sunrpc/xdr_rec.c: Likewise.
52044         * sunrpc/xdr_ref.c: Likewise.
52045         * sunrpc/xdr_sizeof.c: Likewise.
52046         * sunrpc/xdr_stdio.c: Likewise.
52047
52048 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
52049
52050         [BZ #12650]
52051         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
52052         * sysdeps/ia64/dl-tls.h: Likewise.
52053         * sysdeps/powerpc/dl-tls.h: Likewise.
52054         * sysdeps/s390/dl-tls.h: Likewise.
52055         * sysdeps/sh/dl-tls.h: Likewise.
52056         * sysdeps/sparc/dl-tls.h: Likewise.
52057         * sysdeps/x86_64/dl-tls.h: Likewise.
52058         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
52059
52060 2011-03-14  Andreas Schwab  <schwab@redhat.com>
52061
52062         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
52063         rpath element also skip the following colon.
52064         (expand_dynamic_string_token): Add is_path parameter and pass
52065         down to DL_DST_REQUIRED and _dl_dst_substitute.
52066         (decompose_rpath): Call expand_dynamic_string_token with
52067         non-zero is_path.  Ignore empty rpaths.
52068         (_dl_map_object_from_fd): Call expand_dynamic_string_token
52069         with zero is_path.
52070
52071 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
52072
52073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
52074         Make cancelable.
52075
52076 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
52077
52078         [BZ #12655]
52079         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
52080         Patch by Filipe David Manana <fdmanana@apache.org>.
52081
52082 2011-04-07  Andreas Schwab  <schwab@redhat.com>
52083
52084         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
52085         Maintain aligned stack.
52086         (CHECK_RSP): Remove unused macro.
52087
52088 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
52089
52090         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
52091         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
52092
52093 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
52094
52095         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
52096
52097         * include/features.h: Mention __USE_XOPEN2K8 in comment.
52098
52099 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
52100
52101         [BZ #12518]
52102         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
52103         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
52104         * sysdeps/x86_64/memmove.c: New file.
52105         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
52106         (memcpy): Renamed to ...
52107         (__new_memcpy): This.
52108         (memcpy): Provide GLIBC_2_14 memcpy.
52109         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
52110         (memcpy): Provide GLIBC_2_2_5 memcpy.
52111
52112 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
52113
52114         [BZ #12631]
52115         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
52116
52117 2011-03-30  Andreas Schwab  <schwab@redhat.com>
52118
52119         * misc/syncfs.c: New file.
52120         * misc/Makefile (routines): Add syncfs.
52121         * posix/unistd.h: Declare syncfs.
52122         * sysdeps/unix/syscalls.list: Add syncfs.
52123
52124 2011-04-01  Andreas Schwab  <schwab@redhat.com>
52125
52126         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
52127         open_by_handle_at.
52128         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
52129         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
52130         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
52131         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
52132         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
52133         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
52134         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
52135
52136 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
52137
52138         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
52139         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
52140         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
52141         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
52142         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
52143         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
52144         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
52145
52146         * io/Makefile: Compile fallocate.c, fallocate64.c, and
52147         sync_file_range.c with -fexceptions.
52148         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
52149         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
52150         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
52151         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
52152         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
52153         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
52154         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
52155         sync_file_range as cancellation point
52156         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
52157         now a wrapper around __call_sync_file_range with cancellation handling.
52158         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
52159         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
52160         function name to __call_sync_file_range.
52161         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
52162         Add call_sync_file_range.
52163
52164 2011-04-01  Andreas Schwab  <schwab@redhat.com>
52165
52166         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
52167         bits/timex.h.
52168
52169 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
52170
52171         * iconv/iconv.h: Fix typo in comment.
52172         * io/fcntl.h: Likewise.
52173         * libio/stdio.h: Likewise.
52174         * posix/spawn.h: Likewise.
52175         * posix/unistd.h: Likewise.
52176         * stdlib/stdlib.h: Likewise.
52177         * time/time.h: Likewise.
52178         * wcsmbs/wchar.h: Likewise.
52179
52180         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
52181         open_by_handle): Add.
52182         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
52183         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
52184         Augment a few comments.
52185         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
52186         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
52187         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
52188         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
52189         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
52190         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
52191         open_by_handle.
52192
52193         * io/fcntl.h (AT_EMPTY_PATH): Define.
52194
52195 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
52196
52197         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
52198         * sysdeps/unix/sysv/linux/bits/time.h: New file.
52199         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
52200         to...
52201         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
52202         * Versions.def: Add GLIBC_2.14.
52203         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
52204         Export.
52205
52206 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
52207
52208         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
52209         round counter.
52210         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
52211
52212 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
52213
52214         [BZ #12597]
52215         * string/test-strncmp.c (do_page_test): New function.
52216         (check2): Likewise.
52217         (test_main): Call check2.
52218         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
52219
52220 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
52221
52222         [BZ #12587]
52223         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
52224         Handle cache information in CPU leaf 4.
52225         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
52226
52227 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
52228
52229         [BZ #12583]
52230         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
52231         character representation.
52232         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
52233
52234 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
52235
52236         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
52237         END(__isnan) to END(__isnanf) to match function entry point/label
52238         EALIGN(__isnanf,...).
52239
52240 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
52241
52242         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
52243
52244 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
52245
52246         [BZ #12510]
52247         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
52248         copy from the symbol referenced in the relocation to initialize the
52249         used variable.
52250         Patch by Piotr Bury <pbury@goahead.com>.
52251         * elf/Makefile: Add rules to build and tst-unique3.
52252         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
52253         * elf/tst-unique3.cc: New file.
52254         * elf/tst-unique3.h: New file.
52255         * elf/tst-unique3lib.cc: New file.
52256         * elf/tst-unique3lib2.cc: New file.
52257
52258         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
52259
52260 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
52261
52262         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
52263         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
52264         to _start.
52265
52266 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
52267
52268         * elf/dl-load.c (_dl_map_object): If we are looking for the first
52269         to-be-loaded object along a path to loader is ld.so.
52270
52271 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
52272             Ulrich Drepper  <drepper@gmail.com>
52273
52274         * sysdeps/x86_64/memset.S: After aligning destination, code
52275         branches to different locations depending on the value of
52276         misalignment, when multiarch is enabled. Fix this.
52277
52278 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
52279
52280         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
52281         Set _x86_64_preferred_memory_instruction for AMD processsors.
52282         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52283         Set bit_Prefer_SSE_for_memop for AMD processors.
52284
52285 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
52286
52287         * libio/fmemopen.c (fmemopen): Optimize a bit.
52288
52289 2011-03-03  Andreas Schwab  <schwab@redhat.com>
52290
52291         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
52292
52293 2011-03-03  Roland McGrath  <roland@redhat.com>
52294
52295         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
52296
52297 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
52298
52299         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
52300         __bzero_ultra1 instead of __memset_ultra1.
52301
52302 2011-02-23  Andreas Schwab  <schwab@redhat.com>
52303             Ulrich Drepper  <drepper@gmail.com>
52304
52305         [BZ #12509]
52306         * include/link.h (struct link_map): Add l_orig_initfini.
52307         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
52308         returning unsuccessfully.
52309         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
52310         close of a file loaded at startup, restore the original l_initfini
52311         list.
52312         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
52313         list, store the pointer.
52314         * elf/Makefile ($(objpfx)noload-mem): New rule.
52315         (noload-ENV): Define.
52316         (tests): Add $(objpfx)noload-mem.
52317         * elf/noload.c: Include <memcheck.h>.
52318         (main): Call mtrace.  Close all opened handles.
52319
52320 2011-02-17  Andreas Schwab  <schwab@redhat.com>
52321
52322         [BZ #12454]
52323         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
52324         dependencies are missing.
52325
52326 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
52327
52328         Fix __if_freereq crash: Unlike the generic version which uses free,
52329         Hurd needs munmap.
52330         * sysdeps/mach/hurd/ifreq.h: New file.
52331
52332 2011-01-27  Petr Baudis  <pasky@suse.cz>
52333             Ulrich Drepper  <drepper@gmail.com>
52334
52335         [BZ 12445]#
52336         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
52337         to extend_alloca().
52338         * stdio-common/bug23.c: New file.
52339         * stdio-common/Makefile (tests): Add bug23.
52340
52341 2010-09-28  Andreas Schwab  <schwab@redhat.com>
52342             Ulrich Drepper  <drepper@gmail.com>
52343
52344         [BZ #12489]
52345         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
52346         before performing relro protection.  At old place add assertion
52347         to make sure nothing changed.
52348
52349 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
52350             Glauber de Oliveira Costa  <glommer@gmail.com>
52351
52352         * elf/elf.h: Add new ARM TLS relocs.
52353
52354 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
52355
52356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
52357         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
52358         cast from r3.
52359         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
52360         'tests' variable.
52361         * sysdeps/wordsize-64/tst-writev.c: New file.
52362
52363 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
52364
52365         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
52366         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
52367         insns in _dl_start to prevent a TOC reference before relocs are
52368         resolved.
52369
52370 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
52371
52372         [BZ #12469]
52373         * Makeconfig: Remove RANLIB definition.
52374         * Makerules: Don't use RANLIB.
52375         * aclocal.m4: Remove ranlib test.
52376         * configure.in: No need to check for ranlib.
52377         * elf/rtld-Rules: Don't use RANLIB.
52378
52379 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
52380
52381         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
52382         protection macro.
52383         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
52384         inclusion protection macro.
52385
52386         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
52387         SIGRTMIN and SIGRTMAX and print information in that case only when
52388         SIGRTMIN is defined.
52389
52390 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
52391
52392         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
52393         arginfo fn returning -1.
52394
52395         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
52396         and thousands string is zero terminated.
52397
52398 2011-02-03  Andreas Schwab  <schwab@redhat.com>
52399
52400         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
52401         sysdeps/unix/sysv/linux/bits/socket.h.
52402
52403 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
52404
52405         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
52406         (__CPU_COUNT): Remove old macros.
52407         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
52408         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
52409         (__CPU_ALLOC, __CPU_FREE): Add macros.
52410         (__sched_cpualloc, __sched_cpufree): Add declarations.
52411
52412 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
52413
52414         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
52415         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
52416         * nscd/aicache.c (addhstaiX): Return timeout of added value.
52417         (readdhstai): Return value of addhstaiX call.
52418         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
52419         (addgrbyX): Return value returned by cache_addgr.
52420         (readdgrbyname): Return value returned by addgrbyX.
52421         (readdgrbygid): Likewise.
52422         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
52423         (addpwbyX): Return value returned by cache_addpw.
52424         (readdpwbyname): Return value returned by addhstbyX.
52425         (readdpwbyuid): Likewise.
52426         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
52427         (addservbyX): Return value returned by cache_addserv.
52428         (readdservbyname): Return value returned by addservbyX:
52429         (readdservbyport): Likewise.
52430         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
52431         (addhstbyX): Return value returned by cache_addhst.
52432         (readdhstbyname): Return value returned by addhstbyX.
52433         (readdhstbyaddr): Likewise.
52434         (readdhstbynamev6): Likewise.
52435         (readdhstbyaddrv6): Likewise.
52436         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
52437         (readdinitgroups): Return value returned by addinitgroupsX.
52438         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
52439         (prune_cache): Keep track of timeout value of re-added entries.
52440         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
52441         * nscd/nscd.h: Adjust prototypes of readd* functions.
52442
52443 2011-02-04  Roland McGrath  <roland@redhat.com>
52444
52445         * nis/nis_server.c (nis_servstate): Use the right name for 0.
52446         (nis_stats): Likewise.
52447         * nis/nis_modify.c (nis_modify): Likewise.
52448         * nis/nis_remove.c (nis_remove): Likewise.
52449         * nis/nis_add.c (nis_add): Likewise.
52450
52451         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
52452
52453         * posix/fnmatch_loop.c: Add some consts.
52454
52455         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
52456
52457 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
52458
52459         [BZ #12460]
52460         * config.make.in (config-cflags-novzeroupper): Define.
52461         * configure.in: Substitute libc_cv_cc_novzeroupper.
52462         * elf/Makefile (AVX-CFLAGS): Define.
52463         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
52464         (CFLAGS-tst-auditmod4a.c): Likewise.
52465         (CFLAGS-tst-auditmod4b.c): Likewise.
52466         (CFLAGS-tst-auditmod6b.c): Likewise.
52467         (CFLAGS-tst-auditmod6c.c): Likewise.
52468         (CFLAGS-tst-auditmod7b.c): Likewise.
52469         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
52470
52471 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
52472
52473         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
52474         function to the callback.
52475         Patch partly by Jiri Olsa <jolsa@redhat.com>.
52476
52477 2011-02-02  Andreas Schwab  <schwab@redhat.com>
52478
52479         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
52480         of errno.
52481
52482 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
52483
52484         [BZ #11724]
52485         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
52486         of constructors.
52487         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
52488         of destructors.
52489         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
52490
52491         [BZ #11724]
52492         * elf/Makefile: Add rules to build and run new test.
52493         * elf/tst-initorder.c: New file.
52494         * elf/tst-initorder.exp: New file.
52495         * elf/tst-initordera1.c: New file.
52496         * elf/tst-initordera2.c: New file.
52497         * elf/tst-initordera3.c: New file.
52498         * elf/tst-initordera4.c: New file.
52499         * elf/tst-initorderb1.c: New file.
52500         * elf/tst-initorderb2.c: New file.
52501         * elf/tst-order-a1.c: New file.
52502         * elf/tst-order-a2.c: New file.
52503         * elf/tst-order-a3.c: New file.
52504         * elf/tst-order-a4.c: New file.
52505         * elf/tst-order-b1.c: New file.
52506         * elf/tst-order-b2.c: New file.
52507         * elf/tst-order-main.c: New file.
52508         New test case by George Gensure <werkt0@gmail.com>.
52509
52510 2010-10-01  Andreas Schwab  <schwab@redhat.com>
52511
52512         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
52513         decoding ACE if AI_CANONIDN.
52514
52515 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
52516
52517         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
52518
52519 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
52520
52521         * version.h (RELEASE): Bump for 2.13 release.
52522         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
52523
52524         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
52525
52526         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
52527         MADV_NOHUGEPAGE.
52528         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
52529         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
52530         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
52531         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
52532         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
52533         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
52534
52535         * posix/getconf.c: Update copyright year.
52536         * catgets/gencat.c: Likewise.
52537         * csu/version.c: Likewise.
52538         * debug/catchsegv.sh: Likewise.
52539         * debug/xtrace.sh: Likewise.
52540         * elf/ldconfig.c: Likewise.
52541         * elf/ldd.bash.in: Likewise.
52542         * elf/sprof.c (print_version): Likewise.
52543         * iconv/iconv_prog.c: Likewise.
52544         * iconv/iconvconfig.c: Likewise.
52545         * locale/programs/locale.c: Likewise.
52546         * locale/programs/localedef.c: Likewise.
52547         * malloc/memusage.sh: Likewise.
52548         * malloc/mtrace.pl: Likewise.
52549         * nscd/nscd.c (print_version): Likewise.
52550         * nss/getent.c: Likewise.
52551
52552         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
52553         PF_CAIF, and PF_ALG.
52554         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
52555
52556 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
52557
52558         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
52559         (modules-names): Use them.
52560         (ifunc-test-modules, ifunc-pie-tests): Define.
52561         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
52562         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
52563         (test-extras): Likewise.
52564         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
52565         $(compile-command.c).
52566         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
52567         (all-built-dso): Define.
52568         (check-textrel.out, check-execstack.out): Depend on it.
52569
52570         * configure.in: Don't override --enable-multi-arch.
52571
52572 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
52573
52574         [BZ #6812]
52575         * nscd/hstcache.c (tryagain): Define.
52576         (cache_addhst): Return tryagain not notfound for temporary errors.
52577         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
52578         failed.
52579
52580 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
52581
52582         [BZ #10563]
52583         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
52584         to make the syscall.
52585         * sysdeps/unix/sysv/linux/setgroups.c: New file.
52586
52587         [BZ #12378]
52588         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
52589         and fall back to matching as normal character if the string ends before
52590         the matching ']' is found.  This is what POSIX requires.
52591         * posix/testfnm.c: Adjust test result.
52592         * posix/globtest.sh: Adjust test result.  Add new test.
52593         * posix/tst-fnmatch.input: Likewise.
52594         * posix/tst-fnmatch2.c: Add new test.
52595
52596 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
52597
52598         * elf/Makefile (check-execstack): Revert last change.  Depend on
52599         check-execstack.h.
52600         (check-execstack.h): New target.
52601         (generated): Add check-execstack.h.
52602         * elf/check-execstack.c: Include "check-execstack.h".
52603         (main): Revert last change.
52604         (handle_file): Return zero if GNU_STACK is absent and
52605         DEFAULT_STACK_PERMS doesn't include PF_X.
52606
52607 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
52608
52609         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
52610         in child fails because the descriptor is already closed.
52611         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
52612         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
52613         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
52614
52615         [BZ #12397]
52616         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
52617         syscall.
52618
52619         [BZ #10484]
52620         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
52621         temporary buffer used to handle multi lookups locally.
52622         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
52623
52624 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
52625
52626         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
52627         loader is ld.so.
52628
52629 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
52630
52631         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
52632         alignment for SSE2.
52633
52634 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
52635
52636         [BZ #12394]
52637         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
52638         characters.  When rounding increased number of integer digits recompute
52639         number of groups.
52640         * stdio-common/tst-grouping.c: New file.
52641         * stdio-common/Makefile: Add rules to build and run tst-grouping.
52642
52643 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
52644
52645         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
52646         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
52647
52648         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
52649         void.
52650         * bits/select.h: Likewise.
52651
52652 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
52653
52654         * po/ja.po: Update from translation team.
52655
52656 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
52657
52658         [BZ #11155]
52659         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
52660         implementation just like for lxstat, fxstatat, et al.
52661
52662 2010-12-27  Jim Meyering  <meyering@redhat.com>
52663
52664         [BZ #12348]
52665         * posix/regexec.c (build_trtable): Return failure indication upon
52666         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
52667
52668 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
52669
52670         [BZ #12201]
52671         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
52672         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
52673         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
52674         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
52675
52676         [BZ #12207]
52677         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
52678
52679         [BZ #12204]
52680         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
52681         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
52682
52683 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
52684
52685         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
52686         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
52687         script has SORT_BY_INIT_PRIORITY.
52688         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
52689         NO_CTORS_DTORS_SECTIONS is defined.
52690         * elf/soinit.c: Likewise.
52691         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
52692         NO_CTORS_DTORS_SECTIONS is defined.
52693         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
52694         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
52695         * sysdeps/sh/init-first.c: Likewise.
52696         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
52697
52698 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
52699
52700         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
52701         always use the slow path.
52702
52703 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
52704
52705         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
52706         similar rule which adds the sysdep directories to the header search in
52707         order to pick up the correct platform stackinfo.h.
52708         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
52709         perform test if it is, otherwise return successfully without testing.
52710         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
52711         DEFAULT_STACK_PERMS define in stackinfo.h.
52712         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
52713         defined in stackinfo.h.
52714         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
52715         DEFAULT_STACK_PERMS defined in stackinfo.h.
52716         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
52717         * sysdeps/ia64/stackinfo.h: Likewise.
52718         * sysdeps/s390/stackinfo.h: Likewise.
52719         * sysdeps/sh/stackinfo.h: Likewise.
52720         * sysdeps/sparc/stackinfo.h: Likewise.
52721         * sysdeps/x86_64/stackinfo.h: Likewise.
52722         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
52723         PF_X for powerpc64.  Retain PF_X for powerpc32.
52724
52725 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
52726
52727         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
52728         accurately.
52729         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
52730         GETDENTS_64BIT_ALIGNED.
52731
52732 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
52733
52734         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
52735
52736 2010-12-10  Andreas Schwab  <schwab@redhat.com>
52737
52738         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
52739         _GNU_SOURCE.
52740
52741         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
52742         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
52743         Remove __restrict.
52744         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
52745         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
52746
52747 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
52748
52749         [BZ #11655]
52750         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
52751         are initialized.
52752
52753 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
52754
52755         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
52756
52757 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
52758
52759         * po/it.po: Update from translation team.
52760
52761 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
52762
52763         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
52764         unused codes.
52765
52766 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
52767
52768         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
52769
52770 2010-11-24  Andreas Schwab  <schwab@redhat.com>
52771
52772         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
52773         specially.
52774         (gaih_getanswer_slice): Likewise.
52775
52776 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
52777
52778         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
52779
52780 2010-05-31  Petr Baudis  <pasky@suse.cz>
52781
52782         [BZ #11149]
52783         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
52784         silently even in the chroot mode.
52785
52786 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
52787
52788         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
52789         last patch a bit.  Pretty printing
52790
52791 2010-05-31  Petr Baudis <pasky@suse.cz>
52792
52793         [BZ #10085]
52794         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
52795         initialization of skip_initgroups_dyn.
52796
52797 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
52798
52799         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
52800         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
52801
52802 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
52803
52804         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
52805
52806 2010-11-11  Andreas Schwab  <schwab@redhat.com>
52807
52808         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
52809         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
52810         (tst-fnmatch-ENV): Set MALLOC_TRACE.
52811         ($(objpfx)tst-fnmatch-mem): New rule.
52812         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
52813         * posix/tst-fnmatch.c (main): Call mtrace.
52814
52815 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
52816
52817         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52818         Support Intel processor model 6 and model 0x2c.
52819
52820 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
52821
52822         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
52823           signed comparison.
52824
52825 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
52826
52827         [BZ #12205]
52828         * string/test-strncasecmp.c (check_result): New function.
52829         (do_one_test): Use it.
52830         (check1): New function.
52831         (test_main): Use it.
52832         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
52833         Support strcasecmp and strncasecmp.
52834
52835 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
52836
52837         [BZ #12194]
52838         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
52839         * sysdeps/x86_64/bits/byteswap.h: Likewise.
52840
52841 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
52842
52843         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
52844         IFUNC support.
52845         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
52846         memset-x86-64.
52847         * sysdeps/x86_64/multiarch/bzero.S: New file.
52848         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
52849         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
52850         * sysdeps/x86_64/multiarch/memset.S: New file.
52851         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
52852         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
52853         Set bit_Prefer_SSE_for_memop for Intel processors.
52854         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
52855         Define.
52856         (index_Prefer_SSE_for_memop): Define.
52857         (HAS_PREFER_SSE_FOR_MEMOP): Define.
52858
52859 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
52860
52861         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
52862         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
52863
52864 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
52865
52866         [BZ #12191]
52867         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
52868         (__x86_64_raw_data_cache_size_half): Likewise.
52869         (__x86_64_raw_shared_cache_size): Likewise.
52870         (__x86_64_raw_shared_cache_size_half): Likewise.
52871
52872         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
52873         (__x86_64_raw_data_cache_size_half): Likewise.
52874         (__x86_64_raw_shared_cache_size): Likewise.
52875         (__x86_64_raw_shared_cache_size_half): Likewise.
52876         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
52877         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
52878         and __x86_64_raw_shared_cache_size_half.  Round
52879         __x86_64_data_cache_size_half, __x86_64_data_cache_size
52880         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
52881         to multiple of 256 bytes.
52882
52883 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
52884
52885         [BZ #12167]
52886         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
52887         of inacessible symlinks.  Verify result of symlink before returning it.
52888         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
52889         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
52890
52891 2010-10-28  Erich Ritz  <erichritz@gmail.com>
52892
52893         * math/math.h (isinf): Fix typo in comment.
52894
52895 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
52896
52897         * po/da.po: Update from translation team.
52898
52899 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
52900
52901         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
52902         is added to the list.
52903
52904 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
52905             Ulrich Drepper  <drepper@gmail.com>
52906
52907         * elf/dl-object.c (_dl_new_object): Don't append the new object to
52908         the global list here.  Move code to...
52909         (_dl_add_to_namespace_list): ...here.  New function.
52910         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
52911         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
52912         * elf/dl-load.c (lose): Don't remove the element from the list.
52913         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
52914         (_dl_map_object): Likewise.
52915
52916 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
52917
52918         [BZ #12159]
52919         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
52920         into all bytes of SSE register.
52921         Patch by Richard Li <richardpku@gmail.com>.
52922
52923 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
52924
52925         [BZ #12140]
52926         * malloc/malloc.c (_int_free): Fill correct number of bytes when
52927         perturbing.
52928
52929 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
52930
52931         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
52932         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
52933         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
52934         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
52935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
52936         submachine.
52937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
52938
52939 2010-10-22  Andreas Schwab  <schwab@redhat.com>
52940
52941         * include/dlfcn.h (__RTLD_SECURE): Define.
52942         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
52943         mode & __RTLD_SECURE instead.
52944         (open_path): Rename preloaded parameter to secure.
52945         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
52946         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
52947         * elf/dl-deps.c (openaux): Likewise.
52948         * elf/rtld.c (struct map_args): Remove is_preloaded.
52949         (map_doit): Don't use it.
52950         (dl_main): Likewise.
52951         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
52952         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
52953
52954 2010-09-09  Andreas Schwab  <schwab@redhat.com>
52955
52956         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
52957         (sysd-rules-targets): Remove duplicates.
52958         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
52959         rtld-%.$o dependency.
52960
52961 2010-10-18  Andreas Schwab  <schwab@redhat.com>
52962
52963         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
52964         _dl_map_object do it.
52965
52966 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
52967
52968         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
52969         fast fma builtins, define the macros in the C99 standard.
52970         (FP_FAST_FMAF): Likewise.
52971         (FP_FAST_FMAL): Likewise.
52972         * sysdeps/x86_64/bits/mathdef.h: Likewise.
52973
52974         * bits/mathdef.h: Update copyright year.
52975         * sysdeps/powerpc/bits/mathdef.h: Likewise.
52976
52977 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
52978
52979         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
52980         builtins, define the macros in the C99 standard.
52981         (FP_FAST_FMAF): Likewise.
52982         (FP_FAST_FMAL): Likewise.
52983         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
52984         multiply/add.
52985         (FP_FAST_FMAF): Likewise.
52986
52987 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
52988
52989         [BZ #3268]
52990         * math/libm-test.inc (fma_test): Some new testcases.
52991         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
52992         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
52993         y and infinite z.  Do multiplication by C already in long double.
52994         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
52995         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
52996         y and infinite z.  Do bitwise or of inexact bit into u.d.
52997         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
52998         * sysdeps/i386/fpu/s_fmaf.S: Removed.
52999         * sysdeps/i386/fpu/s_fma.S: Removed.
53000         * sysdeps/i386/fpu/s_fmal.S: Removed.
53001
53002 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
53003
53004         [BZ #3268]
53005         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
53006         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
53007         computation is not scheduled after fetestexcept.  Fix value
53008         of minimum denormal long double.
53009
53010 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
53011
53012         [BZ #3268]
53013         * math/libm-test.inc (fma_test): Add some more tests.
53014         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
53015         correctly.
53016
53017 2010-10-15  Andreas Schwab  <schwab@redhat.com>
53018
53019         * scripts/data/localplt-s390-linux-gnu.data: New file.
53020         * scripts/data/localplt-s390x-linux-gnu.data: New file.
53021
53022 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
53023
53024         [BZ #3268]
53025         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
53026         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
53027         instead of dbl-64.
53028         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
53029         inlines.
53030         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
53031         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
53032         if one of x and y is very large and the other is subnormal.
53033         * sysdeps/s390/fpu/s_fmaf.c: New file.
53034         * sysdeps/s390/fpu/s_fma.c: New file.
53035         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
53036         * sysdeps/powerpc/fpu/s_fma.S: New file.
53037         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
53038         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
53039         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
53040
53041 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
53042
53043         [BZ #3268]
53044         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
53045         fma tests.
53046         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
53047         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
53048         * sysdeps/i386/i686/multiarch/s_fma.c: Include
53049         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
53050         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
53051         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
53052         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
53053
53054 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
53055
53056         [BZ #12078]
53057         * posix/regcomp.c (parse_branch): One more memory leak plugged.
53058         * posix/bug-regex31.input: Add test case.
53059
53060 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
53061
53062         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
53063         * posix/bug-regex31.input: New file.
53064
53065         [BZ #12078]
53066         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
53067         (parse_sub_exp): Fix last change, use postorder.
53068
53069         * posix/bug-regex31.c: New file.
53070         * posix/Makefile: Add rules to build and run bug-regex31.
53071
53072         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
53073
53074         [BZ #12078]
53075         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
53076
53077         [BZ #12108]
53078         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
53079         to have entries in sys_siglist.
53080
53081         [BZ #12093]
53082         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
53083         be NULL.
53084
53085 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
53086
53087         [BZ #3268]
53088         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
53089         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
53090         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
53091         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
53092         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
53093         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
53094         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
53095         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
53096         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
53097         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
53098         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
53099         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
53100         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
53101         * math/ftestexcept.c (fetestexcept): Likewise.
53102         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
53103         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
53104         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
53105         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
53106         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
53107         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
53108         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
53109
53110 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
53111
53112         [BZ #12107]
53113         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
53114         newline.
53115
53116 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
53117
53118         * string/bug-strstr1.c: New file.
53119         * string/Makefile: Add rules to build and run bug-strstr1.
53120
53121 2010-10-05  Eric Blake  <eblake@redhat.com>
53122
53123         [BZ #12092]
53124         * string/str-two-way.h (two_way_long_needle): Always clear memory
53125         when skipping input due to the shift table.
53126
53127 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
53128
53129         [BZ #12005]
53130         * malloc/mcheck.c: Handle large requests.
53131
53132         [BZ #12077]
53133         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
53134         for strncmp and strncasecmp.
53135         * string/stratcliff.c: Add tests for strcmp and strncmp.
53136         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
53137
53138 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
53139
53140         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
53141         __set_fpscr.
53142
53143 2010-09-30  Andreas Jaeger  <aj@suse.de>
53144
53145         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
53146         (CGROUP_SUPER_MAGIC): Define.
53147         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
53148         Handle btrfs and cgroup file systems.
53149         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
53150         Likewise.
53151
53152 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
53153
53154         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
53155         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
53156
53157 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
53158
53159         [BZ #12067]
53160         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
53161         trying to locate the ELF header.
53162
53163 2010-09-27  Andreas Schwab  <schwab@redhat.com>
53164
53165         [BZ #11611]
53166         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
53167         Mask out sign-bit copies when constructing f_fsid.
53168
53169 2010-09-24  Petr Baudis <pasky@suse.cz>
53170
53171         * debug/stack_chk_fail_local.c: Add missing licence exception.
53172         * debug/warning-nop.c: Likewise.
53173
53174 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
53175
53176         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
53177         implementing getdents64 using getdents syscall, set d_type if
53178         __ASSUME_GETDENTS32_D_TYPE.
53179
53180 2010-09-16  Andreas Schwab  <schwab@redhat.com>
53181
53182         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
53183         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
53184
53185 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
53186
53187         [BZ #12037]
53188         * posix/unistd.h: Undo change of feature selection for ftruncate from
53189         2010-01-11.
53190
53191 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
53192
53193         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
53194         detection.
53195
53196 2010-09-20  Andreas Schwab  <schwab@redhat.com>
53197
53198         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
53199         fanotify_mark.
53200         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
53201
53202 2010-09-14  Andreas Schwab  <schwab@redhat.com>
53203
53204         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
53205         variables after CHECK_SP call.
53206         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
53207
53208 2010-09-13  Andreas Schwab  <schwab@redhat.com>
53209             Ulrich Drepper  <drepper@redhat.com>
53210
53211         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
53212         re-relocationg ld.so.
53213         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
53214         _dl_init_paths call.
53215         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
53216         here anymore.
53217
53218 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
53219
53220         * resolv/res_init.c (__res_vinit): Count the default server we added.
53221
53222 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
53223             Ulrich Drepper  <drepper@redhat.com>
53224
53225         [BZ #11968]
53226         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
53227         (____longjmp_chk): Use %ebx for saving value across system call.
53228         Add unwind info.
53229
53230 2010-09-06  Andreas Schwab  <schwab@redhat.com>
53231
53232         * manual/Makefile: Don't mix pattern rules with normal rules.
53233
53234 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
53235
53236         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
53237         operation.
53238         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
53239         * libio/iofopncook.c (_IO_cookie_init): Likewise.
53240         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
53241         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
53242         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
53243         Likewise.
53244
53245 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
53246
53247         [BZ #11979]
53248         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
53249         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
53250
53251 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
53252
53253         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
53254         * sysdeps/x86_64/addmul_1.S: Likewise.
53255         * sysdeps/x86_64/lshift.S: Likewise.
53256         * sysdeps/x86_64/mul_1.S: Likewise.
53257         * sysdeps/x86_64/rshift.S: Likewise.
53258         * sysdeps/x86_64/sub_n.S: Likewise.
53259         * sysdeps/x86_64/submul_1.S: Likewise.
53260
53261 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
53262
53263         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
53264         Define __sched_param instead of SCHED_* and sched_param when
53265         <bits/sched.h> is included with __need_schedparam defined.
53266         * bits/sched.h [__need_schedparam]
53267         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
53268         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
53269         (__defined_schedparam): Define to 1.
53270         (__sched_param): New structure, identical to sched_param.
53271         (__need_schedparam): Undefine.
53272
53273 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
53274
53275         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
53276         (epoll_create1): Declare.
53277
53278         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
53279
53280 2010-08-31  Andreas Schwab  <schwab@redhat.com>
53281
53282         [BZ #7066]
53283         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
53284         shifting retval into place.
53285
53286 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
53287
53288         * nis/rpcsvc/nis.h: Update copyright notice.
53289         * nis/rpcsvc/nis.x: Likewise.
53290         * nis/rpcsvc/nis_callback.h: Likewise.
53291         * nis/rpcsvc/nis_callback.x: Likewise.
53292         * nis/rpcsvc/nis_object.x: Likewise.
53293         * nis/rpcsvc/nis_tags.h: Likewise.
53294         * nis/rpcsvc/yp.h: Likewise.
53295         * nis/rpcsvc/yp.x: Likewise.
53296         * nis/rpcsvc/ypupd.h: Likewise.
53297         * nis/yp_xdr.c: Likewise.
53298         * nis/ypupdate_xdr.c: Likewise.
53299
53300         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
53301         mainly the body of pmap_getport.  Add parameters to specify timeouts.
53302         (pmap_getport): Use __libc_rpc_getport.
53303         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
53304         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
53305         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
53306
53307 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
53308
53309         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
53310         fanotify_mark.
53311
53312 2010-08-27  Roland McGrath  <roland@redhat.com>
53313
53314         * sysdeps/i386/i686/multiarch/Makefile
53315         (CFLAGS-varshift.c): New variable.
53316
53317 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
53318
53319         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
53320         * sysdeps/i386/i686/multiarch/varshift.c: New file.
53321
53322         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
53323
53324         * sysdeps/x86_64/strlen.S: Minimal code improvement.
53325
53326 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
53327
53328         * sysdeps/x86_64/strlen.S: Unroll the loop.
53329         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
53330         strlen-sse2 strlen-sse2-bsf.
53331         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
53332         __strlen_no_bsf if bit_Slow_BSF is set.
53333         (__strlen_sse42): Removed.
53334         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
53335         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
53336
53337 2010-08-25  Roland McGrath  <roland@redhat.com>
53338
53339         * sysdeps/x86_64/multiarch/varshift.S: File removed.
53340         * sysdeps/x86_64/multiarch/varshift.c: New file.
53341         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
53342         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
53343         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
53344         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
53345
53346 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
53347
53348         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
53349         strlen-sse2 strlen-sse2-bsf.
53350         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
53351         __strlen_sse2_bsf if bit_Slow_BSF is unset.
53352         (__strlen_sse2): Removed.
53353         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
53354         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
53355         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
53356         bit_Slow_BSF for Atom.
53357         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
53358         (index_Slow_BSF): Define.
53359         (HAS_SLOW_BSF): Define.
53360
53361 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
53362
53363         [BZ #10851]
53364         * resolv/res_init.c (__res_vinit): When no server address at all
53365         is given default to loopback.
53366
53367 2010-08-24  Roland McGrath  <roland@redhat.com>
53368
53369         * configure.in: Remove config-name.h generation.
53370         * configure: Regenerated.
53371         * config-name.in: File removed.
53372         * scripts/config-uname.sh: New file.
53373         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
53374         ($(objdir)config-name.h): New target.
53375
53376         * sunrpc/rpc_parse.h: Avoid nested comment.
53377
53378 2010-08-24  Richard Henderson  <rth@redhat.com>
53379             Ulrich Drepper  <drepper@redhat.com>
53380             H.J. Lu  <hongjiu.lu@intel.com>
53381
53382         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
53383         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
53384         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
53385         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
53386         _mm_alignr_epi8 with _mm_loadu_si128.
53387         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
53388         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
53389         (__m128i_shift_right): Removed.
53390         * sysdeps/i386/i686/multiarch/varshift.h: New file.
53391         * sysdeps/i386/i686/multiarch/varshift.S: New file.
53392         * sysdeps/x86_64/multiarch/varshift.h: New file.
53393         * sysdeps/x86_64/multiarch/varshift.S: New file.
53394
53395 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
53396
53397         * configure.in: Move assembler checks to before sysdep dir checking.
53398
53399 2010-08-20  Petr Baudis  <pasky@suse.cz>
53400
53401         * LICENSES: Sync the sunrpc license.
53402
53403 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
53404
53405         * sunrpc/auth_des.c: Update copyright notice once again.
53406         * sunrpc/auth_none.c: Likewise.
53407         * sunrpc/auth_unix.c: Likewise.
53408         * sunrpc/authdes_prot.c: Likewise.
53409         * sunrpc/authuxprot.c: Likewise.
53410         * sunrpc/bindrsvprt.c: Likewise.
53411         * sunrpc/clnt_gen.c: Likewise.
53412         * sunrpc/clnt_perr.c: Likewise.
53413         * sunrpc/clnt_raw.c: Likewise.
53414         * sunrpc/clnt_simp.c: Likewise.
53415         * sunrpc/clnt_tcp.c: Likewise.
53416         * sunrpc/clnt_udp.c: Likewise.
53417         * sunrpc/clnt_unix.c: Likewise.
53418         * sunrpc/des_crypt.c: Likewise.
53419         * sunrpc/des_soft.c: Likewise.
53420         * sunrpc/get_myaddr.c: Likewise.
53421         * sunrpc/getrpcport.c: Likewise.
53422         * sunrpc/key_call.c: Likewise.
53423         * sunrpc/key_prot.c: Likewise.
53424         * sunrpc/openchild.c: Likewise.
53425         * sunrpc/pm_getmaps.c: Likewise.
53426         * sunrpc/pm_getport.c: Likewise.
53427         * sunrpc/pmap_clnt.c: Likewise.
53428         * sunrpc/pmap_prot.c: Likewise.
53429         * sunrpc/pmap_prot2.c: Likewise.
53430         * sunrpc/pmap_rmt.c: Likewise.
53431         * sunrpc/rpc/auth.h: Likewise.
53432         * sunrpc/rpc/auth_unix.h: Likewise.
53433         * sunrpc/rpc/clnt.h: Likewise.
53434         * sunrpc/rpc/des_crypt.h: Likewise.
53435         * sunrpc/rpc/key_prot.h: Likewise.
53436         * sunrpc/rpc/netdb.h: Likewise.
53437         * sunrpc/rpc/pmap_clnt.h: Likewise.
53438         * sunrpc/rpc/pmap_prot.h: Likewise.
53439         * sunrpc/rpc/pmap_rmt.h: Likewise.
53440         * sunrpc/rpc/rpc.h: Likewise.
53441         * sunrpc/rpc/rpc_des.h: Likewise.
53442         * sunrpc/rpc/rpc_msg.h: Likewise.
53443         * sunrpc/rpc/svc.h: Likewise.
53444         * sunrpc/rpc/svc_auth.h: Likewise.
53445         * sunrpc/rpc/types.h: Likewise.
53446         * sunrpc/rpc/xdr.h: Likewise.
53447         * sunrpc/rpc_clntout.c: Likewise.
53448         * sunrpc/rpc_cmsg.c: Likewise.
53449         * sunrpc/rpc_common.c: Likewise.
53450         * sunrpc/rpc_cout.c: Likewise.
53451         * sunrpc/rpc_dtable.c: Likewise.
53452         * sunrpc/rpc_hout.c: Likewise.
53453         * sunrpc/rpc_main.c: Likewise.
53454         * sunrpc/rpc_parse.c: Likewise.
53455         * sunrpc/rpc_parse.h: Likewise.
53456         * sunrpc/rpc_prot.c: Likewise.
53457         * sunrpc/rpc_sample.c: Likewise.
53458         * sunrpc/rpc_scan.c: Likewise.
53459         * sunrpc/rpc_scan.h: Likewise.
53460         * sunrpc/rpc_svcout.c: Likewise.
53461         * sunrpc/rpc_tblout.c: Likewise.
53462         * sunrpc/rpc_util.c: Likewise.
53463         * sunrpc/rpc_util.h: Likewise.
53464         * sunrpc/rpcinfo.c: Likewise.
53465         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
53466         * sunrpc/rpcsvc/key_prot.x: Likewise.
53467         * sunrpc/rpcsvc/klm_prot.x: Likewise.
53468         * sunrpc/rpcsvc/mount.x: Likewise.
53469         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
53470         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
53471         * sunrpc/rpcsvc/rex.x: Likewise.
53472         * sunrpc/rpcsvc/rstat.x: Likewise.
53473         * sunrpc/rpcsvc/rusers.x: Likewise.
53474         * sunrpc/rpcsvc/sm_inter.x: Likewise.
53475         * sunrpc/rpcsvc/spray.x: Likewise.
53476         * sunrpc/rpcsvc/yppasswd.x: Likewise.
53477         * sunrpc/rtime.c: Likewise.
53478         * sunrpc/svc.c: Likewise.
53479         * sunrpc/svc_auth.c: Likewise.
53480         * sunrpc/svc_authux.c: Likewise.
53481         * sunrpc/svc_raw.c: Likewise.
53482         * sunrpc/svc_run.c: Likewise.
53483         * sunrpc/svc_simple.c: Likewise.
53484         * sunrpc/svc_tcp.c: Likewise.
53485         * sunrpc/svc_udp.c: Likewise.
53486         * sunrpc/svc_unix.c: Likewise.
53487         * sunrpc/svcauth_des.c: Likewise.
53488         * sunrpc/xcrypt.c: Likewise.
53489         * sunrpc/xdr.c: Likewise.
53490         * sunrpc/xdr_array.c: Likewise.
53491         * sunrpc/xdr_float.c: Likewise.
53492         * sunrpc/xdr_mem.c: Likewise.
53493         * sunrpc/xdr_rec.c: Likewise.
53494         * sunrpc/xdr_ref.c: Likewise.
53495         * sunrpc/xdr_sizeof.c: Likewise.
53496         * sunrpc/xdr_stdio.c: Likewise.
53497
53498         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
53499         handling.
53500
53501 2010-08-19  Andreas Schwab  <schwab@redhat.com>
53502
53503         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
53504
53505 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
53506
53507         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
53508         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
53509         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
53510         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
53511         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
53512         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
53513         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
53514         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
53515         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
53516         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
53517         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
53518         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
53519         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
53520         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
53521
53522 2010-07-26  Anton Blanchard  <anton@samba.org>
53523
53524         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
53525         * malloc/arena.c (heap_trim): Likewise.
53526
53527 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
53528
53529         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
53530         here.  Not...
53531         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
53532         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
53533
53534 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
53535
53536         * sysdeps/i386/elf/Makefile: New file.
53537
53538 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
53539
53540         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
53541         from fanotify_init.
53542         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
53543         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
53544
53545 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
53546
53547         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
53548         of strncasecmp_l.
53549         * sysdeps/multiarch/strcmp.S: Likewise.
53550
53551 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
53552
53553         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
53554         strncase_l-nonascii.
53555         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
53556         Add strncase_l-ssse3.
53557         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
53558         * sysdeps/x86_64/strcmp.S: Likewise.
53559         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
53560         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
53561         * sysdeps/x86_64/strncase.S: New file.
53562         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
53563         * sysdeps/x86_64/strncase_l.S: New file.
53564         * string/Makefile (strop-tests): Add strncasecmp.
53565         * string/test-strncasecmp.c: New file.
53566
53567         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
53568         warning.
53569
53570         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
53571         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
53572
53573 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
53574
53575         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
53576
53577 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
53578
53579         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
53580         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
53581         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
53582
53583 2010-05-01  Alan Modra  <amodra@gmail.com>
53584
53585         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
53586         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
53587         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
53588         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
53589         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
53590         tidying.  Don't tail-call __sigjmp_save for static lib.
53591         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
53592         save location.
53593         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
53594         (CALL_MCOUNT): Add eh info, and nop after bl.
53595         (TAIL_CALL_SYSCALL_ERROR): New macro.
53596         (PSEUDO_RET): Use it.
53597         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
53598         Correct save location of integer regs and cr.
53599         (_dl_profile_resolve): Correct cr save location.  Delete nops
53600         after bl when SHARED.  Reduce cfi size a little by better
53601         placement of cfi directives.
53602         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
53603         make a stack frame.  Instead use parm save area as a temp.
53604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
53605         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
53606         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
53607         Don't make a stack frame for parent, use parm save area.
53608         Increase child stack frame to 112 bytes.  Don't save unused reg,
53609         and adjust reg usage.  Set up cfi on error recovery and
53610         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
53611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
53612         (__makecontext): Add dummy nop after jump to exit.
53613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
53614         Use correct parm save area and cr save, reduce stack frame.
53615         Correct cfi for possible PSEUDO_RET frame setup.
53616         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
53617         Branch to local label emitted by PSEUDO_RET rather than
53618         __syscall_error.
53619
53620 2010-08-12  Andreas Schwab  <schwab@redhat.com>
53621
53622         [BZ #11904]
53623         * locale/programs/locale.c (print_assignment): New function.
53624         (show_locale_vars): Use it.
53625
53626 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
53627
53628         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
53629         field.
53630         (struct statfs64): Likewise.
53631         (_STATFS_F_FLAGS): Define.
53632         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
53633         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
53634         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
53635         (ST_VALID): Define locally.
53636         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
53637         __statvfs_getflags, use the provided value.
53638         * sysdeps/unix/sysv/linux/kernel-features.h: Define
53639         __ASSUME_STATFS_F_FLAGS.
53640
53641         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
53642
53643         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
53644         Add sys/fanotify.h.
53645         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
53646         fanotify_mask for GLIBC_2.13.
53647         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
53648         fanotify_init and fanotify_mark.
53649         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
53650         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
53651
53652         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
53653         Add prlimit.
53654         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
53655         prlimit64 for GLIBC_2.13.
53656         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
53657         prlimit64.
53658         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
53659         syscall.
53660         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
53661         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
53662         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
53663         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
53664         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
53665         add prlimit alias.
53666         * sysdeps/unix/sysv/linux/prlimit.c: New file.
53667
53668         [BZ #11903]
53669         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
53670         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
53671
53672         * nss/Makefile: Add rules to build and run tst-nss-test1.
53673         * shlib-versions: Add entry for libnss_test1.
53674         * nss/nss_test1.c: New file.
53675         * nss/tst-nss-test1.c: New file.
53676
53677         * nss/nsswitch.c (__nss_database_custom): Define new variable.
53678         (__nss_configure_lookup): Set appropriate entry in
53679         __nss_configure_lookup to true.
53680         * nss/nsswitch.h: Define enum with indeces of databases in
53681         databases and __nss_database_custom arrays.  Declare
53682         __nss_database_custom.
53683         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
53684         to avoid using nscd when custom rules are installed.
53685         * nss/getXXbyYY_r.c: Likewise.
53686         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
53687
53688         * nss/nss_files/files-parse.c: Whitespace fixes.
53689
53690 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
53691
53692         [BZ #11883]
53693         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
53694         * posix/fnmatch_loop.c: Likewise.
53695
53696 2010-07-17  Andi Kleen  <ak@linux.intel.com>
53697
53698         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
53699         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
53700         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
53701         * Versions.def [GLIBC_2.13]: Add.
53702
53703 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
53704
53705         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
53706         Also fail if tpwd after pwuid call is NULL.
53707
53708 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
53709
53710         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
53711         when converting to ms.
53712
53713 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
53714
53715         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
53716         EOPNOTSUPP errors with ENOTTY.
53717         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
53718         EOPNOTSUPP errors with ENOTTY.
53719
53720 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
53721
53722         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
53723         Add strcasecmp_l-ssse3.
53724         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
53725         strcasecmp.
53726         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
53727         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
53728         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
53729
53730 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
53731
53732         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
53733
53734         * string/Makefile (strop-tests): Add strcasecmp.
53735         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
53736         strcasecmp_l-nonascii.
53737         (gen-as-const-headers): Add locale-defines.sym.
53738         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
53739         * sysdeps/x86_64/strcasecmp.S: New file.
53740         * sysdeps/x86_64/strcasecmp_l.S: New file.
53741         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
53742         * sysdeps/x86_64/locale-defines.sym: New file.
53743         * string/test-strcasecmp.c: New file.
53744
53745         * string/test-strcasestr.c: Test both ends of the range of characters.
53746         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
53747
53748 2010-07-29  Roland McGrath  <roland@redhat.com>
53749
53750         [BZ #11856]
53751         * manual/locale.texi (Yes-or-No Questions): Fix example code.
53752
53753 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
53754
53755         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
53756         for ld.so.
53757
53758 2010-07-27  Andreas Schwab  <schwab@redhat.com>
53759
53760         * manual/memory.texi (Malloc Tunable Parameters): Document
53761         M_PERTURB.
53762
53763 2010-07-26  Roland McGrath  <roland@redhat.com>
53764
53765         [BZ #11840]
53766         * configure.in (-fgnu89-inline check): Set and substitute
53767         gnu89_inline, not libc_cv_gnu89_inline.
53768         * configure: Regenerated.
53769         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
53770
53771 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
53772
53773         * string/test-strnlen.c: New file.
53774         * string/Makefile (strop-tests): Add strnlen.
53775         * string/tester.c (test_strnlen): Add a few more test cases.
53776         * string/tst-strlen.c: Better error reporting.
53777
53778         * sysdeps/x86_64/strnlen.S: New file.
53779
53780 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
53781
53782         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
53783         lower-latency instructions.
53784
53785 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
53786
53787         * string/test-strcasestr.c: New file.
53788         * string/test-strstr.c: New file.
53789         * string/Makefile (strop-tests): Add strstr and strcasestr.
53790         * string/str-two-way.h: Don't undefine MAX.
53791         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
53792
53793 2010-07-21  Andreas Schwab  <schwab@redhat.com>
53794
53795         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
53796         strcasestr-nonascii.
53797         (CFLAGS-strcasestr-nonascii.c): Define.
53798         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
53799         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
53800         Remove unused attribute.
53801
53802 2010-07-20  Roland McGrath  <roland@redhat.com>
53803
53804         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
53805         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
53806         ld.so.cache was broken.  With it, there is no way to disable dsocaps
53807         like LD_HWCAP_MASK can disable hwcaps.
53808
53809 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
53810
53811         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
53812
53813 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
53814
53815         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
53816         call in strcasestr.
53817         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
53818         __strcasestr_sse42_nonascii.
53819         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
53820         strcasestr-nonascii.c.
53821         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
53822
53823 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
53824
53825         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
53826         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
53827         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
53828         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
53829
53830 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
53831
53832         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
53833         fcntl.
53834
53835 2010-07-06  Andreas Schwab  <schwab@redhat.com>
53836
53837         [BZ #11577]
53838         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
53839         dl_signal_cerror.
53840
53841 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
53842
53843         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
53844         _PC_PIPE_BUF using F_GETPIPE_SZ.
53845
53846 2010-07-05  Roland McGrath  <roland@redhat.com>
53847
53848         * manual/arith.texi (Rounding Functions): Fix rint description
53849         implicit in round description.
53850
53851 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
53852
53853         * elf/Makefile: Fix linking for a few tests to make recent linker
53854         happy.
53855
53856 2010-06-30  Andreas Schwab  <schwab@redhat.com>
53857
53858         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
53859         $(common-objpfx)libc_nonshared.a.
53860
53861 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
53862
53863         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
53864         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
53865         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
53866         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
53867         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
53868         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
53869         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
53870         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
53871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
53872         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
53873         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
53874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
53875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
53876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
53877         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
53878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
53879         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
53880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
53881         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
53882         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
53883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
53884         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
53885         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
53886         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
53887         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
53888         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
53889         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
53890         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
53891         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
53892         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
53893         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
53894         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
53895         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
53896         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
53897         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
53898         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
53899         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
53900         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
53901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
53902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
53903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
53904         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
53905         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
53906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
53907         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
53908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
53909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
53910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
53911
53912 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
53913
53914         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
53915         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
53916         * string/memmove.c (memmove): Renamed to ...
53917         (MEMMOVE): ...this.  Default to memmove.
53918         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
53919         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
53920         (END_CHK): Define.
53921         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
53922         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
53923         mempcpy-ssse3-back memmove-ssse3-back.
53924         * sysdeps/x86_64/multiarch/bcopy.S: New file .
53925         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
53926         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
53927         * sysdeps/x86_64/multiarch/memcpy.S: New file.
53928         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
53929         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
53930         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
53931         * sysdeps/x86_64/multiarch/memmove.c: New file.
53932         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
53933         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
53934         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
53935         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
53936         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
53937         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
53938         Define.
53939         (index_Fast_Copy_Backward): Define.
53940         (HAS_ARCH_FEATURE): Define.
53941         (HAS_FAST_REP_STRING): Define.
53942         (HAS_FAST_COPY_BACKWARD): Define.
53943
53944 2010-06-21  Andreas Schwab  <schwab@redhat.com>
53945
53946         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
53947         Restore proper fallback handling.
53948
53949 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
53950
53951         [BZ #11701]
53952         * posix/group_member.c (__group_member): Correct checking loop.
53953
53954         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
53955         OOM in getpwuid_r correctly.  Return error number when the caller
53956         should return, otherwise -1.
53957         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
53958         call returning > 0 value.
53959         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
53960
53961 2010-06-07  Andreas Schwab  <schwab@redhat.com>
53962
53963         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
53964         libc_nonshared.a from targets in modules-names.
53965
53966 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
53967
53968         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
53969         requires it.
53970
53971 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
53972
53973         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
53974         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
53975         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
53976         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
53977
53978 2010-06-02  Andreas Schwab  <schwab@redhat.com>
53979
53980         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
53981
53982 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
53983
53984         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
53985         and F_GETPIPE_SZ.
53986         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
53987         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
53988         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
53989         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
53990         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
53991         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
53992
53993 2010-06-14  Roland McGrath  <roland@redhat.com>
53994
53995         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
53996
53997 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
53998
53999         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
54000         __REDIRECT followed by __THROW.
54001         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
54002         * posix/getopt.h (getopt): Likewise.
54003
54004 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
54005
54006         * hurd/lookup-at.c (__file_name_lookup_at): Accept
54007         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
54008         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
54009         in AT_FLAGS.
54010         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
54011         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
54012
54013 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
54014
54015         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
54016
54017 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
54018
54019         [BZ #11640]
54020         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
54021         Properly check family and model.
54022
54023 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
54024
54025         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
54026
54027 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
54028
54029         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
54030
54031 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
54032
54033         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
54034         symbol reference.
54035
54036 2010-05-19  Andreas Schwab  <schwab@redhat.com>
54037
54038         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
54039         symbol reference.
54040
54041 2010-05-21  Andreas Schwab  <schwab@redhat.com>
54042
54043         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
54044         and internal_recvmmsg.
54045         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
54046         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
54047         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
54048         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
54049
54050         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
54051         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
54052         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
54053
54054 2010-05-20  Andreas Schwab  <schwab@redhat.com>
54055
54056         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
54057
54058 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
54059
54060         POWER7 optimizations.
54061         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
54062         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
54063
54064 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
54065
54066         * version.h: Update for 2.13 development version.
54067
54068 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
54069
54070         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
54071         exceptions.  Return 0.
54072
54073 2010-05-07  Roland McGrath  <roland@redhat.com>
54074
54075         * elf/ldconfig.c (main): Add a const.
54076
54077 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
54078
54079         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
54080         (args_options): Add no-idn option.
54081         (ahosts_keys_int): Add idn_flags to ai_flags.
54082         (parse_option): Handle 'i' option to clear idn_flags.
54083
54084         * malloc/malloc.c (_int_free): Possible race in the most recently
54085         added check.  Only act on the data if no current modification
54086         happened.
54087
54088 See ChangeLog.17 for earlier changes.