alpha: Fix lround implementations
[platform/upstream/glibc.git] / ChangeLog
1 2014-07-03  Richard Henderson  <rth@redhat.com>
2
3         * sysdeps/alpha/fpu/s_lround.c: Add 0.5 with chopped rounding.
4         * sysdeps/alpha/fpu/s_lroundf.c: Likewise.
5
6         * sysdeps/alpha/fpu/s_round.c: Remove file.
7         * sysdeps/alpha/fpu/s_roundf.c: Remove file.
8
9         * elf/dl-support.c (HP_TIMING_AVAIL): Do not redefine.
10         (_dl_non_dynamic_init): Check HP_SMALL_TIMING_AVAIL instead.
11         * elf/rtld.c (HP_TIMING_AVAIL): Do not redefine.
12         (_dl_start_final): Check HP_SMALL_TIMING_AVAIL instead.
13         (_dl_start, print_statistics): Likewise.
14         * sysdeps/generic/ldsodefs.h (struct rtld_global): Only check
15         HP_SMALL_TIMING_AVAIL in defining _dl_cpuclock_offset.
16
17         * sysdeps/aarch64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
18         * sysdeps/generic/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
19         * sysdeps/i386/i686/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
20         * sysdeps/ia64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
21         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
22         (HP_SMALL_TIMING_AVAIL): Define.
23         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
24         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
25         (HP_SMALL_TIMING_AVAIL): Define.
26         * sysdeps/sparc/sparc64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
27         * sysdeps/x86_64/hp-timing.h (HP_SMALL_TIMING_AVAIL): Define.
28
29         * sysdeps/aarch64/hp-timing.h: New file.
30
31         * sysdeps/generic/hp-timing.h: Remove dead comment.
32         * sysdeps/generic/hp-timing-common.h: New file.
33         * sysdeps/alpha/hp-timing.h: Include it.
34         (HP_TIMING_DIFF, HP_TIMING_ACCUM_NT, HP_TIMING_PRINT): Remove.
35         * sysdeps/i386/i686/hp-timing.h: Likewise.
36         * sysdeps/ia64/hp-timing.h: Likewise.
37         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
38         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
39         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
40         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
41         * sysdeps/x86_64/hp-timing.h: Don't include the i686 version.
42         (HP_TIMING_AVAIL, HP_TIMING_INLINE): Define.
43         (hp_timing_t): New.
44
45         * benchtests/bench-string.h (_dl_hp_timing_overhead): Remove.
46         * benchtests/bench-timing.h (_dl_hp_timing_overhead): Remove.
47         (TIMING_INIT): Remove call to HP_TIMING_DIFF_INIT.
48         * elf/rtld.c (_dl_start_final): Likewise.
49         * sysdeps/generic/ldsodefs.h (_dl_hp_timing_overhead): Remove.
50         * sysdeps/alpha/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
51         * sysdeps/generic/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
52         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
53         * sysdeps/ia64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
54         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
55         (HP_TIMING_DIFF_INIT): Remove.
56         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
57         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h
58         (HP_TIMING_DIFF_INIT): Remove.
59         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_DIFF_INIT): Remove.
60         * sysdeps/i386/i686/hp-timing.c: Remove file.
61         * sysdeps/x86_64/hp-timing.c: Remove file.
62         * sysdeps/ia64/hp-timing.c: Remove file.
63         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Remove file.
64         * sysdeps/powerpc/powerpc64/hp-timing.c: Remove file.
65         * sysdeps/sparc/sparc32/sparcv9/hp-timing.c: Remove file.
66         * sysdeps/sparc/sparc64/hp-timing.c: Remove file.
67
68         * sysdeps/alpha/hp-timing.h (HP_TIMING_ACCUM): Remove.
69         * sysdeps/generic/hp-timing.h (HP_TIMING_ACCUM): Remove.
70         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ACCUM): Remove.
71         * sysdeps/ia64/hp-timing.h (HP_TIMING_ACCUM): Remove.
72         * sysdeps/powerpc/powerpc32/power4/hp-timing.h
73         (HP_TIMING_ACCUM): Remove.
74         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
75         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ACCUM): Remove.
76         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ACCUM): Remove.
77
78         * sysdeps/alpha/hp-timing.h (HP_TIMING_ZERO): Remove.
79         * sysdeps/generic/hp-timing.h (HP_TIMING_ZERO): Remove.
80         * sysdeps/i386/i686/hp-timing.h (HP_TIMING_ZERO): Remove.
81         * sysdeps/ia64/hp-timing.h (HP_TIMING_ZERO): Remove.
82         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_ZERO): Remove.
83         * sysdeps/powerpc/powerpc64/hp-timing.h (HP_TIMING_ZERO): Remove.
84         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h (HP_TIMING_ZERO): Remove.
85         * sysdeps/sparc/sparc64/hp-timing.h (HP_TIMING_ZERO): Remove.
86
87         * sysdeps/powerpc/powerpc32/hp-timing.h: Remove file.
88
89 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
90
91         * stdlib/tst-strtod-overflow.c (TIMEOUT): Bump up to 30.
92
93 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
94
95         Sync up with gettext.
96         * intl/loadmsgcat.c: Define O_BINARY if not defined.
97         [_MSC_VER]: Include malloc.h
98         [_LIBC]: Define PRI_MACROS_BROKEN if it is not defined.
99         (get_sysdep_segment_value) [!__UCLIBC__]: Return "I" flag.
100         (_nl_load_domain): Open DOMAIN_FILE in binary mode.  Don't use
101         TEMP_FAILURE_RETRY.  Cast return of alloca.
102         [!_LIBC] Call gl_rwlock_init.
103         [IN_LIBGLOCALE]: Call _nl_find_msg with one less argument.
104
105 2014-07-02  Roland McGrath  <roland@hack.frob.com>
106
107         * misc/sys/cdefs.h: Check if __STDC_VERSION__ is defined
108         before checking its value.
109
110 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
111
112         * intl/loadmsgcat.c (_nl_load_domain): Use __builtin_expect.
113
114         * debug/memcpy_chk.c: Don't include pagecopy.h.
115         * debug/mempcpy_chk.c: Likewise.
116         * string/memcpy.c: Likewise.
117         * string/memmove.c: Likewise.
118         * sysdeps/powerpc/memmove.c: Likewise.
119         * sysdeps/generic/memcopy.h: Include pagecopy.h.  Move
120         definition of PAGE_COPY_FWD_MAYBE here...
121         * sysdeps/generic/pagecopy.h: ... from here.
122         * sysdeps/mach/pagecopy.h: Don't include generic pagecopy.h.
123
124 2014-07-02  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
125             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
126
127         * sysdeps/powerpc/strcat.c: Using macro to redefine symbol name.
128         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcat multiarch
129         optimizations.
130         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
131         (__libc_ifunc_impl_list): Likewise.
132         * sysdeps/powerpc/powerpc64/multiarch/strcat.c: New file:
133         multiarch strcat for PPC64.
134         * sysdeps/powerpc/powerpc64/multiarch/strcat-ppc64.c: New file/
135         * sysdeps/powerpc/powerpc64/multiarch/strcat-power7.c: New file.
136
137 2014-07-02  Roland McGrath  <roland@hack.frob.com>
138
139         * sysdeps/unix/sysv/linux/dl-sysdep.c: Include <sys/param.h>.
140
141 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
142
143         * intl/loadmsgcat.c: Remove declaration of
144         get_sysdep_segment_value.
145         (get_sysdep_segment_value): Use ISO C style.
146         (_nl_load_domain): Use ISO C style.  Get rid of redundant
147         semicolon.  Fix typo and formatting in comment.
148         (_nl_unload_domain): Use ISO C style.
149
150         * sysdeps/posix/sysconf.c (__sysconf): Fix typo in macro name.
151
152 2014-07-02  Will Newton  <will.newton@linaro.org>
153
154         * malloc/obstack.c: Merge from gnulib master.
155         [HAVE_CONFIG_H]: Remove conditional code.
156         [!_LIBC]: Include config.h.
157         [!ELIDE_CODE]: Don't include inttypes.h, include
158         stdint.h unconditionally.
159         (print_and_abort): Mark as _Noreturn.
160         (_obstack_allocated_p): Mark as __attribute_pure__.
161         (obstack_free): Rename to __obstack_free.
162         [!__attribute__]: Remove conditional code.
163         * malloc/obstack.h: Merge from gnulib master.
164         [__cplusplus]: Move conditional down.
165         [!__attribute_pure__]: Define __attribute_pure__ here
166         if it is not already defined.
167         (_obstack_memory_used): Mark as __attribute_pure__.
168         [!__obstack_free]: Define as obstack_free.
169         [__GNUC__]: Remove check for ancient NeXT gcc.
170
171 2014-07-02  Will Newton  <will.newton@linaro.org>
172             Paul Eggert  <eggert@cs.ucla.edu>
173
174         * misc/sys/cdefs.h (_Noreturn): New macro, for pre-C11 compilers.
175
176 2014-07-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
177
178         * resolv/gethnamaddr.c: Add comment warning that the file is
179         not maintained.
180
181 2014-07-01  Carlos O'Donell  <carlos@redhat.com>
182
183         * sysdeps/unix/sysv/linux/hppa/librt.abilist: Remove GLIBC_2.3
184         entries.
185
186         * sysdeps/unix/sysv/linux/hppa/Versions: Remove librt GLIBC_2.3
187         entry for aio_cancel and aio_cancel64.
188         * sysdeps/unix/sysv/linux/hppa/ld.abilist: New file.
189         * sysdeps/unix/sysv/linux/hppa/libBrokenLocale.abilist: New file.
190         * sysdeps/unix/sysv/linux/hppa/libanl.abilist: New file.
191         * sysdeps/unix/sysv/linux/hppa/libc.abilist: New file.
192         * sysdeps/unix/sysv/linux/hppa/libcrypt.abilist: New file.
193         * sysdeps/unix/sysv/linux/hppa/libdl.abilist: New file.
194         * sysdeps/unix/sysv/linux/hppa/libm.abilist: New file.
195         * sysdeps/unix/sysv/linux/hppa/libnsl.abilist: New file.
196         * sysdeps/unix/sysv/linux/hppa/libpthread.abilist: New file.
197         * sysdeps/unix/sysv/linux/hppa/libresolv.abilist: New file.
198         * sysdeps/unix/sysv/linux/hppa/librt.abilist: New file.
199         * sysdeps/unix/sysv/linux/hppa/libthread_db.abilist: New file.
200         * sysdeps/unix/sysv/linux/hppa/libutil.abilist: New file.
201
202 2014-07-01  Roland McGrath  <roland@hack.frob.com>
203
204         * sysdeps/unix/sysv/linux/sysconf.c: Include <sys/param.h>.
205         * nptl/pthread_mutex_lock.c: Likewise.
206         * nptl/pthread_mutex_timedlock.c: Likewise.
207         * nptl/sysdeps/unix/sysv/linux/pthread_attr_getaffinity.c: Likewise.
208
209 2014-07-01  Richard henderson  <rth@redhat.com>
210
211         * sysdeps/alpha/fpu/bits/mathinline.h (__isnanf): Remove.
212         (__isnan, __isnanl): Remove.
213         * sysdeps/alpha/fpu/s_isnan.c (__isnan): Use integer arithmetic.
214
215         * sysdeps/alpha/fpu/libm-test-ulps: Update.
216
217 2014-07-01  Stefan Liebler  <stli@linux.vnet.ibm.com>
218
219         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
220
221 2014-07-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
222
223         * resolv/nss_dns/dns-host.c (getanswer_r)
224         [MULTI_PTRS_ARE_ALIASES]: Remove code.
225
226 2014-07-01  Joseph Myers  <joseph@codesourcery.com>
227
228         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
229         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PSELECT): Do not
230         undefine.
231         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PREADV): Likewise.
232         [__LINUX_KERNEL_VERSION >= 0x030f00] (__ASSUME_PWRITEV): Likewise.
233
234 2014-07-01  Roland McGrath <roland@hack.frob.com>
235
236         * sysdeps/unix/sysv/linux/microblaze/arch-fork.h: New file.
237         * sysdeps/unix/sysv/linux/microblaze/nptl/fork.c: File removed.
238
239         * sysdeps/microblaze/nptl/tls.h: Define TLS_DEFINE_INIT_TP.
240         * sysdeps/unix/sysv/linux/microblaze/nptl/createthread.c: File removed.
241
242         * sysdeps/microblaze/nptl/bits/pthreadtypes.h: Moved ...
243         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h:
244         ... here.
245         * sysdeps/microblaze/nptl/bits/semaphore.h: Moved ...
246         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/semaphore.h: ... here.
247
248         * sysdeps/unix/sysv/linux/microblaze/pt-vfork.S: Moved ...
249         * sysdeps/unix/sysv/linux/microblaze/nptl/pt-vfork.S: ... here.
250         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Moved ...
251         * sysdeps/unix/sysv/linux/microblaze/vfork.S: ... here.
252
253         * sysdeps/unix/sysv/linux/microblaze/c++-types.data: Moved ...
254         * sysdeps/unix/sysv/linux/microblaze/nptl/c++-types.data: ... here.
255         * sysdeps/unix/sysv/linux/microblaze/ld.abilist: Moved ...
256         * sysdeps/unix/sysv/linux/microblaze/nptl/ld.abilist: ... here.
257         * sysdeps/unix/sysv/linux/microblaze/libBrokenLocale.abilist:
258         Moved ...
259         * sysdeps/unix/sysv/linux/microblaze/nptl/libBrokenLocale.abilist:
260         ... here.
261         * sysdeps/unix/sysv/linux/microblaze/libanl.abilist: Moved ...
262         * sysdeps/unix/sysv/linux/microblaze/nptl/libanl.abilist: ... here.
263         * sysdeps/unix/sysv/linux/microblaze/libc.abilist: Moved ...
264         * sysdeps/unix/sysv/linux/microblaze/nptl/libc.abilist: ... here.
265         * sysdeps/unix/sysv/linux/microblaze/libcrypt.abilist: Moved ...
266         * sysdeps/unix/sysv/linux/microblaze/nptl/libcrypt.abilist: ... here.
267         * sysdeps/unix/sysv/linux/microblaze/libdl.abilist: Moved ...
268         * sysdeps/unix/sysv/linux/microblaze/nptl/libdl.abilist: ... here.
269         * sysdeps/unix/sysv/linux/microblaze/libm.abilist: Moved ...
270         * sysdeps/unix/sysv/linux/microblaze/nptl/libm.abilist: ... here.
271         * sysdeps/unix/sysv/linux/microblaze/libnsl.abilist: Moved ...
272         * sysdeps/unix/sysv/linux/microblaze/nptl/libnsl.abilist: ... here.
273         * sysdeps/unix/sysv/linux/microblaze/libpthread.abilist: Moved ...
274         * sysdeps/unix/sysv/linux/microblaze/nptl/libpthread.abilist: ... here.
275         * sysdeps/unix/sysv/linux/microblaze/libresolv.abilist: Moved ...
276         * sysdeps/unix/sysv/linux/microblaze/nptl/libresolv.abilist: ... here.
277         * sysdeps/unix/sysv/linux/microblaze/librt.abilist: Moved ...
278         * sysdeps/unix/sysv/linux/microblaze/nptl/librt.abilist: ... here.
279         * sysdeps/unix/sysv/linux/microblaze/libthread_db.abilist: Moved ...
280         * sysdeps/unix/sysv/linux/microblaze/nptl/libthread_db.abilist:
281         ... here.
282         * sysdeps/unix/sysv/linux/microblaze/libutil.abilist: Moved ...
283         * sysdeps/unix/sysv/linux/microblaze/nptl/libutil.abilist: ... here.
284         * sysdeps/unix/sysv/linux/microblaze/localplt.data: Moved ...
285         * sysdeps/unix/sysv/linux/microblaze/nptl/localplt.data: ... here.
286         * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Moved ...
287         * sysdeps/unix/sysv/linux/microblaze/nptl/lowlevellock.h: ... here.
288         * sysdeps/unix/sysv/linux/microblaze/nptl/pthread_once.c: Moved ...
289         * sysdeps/unix/sysv/linux/microblaze/pthread_once.c: ... here.
290
291 2014-07-01  David Holsgrove  <david.holsgrove@xilinx.com>
292
293         * sysdeps/unix/sysv/linux/microblaze/sysdep-cancel.h: New file.
294         * sysdeps/unix/sysv/linux/microblaze/socket.S: Update SINGLE_THREAD_P use.
295         * sysdeps/unix/sysv/linux/microblaze/Makefile(libpthread-routines):
296         Add sysdep.
297
298 2014-06-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
299
300         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
301
302 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
303
304         * sysdeps/mips/mips32/libm-test-ulps: Regenerated.
305         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
306
307         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
308
309         * sysdeps/arm/libm-test-ulps: Regenerated.
310
311 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
312             Roland McGrath <roland@hack.frob.com>
313
314         * test-skeleton.c (signal_handler): Kill the whole process group
315         before killing the child individually.
316         (main): Report any failure on `setpgid'.
317
318 2014-06-30  Roland McGrath  <roland@hack.frob.com>
319
320         * sysdeps/arm/nptl/tls.h: Rename the multiple inclusion guard
321         from _TLS_H to _ARM_NPTL_TLS_H.
322         (TLS_INIT_TP): Move macro, and #include of <sysdep.h>, to ...
323         * sysdeps/unix/sysv/linux/arm/tls.h: ... this new file.
324
325 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
326
327         [BZ #16539]
328         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Include <float.h>.
329         (__expm1l): Return argument unchanged when small but not
330         subnormal.
331
332         * soft-fp/op-1.h (_FP_UNPACK_RAW_1): Rename local variables to
333         include macro name.
334         (_FP_UNPACK_RAW_1_P): Likewise.
335         (_FP_PACK_RAW_1): Likewise.
336         (_FP_PACK_RAW_1_P): Likewise.
337         (_FP_MUL_MEAT_1_wide): Likewise.
338         (_FP_MUL_MEAT_DW_1_hard): Likewise.
339         (_FP_MUL_MEAT_1_hard): Likewise.
340         (_FP_DIV_MEAT_1_imm): Likewise.
341         (_FP_DIV_MEAT_1_udiv_norm): Likewise.
342         (_FP_DIV_MEAT_1_udiv): Likewise.
343         * soft-fp/op-2.h (__FP_FRAC_DEC_2): Likewise.
344         (_FP_UNPACK_RAW_2): Likewise.
345         (_FP_UNPACK_RAW_2_P): Likewise.
346         (_FP_PACK_RAW_2): Likewise.
347         (_FP_PACK_RAW_2_P): Likewise.
348         (_FP_MUL_MEAT_DW_2_wide): Likewise.
349         (_FP_MUL_MEAT_2_wide): Likewise.
350         (_FP_MUL_MEAT_DW_2_wide_3mul): Likewise.
351         (_FP_MUL_MEAT_2_wide_3mul): Likewise.
352         (_FP_MUL_MEAT_DW_2_gmp): Likewise.
353         (_FP_MUL_MEAT_2_gmp): Likewise.
354         (_FP_DIV_MEAT_2_udiv): Likewise.
355         * soft-fp/op-4.h (_FP_FRAC_SLL_4): Likewise.
356         (_FP_FRAC_SRL_4): Likewise.
357         (_FP_FRAC_SRST_4): Likewise.
358         (_FP_FRAC_SRS_4): Likewise.
359         (_FP_UNPACK_RAW_4): Likewise.
360         (_FP_UNPACK_RAW_4_P): Likewise.
361         (_FP_PACK_RAW_4): Likewise.
362         (_FP_PACK_RAW_4_P): Likewise.
363         (_FP_MUL_MEAT_DW_4_wide): Likewise.
364         (_FP_MUL_MEAT_4_wide): Likewise.
365         (_FP_MUL_MEAT_4_gmp): Likewise.
366         (umul_ppppmnnn): Likewise.
367         (_FP_DIV_MEAT_4_udiv): Likewise.
368         (__FP_FRAC_ADD_4): Likewise.
369         (__FP_FRAC_SUB_3): Likewise.
370         (__FP_FRAC_SUB_4): Likewise.
371         (__FP_FRAC_DEC_3): Likewise.
372         (__FP_FRAC_DEC_4): Likewise.
373         (__FP_FRAC_ADDI_4): Likewise.
374         * soft-fp/op-8.h (_FP_FRAC_SLL_8): Likewise.
375         (_FP_FRAC_SRL_8): Likewise.
376         (_FP_FRAC_SRS_8): Likewise.
377
378         * soft-fp/extended.h (FP_UNPACK_RAW_E): Rename local variables to
379         include macro name.
380         (FP_UNPACK_RAW_EP): Likewise.
381         (FP_PACK_RAW_E): Likewise.
382         (FP_PACK_RAW_EP): Likewise.
383         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Likewise.
384         (_FP_ISSIGNAN): Likewise.
385         (_FP_ADD_INTERNAL): Likewise.
386         (_FP_FMA): Likewise.
387         (_FP_CMP): Likewise.
388         (_FP_SQRT): Likewise.
389         (_FP_TO_INT): Likewise.
390         (_FP_FROM_INT): Likewise.
391         (FP_EXTEND): Likewise.
392         (_FP_DIV_MEAT_N_loop): Likewise.
393
394 2014-06-30  Maciej W. Rozycki  <macro@codesourcery.com>
395
396         * sysdeps/unix/sysv/linux/bits/socket.h: Adjust macro formatting
397         throughout.
398
399 2014-06-29  Joseph Myers  <joseph@codesourcery.com>
400
401         [BZ #17097]
402         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Return
403         result with correct sign in case of exponents that produce
404         overflow except for X very close to 1.
405
406 2014-06-28  Paul Eggert  <eggert@cs.ucla.edu>
407
408         mktime: merge #if/#ifdef usage from glibc
409         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
410         as that works with both Glibc's and Gnulib's style.
411         See thread starting at Siddhesh Poyarekar's bug report at:
412         http://lists.gnu.org/archive/html/bug-gnulib/2014-06/msg00102.html
413
414 2014-06-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
415
416         * sysdeps/generic/memcopy.h: Define MEMCPY_OK_FOR_FWD_MEMMOVE.
417         * sysdeps/tile/memcopy.h: Redefine MEMCPY_OK_FOR_FWD_MEMMOVE.
418         * sysdeps/tile/tilegx/memmove.c: Remove file.
419
420 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
421
422         * Makeconfig ($(common-objpfx)soversions.mk): Do not generate
423         abi-name definition.
424         * scripts/soversions.awk: Do not handle or generate ABI lines.
425         * shlib-versions: Remove ABI entries.
426         * sysdeps/powerpc/nofpu/shlib-versions: Remove file.
427         * sysdeps/x86_64/x32/shlib-versions: Remove ABI entry.
428
429 2014-06-27  Roland McGrath  <roland@hack.frob.com>
430
431         * sysdeps/unix/sysv/linux/mips/mips32/nptl/c++-types.data: Moved ...
432         * sysdeps/unix/sysv/linux/mips/mips32/c++-types.data: ... here.
433         * sysdeps/unix/sysv/linux/mips/mips32/fpu/nptl/libc.abilist: Moved ...
434         * sysdeps/unix/sysv/linux/mips/mips32/fpu/libc.abilist: ... here.
435         * sysdeps/unix/sysv/linux/mips/mips32/nptl/ld.abilist: Moved ...
436         * sysdeps/unix/sysv/linux/mips/mips32/ld.abilist: ... here.
437         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libBrokenLocale.abilist:
438         Moved ...
439         * sysdeps/unix/sysv/linux/mips/mips32/libBrokenLocale.abilist:
440         ... here.
441         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libanl.abilist: Moved ...
442         * sysdeps/unix/sysv/linux/mips/mips32/libanl.abilist: ... here.
443         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcidn.abilist: Moved ...
444         * sysdeps/unix/sysv/linux/mips/mips32/libcidn.abilist: ... here.
445         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libcrypt.abilist: Moved ...
446         * sysdeps/unix/sysv/linux/mips/mips32/libcrypt.abilist: ... here.
447         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libdl.abilist: Moved ...
448         * sysdeps/unix/sysv/linux/mips/mips32/libdl.abilist: ... here.
449         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libm.abilist: Moved ...
450         * sysdeps/unix/sysv/linux/mips/mips32/libm.abilist: ... here.
451         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnsl.abilist: Moved ...
452         * sysdeps/unix/sysv/linux/mips/mips32/libnsl.abilist: ... here.
453         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_compat.abilist:
454         Moved ...
455         * sysdeps/unix/sysv/linux/mips/mips32/libnss_compat.abilist: ... here.
456         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_db.abilist: Moved ...
457         * sysdeps/unix/sysv/linux/mips/mips32/libnss_db.abilist: ... here.
458         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_dns.abilist: Moved ...
459         * sysdeps/unix/sysv/linux/mips/mips32/libnss_dns.abilist: ... here.
460         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_files.abilist:
461         Moved ...
462         * sysdeps/unix/sysv/linux/mips/mips32/libnss_files.abilist: ... here.
463         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_hesiod.abilist:
464         Moved ...
465         * sysdeps/unix/sysv/linux/mips/mips32/libnss_hesiod.abilist: ... here.
466         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nis.abilist: Moved ...
467         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nis.abilist: ... here.
468         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libnss_nisplus.abilist:
469         Moved ...
470         * sysdeps/unix/sysv/linux/mips/mips32/libnss_nisplus.abilist: ... here.
471         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libpthread.abilist: Moved ...
472         * sysdeps/unix/sysv/linux/mips/mips32/libpthread.abilist: ... here.
473         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libresolv.abilist: Moved ...
474         * sysdeps/unix/sysv/linux/mips/mips32/libresolv.abilist: ... here.
475         * sysdeps/unix/sysv/linux/mips/mips32/nptl/librt.abilist: Moved ...
476         * sysdeps/unix/sysv/linux/mips/mips32/librt.abilist: ... here.
477         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libthread_db.abilist:
478         Moved ...
479         * sysdeps/unix/sysv/linux/mips/mips32/libthread_db.abilist: ... here.
480         * sysdeps/unix/sysv/linux/mips/mips32/nptl/libutil.abilist: Moved ...
481         * sysdeps/unix/sysv/linux/mips/mips32/libutil.abilist: ... here.
482         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/nptl/libc.abilist:
483         Moved ...
484         * sysdeps/unix/sysv/linux/mips/mips32/nofpu/libc.abilist: ... here.
485         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/c++-types.data:
486         Moved ...
487         * sysdeps/unix/sysv/linux/mips/mips64/n32/c++-types.data: ... here.
488         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/ld.abilist: Moved ...
489         * sysdeps/unix/sysv/linux/mips/mips64/n32/ld.abilist: ... here.
490         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libBrokenLocale.abilist:
491         Moved ...
492         * sysdeps/unix/sysv/linux/mips/mips64/libBrokenLocale.abilist:
493         ... here.
494         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libBrokenLocale.abilist:
495         Identical file removed.
496         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libanl.abilist:
497         Moved ...
498         * sysdeps/unix/sysv/linux/mips/mips64/libanl.abilist: ... here.
499         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libanl.abilist:
500         Identical file removed.
501         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libc.abilist: Moved ...
502         * sysdeps/unix/sysv/linux/mips/mips64/n32/libc.abilist: ... here.
503         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libcrypt.abilist:
504         Moved ...
505         * sysdeps/unix/sysv/linux/mips/mips64/libcrypt.abilist: ... here.
506         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libcrypt.abilist:
507         Identical file removed.
508         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libdl.abilist: Moved ...
509         * sysdeps/unix/sysv/linux/mips/mips64/libdl.abilist: ... here.
510         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libdl.abilist:
511         Identical file removed.
512         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libm.abilist: Moved ...
513         * sysdeps/unix/sysv/linux/mips/mips64/libm.abilist: ... here.
514         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libm.abilist:
515         Identical file removed.
516         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libnsl.abilist: Moved ...
517         * sysdeps/unix/sysv/linux/mips/mips64/libnsl.abilist: ... here.
518         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libnsl.abilist:
519         Identical file removed.
520         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libpthread.abilist:
521         Moved ...
522         * sysdeps/unix/sysv/linux/mips/mips64/libpthread.abilist: ... here.
523         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libpthread.abilist:
524         Identical file removed.
525         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libresolv.abilist:
526         Moved ...
527         * sysdeps/unix/sysv/linux/mips/mips64/n32/libresolv.abilist: ... here.
528         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/librt.abilist: Moved ...
529         * sysdeps/unix/sysv/linux/mips/mips64/librt.abilist: ... here.
530         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/librt.abilist:
531         Identical file removed.
532         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libthread_db.abilist:
533         Moved ...
534         * sysdeps/unix/sysv/linux/mips/mips64/libthread_db.abilist:
535         ... here.
536         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libthread_db.abilist:
537         Identical file removed.
538         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libutil.abilist:
539         Moved ...
540         * sysdeps/unix/sysv/linux/mips/mips64/libutil.abilist: ... here.
541         * sysdeps/unix/sysv/linux/mips/mips64/n32/nptl/libutil.abilist:
542         Identical file removed.
543         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/c++-types.data:
544         Moved ...
545         * sysdeps/unix/sysv/linux/mips/mips64/n64/c++-types.data: ... here.
546         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/ld.abilist: Moved ...
547         * sysdeps/unix/sysv/linux/mips/mips64/n64/ld.abilist: ... here.
548         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libc.abilist: Moved ...
549         * sysdeps/unix/sysv/linux/mips/mips64/n64/libc.abilist: ... here.
550         * sysdeps/unix/sysv/linux/mips/mips64/n64/nptl/libresolv.abilist:
551         Moved ...
552         * sysdeps/unix/sysv/linux/mips/mips64/n64/libresolv.abilist: ... here.
553         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h: Moved ...
554         * sysdeps/unix/sysv/linux/mips/mips64/sysdep-cancel.h: ... here.
555
556         * sysdeps/unix/sysv/linux/mips/vfork.S: Incorporate
557         SAVE_PID and RESTORE_PID blocks from nptl/pt-vfork.S.
558         * sysdeps/unix/sysv/linux/mips/nptl/vfork.S: File removed.
559         * sysdeps/unix/sysv/linux/mips/nptl/pt-vfork.S: File removed.
560         * sysdeps/unix/sysv/linux/mips/pt-vfork.S: New file.
561
562 2014-06-27  Arjun Shankar  <arjun.is@lostca.se>
563
564         [BZ #17092]
565         * nscd/nscd.c (monitor_child): Return exit status of child
566         instead of return value from wait syscall.
567
568 2014-06-27  Joseph Myers  <joseph@codesourcery.com>
569
570         * configure.ac (libc_commonpagesize): Remove variable.
571         (libc_relro_required): Likewise.
572         (libc_cv_z_relro): Remove configure test.
573         * configure: Regenerated.
574         * sysdeps/aarch64/preconfigure (libc_commonpagesize): Do not set
575         variable.
576         (libc_relro_required): Likewise.
577         * sysdeps/alpha/preconfigure (libc_commonpagesize): Likewise.
578         (libc_relro_required): Likewise.
579         * sysdeps/arm/preconfigure.ac (libc_commonpagesize): Likewise.
580         (libc_relro_required): Likewise.
581         * sysdeps/arm/preconfigure: Regenerated.
582         * sysdeps/ia64/preconfigure: Remove file.
583         * sysdeps/tile/preconfigure (libc_commonpagesize): Do not set
584         variable.
585         (libc_relro_required): Likewise.
586
587         [BZ #16561]
588         [BZ #16562]
589         * sysdeps/ieee754/dbl-64/e_jn.c: Include <float.h>.
590         (__ieee754_yn): Set FE_TONEAREST mode internally and then
591         recompute overflowing results in original rounding mode.
592         * sysdeps/ieee754/flt-32/e_jnf.c: Include <float.h>.
593         (__ieee754_ynf): Set FE_TONEAREST mode internally and then
594         recompute overflowing results in original rounding mode.
595         * sysdeps/ieee754/ldbl-128/e_jnl.c: Include <float.h>.
596         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
597         recompute overflowing results in original rounding mode.
598         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Include <float.h>.
599         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
600         recompute overflowing results in original rounding mode.
601         * sysdeps/ieee754/ldbl-96/e_jnl.c: Include <float.h>.
602         (__ieee754_ynl): Set FE_TONEAREST mode internally and then
603         recompute overflowing results in original rounding mode.
604         * sysdeps/i386/fpu/fenv_private.h [!__SSE2_MATH__]
605         (libc_feholdsetround_ctx): New macro.
606         * math/libm-test.inc (yn_test): Use ALL_RM_TEST.
607         * sysdeps/i386/fpu/libm-test-ulps: Update.
608         * sysdeps/x86_64/fpu/libm-test-ulps : Likewise.
609
610 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
611
612         * sysdeps/unix/sysv/linux/mips/mips64/nptl/sysdep-cancel.h
613         [__PIC__] (PSEUDO): Use name of _nocancel entry point in
614         corresponding .cpsetup call.
615
616 2014-06-26  Roland McGrath  <roland@hack.frob.com>
617
618         * sysdeps/unix/sysv/linux/arm/libc-aeabi_read_tp.S: Moved ...
619         * sysdeps/arm/libc-aeabi_read_tp.S: ... here.
620         * sysdeps/arm/Makefile [$(subdir) = csu]
621         (aeabi_routines): Add aeabi_read_tp and libc-aeabi_read_tp here.
622         (static-only-routines): Add aeabi_read_tp here.
623         (shared-only-routines): Add libc-aeabi_read_tp here.
624         (CFLAGS-libc-start.c): Add -fexceptions here.
625         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = csu]
626         (sysdep_routines, static-only-routines, shared-only-routines):
627         Don't add to these here.
628         (CFLAGS-libc-start.c): Likewise.
629
630         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: Moved ...
631         * sysdeps/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
632         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: Moved ...
633         * sysdeps/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
634         * sysdeps/arm/Makefile [$(subdir) = rt]
635         (librt-sysdep_routines, librt-shared-only-routines):
636         Append rt-aeabi_unwind_cpp_pr1 here.
637         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = rt]
638         (librt-sysdep_routines, librt-shared-only-routines): Don't do it here.
639         * sysdeps/arm/nptl/Makefile [$(subdir) = nptl]
640         (libpthread-sysdep_routines, libpthread-shared-only-routines):
641         Append nptl-aeabi_unwind_cpp_pr1 here.
642         (tests): Filter out tst-cleanupx4 here.
643         * sysdeps/unix/sysv/linux/arm/Makefile [$(subdir) = nptl]
644         (libpthread-sysdep_routines, libpthread-shared-only-routines, tests):
645         Don't do those here.
646
647 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
648
649         * scripts/list-sources.sh: Do not handle ports specially.
650
651 2014-06-26  Roland McGrath  <roland@hack.frob.com>
652
653         * sysdeps/arm/fesetenv.c: Include <fpu_control.h>.
654         * sysdeps/arm/feupdateenv.c: Likewise.
655
656         * posix/spawn_faction_addopen.c: Include <stdlib.h> for free decl.
657
658 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
659
660         * manual/texinfo.tex: Update to version 2014-05-05.10 with
661         trailing whitespace removed.
662         * scripts/config.guess: Update to version 2014-03-23.
663         * scripts/config.sub: Update to version 2014-05-01
664         * scripts/install-sh: Update to version 2013-12-25.23.
665         * scripts/move-if-change: Update from gnulib.
666
667 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
668
669         * debug/memmove_chk.c: Remove pagecopy.h include.
670
671 2014-06-26  Paul Eggert  <eggert@cs.ucla.edu>
672
673         * time/mktime.c (leapyear): Remove inline keyword.  The code is now
674         identical to gnulib mktime.
675
676 2014-06-26  Joseph Myers  <joseph@codesourcery.com>
677
678         * configure.ac: Do not test for machine being rs6000.  Do not test
679         for powerpc*-*soft.
680         * configure: Regenerated.
681
682         * configure.ac (libc_cv_asm_cfi_directives): Remove configure
683         test.
684         * configure: Regenerated.
685         * config.h.in (HAVE_ASM_CFI_DIRECTIVES): Remove macro undefine.
686         * sysdeps/arm/configure.ac (libc_cv_asm_cfi_directive_sections):
687         Remove configure test.
688         * sysdeps/arm/configure: Regenerated.
689         * sysdeps/nptl/configure.ac: Do not check
690         libc_cv_asm_cfi_directives.
691         * sysdeps/nptl/configure: Regenerated.
692         * sysdeps/x86_64/nptl/configure.ac: Remove file.
693         * sysdeps/x86_64/nptl/configure: Remove generated file.
694         * b/sysdeps/generic/sysdep.h [HAVE_ASM_CFI_DIRECTIVES]: Make code
695         unconditional.
696         [!HAVE_ASM_CFI_DIRECTIVES]: Remove conditional code.
697
698 2014-06-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
699
700         * posix/fnmatch.c: Define WIDE_CHAR_VERSION.
701         * posix/fnmatch_loop.c: Undefine WIDE_CHAR_VERSION.
702         (FCT): Check value of WIDE_CHAR_VERSION instead of checking if
703         it is defined.
704
705         * elf/dl-runtime.c: Check for value of ELF_MACHINE_NO_RELA
706         instead of whether it is defined.
707         * sysdeps/aarch64/dl-machine.h: Define ELF_MACHINE_NO_RELA.
708         * sysdeps/hppa/dl-machine.h: Likewise.
709         * sysdeps/ia64/dl-machine.h: Likewise.
710         * sysdeps/m68k/dl-machine.h: Likewise.
711         * sysdeps/microblaze/dl-machine.h: Likewise.
712         * sysdeps/mips/dl-machine.: Likewise.
713         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
714         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
715         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
716         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
717         * sysdeps/sh/dl-machine.h: Likewise.
718         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
719         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
720         * sysdeps/tile/dl-machine.h: Likewise.
721         * sysdeps/x86_64/dl-machine.h: Likewise.
722
723         * nscd/connections.c (enum usekey) [SEPARATE_KEY]: Remove
724         code.
725         (verify_persistent_db): Likewise.
726
727 2014-06-26  Roland McGrath  <roland@hack.frob.com>
728
729         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data: Moved ...
730         * sysdeps/unix/sysv/linux/s390/s390-32/c++-types.data: ... here.
731         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Moved ...
732         * sysdeps/unix/sysv/linux/s390/s390-32/ld.abilist: ... here.
733         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
734         Moved ...
735         * sysdeps/unix/sysv/linux/s390/s390-32/libBrokenLocale.abilist:
736         ... here.
737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: Moved ...
738         * sysdeps/unix/sysv/linux/s390/libanl.abilist: ... here.
739         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist:
740         Identical file removed.
741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Moved ...
742         * sysdeps/unix/sysv/linux/s390/s390-32/libc.abilist: ... here.
743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: Moved ...
744         * sysdeps/unix/sysv/linux/s390/s390-32/libcrypt.abilist: ... here.
745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: Moved ...
746         * sysdeps/unix/sysv/linux/s390/s390-32/libdl.abilist: ... here.
747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Moved ...
748         * sysdeps/unix/sysv/linux/s390/s390-32/libm.abilist: ... here.
749         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: Moved ...
750         * sysdeps/unix/sysv/linux/s390/s390-32/libnsl.abilist: ... here.
751         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
752         Moved ...
753         * sysdeps/unix/sysv/linux/s390/s390-32/libpthread.abilist: ... here.
754         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: Moved ...
755         * sysdeps/unix/sysv/linux/s390/s390-32/libresolv.abilist: ... here.
756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Moved ...
757         * sysdeps/unix/sysv/linux/s390/s390-32/librt.abilist: ... here.
758         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
759         Moved ...
760         * sysdeps/unix/sysv/linux/s390/s390-32/libthread_db.abilist: ... here.
761         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Moved ...
762         * sysdeps/unix/sysv/linux/s390/s390-32/libutil.abilist: ... here.
763         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data: Moved ...
764         * sysdeps/unix/sysv/linux/s390/localplt.data: ... here.
765         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
766         Identical file removed.
767         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data: Moved ...
768         * sysdeps/unix/sysv/linux/s390/s390-64/c++-types.data: ... here.
769         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Moved ...
770         * sysdeps/unix/sysv/linux/s390/s390-64/ld.abilist: ... here.
771         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
772         Moved ...
773         * sysdeps/unix/sysv/linux/s390/s390-64/libBrokenLocale.abilist:
774         ... here.
775         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Moved ...
776         * sysdeps/unix/sysv/linux/s390/s390-64/libc.abilist: ... here.
777         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: Moved ...
778         * sysdeps/unix/sysv/linux/s390/s390-64/libcrypt.abilist: ... here.
779         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: Moved ...
780         * sysdeps/unix/sysv/linux/s390/s390-64/libdl.abilist: ... here.
781         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Moved ...
782         * sysdeps/unix/sysv/linux/s390/s390-64/libm.abilist: ... here.
783         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: Moved ...
784         * sysdeps/unix/sysv/linux/s390/s390-64/libnsl.abilist: ... here.
785         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
786         Moved ...
787         * sysdeps/unix/sysv/linux/s390/s390-64/libpthread.abilist: ... here.
788         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist:
789         Moved ...
790         * sysdeps/unix/sysv/linux/s390/s390-64/libresolv.abilist: ... here.
791         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: Moved ...
792         * sysdeps/unix/sysv/linux/s390/s390-64/librt.abilist: ... here.
793         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
794         Moved ...
795         * sysdeps/unix/sysv/linux/s390/s390-64/libthread_db.abilist: ... here.
796         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: Moved ...
797         * sysdeps/unix/sysv/linux/s390/s390-64/libutil.abilist: ... here.
798
799         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: File removed, contents
800         folded into ...
801         * sysdeps/unix/sysv/linux/s390/Makefile [$(subdir) = nptl]: ... here.
802         * sysdeps/unix/sysv/linux/s390/Versions
803         (libpthread: GLIBC_2.19): New version set.
804         * nptl/sysdeps/unix/sysv/linux/s390/Versions: File removed.
805         * sysdeps/unix/sysv/linux/s390/s390-64/Versions
806         (librt: GLIBC_2.3.3): New version set.
807         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/Versions: File removed.
808         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: Moved ...
809         * sysdeps/unix/sysv/linux/s390/elision-conf.c: ... here.
810         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Moved ...
811         * sysdeps/unix/sysv/linux/s390/elision-conf.h: ... here.
812         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Moved ...
813         * sysdeps/unix/sysv/linux/s390/elision-lock.c: ... here.
814         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Moved ...
815         * sysdeps/unix/sysv/linux/s390/elision-timed.c: ... here.
816         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Moved ...
817         * sysdeps/unix/sysv/linux/s390/elision-trylock.c: ... here.
818         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Moved ...
819         * sysdeps/unix/sysv/linux/s390/elision-unlock.c: ... here.
820         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Moved ...
821         * sysdeps/unix/sysv/linux/s390/force-elision.h: ... here.
822         * nptl/sysdeps/unix/sysv/linux/s390/jmp-unwind.c: Moved ...
823         * sysdeps/unix/sysv/linux/s390/jmp-unwind.c: ... here.
824         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h: Moved ...
825         * sysdeps/unix/sysv/linux/s390/lowlevellock.h: ... here.
826         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: Moved ...
827         * sysdeps/unix/sysv/linux/s390/pt-longjmp.c: ... here.
828         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: Moved ...
829         * sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c: ... here.
830         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: Moved ...
831         * sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c: ... here.
832         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: Moved ...
833         * sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c: ... here.
834         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: Moved ...
835         * sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c: ... here.
836         * nptl/sysdeps/unix/sysv/linux/s390/pthread_once.c: Moved ...
837         * sysdeps/unix/sysv/linux/s390/pthread_once.c: ... here.
838         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: Moved ...
839         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep-cancel.h: ... here.
840         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: Moved ...
841         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep-cancel.h: ... here.
842         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Moved ...
843         * sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: ... here.
844         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Moved ...
845         * sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: ... here.
846         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Moved ...
847         * sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: ... here.
848         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Moved ...
849         * sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: ... here.
850         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Moved ...
851         * sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: ... here.
852
853         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Moved ...
854         * sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: ... here.
855         (__libc_vfork): Define the function under this name.
856         [!NOT_IN_libc] (__vfork): Make this an alias.
857         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
858         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Moved ...
859         * sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: ... here.
860         (__libc_vfork): Define the function under this name.
861         [!NOT_IN_libc] (__vfork): Make this an alias.
862         [!NOT_IN_libc] (vfork): Conditionalize the weak_alias.
863         * sysdeps/unix/sysv/linux/s390/pt-vfork.S: New file.
864         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: File removed.
865         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: File removed.
866         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Remove vfork.
867         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
868
869         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Deconditionalize the
870         code that was previously under [RESET_PID].
871         * sysdeps/unix/sysv/linux/s390/s390-64/clone.S: Likewise.
872         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/clone.S: File removed.
873         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/clone.S: File removed.
874
875         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h: Moved ...
876         * sysdeps/aarch64/nptl/bits/pthreadtypes.h: ... here.
877         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/semaphore.h: Moved ...
878         * sysdeps/aarch64/nptl/bits/semaphore.h: ... here.
879         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/local_lim.h: Moved ...
880         * sysdeps/unix/sysv/linux/aarch64/bits/local_lim.h: ... here.
881         * sysdeps/unix/sysv/linux/aarch64/nptl/c++-types.data: Moved ...
882         * sysdeps/unix/sysv/linux/aarch64/c++-types.data: ... here.
883         * sysdeps/unix/sysv/linux/aarch64/nptl/ld.abilist: Moved ...
884         * sysdeps/unix/sysv/linux/aarch64/ld.abilist: ... here.
885         * sysdeps/unix/sysv/linux/aarch64/nptl/libBrokenLocale.abilist:
886         Moved ...
887         * sysdeps/unix/sysv/linux/aarch64/libBrokenLocale.abilist: ... here.
888         * sysdeps/unix/sysv/linux/aarch64/nptl/libanl.abilist: Moved ...
889         * sysdeps/unix/sysv/linux/aarch64/libanl.abilist: ... here.
890         * sysdeps/unix/sysv/linux/aarch64/nptl/libc.abilist: Moved ...
891         * sysdeps/unix/sysv/linux/aarch64/libc.abilist: ... here.
892         * sysdeps/unix/sysv/linux/aarch64/nptl/libcrypt.abilist: Moved ...
893         * sysdeps/unix/sysv/linux/aarch64/libcrypt.abilist: ... here.
894         * sysdeps/unix/sysv/linux/aarch64/nptl/libdl.abilist: Moved ...
895         * sysdeps/unix/sysv/linux/aarch64/libdl.abilist: ... here.
896         * sysdeps/unix/sysv/linux/aarch64/nptl/libm.abilist: Moved ...
897         * sysdeps/unix/sysv/linux/aarch64/libm.abilist: ... here.
898         * sysdeps/unix/sysv/linux/aarch64/nptl/libnsl.abilist: Moved ...
899         * sysdeps/unix/sysv/linux/aarch64/libnsl.abilist: ... here.
900         * sysdeps/unix/sysv/linux/aarch64/nptl/libpthread.abilist: Moved ...
901         * sysdeps/unix/sysv/linux/aarch64/libpthread.abilist: ... here.
902         * sysdeps/unix/sysv/linux/aarch64/nptl/libresolv.abilist: Moved ...
903         * sysdeps/unix/sysv/linux/aarch64/libresolv.abilist: ... here.
904         * sysdeps/unix/sysv/linux/aarch64/nptl/librt.abilist: Moved ...
905         * sysdeps/unix/sysv/linux/aarch64/librt.abilist: ... here.
906         * sysdeps/unix/sysv/linux/aarch64/nptl/libthread_db.abilist: Moved ...
907         * sysdeps/unix/sysv/linux/aarch64/libthread_db.abilist: ... here.
908         * sysdeps/unix/sysv/linux/aarch64/nptl/libutil.abilist: Moved ...
909         * sysdeps/unix/sysv/linux/aarch64/libutil.abilist: ... here.
910         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data: Moved ...
911         * sysdeps/unix/sysv/linux/aarch64/localplt.data: ... here.
912         * sysdeps/unix/sysv/linux/aarch64/nptl/lowlevellock.h: Moved ...
913         * sysdeps/unix/sysv/linux/aarch64/lowlevellock.h: ... here.
914         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Moved ...
915         * sysdeps/unix/sysv/linux/aarch64/sysdep-cancel.h: ... here.
916
917 2014-06-25  Roland McGrath  <roland@hack.frob.com>
918
919         * sysdeps/unix/sysv/linux/mips/clone.S: Deconditionalize the code
920         that was previously under [RESET_PID].
921         * sysdeps/unix/sysv/linux/mips/nptl/clone.S: File removed.
922
923 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
924
925         * sysdeps/unix/sysv/linux/dl-opendir.c (__ASSUME_O_CLOEXEC): Do
926         not undefine and redefine.
927         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs)
928         [O_CLOEXEC]: Make code unconditional.
929         (__get_nprocs) [!O_CLOEXEC]: Remove conditional code.
930         * sysdeps/unix/sysv/linux/shm_open.c: Do not include
931         <kernel-features.h>.
932         [O_CLOEXEC && !__ASSUME_O_CLOEXEC] (have_o_cloexec): Remove
933         conditional variable definition.
934         (shm_open) [O_CLOEXEC]: Make code unconditional.
935         (shm_open) [!O_CLOEXEC || !__ASSUME_O_CLOEXEC]: Remove conditional
936         code.
937
938         * configure.ac (USE_REGPARMS): Don't define here.
939         * configure: Regenerated.
940         * sysdeps/i386/configure.ac (USE_REGPARMS): Define here.
941         * sysdeps/i386/configure: Regenerated.
942
943         * nptl/createthread.c: Don't include kernel-features.h.
944         * nptl/pthread_cancel.c: Likewise.
945         * nptl/pthread_condattr_setclock.c: Likewise.
946         * nptl/sysdeps/unix/sysv/linux/pt-raise.c: Likewise.
947         * nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c: Likewise.
948         * nptl/sysdeps/unix/sysv/linux/pthread_kill.c: Likewise.
949         * nptl/sysdeps/unix/sysv/linux/pthread_sigqueue.c: Likewise.
950         * nptl/sysdeps/unix/sysv/linux/raise.c: Likewise.
951         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/pt-vfork.S: Likewise.
952         * nptl/sysdeps/unix/sysv/linux/s390/s390-32/vfork.S: Likewise.
953         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/pt-vfork.S: Likewise.
954         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/vfork.S: Likewise.
955         * nptl/sysdeps/unix/sysv/linux/timer_create.c: Likewise.
956         * nptl/sysdeps/unix/sysv/linux/timer_delete.c: Likewise.
957         * nptl/sysdeps/unix/sysv/linux/timer_getoverr.c: Likewise.
958         * nptl/sysdeps/unix/sysv/linux/timer_gettime.c: Likewise.
959         * nptl/sysdeps/unix/sysv/linux/timer_routines.c: Likewise.
960         * nptl/sysdeps/unix/sysv/linux/timer_settime.c: Likewise.
961         * nscd/gai.c: Likewise.
962         * nss/nss_db/db-open.c: Likewise.
963         * sysdeps/generic/ldsodefs.h: Likewise.
964         * sysdeps/sh/nptl/tls.h: Likewise.
965         * sysdeps/unix/sysv/linux/aarch64/sigaction.c: Likewise.
966         * sysdeps/unix/sysv/linux/aarch64/sigcontextinfo.h: Likewise.
967         * sysdeps/unix/sysv/linux/aarch64/vfork.S: Likewise.
968         * sysdeps/unix/sysv/linux/adjtime.c: Likewise.
969         * sysdeps/unix/sysv/linux/alpha/xstatconv.h: Likewise.
970         * sysdeps/unix/sysv/linux/arm/sigaction.c: Likewise.
971         * sysdeps/unix/sysv/linux/arm/sigcontextinfo.h: Likewise.
972         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
973         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
974         * sysdeps/unix/sysv/linux/clock_getres.c: Likewise.
975         * sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
976         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
977         * sysdeps/unix/sysv/linux/clock_settime.c: Likewise.
978         * sysdeps/unix/sysv/linux/dl-execstack.c: Likewise.
979         * sysdeps/unix/sysv/linux/dl-osinfo.h: Likewise.
980         * sysdeps/unix/sysv/linux/dl-sysdep.c: Likewise.
981         * sysdeps/unix/sysv/linux/generic/futimesat.c: Likewise.
982         * sysdeps/unix/sysv/linux/generic/poll.c: Likewise.
983         * sysdeps/unix/sysv/linux/generic/wordsize-32/fcntl.c: Likewise.
984         * sysdeps/unix/sysv/linux/generic/wordsize-32/fxstatat.c: Likewise.
985         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread.c: Likewise.
986         * sysdeps/unix/sysv/linux/generic/wordsize-32/pread64.c: Likewise.
987         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv.c: Likewise.
988         * sysdeps/unix/sysv/linux/generic/wordsize-32/preadv64.c: Likewise.
989         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite.c: Likewise.
990         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwrite64.c: Likewise.
991         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev.c: Likewise.
992         * sysdeps/unix/sysv/linux/generic/wordsize-32/pwritev64.c: Likewise.
993         * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
994         * sysdeps/unix/sysv/linux/getpagesize.c: Likewise.
995         * sysdeps/unix/sysv/linux/getsysstats.c: Likewise.
996         * sysdeps/unix/sysv/linux/i386/fxstat.c: Likewise.
997         * sysdeps/unix/sysv/linux/i386/lxstat.c: Likewise.
998         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
999         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1000         * sysdeps/unix/sysv/linux/i386/sigaction.c: Likewise.
1001         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1002         * sysdeps/unix/sysv/linux/i386/xstat.c: Likewise.
1003         * sysdeps/unix/sysv/linux/ia64/system.c: Likewise.
1004         * sysdeps/unix/sysv/linux/if_index.c: Likewise.
1005         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
1006         * sysdeps/unix/sysv/linux/ifreq.c: Likewise.
1007         * sysdeps/unix/sysv/linux/ldsodefs.h: Likewise.
1008         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1009         * sysdeps/unix/sysv/linux/m68k/vfork.S: Likewise.
1010         * sysdeps/unix/sysv/linux/microblaze/nptl/vfork.S: Likewise.
1011         * sysdeps/unix/sysv/linux/mips/mips32/accept4.c: Likewise.
1012         * sysdeps/unix/sysv/linux/mips/mips32/recvmmsg.c: Likewise.
1013         * sysdeps/unix/sysv/linux/mips/mips32/sendmmsg.c: Likewise.
1014         * sysdeps/unix/sysv/linux/mips/pread.c: Likewise.
1015         * sysdeps/unix/sysv/linux/mips/pread64.c: Likewise.
1016         * sysdeps/unix/sysv/linux/mips/pwrite.c: Likewise.
1017         * sysdeps/unix/sysv/linux/mips/pwrite64.c: Likewise.
1018         * sysdeps/unix/sysv/linux/mips/sigaction.c: Likewise.
1019         * sysdeps/unix/sysv/linux/mmap64.c: Likewise.
1020         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
1021         * sysdeps/unix/sysv/linux/powerpc/chown.c: Likewise.
1022         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c: Likewise.
1023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c: Likewise.
1025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c: Likewise.
1026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Likewise.
1027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Likewise.
1028         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Likewise.
1029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Likewise.
1030         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Likewise.
1031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Likewise.
1034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c: Likewise.
1035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c: Likewise.
1036         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S: Likewise.
1037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1038         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S: Likewise.
1043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S: Likewise.
1044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Likewise.
1045         * sysdeps/unix/sysv/linux/pread.c: Likewise.
1046         * sysdeps/unix/sysv/linux/pread64.c: Likewise.
1047         * sysdeps/unix/sysv/linux/prof-freq.c: Likewise.
1048         * sysdeps/unix/sysv/linux/pwrite.c: Likewise.
1049         * sysdeps/unix/sysv/linux/pwrite64.c: Likewise.
1050         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S: Likewise.
1051         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S: Likewise.
1052         * sysdeps/unix/sysv/linux/s390/system.c: Likewise.
1053         * sysdeps/unix/sysv/linux/sh/pread.c: Likewise.
1054         * sysdeps/unix/sysv/linux/sh/pread64.c: Likewise.
1055         * sysdeps/unix/sysv/linux/sh/pwrite.c: Likewise.
1056         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Likewise.
1057         * sysdeps/unix/sysv/linux/sigaction.c: Likewise.
1058         * sysdeps/unix/sysv/linux/sigpending.c: Likewise.
1059         * sysdeps/unix/sysv/linux/sigprocmask.c: Likewise.
1060         * sysdeps/unix/sysv/linux/sigsuspend.c: Likewise.
1061         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
1062         * sysdeps/unix/sysv/linux/sparc/system.c: Likewise.
1063         * sysdeps/unix/sysv/linux/syslog.c: Likewise.
1064         * sysdeps/unix/sysv/linux/system.c: Likewise.
1065         * sysdeps/unix/sysv/linux/testrtsig.h: Likewise.
1066         * sysdeps/unix/sysv/linux/timespec_get.c: Likewise.
1067         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
1068         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
1069         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
1070         * sysdeps/unix/sysv/linux/x86_64/sigaction.c: Likewise.
1071         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
1072
1073         * configure.ac (libc_cv_c_asmcr0_bug): Remove configure test.
1074         * configure: Regenerated.
1075         * config.h.in (BROKEN_PPC_ASM_CR0): Remove macro.
1076
1077         * configure.ac (base_machine): Do not set specially for particular
1078         machines here.
1079         * configure: Regenerated.
1080         * sysdeps/powerpc/preconfigure: Move machine and base_machine
1081         settings from configure.ac.
1082         * sysdeps/i386/preconfigure: New file.
1083         * sysdeps/s390/preconfigure: Likewise.
1084         * sysdeps/sh/preconfigure: Likewise.
1085         * sysdeps/sparc/preconfigure: Likewise.
1086
1087 2014-06-25  Roland McGrath  <roland@hack.frob.com>
1088
1089         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: Moved ...
1090         * sysdeps/sparc/sparc64/cpu_relax.S: ... here.
1091         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: Moved ...
1092         * sysdeps/sparc/sparc64/pthread_spin_init.c: ... here.
1093         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: Moved ...
1094         * sysdeps/sparc/sparc64/pthread_spin_lock.S: ... here.
1095         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: Moved ...
1096         * sysdeps/sparc/sparc64/pthread_spin_trylock.S: ... here.
1097         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: Moved ...
1098         * sysdeps/sparc/sparc64/pthread_spin_unlock.S: ... here.
1099         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: Moved ...
1100         * sysdeps/sparc/sparc64/pthreaddef.h: ... here.
1101         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: Update #include.
1102         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Likewise.
1103         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Likewise.
1104         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Likewise.
1105         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Likewise.
1106         * sysdeps/sparc/sparc64/nptl/Makefile: File removed, its contents ...
1107         * sysdeps/sparc/sparc64/Makefile: ... appended here.
1108
1109         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: Moved ...
1110         * sysdeps/sparc/sparc32/lowlevellock.c: ... here.
1111         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: Moved ...
1112         * sysdeps/sparc/sparc32/pthread_barrier_wait.c: ... here.
1113         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: Moved ...
1114         * sysdeps/sparc/sparc32/pthread_spin_lock.S: ... here.
1115         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: Moved ...
1116         * sysdeps/sparc/sparc32/pthread_spin_trylock.S: ... here.
1117         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: Moved ...
1118         * sysdeps/sparc/sparc32/pthreaddef.h: ... here.
1119         * sysdeps/sparc/sparc32/nptl/sem_post.c: Moved ...
1120         * sysdeps/sparc/sparc32/sem_post.c: ... here.
1121         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: Moved ...
1122         * sysdeps/sparc/sparc32/sem_timedwait.c: ... here.
1123         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: Moved ...
1124         * sysdeps/sparc/sparc32/sem_trywait.c: ... here.
1125         * sysdeps/sparc/sparc32/nptl/sem_wait.c: Moved ...
1126         * sysdeps/sparc/sparc32/sem_wait.c: ... here.
1127         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: Moved ...
1128         * sysdeps/sparc/sparc32/sparcv9/cpu_relax.S: ... here.
1129         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: Moved ...
1130         * sysdeps/sparc/sparc32/sparcv9/pthread_barrier_wait.c: ... here.
1131         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: Moved ...
1132         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: ... here.
1133         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: Moved ...
1134         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: ... here.
1135         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: Moved ...
1136         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: ... here.
1137         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: Moved ...
1138         * sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: ... here.
1139         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: Moved ...
1140         * sysdeps/sparc/sparc32/sparcv9/sem_post.c: ... here.
1141         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: Moved ...
1142         * sysdeps/sparc/sparc32/sparcv9/sem_timedwait.c: ... here.
1143         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: Moved ...
1144         * sysdeps/sparc/sparc32/sparcv9/sem_trywait.c: ... here.
1145         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: Moved ...
1146         * sysdeps/sparc/sparc32/sparcv9/sem_wait.c: ... here.
1147
1148         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data: Moved ...
1149         * sysdeps/unix/sysv/linux/sparc/sparc32/c++-types.data: ... here.
1150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: Moved ...
1151         * sysdeps/unix/sysv/linux/sparc/sparc32/ld.abilist: ... here.
1152         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
1153         Moved ...
1154         * sysdeps/unix/sysv/linux/sparc/sparc32/libBrokenLocale.abilist:
1155         ... here.
1156         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: Moved ...
1157         * sysdeps/unix/sysv/linux/sparc/sparc32/libanl.abilist: ... here.
1158         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Moved ...
1159         * sysdeps/unix/sysv/linux/sparc/sparc32/libc.abilist: ... here.
1160         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist:
1161         Moved ...
1162         * sysdeps/unix/sysv/linux/sparc/sparc32/libcrypt.abilist: ... here.
1163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: Moved ...
1164         * sysdeps/unix/sysv/linux/sparc/sparc32/libdl.abilist: ... here.
1165         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: Moved ...
1166         * sysdeps/unix/sysv/linux/sparc/sparc32/libm.abilist: ... here.
1167         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: Moved ...
1168         * sysdeps/unix/sysv/linux/sparc/sparc32/libnsl.abilist: ... here.
1169         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1170         Moved ...
1171         * sysdeps/unix/sysv/linux/sparc/sparc32/libpthread.abilist: ... here.
1172         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
1173         Moved ...
1174         * sysdeps/unix/sysv/linux/sparc/sparc32/libresolv.abilist: ... here.
1175         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: Moved ...
1176         * sysdeps/unix/sysv/linux/sparc/sparc32/librt.abilist: ... here.
1177         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
1178         Moved ...
1179         * sysdeps/unix/sysv/linux/sparc/sparc32/libthread_db.abilist: ... here.
1180         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: Moved ...
1181         * sysdeps/unix/sysv/linux/sparc/sparc32/libutil.abilist: ... here.
1182         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data: Moved ...
1183         * sysdeps/unix/sysv/linux/sparc/sparc32/localplt.data: ... here.
1184         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data: Moved ...
1185         * sysdeps/unix/sysv/linux/sparc/sparc64/c++-types.data: ... here.
1186         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: Moved ...
1187         * sysdeps/unix/sysv/linux/sparc/sparc64/ld.abilist: ... here.
1188         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
1189         Moved ...
1190         * sysdeps/unix/sysv/linux/sparc/sparc64/libBrokenLocale.abilist:
1191         ... here.
1192         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: Moved ...
1193         * sysdeps/unix/sysv/linux/sparc/sparc64/libanl.abilist: ... here.
1194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Moved ...
1195         * sysdeps/unix/sysv/linux/sparc/sparc64/libc.abilist: ... here.
1196         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist:
1197         Moved ...
1198         * sysdeps/unix/sysv/linux/sparc/sparc64/libcrypt.abilist: ... here.
1199         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: Moved ...
1200         * sysdeps/unix/sysv/linux/sparc/sparc64/libdl.abilist: ... here.
1201         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: Moved ...
1202         * sysdeps/unix/sysv/linux/sparc/sparc64/libm.abilist: ... here.
1203         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: Moved ...
1204         * sysdeps/unix/sysv/linux/sparc/sparc64/libnsl.abilist: ... here.
1205         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1206         Moved ...
1207         * sysdeps/unix/sysv/linux/sparc/sparc64/libpthread.abilist: ... here.
1208         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
1209         Moved ...
1210         * sysdeps/unix/sysv/linux/sparc/sparc64/libresolv.abilist: ... here.
1211         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: Moved ...
1212         * sysdeps/unix/sysv/linux/sparc/sparc64/librt.abilist: ... here.
1213         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
1214         Moved ...
1215         * sysdeps/unix/sysv/linux/sparc/sparc64/libthread_db.abilist: ... here.
1216         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: Moved ...
1217         * sysdeps/unix/sysv/linux/sparc/sparc64/libutil.abilist: ... here.
1218         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data: Moved ...
1219         * sysdeps/unix/sysv/linux/sparc/sparc64/localplt.data: ... here.
1220
1221 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
1222
1223         * timezone/checktab.awk: Update from tzcode 2014e.
1224         * timezone/private.h: Likewise.
1225         * timezone/tzfile.h: Likewise.
1226         * timezone/zdump.c: Likewise.
1227         * timezone/zic.c: Likewise.
1228
1229         * sysdeps/unix/sysv/linux/kernel-features.h
1230         (__ASSUME_XFS_RESTRICTED_CHOWN): Remove macro.
1231         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_chown_restricted)
1232         [__ASSUME_XFS_RESTRICTED_CHOWN]: Make code unconditional.
1233         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
1234         Remove conditional code.
1235
1236 2014-06-25  Will Newton  <will.newton@linaro.org>
1237
1238         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c
1239         (_dl_arm_cap_flags): Add HWCAP2 values.
1240         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h
1241         (_DL_HWCAP_COUNT): Increase to 37.
1242         (_DL_HWCAP_LAST): New define.
1243         (_DL_HWCAP2_LAST): New define.
1244         (_dl_procinfo): Add support for printing
1245         AT_HWCAP2 entries.
1246         (_dl_string_hwcap): Use _dl_hwcap_string.
1247
1248 2014-06-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1249
1250         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1251
1252 2014-06-25  Joseph Myers  <joseph@codesourcery.com>
1253
1254         * README: Do not mention ports directory.
1255
1256         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMENSAT):
1257         Remove macro.
1258         * sysdeps/unix/sysv/linux/futimes.c: Do not include
1259         <kernel-features.h>.
1260         [__NR_utimensat && !__ASSUME_UTIMENSAT] (miss_utimensat): Remove
1261         conditional variable definition.
1262         (__futimes): Update comment.
1263         (__futimes) [__ASSUME_UTIMENSAT]: Make code unconditional.
1264         (__futimes) [!__ASSUME_UTIMENSAT]: Remove conditional code.
1265
1266         [BZ #16560]
1267         * sysdeps/ieee754/dbl-64/e_exp10.c (__ieee754_exp10): Return 1 for
1268         arguments close to 0.
1269         * sysdeps/ieee754/ldbl-128/e_exp10l.c (__ieee754_exp10l):
1270         Likewise.
1271         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c (__ieee754_exp10l):
1272         Likewise.
1273         * math/auto-libm-test-in: Add more tests of exp10.
1274         * math/auto-libm-test-out: Regenerated.
1275         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1276
1277         * sysdeps/unix/sysv/linux/kernel-features.h
1278         (__ASSUME_COMPLETE_READV_WRITEV): Remove macro.
1279         * sysdeps/unix/sysv/linux/readv.c: Do not include
1280         <kernel-features.h>.
1281         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
1282         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
1283         (__libc_readv) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
1284         unconditional.
1285         (__libc_readv) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
1286         conditional code.
1287         * sysdeps/unix/sysv/linux/writev.c: Do not include
1288         <kernel-features.h>.
1289         [!__ASSUME_COMPLETE_READV_WRITEV]: Remove conditional code.
1290         [!UIO_FASTIOV] (UIO_FASTIOV): Remove macro.
1291         (__libc_writev) [__ASSUME_COMPLETE_READV_WRITEV]: Make code
1292         unconditional.
1293         (__libc_writev) [!__ASSUME_COMPLETE_READV_WRITEV]: Remove
1294         conditional code.
1295
1296 2014-06-25  Will Newton  <will.newton@linaro.org>
1297
1298         * sysdeps/posix/tempname.c: Merge from gnulib, cosmetic
1299         comment changes throughout the file.  Remove checks
1300         for HAVE_*_H definitions that are not required.
1301         (__gen_tempname): Call abort if an unknown kind value is
1302         passed.
1303
1304 2014-06-25  Andreas Schwab  <schwab@suse.de>
1305
1306         [BZ #17086]
1307         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Add compat symbols for
1308         scalbln, scalblnf, scalblnl in libc.
1309
1310 2014-06-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
1311
1312         [BZ #17086]
1313         * sysdeps/i386/fpu/s_scalbn.S: Add compat symbol for libc.so.
1314         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
1315         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
1316
1317 2014-06-24  Roland McGrath  <roland@hack.frob.com>
1318
1319         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: Moved ...
1320         * sysdeps/i386/i486/pthread_spin_trylock.S: ... here.
1321         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: Moved ...
1322         * sysdeps/i386/i586/pthread_spin_trylock.S: ... here.
1323         Update #include.
1324         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: Moved ...
1325         * sysdeps/i386/i686/pthread_spin_trylock.S: ... here.
1326         Update #include.
1327         * sysdeps/x86_64/64/nptl/shlib-versions: Moved ...
1328         * sysdeps/unix/sysv/linux/x86_64/64/shlib-versions: ... here.
1329         * sysdeps/x86_64/x32/nptl/shlib-versions: Moved ...
1330         * sysdeps/unix/sysv/linux/x86_64/x32/shlib-versions: ... here.
1331         * sysdeps/x86/nptl/bits/pthreadtypes.h: Moved ...
1332         * sysdeps/x86/bits/pthreadtypes.h: ... here.
1333         * sysdeps/x86/nptl/bits/semaphore.h: Moved ...
1334         * sysdeps/x86/bits/semaphore.h: ... here.
1335         * sysdeps/x86/nptl/elide.h: Moved ...
1336         * sysdeps/x86/elide.h: ... here.
1337         * sysdeps/x86_64/nptl/Implies: File removed.
1338         * sysdeps/i386/nptl/Implies: File removed.
1339
1340 2014-06-24  Joseph Myers  <joseph@codesourcery.com>
1341
1342         [BZ #16539]
1343         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Just
1344         return the argument for normal arguments with exponent below -64.
1345         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
1346         Likewise.
1347         * math/auto-libm-test-in: Add another test of expm1.
1348         * math/auto-libm-test-out: Regenerated.
1349
1350         [BZ #16287]
1351         * sysdeps/ieee754/ldbl-128/s_erfl.c (__erfl): Return 1 without
1352         calling __erfcl for arguments at least 16.
1353         * math/auto-libm-test-in: Add more tests of erf.
1354         * math/auto-libm-test-out: Regenerated.
1355
1356         * sysdeps/unix/sysv/linux/configure.ac: Remove cases for
1357         individual architectures.
1358         * sysdeps/unix/sysv/linux/configure: Regenerated.
1359         * sysdeps/unix/sysv/linux/i386/configure.ac: New file.
1360         * sysdeps/unix/sysv/linux/i386/configure: New generated file.
1361         * sysdeps/unix/sysv/linux/powerpc/configure.ac
1362         (ldd_rewrite_script): Define variable.
1363         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
1364         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure.ac: New
1365         file.
1366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/configure: New
1367         generated file.
1368         * sysdeps/unix/sysv/linux/s390/configure.ac: New file.
1369         * sysdeps/unix/sysv/linux/s390/configure: New generated file.
1370         * sysdeps/unix/sysv/linux/sh/configure.ac: New file.
1371         * sysdeps/unix/sysv/linux/sh/configure: New generated file.
1372         * sysdeps/unix/sysv/linux/sparc/configure.ac: New file.
1373         * sysdeps/unix/sysv/linux/sparc/configure: New generated file.
1374         * sysdeps/unix/sysv/linux/x86_64/configure.ac: New file.
1375         * sysdeps/unix/sysv/linux/x86_64/configure: New generated file.
1376
1377 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1378
1379         [BZ #17084]
1380         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_mutex_t):
1381         Rename member __data.d to __data.__elision_data.
1382
1383 2014-06-24  Wilco  <wdijkstr@arm.com>
1384
1385         * NEWS: Add 16918 to fixed bug list.
1386
1387 2014-06-24  Wilco  <wdijkstr@arm.com>
1388
1389         * sysdeps/arm/fesetenv.c (fesetenv): Optimize implementation.
1390
1391 2014-06-24  Wilco  <wdijkstr@arm.com>
1392
1393         * sysdeps/arm/fpu_control.h (_FPU_MASK_RM): Define.
1394         * sysdeps/arm/fenv_private.h (libc_fesetround_vfp)
1395         (libc_feholdexcept_setround_vfp) (libc_feholdsetround_vfp)
1396         (libc_feresetround_vfp) (libc_feholdsetround_vfp_ctx)
1397         (libc_feresetround_vfp_ctx): Use _FPU_MASK_RM.
1398         * sysdeps/arm/fesetround.c (fesetround): Use _FPU_MASK_RM.
1399         * sysdeps/arm/get-rounding-mode.h (get_rounding_mode):
1400         Use _FPU_MASK_RM.
1401
1402 2014-06-24  Wilco  <wdijkstr@arm.com>
1403
1404         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Remove unused include.
1405
1406 2014-06-24  Wilco  <wdijkstr@arm.com>
1407
1408         * sysdeps/arm/feholdexcpt.c (feholdexcept): Remove space.
1409         * sysdeps/arm/fesetenv.c (fesetenv): Remove space.
1410         * sysdeps/arm/fesetround.c (fesetround): Remove space.
1411         * sysdeps/arm/fraiseexcpt.c (feraiseexcept): Remove space.
1412
1413 2014-06-24  Wilco  <wdijkstr@arm.com>
1414
1415         [BZ #16918]
1416         * sysdeps/arm/feupdateenv.c (feupdateenv):
1417         Rewrite to reduce FPSCR accesses and fix return value.
1418
1419 2014-06-24  Wilco  <wdijkstr@arm.com>
1420
1421         * sysdeps/arm/fclrexcpt.c (feclearexcept):
1422         Optimize to avoid unnecessary FPSCR writes.
1423         * sysdeps/arm/fedisblxcpt.c (fedisableexcept): Likewise.
1424         * sysdeps/arm/feenablxcpt.c (feenableexcept): Likewise.
1425         * sysdeps/arm/fsetexcptflg.c (fesetexceptflag): Likewise.
1426         * sysdeps/arm/setfpucw.c (__setfpucw): Likewise.
1427
1428 2014-06-24  Wilco  <wdijkstr@arm.com>
1429
1430         * sysdeps/arm/fegetround.c (fegetround): Call get_rounding_mode.
1431         * sysdeps/arm/feholdexcpt.c (feholdexcept): Call libc_feholdexcept_vfp.
1432         * sysdeps/arm/fesetround.c (fesetround): Call libc_fesetround_vfp.
1433         * sysdeps/arm/fgetexcptflg.c (fegetexceptflag):
1434         Call libc_fetestexcept_vfp.
1435         * sysdeps/arm/ftestexcept.c (fetestexcept): Call libc_fetestexcept_vfp.
1436         * sysdeps/arm/fenv_private.h: Move libc_*_vfp functions outside of
1437         __SOFTFP__ ifdef so that they can be built for softfp.
1438
1439 2014-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1440
1441         * sysdeps/x86/nptl/elide.h (elision_adapt): Make first
1442         argument type signed char.
1443
1444         * Makerules (check-abi): Dump diff of symlist if the test
1445         fails.
1446
1447 2014-06-23  Roland McGrath  <roland@hack.frob.com>
1448
1449         * sysdeps/generic/get-rounding-mode.h: Include <stdlib.h> before
1450         using abort.
1451
1452         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
1453         Remove unused variable ST.
1454
1455 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
1456
1457         [BZ #16354]
1458         [BZ #17061]
1459         * sysdeps/ieee754/dbl-64/e_cosh.c (__ieee754_cosh): Check for
1460         small arguments before calling __expm1.
1461         * sysdeps/ieee754/flt-32/e_coshf.c (__ieee754_coshf): Check for
1462         small arguments before calling __expm1f.
1463         * sysdeps/ieee754/ldbl-128/e_coshl.c (__ieee754_coshl): Check for
1464         small arguments before calling __expm1l.
1465         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
1466         Likewise.
1467         * sysdeps/ieee754/ldbl-96/e_coshl.c (__ieee754_coshl): Likewise.
1468         * math/auto-libm-test-in: Add more cosh tests.  Do not allow
1469         spurious underflow for some cosh tests.
1470         * math/auto-libm-test-out: Regenerated.
1471         * sysdeps/i386/fpu/libm-test-ulps: Update.
1472
1473         [BZ #17050]
1474         * sysdeps/ieee754/dbl-64/e_j1.c: Include <errno.h>.
1475         (__ieee754_y1): Set errno if return value overflows.
1476         * sysdeps/ieee754/flt-32/e_j1f.c: Include <errno.h>.
1477         (__ieee754_y1f): Set errno if return value overflows.
1478         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <errno.h>.
1479         (__ieee754_y1l): Set errno if return value overflows.
1480         * sysdeps/ieee754/ldbl-96/e_j1l.c: Include <errno.h>.
1481         (__ieee754_y1l): Set errno if return value overflows.
1482         * math/auto-libm-test-in: Add more tests of y0, y1 and yn.
1483         * math/auto-libm-test-out: Regenerated.
1484
1485         * math/gen-auto-libm-tests.c: Document use of
1486         ignore-zero-inf-sign.
1487         (input_flag_type): Add value flag_ignore_zero_inf_sign.
1488         (input_flags): Add ignore-zero-inf-sign.
1489         (output_for_one_input_case): Handle flag_ignore_zero_inf_sign.
1490         * math/gen-libm-test.pl (generate_testfile): Handle
1491         ignore-zero-inf-sign.
1492         * math/auto-libm-test-in: Mark some cpow tests with
1493         ignore-zero-inf-sign and some with xfail-rounding.
1494         * math/auto-libm-test-out: Regenerated.
1495         * math/libm-test.inc (cpow_test): Use ALL_RM_TEST.
1496         * sysdeps/i386/fpu/libm-test-ulps: Update.
1497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1498
1499         [BZ #16315]
1500         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Ensure possibly
1501         overflowing or underflowing operations take place with sign of
1502         result.
1503         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
1504         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
1505         * sysdeps/ieee754/dbl-64/e_pow.c: Include <math.h>.
1506         (__ieee754_pow): Recompute overflowing and underflowing results in
1507         original rounding mode.
1508         * sysdeps/x86/fpu/powl_helper.c: Include <stdbool.h>.
1509         (__powl_helper): Allow negative argument X and scale negated value
1510         as needed.  Avoid passing value outside [-1, 1] to f2xm1.
1511         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Ensure possibly
1512         overflowing or underflowing operations take place with sign of
1513         result.
1514         * sysdeps/x86_64/fpu/multiarch/e_pow.c [HAVE_FMA4_SUPPORT]:
1515         Include <math.h>.
1516         * math/auto-libm-test-in: Add more tests of pow.
1517         * math/auto-libm-test-out: Regenerated.
1518         * math/libm-test.inc (pow_test): Use ALL_RM_TEST.
1519         (pow_tonearest_test_data): Remove.
1520         (pow_test_tonearest): Likewise.
1521         (pow_towardzero_test_data): Likewise.
1522         (pow_test_towardzero): Likewise.
1523         (pow_downward_test_data): Likewise.
1524         (pow_test_downward): Likewise.
1525         (pow_upward_test_data): Likewise.
1526         (pow_test_upward): Likewise.
1527         (main): Don't call removed functions.
1528         * sysdeps/i386/fpu/libm-test-ulps: Update.
1529         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1530
1531 2014-06-23  Roland McGrath  <roland@hack.frob.com>
1532
1533         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/c++-types.data:
1534         Moved ...
1535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/c++-types.data: ... here.
1536         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1537         Moved ...
1538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libc.abilist: ... here.
1539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
1540         Moved ...
1541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/libm.abilist: ... here.
1542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
1543         Moved ...
1544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/localplt.data: ... here.
1545         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
1546         File removed.
1547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
1548         File removed.
1549         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libBrokenLocale.abilist:
1550         File removed.
1551         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libanl.abilist:
1552         File removed.
1553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libcrypt.abilist:
1554         File removed.
1555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libdl.abilist:
1556         File removed.
1557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libnsl.abilist:
1558         File removed.
1559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
1560         File removed.
1561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libresolv.abilist:
1562         File removed.
1563         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
1564         File removed.
1565         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libthread_db.abilist:
1566         File removed.
1567         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libutil.abilist:
1568         File removed.
1569         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/ld.abilist:
1570         Moved ...
1571         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ld.abilist: ... here.
1572         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libBrokenLocale.abilist:
1573         Moved ...
1574         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libBrokenLocale.abilist:
1575         ... here.
1576         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libanl.abilist:
1577         Moved ...
1578         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libanl.abilist: ... here.
1579         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libcrypt.abilist:
1580         Moved ...
1581         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libcrypt.abilist: ... here.
1582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libdl.abilist:
1583         Moved ...
1584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libdl.abilist: ... here.
1585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libnsl.abilist:
1586         Moved ...
1587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libnsl.abilist: ... here.
1588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libpthread.abilist:
1589         Moved ...
1590         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libpthread.abilist: ... here.
1591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libresolv.abilist:
1592         Moved ...
1593         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libresolv.abilist: ... here.
1594         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/librt.abilist:
1595         Moved ...
1596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/librt.abilist: ... here.
1597         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libthread_db.abilist: Moved ...
1598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libthread_db.abilist:
1599         ... here.
1600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libutil.abilist:
1601         Moved ...
1602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/libutil.abilist: ... here.
1603         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
1604         Moved ...
1605         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libc.abilist:
1606         ... here.
1607         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libm.abilist:
1608         Moved ...
1609         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/libm.abilist:
1610         ... here.
1611         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
1612         Moved ...
1613         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data:
1614         ... here.
1615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
1616         Moved ...
1617         * sysdeps/unix/sysv/linux/powerpc/powerpc64/c++-types.data: ... here.
1618         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
1619         Moved ...
1620         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld-le.abilist: ... here.
1621         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: Moved ...
1622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ld.abilist: ... here.
1623         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
1624         Moved ...
1625         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale-le.abilist:
1626         ... here.
1627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
1628         Moved ...
1629         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libBrokenLocale.abilist:
1630         ... here.
1631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
1632         Moved ...
1633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl-le.abilist: ... here.
1634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
1635         Moved ...
1636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libanl.abilist: ... here.
1637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
1638         Moved ...
1639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc-le.abilist: ... here.
1640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1641         Moved ...
1642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libc.abilist: ... here.
1643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
1644         Moved ...
1645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt-le.abilist:
1646         ... here.
1647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
1648         Moved ...
1649         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libcrypt.abilist: ... here.
1650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
1651         Moved ...
1652         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl-le.abilist: ... here.
1653         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
1654         Moved ...
1655         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libdl.abilist: ... here.
1656         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
1657         Moved ...
1658         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm-le.abilist: ... here.
1659         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: Moved ...
1660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libm.abilist: ... here.
1661         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
1662         Moved ...
1663         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl-le.abilist: ... here.
1664         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
1665         Moved ...
1666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libnsl.abilist: ... here.
1667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
1668         Moved ...
1669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread-le.abilist:
1670         ... here.
1671         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1672         Moved ...
1673         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libpthread.abilist:
1674         ... here.
1675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
1676         Moved ...
1677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv-le.abilist:
1678         ... here.
1679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
1680         Moved ...
1681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libresolv.abilist: ... here.
1682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
1683         Moved ...
1684         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt-le.abilist: ... here.
1685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
1686         Moved ...
1687         * sysdeps/unix/sysv/linux/powerpc/powerpc64/librt.abilist: ... here.
1688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
1689         Moved ...
1690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db-le.abilist:
1691         ... here.
1692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
1693         Moved ...
1694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libthread_db.abilist:
1695         ... here.
1696         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
1697         Moved ...
1698         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil-le.abilist:
1699         ... here.
1700         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
1701         Moved ...
1702         * sysdeps/unix/sysv/linux/powerpc/powerpc64/libutil.abilist: ... here.
1703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
1704         Moved ...
1705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/localplt.data: ... here.
1706
1707 2014-06-23  Will Newton  <will.newton@linaro.org>
1708             Wilco  <wdijkstr@arm.com>
1709
1710         * sysdeps/generic/math_private.h: Add generic HAVE_RM_CTX
1711         implementation.  Include get-rounding-mode.h.
1712         [!HAVE_RM_CTX]: Define HAVE_RM_CTX to zero.
1713         [!libc_feholdsetround_noex_ctx]: Define
1714         libc_feholdsetround_noex_ctx.
1715         [!libc_feholdsetround_noexf_ctx]: Define
1716         libc_feholdsetround_noexf_ctx.
1717         [!libc_feholdsetround_noexl_ctx]: Define
1718         libc_feholdsetround_noexl_ctx.
1719         (libc_feholdsetround_ctx): New function.
1720         (libc_feresetround_ctx): New function.
1721         (libc_feholdsetround_noex_ctx): New function.
1722         (libc_feresetround_noex_ctx): New function.
1723
1724 2014-06-23  Roland McGrath  <roland@hack.frob.com>
1725
1726         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h: Moved ...
1727         * sysdeps/mips/nptl/bits/pthreadtypes.h: ... here.
1728         * sysdeps/unix/sysv/linux/mips/nptl/bits/semaphore.h: Moved ...
1729         * sysdeps/mips/nptl/bits/semaphore.h: ... here.
1730         * sysdeps/unix/sysv/linux/mips/nptl/bits/local_lim.h: Moved ...
1731         * sysdeps/unix/sysv/linux/mips/bits/local_lim.h: ... here.
1732
1733         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h: Moved ...
1734         * sysdeps/m68k/nptl/bits/pthreadtypes.h: ... here.
1735         * sysdeps/unix/sysv/linux/m68k/nptl/bits/semaphore.h: Moved ...
1736         * sysdeps/m68k/nptl/bits/semaphore.h: ... here.
1737         * sysdeps/unix/sysv/linux/m68k/nptl/c++-types.data: Moved ...
1738         * sysdeps/unix/sysv/linux/m68k/c++-types.data: ... here.
1739         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/bits/atomic.h: Moved ...
1740         * sysdeps/unix/sysv/linux/m68k/coldfire/bits/atomic.h: ... here.
1741         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/ld.abilist: Moved ...
1742         * sysdeps/unix/sysv/linux/m68k/coldfire/ld.abilist: ... here.
1743         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libBrokenLocale.abilist:
1744         Moved ...
1745         * sysdeps/unix/sysv/linux/m68k/coldfire/libBrokenLocale.abilist:
1746         ... here.
1747         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libanl.abilist: Moved ...
1748         * sysdeps/unix/sysv/linux/m68k/coldfire/libanl.abilist: ... here.
1749         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libc.abilist: Moved ...
1750         * sysdeps/unix/sysv/linux/m68k/coldfire/libc.abilist: ... here.
1751         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libcrypt.abilist:
1752         Moved ...
1753         * sysdeps/unix/sysv/linux/m68k/coldfire/libcrypt.abilist: ... here.
1754         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libdl.abilist: Moved ...
1755         * sysdeps/unix/sysv/linux/m68k/coldfire/libdl.abilist: ... here.
1756         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libm.abilist: Moved ...
1757         * sysdeps/unix/sysv/linux/m68k/coldfire/libm.abilist: ... here.
1758         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libnsl.abilist: Moved ...
1759         * sysdeps/unix/sysv/linux/m68k/coldfire/libnsl.abilist: ... here.
1760         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libpthread.abilist:
1761         Moved ...
1762         * sysdeps/unix/sysv/linux/m68k/coldfire/libpthread.abilist: ... here.
1763         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libresolv.abilist:
1764         Moved ...
1765         * sysdeps/unix/sysv/linux/m68k/coldfire/libresolv.abilist: ... here.
1766         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/librt.abilist: Moved ...
1767         * sysdeps/unix/sysv/linux/m68k/coldfire/librt.abilist: ... here.
1768         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libthread_db.abilist:
1769         Moved ...
1770         * sysdeps/unix/sysv/linux/m68k/coldfire/libthread_db.abilist: ... here.
1771         * sysdeps/unix/sysv/linux/m68k/coldfire/nptl/libutil.abilist: Moved ...
1772         * sysdeps/unix/sysv/linux/m68k/coldfire/libutil.abilist: ... here.
1773         * sysdeps/unix/sysv/linux/m68k/nptl/localplt.data: Moved ...
1774         * sysdeps/unix/sysv/linux/m68k/localplt.data: ... here.
1775         * sysdeps/unix/sysv/linux/m68k/nptl/lowlevellock.h: Moved ...
1776         * sysdeps/unix/sysv/linux/m68k/lowlevellock.h: ... here.
1777         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/ld.abilist: Moved ...
1778         * sysdeps/unix/sysv/linux/m68k/m680x0/ld.abilist: ... here.
1779         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libBrokenLocale.abilist:
1780         Moved ...
1781         * sysdeps/unix/sysv/linux/m68k/m680x0/libBrokenLocale.abilist:
1782         ... here.
1783         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libanl.abilist: Moved ...
1784         * sysdeps/unix/sysv/linux/m68k/m680x0/libanl.abilist: ... here.
1785         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libc.abilist: Moved ...
1786         * sysdeps/unix/sysv/linux/m68k/m680x0/libc.abilist: ... here.
1787         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libcrypt.abilist: Moved ...
1788         * sysdeps/unix/sysv/linux/m68k/m680x0/libcrypt.abilist: ... here.
1789         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libdl.abilist: Moved ...
1790         * sysdeps/unix/sysv/linux/m68k/m680x0/libdl.abilist: ... here.
1791         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libm.abilist: Moved ...
1792         * sysdeps/unix/sysv/linux/m68k/m680x0/libm.abilist: ... here.
1793         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libnsl.abilist: Moved ...
1794         * sysdeps/unix/sysv/linux/m68k/m680x0/libnsl.abilist: ... here.
1795         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libpthread.abilist:
1796         Moved ...
1797         * sysdeps/unix/sysv/linux/m68k/m680x0/libpthread.abilist: ... here.
1798         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libresolv.abilist: Moved ...
1799         * sysdeps/unix/sysv/linux/m68k/m680x0/libresolv.abilist: ... here.
1800         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/librt.abilist: Moved ...
1801         * sysdeps/unix/sysv/linux/m68k/m680x0/librt.abilist: ... here.
1802         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libthread_db.abilist:
1803         Moved ...
1804         * sysdeps/unix/sysv/linux/m68k/m680x0/libthread_db.abilist: ... here.
1805         * sysdeps/unix/sysv/linux/m68k/m680x0/nptl/libutil.abilist: Moved ...
1806         * sysdeps/unix/sysv/linux/m68k/m680x0/libutil.abilist: ... here.
1807         * sysdeps/unix/sysv/linux/m68k/nptl/sysdep-cancel.h: Moved ...
1808         * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h: ... here.
1809
1810         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: Moved ...
1811         * sysdeps/unix/sysv/linux/sh/c++-types.data: ... here.
1812         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: Moved ...
1813         * sysdeps/unix/sysv/linux/sh/ld.abilist: ... here.
1814         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: Moved ...
1815         * sysdeps/unix/sysv/linux/sh/libBrokenLocale.abilist: ... here.
1816         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: Moved ...
1817         * sysdeps/unix/sysv/linux/sh/libanl.abilist: ... here.
1818         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Moved ...
1819         * sysdeps/unix/sysv/linux/sh/libc.abilist: ... here.
1820         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: Moved ...
1821         * sysdeps/unix/sysv/linux/sh/libcrypt.abilist: ... here.
1822         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: Moved ...
1823         * sysdeps/unix/sysv/linux/sh/libdl.abilist: ... here.
1824         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Moved ...
1825         * sysdeps/unix/sysv/linux/sh/libm.abilist: ... here.
1826         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: Moved ...
1827         * sysdeps/unix/sysv/linux/sh/libnsl.abilist: ... here.
1828         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: Moved ...
1829         * sysdeps/unix/sysv/linux/sh/libpthread.abilist: ... here.
1830         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: Moved ...
1831         * sysdeps/unix/sysv/linux/sh/libresolv.abilist: ... here.
1832         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Moved ...
1833         * sysdeps/unix/sysv/linux/sh/librt.abilist: ... here.
1834         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: Moved ...
1835         * sysdeps/unix/sysv/linux/sh/libthread_db.abilist: ... here.
1836         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: Moved ...
1837         * sysdeps/unix/sysv/linux/sh/libutil.abilist: ... here.
1838
1839 2014-06-23  Joseph Myers  <joseph@codesourcery.com>
1840
1841         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
1842         (FALLOC_FL_COLLAPSE_RANGE): New macro.
1843         [__USE_GNU] (FALLOC_FL_ZERO_RANGE): Likewise.
1844         * sysdeps/unix/sysv/linux/bits/in.h (IP_PMTUDISC_OMIT): Likewise.
1845         (IPV6_PMTUDISC_INTERFACE): Likewise.
1846         (IPV6_PMTUDISC_OMIT): Likewise.
1847
1848 2014-06-23  Andreas Schwab  <schwab@suse.de>
1849
1850         * nptl/sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink):
1851         Remove unused errout label.
1852
1853 2014-06-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1854
1855         * sysdeps/powerpc/bits/hwcap.h [PPC_FEATURE2_HAS_VEC_CRYPTO]: New
1856         macro: hardware supports Vector Crypto instructions.
1857
1858 2014-06-23  Will Newton  <will.newton@linaro.org>
1859
1860         * elf/dl-lookup.c: Use __glibc_unlikely and __glibc_likely
1861         rather than __builtin_expect.
1862
1863         * elf/dl-lookup.c (undefined_msg): Remove variable.
1864         (_dl_lookup_symbol_x): Replace undefined_msg with string
1865         literal.
1866
1867         * elf/dl-lookup.c (do_lookup_unique): New function.
1868         (do_lookup_x): Move STB_GNU_UNIQUE handling code
1869         to a separate function.
1870
1871 2014-06-23  Andreas Schwab  <schwab@suse.de>
1872
1873         [BZ #17079]
1874         * nss/nss_files/files-XXX.c (get_contents): Store overflow marker
1875         before reading the next line.
1876
1877 2014-06-23  Will Newton  <will.newton@linaro.org>
1878
1879         * test-skeleton.c (signal_handler): Use printf and %m
1880         rather than perror.  Use printf rather than fprintf to
1881         stderr.  Use puts rather than fputs to stderr.
1882         (main): Likewise.
1883
1884 2014-06-22  Ludovic Courtès  <ludo@gnu.org>
1885
1886         * nscd/nscd.c (thread_info_t): Remove typedef.
1887         (thread_info): Remove variable.
1888
1889 2014-06-21  Allan McRae  <allan@archlinux.org>
1890
1891         * NEWS: Mention CVE-2014-4043.
1892
1893 2014-06-20  Roland McGrath  <roland@hack.frob.com>
1894
1895         * nptl/sysdeps/unix/sysv/linux/smp.h: Moved ...
1896         * nptl/smp.h: ... here.
1897
1898         * nptl/sysdeps/unix/sysv/linux/rtld-lowlevel.h: File removed.
1899
1900         * include/libc-symbols.h (HAVE_CONFIG_H, STDC_HEADERS): New macros.
1901         * catgets/Makefile (catgets-CPPFLAGS): Remove -DHAVE_CONFIG_H.
1902         * locale/Makefile (CPPFLAGS-locale-programs): Likewise.
1903         * stdlib/strtol_l.c [_LIBC] (STDC_HEADERS): Don't define it.
1904
1905         * nptl/allocatestack.c: Include <stack-aliasing.h>.
1906         * nptl/stack-aliasing.h: New file.
1907         * sysdeps/i386/i686/stack-aliasing.h: New file.
1908         * sysdeps/i386/i686/nptl/Makefile: File removed.
1909         * sysdeps/x86_64/stack-aliasing.h: New file.
1910         * sysdeps/x86_64/nptl/Makefile
1911         (CFLAGS-pthread_create.c): Variable removed.
1912
1913         * nptl/sysdeps/unix/sysv/linux/bits/local_lim.h: Moved ...
1914         * sysdeps/unix/sysv/linux/bits/local_lim.h: ... here, replacing the
1915         old file.
1916         * nptl/sysdeps/unix/sysv/linux/bits/posix_opt.h: Moved ...
1917         * sysdeps/unix/sysv/linux/bits/posix_opt.h: ... here, replacing the
1918         old file.
1919
1920 2014-06-21  Joseph Myers  <joseph@codesourcery.com>
1921
1922         * sysdeps/unix/sysv/linux/arm/kernel-features.h
1923         (__ASSUME_SIGFRAME_V2): Remove macro.
1924         * sysdeps/unix/sysv/linux/arm/sigrestorer.S: Update comment.
1925         [!__ASSUME_SIGFRAME_V2]: Remove conditional code.
1926         (__default_sa_restorer_v2): Rename to __default_sa_restorer.
1927         (__default_rt_sa_restorer_v2): Rename to __default_rt_sa_restorer.
1928         * sysdeps/unix/sysv/linux/arm/sigaction.c (__default_sa_restorer):
1929         Declare as function.  Remove conditional macro definitions.
1930         (__default_rt_sa_restorer): Likewise.
1931         (__default_sa_restorer_v1): Remove declaration.
1932         (__default_sa_restorer_v2): Likewise.
1933         (__default_rt_sa_restorer_v1): Likewise.
1934         (__default_rt_sa_restorer_v2): Likewise.
1935         * sysdeps/unix/sysv/linux/arm/Versions (GLIBC_PRIVATE): Remove
1936         __default_sa_restorer_v1, __default_rt_sa_restorer_v1,
1937         __default_sa_restorer_v2 and __default_rt_sa_restorer_v2.
1938
1939 2014-06-20  Roland McGrath  <roland@hack.frob.com>
1940
1941         * sysdeps/unix/sysv/linux/sparc/Makefile [$(subdir) = nptl]
1942         (libpthread-routines): Add sysdep.
1943         * nptl/sysdeps/unix/sysv/linux/sparc/Makefile: File removed.
1944         * sysdeps/unix/sysv/linux/sparc/Versions
1945         (libpthread: GLIBC_2.3.3): New version set.
1946         * nptl/sysdeps/unix/sysv/linux/sparc/Versions: File removed.
1947         * nptl/sysdeps/unix/sysv/linux/sparc/aio_cancel.c: Moved ...
1948         * sysdeps/unix/sysv/linux/sparc/aio_cancel.c: ... here.
1949         * nptl/sysdeps/unix/sysv/linux/sparc/internaltypes.h: Moved ...
1950         * sysdeps/sparc/nptl/internaltypes.h: ... here.  Use #include_next.
1951         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_destroy.c:
1952         Moved ...
1953         * sysdeps/sparc/nptl/pthread_barrier_destroy.c: ... here.
1954         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_init.c: Moved ...
1955         * sysdeps/sparc/nptl/pthread_barrier_init.c: ... here.
1956         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_barrier_wait.c: Moved ...
1957         * sysdeps/sparc/nptl/pthread_barrier_wait.c: ... here.
1958         * nptl/sysdeps/unix/sysv/linux/sparc/sem_init.c: Moved ...
1959         * sysdeps/sparc/nptl/sem_init.c: ... here.
1960         * nptl/sysdeps/unix/sysv/linux/sparc/sem_post.c: Moved ...
1961         * sysdeps/sparc/nptl/sem_post.c: ... here.
1962         * nptl/sysdeps/unix/sysv/linux/sparc/sem_timedwait.c: Moved ...
1963         * sysdeps/sparc/nptl/sem_timedwait.c: ... here.
1964         * nptl/sysdeps/unix/sysv/linux/sparc/sem_wait.c: Moved ...
1965         * sysdeps/sparc/nptl/sem_wait.c: ... here.
1966         * nptl/sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Moved ...
1967         * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: ... here.
1968         * sysdeps/sparc/sparc32/sparcv9/Makefile [$(subdir) = nptl]
1969         (libpthread-routines): Add cpu_relax.
1970         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/Makefile:
1971         File removed.
1972         * sysdeps/unix/sysv/linux/sparc/sparc64/Versions
1973         (librt: GLIBC_2.3.3): New version set.
1974         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Versions: File removed.
1975         * sysdeps/sparc/sparc64/nptl/Makefile: New file.
1976         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile [$(subdir) = nptl]
1977         (CFLAGS-pause.c, CFLAGS-sigsuspend.c): New variables.
1978         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/Makefile: File removed.
1979         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/lowlevellock.c: Moved ...
1980         * sysdeps/sparc/sparc32/nptl/lowlevellock.c: ... here.
1981         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pthread_barrier_wait.c:
1982         Moved ...
1983         * sysdeps/sparc/sparc32/nptl/pthread_barrier_wait.c: ... here.
1984         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_post.c: Moved ...
1985         * sysdeps/sparc/sparc32/nptl/sem_post.c: ... here.
1986         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_timedwait.c: Moved ...
1987         * sysdeps/sparc/sparc32/nptl/sem_timedwait.c: ... here.
1988         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_trywait.c: Moved ...
1989         * sysdeps/sparc/sparc32/nptl/sem_trywait.c: ... here.
1990         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sem_wait.c: Moved ...
1991         * sysdeps/sparc/sparc32/nptl/sem_wait.c: ... here.
1992         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/cpu_relax.S:
1993         Moved ...
1994         * sysdeps/sparc/sparc32/sparcv9/nptl/cpu_relax.S: ... here.
1995         Update #include.
1996         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/pthread_barrier_wait.c:
1997         Moved ...
1998         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_barrier_wait.c: ... here.
1999         Update #include.
2000         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_post.c:
2001         Moved ...
2002         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_post.c: ... here.
2003         Update #include.
2004         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_timedwait.c:
2005         Moved ...
2006         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_timedwait.c: ... here.
2007         Update #include.
2008         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_trywait.c:
2009         Moved ...
2010         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_trywait.c: ... here.
2011         Update #include.
2012         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/sem_wait.c:
2013         Moved ...
2014         * sysdeps/sparc/sparc32/sparcv9/nptl/sem_wait.c: ... here.
2015         Update #include.
2016         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/cpu_relax.S: Moved ...
2017         * sysdeps/sparc/sparc64/nptl/cpu_relax.S: ... here.
2018         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: Moved ...
2019         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep-cancel.h: ... here.
2020         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: Moved ...
2021         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep-cancel.h: ... here.
2022         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: Moved ...
2023         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c: ... here.
2024         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: Moved ...
2025         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c: ... here.
2026         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
2027         Moved ...
2028         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c: ... here.
2029         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: Moved ...
2030         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c: ... here.
2031         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: Moved ...
2032         * sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c: ... here.
2033
2034 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
2035
2036         * nptl/pthread_cond_wait.c: Include <kernel-features.h>.
2037         * nptl/pthread_rwlock_timedrdlock.c: Likewise.
2038         * nptl/pthread_rwlock_timedwrlock.c: Likewise.
2039         * nptl/sysdeps/unix/sysv/linux/lowlevelrobustlock.c: Likewise.
2040         * nscd/nscd.c: Likewise.
2041         * sysdeps/i386/nptl/tcb-offsets.sym: Likewise.
2042         * sysdeps/powerpc/nptl/tcb-offsets.sym: Likewise.
2043         * sysdeps/sh/nptl/tcb-offsets.sym: Likewise.
2044         * sysdeps/x86_64/nptl/tcb-offsets.sym: Likewise.
2045
2046         * nptl/sysdeps/unix/sysv/linux/mq_notify.c: Do not include
2047         <kernel-features.h>.
2048         (init_mq_netlink): Remove conditional have_sock_cloexec
2049         definitions.  Remove code conditional on have_sock_cloexec < 0.
2050         (init_mq_netlink) [!SOCK_CLOEXEC]: Remove conditional code.
2051         (init_mq_netlink) [!__ASSUME_SOCK_CLOEXEC]: Likewise.
2052         * sysdeps/unix/sysv/linux/opensock.c: Do not include
2053         <kernel-features.h>.
2054         (__opensock) [SOCK_CLOEXEC]: Make code unconditional.
2055         (__opensock) [!__ASSUME_SOCK_CLOEXEC]: Remove conditional code.
2056
2057 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
2058
2059         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2060         Add tests for memset_chk and memset.
2061
2062         * sysdeps/x86_64/multiarch/init-arch.h (HAS_AVX2): Defined
2063         with AVX2_Usable.
2064
2065 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
2066
2067         [BZ #16046]
2068         * elf/tst-dl-iter-static.c: New file.
2069         * elf/Makefile (tests-static): Add tst-dl-iter-static.
2070
2071         * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation
2072         error.
2073
2074 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
2075
2076         * sysdeps/unix/sysv/linux/kernel-features.h
2077         (__ASSUME_F_GETOWN_EX): Remove macro.
2078         * sysdeps/unix/sysv/linux/fcntl.c: Do not include
2079         <kernel-features.h>.
2080         (miss_F_GETOWN_EX): Remove variable or macro.
2081         (do_fcntl): Do not check miss_F_GETOWN_EX.
2082         (do_fcntl) [!__ASSUME_F_GETOWN_EX]: Remove conditional code.
2083
2084         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_RANDOM):
2085         Remove macro.
2086         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard)
2087         [!__ASSUME_AT_RANDOM]: Remove conditional code.
2088         (_dl_setup_pointer_guard) [!__ASSUME_AT_RANDOM]: Likewise.
2089
2090         * sysdeps/unix/sysv/linux/kernel-features.h
2091         (__ASSUME_ADJ_OFFSET_SS_READ): Remove macro.
2092         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME)
2093         [ADJ_OFFSET_SS_READ]: Make code unconditional.
2094         (ADJTIME) [!ADJ_OFFSET_SS_READ]: Remove conditional code.
2095
2096 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
2097
2098         [BZ #17075]
2099         * sysdeps/arm/dl-machine.h (elf_machine_rel) <R_ARM_TLS_DESC>:
2100         Fix calculation of the symbol's value.
2101         * sysdeps/arm/tst-armtlsdescloc.c: New file.
2102         * sysdeps/arm/tst-armtlsdesclocmod.c: New file.
2103         * sysdeps/arm/tst-armtlsdescextnow.c: New file.
2104         * sysdeps/arm/tst-armtlsdescextlazymod.c: New file.
2105         * sysdeps/arm/tst-armtlsdescextlazy.c: New file.
2106         * sysdeps/arm/tst-armtlsdescextnowmod.c: New file.
2107         * sysdeps/arm/Makefile (tests): Add `tst-armtlsdesc',
2108         `tst-armtlsdescextnow' and `tst-armtlsdescextlazy'.
2109         (modules-names): Add `tst-armtlsdescmod',
2110         `tst-armtlsdescextlazymod' and `tst-armtlsdescextnowmod'.
2111         (CPPFLAGS-tst-armtlsdescextnowmod.c): New variable.
2112         (CPPFLAGS-tst-armtlsdescextlazymod.c): Likewise.
2113         (CFLAGS-tst-armtlsdesclocmod.c): Likewise.
2114         (CFLAGS-tst-armtlsdescextnowmod.c): Likewise.
2115         (CFLAGS-tst-armtlsdescextlazymod.c): Likewise.
2116         (LDFLAGS-tst-armtlsdescextnowmod.so): Likewise.
2117         ($(objpfx)tst-armtlsdescloc): New dependency.
2118         ($(objpfx)tst-armtlsdescextnow): Likewise.
2119         ($(objpfx)tst-armtlsdescextlazy): Likewise.
2120         * sysdeps/arm/configure.ac: Add a check for tools' GNU descriptor
2121         TLS scheme support.
2122         * sysdeps/arm/configure: Regenerate.
2123
2124 2014-06-20  Joseph Myers  <joseph@codesourcery.com>
2125
2126         * include/fcntl.h (__atfct_seterrno): Remove prototype.
2127         (__atfct_seterrno_2): Likewise.
2128         * sysdeps/unix/sysv/linux/alpha/dl-fxstatat64.c: Do not include
2129         <kernel-features.h>.
2130         (__ASSUME_ATFCTS): Do not undefine and redefine.
2131         * sysdeps/unix/sysv/linux/alpha/fxstatat.c [__ASSUME_ATFCTS]
2132         (__have_atfcts): Remove conditional definition.
2133         (__fxstatat([__NR_fstatat64]: Make code unconditional.
2134         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code and code
2135         unreachable if [__ASSUME_ATFCTS].
2136         * sysdeps/unix/sysv/linux/dl-fxstatat64.c (__ASSUME_ATFCTS): Do
2137         not undefine and redefine.
2138         * sysdeps/unix/sysv/linux/faccessat.c: Do not include
2139         <kernel-features.h>.
2140         (faccessat) [__NR_faccessat]: Make code unconditional.
2141         (faccessat) [!__ASSUME_ATFCTS]: Remove conditional code.
2142         * sysdeps/unix/sysv/linux/fchmodat.c: Do not include
2143         <kernel-features.h>.
2144         (fchmodat) [__NR_fchmodat]: Make code unconditional.
2145         (fchmodat) [!__ASSUME_ATFCTS]: Remove conditional code.
2146         * sysdeps/unix/sysv/linux/fchownat.c: Do not include
2147         <kernel-features.h>.
2148         (fchownat) [__NR_fchownat]: Make code unconditional.
2149         (fchownat) [!__ASSUME_ATFCTS]: Remove conditional code.
2150         * sysdeps/unix/sysv/linux/futimesat.c: Do not include
2151         <kernel-features.h>.
2152         (futimesat) [__NR_futimesat]: Make code unconditional.
2153         (futimesat) [!__ASSUME_ATFCTS]: Remove conditional code.
2154         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
2155         <kernel-features.h>.
2156         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
2157         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
2158         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
2159         <kernel-features.h>.
2160         (__fxstatat64) [__NR_fstatat64]: Make code unconditional.
2161         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
2162         * sysdeps/unix/sysv/linux/i386/fchownat.c: Remove file.
2163         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
2164         <kernel-features.h>.
2165         (__fxstatat) [__NR_fstatat64]: Make code unconditional.
2166         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
2167         * sysdeps/unix/sysv/linux/linkat.c: Do not include
2168         <kernel-features.h>.
2169         (linkat) [__NR_linkat]: Make code unconditional.
2170         (linkat) [!__ASSUME_ATFCTS]: Remove conditional code.
2171         * sysdeps/unix/sysv/linux/m68k/fchownat.c: Remove file.
2172         * sysdeps/unix/sysv/linux/mips/mips64/fxstatat64.c: Do not include
2173         <kernel-features.h>.
2174         (__fxstatat64) [__NR_newfstatat]: Make code unconditional.
2175         (__fxstatat64) [!__ASSUME_ATFCTS]: Remove conditional code.
2176         * sysdeps/unix/sysv/linux/mkdirat.c: Do not include
2177         <kernel-features.h>.
2178         (mkdirat) [__NR_mkdirat]: Make code unconditional.
2179         (mkdirat) [!__ASSUME_ATFCTS]: Remove conditional code.
2180         * sysdeps/unix/sysv/linux/openat.c: Do not include
2181         <kernel-features.h>.
2182         [!__ASSUME_ATFCTS] (__atfct_seterrno): Remove function.
2183         [!__ASSUME_ATFCTS] (__have_atfcts): Remove variable.
2184         (OPENAT_NOT_CANCEL) [__NR_openat]: Make code unconditional.
2185         (OPENAT_NOT_CANCEL) [!__ASSUME_ATFCTS]: Remove conditional code.
2186         * sysdeps/unix/sysv/linux/powerpc/fchownat.c: Remove file.
2187         * sysdeps/unix/sysv/linux/readlinkat.c: Do not include
2188         <kernel-features.h>.
2189         (readlinkat) [__NR_readlinkat]: Make code unconditional.
2190         (readlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.  Return
2191         result of INLINE_SYSCALL directly, not via int variable.
2192         * sysdeps/unix/sysv/linux/renameat.c: Do not include
2193         <kernel-features.h>.
2194         [!__ASSUME_ATFCTS] (__atfct_seterrno_2): Remove function.
2195         (renameat) [__NR_renameat]: Make code unconditional.
2196         (renameat) [!__ASSUME_ATFCTS]: Remove conditional code.
2197         * sysdeps/unix/sysv/linux/s390/s390-32/fchownat.c: Remove file.
2198         * sysdeps/unix/sysv/linux/sh/fchownat.c: Remove file.
2199         * sysdeps/unix/sysv/linux/sparc/sparc32/fchownat.c: Remove file.
2200         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c
2201         (__ASSUME_ATFCTS): Do not undefine and redefine.
2202         * sysdeps/unix/sysv/linux/symlinkat.c: Do not include
2203         <kernel-features.h>.
2204         (symlinkat) [__NR_symlinkat]: Make code unconditional.
2205         (symlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
2206         * sysdeps/unix/sysv/linux/unlinkat.c: Do not include
2207         <kernel-features.h>.
2208         (unlinkat) [__NR_unlinkat]: Make code unconditional.
2209         (unlinkat) [!__ASSUME_ATFCTS]: Remove conditional code.
2210         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c
2211         (__ASSUME_ATFCTS): Do not undefine and redefine.
2212         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
2213         <kernel-features.h>.
2214         (__fxstatat) [__NR_newfstatat]: Make code unconditional.
2215         (__fxstatat) [!__ASSUME_ATFCTS]: Remove conditional code.
2216         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
2217         <kernel-features.h>.
2218         (__xmknodat) [__NR_mknodat]: Make code unconditional.
2219         (__xmknodat) [!__ASSUME_ATFCTS]: Remove conditional code.
2220
2221 2014-06-20  H.J. Lu  <hongjiu.lu@intel.com>
2222
2223         * sysdeps/x86_64/multiarch/rtld-strlen.S: Removed.
2224
2225 2014-06-20  Andreas Schwab  <schwab@linux-m68k.org>
2226
2227         [BZ #17069]
2228         * posix/regcomp.c (parse_reg_exp): Deallocate partially
2229         constructed tree before returning error.
2230         * posix/bug-regexp36.c: Expand test case.
2231
2232 2014-06-20  Stefan Liebler  <stli@linux.vnet.ibm.com>
2233
2234         [BZ #6803]
2235         * math/libm-test.inc (scalbln_test_date):
2236         Add errno expectations.
2237         * math/w_scalblnf.c: New File.
2238         Add wrapper which checks for setting errno to ERANGE.
2239         Add weak_alias for corresponding scalbln function.
2240         * math/w_scalbln.c: Likewise.
2241         * math/w_scalblnl.c: Likewise.
2242         * math/Makefile (libm-calls): Add w_scalbln.
2243         * sysdeps/ieee754/flt-32/s_scalblnf.c:
2244         Remove weak_alias for corresponding scalbln function.
2245         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
2246         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
2247         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
2248         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2249         * sysdeps/sparc/sparc64/soft-fp/s_scalblnl.c: Likewise.
2250         * sysdeps/i386/fpu/s_scalbnf.S: Likewise.
2251         * sysdeps/i386/fpu/s_scalbn.S: Likewise.
2252         * sysdeps/i386/fpu/s_scalbnl.S: Likewise.
2253         * sysdeps/m68k/m680x0/fpu/s_scalbn.c: Likewise.
2254         * sysdeps/ieee754/ldbl-64-128/s_scalblnl.c:
2255         Remove long_double_symbol for scalblnl function in libm, libc.
2256         * sysdeps/ieee754/ldbl-64-128/w_scalblnl.c: New File.
2257         Add wrapper which checks for setting errno to ERANGE.
2258         Add long_double_symbol for scalblnl function in libm, libc.
2259         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c:
2260         Remove long_double_symbol for scalblnl in libm.
2261         * sysdeps/ieee754/ldbl-128ibm/w_scalblnl.c: New File.
2262         Add wrapper which checks for setting errno to ERANGE.
2263         Add long_double_symbol for scalblnl function in libm.
2264         * sysdeps/ia64/fpu/w_scalblnf.c: New File.
2265         Do not use wrapper because of own implementation.
2266
2267 2014-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2268
2269         * sysdeps/x86/nptl/bits/pthreadtypes.h (pthread_rwlock_t): Use
2270         3 bytes for __pad1 for x32.
2271         (__PTHREAD_RWLOCK_ELISION_EXTRA): Likewise.
2272
2273 2014-06-19  Ling Ma  <ling.ml@alibaba-inc.com>
2274             H.J. Lu  <hongjiu.lu@intel.com>
2275
2276         * sysdeps/x86_64/multiarch/Makefile: Add memset-avx2.
2277         * sysdeps/x86_64/multiarch/memset-avx2.S: New file.
2278         * sysdeps/x86_64/multiarch/memset.S: Likewise.
2279         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
2280         * sysdeps/x86_64/multiarch/rtld-memset.S: Likewise.
2281
2282 2014-06-19  Andreas Schwab  <schwab@linux-m68k.org>
2283
2284         [BZ #17069]
2285         * posix/regcomp.c (parse_expression): Deallocate partially
2286         constructed tree before returning error.
2287         * posix/Makefile.c (tests): Add bug-regex36.
2288         (generated): Add bug-regex36.mtrace.
2289         (tests-special): Add $(objpfx)bug-regex36-mem.out
2290         (bug-regex36-ENV): New variable.
2291         ($(objpfx)bug-regex36-mem.out): New rule.
2292         * posix/bug-regex36.c: New file.
2293
2294 2014-06-19  Will Newton  <will.newton@linaro.org>
2295
2296         * malloc/malloc.c (systrim): If extra is zero then return
2297         early.
2298
2299 2014-06-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2300
2301         * benchtests/Makefile ($(objpfx)bench-%.c): Remove $(.).
2302
2303 2014-06-19  Richard Earnshaw  <rearnsha@arm.com>
2304
2305         * sysdeps/aarch64/strchr.S: New file.
2306
2307 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
2308
2309         [BZ #17022]
2310         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Do not subtract 1
2311         from arguments -2 or below.
2312         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
2313         * sysdeps/x86_64/fpu/e_logl.S (__ieee754_logl): Likewise.
2314
2315 2014-06-18  Andreas Schwab  <schwab@suse.de>
2316
2317         [BZ #17062]
2318         * posix/fnmatch_loop.c (FCT): Rerrange loop for skipping over rest
2319         of a bracket expr not to run off the end of the string.
2320         * posix/Makefile (tests): Add tst-fnmatch3.
2321         * posix/tst-fnmatch3.c: New file.
2322
2323 2014-06-18  Joseph Myers  <joseph@codesourcery.com>
2324
2325         * elf/Makefile ($(objpfx)tst-unused-dep.out): Use $(rtld-prefix).
2326         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
2327         [$(cross-compiling) = no]: Likewise.
2328         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
2329         [$(cross-compiling) = no]: Likewise.
2330
2331 2014-16-17  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
2332
2333         [BZ #17031]
2334         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Consider the low
2335         double, adjusted for any remainder from the high double.
2336         * math/libm-test.inc (nearbyint): Add tests.
2337         (rint): Likewise.
2338
2339 2014-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2340
2341         * nptl/sysdeps/powerpc/Makefile: Moved ...
2342         * sysdeps/powerpc/nptl/Makefile: ... here.
2343         * nptl/sysdeps/powerpc/pthread_spin_lock.c: Moved ...
2344         * sysdeps/powerpc/nptl/pthread_spin_lock.c: .. here.
2345         * nptl/sysdeps/powerpc/pthread_spin_trylock.c: Moved ...
2346         * sysdeps/powerpc/nptl/pthread_spin_trylock.c: ... here.
2347         * nptl/sysdeps/powerpc/pthreaddef.h: Moved ...
2348         * sysdeps/powerpc/nptl/pthreaddef.h: ... here.
2349         * nptl/sysdeps/powerpc/tcb-offsets.sym: Moved ...
2350         * sysdeps/powerpc/nptl/tcb-offsets.sym: ... here.
2351         * nptl/sysdeps/powerpc/tls.h: Moved ...
2352         * sysdeps/powerpc/nptl/tls.h: ... here.
2353
2354 2014-06-16  Joseph Myers  <joseph@codesourcery.com>
2355
2356         [BZ #16681]
2357         * sysdeps/i386/fpu/s_ceil.S (__ceil): Add CFI.
2358         * sysdeps/i386/fpu/s_ceilf.S (__ceilf): Likewise.
2359         * sysdeps/i386/fpu/s_ceill.S (__ceill): Likewise.
2360         * sysdeps/i386/fpu/s_floor.S (__floor): Likewise.
2361         * sysdeps/i386/fpu/s_floorf.S (__floorf): Likewise.
2362         * sysdeps/i386/fpu/s_floorl.S (__floorl): Likewise.
2363         * sysdeps/i386/fpu/s_trunc.S (__trunc): Likewise.
2364         * sysdeps/i386/fpu/s_truncf.S (__truncf): Likewise.
2365         * sysdeps/i386/fpu/s_truncl.S (__truncl): Likewise.
2366
2367 2014-06-17  Andreas Schwab  <schwab@linux-m68k.org>
2368
2369         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Update.
2370
2371 2014-06-16  Andreas Schwab  <schwab@linux-m68k.org>
2372
2373         * sysdeps/m68k/m680x0/bits/huge_vall.h: Fix missing space after
2374         defined operator.
2375
2376         * scripts/cross-test-ssh.sh (timeoutfactor): Default to
2377         $TIMEOUTFACTOR.
2378
2379 2014-06-16  Florian Weimer  <fweimer@redhat.com>
2380
2381         [BZ #17058]
2382         * nptl/tst-setuid2.c (do_test): Fix tautological comparison in
2383         non-executed part of the test.
2384
2385 2014-06-16  Andreas Schwab  <schwab@suse.de>
2386
2387         * string/bits/string2.h (strdup, strndup): Update feature guard.
2388
2389 2014-06-14  David S. Miller  <davem@davemloft.net>
2390
2391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2392
2393 2014-06-14  Andreas Schwab  <schwab@linux-m68k.org>
2394
2395         * sysdeps/unix/sysv/linux/m68k/clone.S: Deconditionalize the code
2396         that was previously under [RESET_PID].
2397         * sysdeps/unix/sysv/linux/m68k/nptl/clone.S: Remove file.
2398
2399         * sysdeps/unix/sysv/linux/m68k/pt-vfork.c: New file.
2400         * sysdeps/unix/sysv/linux/m68k/nptl/pt-vfork.S: Remove file.
2401         * sysdeps/unix/sysv/linux/m68k/vfork.S: Include <tcb-offsets.h>.
2402         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
2403         (__libc_vfork): New strong alias.
2404         * sysdeps/unix/sysv/linux/m68k/nptl/vfork.S: Remove file.
2405
2406 2014-06-14 Andi Kleen  <ak@linux.intel.com>
2407
2408         * sysdeps/generic/elide.h: New file.
2409
2410 2014-06-13  Stefan Liebler  <stli@linux.vnet.ibm.com>
2411
2412         * Makefile (installed-headers): Adjust path of pthread.h header.
2413
2414 2014-06-13  Roland McGrath  <roland@hack.frob.com>
2415
2416         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h: Moved ...
2417         * sysdeps/s390/nptl/bits/pthreadtypes.h: ... here.
2418         * nptl/sysdeps/unix/sysv/linux/s390/bits/semaphore.h: Moved ...
2419         * sysdeps/s390/nptl/bits/semaphore.h: ... here.
2420
2421         * nptl/sysdeps/s390/Makefile: Moved ...
2422         * sysdeps/s390/nptl/Makefile: ... here.
2423         * nptl/sysdeps/s390/pthread_spin_init.c: Moved ...
2424         * sysdeps/s390/nptl/pthread_spin_init.c: ... here.
2425         * nptl/sysdeps/s390/pthread_spin_lock.c: Moved ...
2426         * sysdeps/s390/nptl/pthread_spin_lock.c: ... here.
2427         * nptl/sysdeps/s390/pthread_spin_trylock.c: Moved ...
2428         * sysdeps/s390/nptl/pthread_spin_trylock.c: ... here.
2429         * nptl/sysdeps/s390/pthread_spin_unlock.c: Moved ...
2430         * sysdeps/s390/nptl/pthread_spin_unlock.c: ... here.
2431         * nptl/sysdeps/s390/pthreaddef.h: Moved ...
2432         * sysdeps/s390/nptl/pthreaddef.h: ... here.
2433         * nptl/sysdeps/s390/tcb-offsets.sym: Moved ...
2434         * sysdeps/s390/nptl/tcb-offsets.sym: ... here.
2435         * nptl/sysdeps/s390/tls.h: Moved ...
2436         * sysdeps/s390/nptl/tls.h: ... here.
2437
2438         * sysdeps/unix/sysv/linux/s390/arch-fork.h: New file.
2439         * nptl/sysdeps/unix/sysv/linux/s390/fork.c: File removed.
2440
2441 2014-06-13  David S. Miller  <davem@davemloft.net>
2442
2443         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/clone.S: Delete.
2444         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/pt-vfork.S: Delete.
2445         * nptl/sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: Moved ...
2446         * sysdeps/unix/sysv/linux/sparc/sparc32/vfork.S: ... here.
2447         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/clone.S: Delete.
2448         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/pt-vfork.S: Delete.
2449         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: Moved ...
2450         * sysdeps/unix/sysv/linux/sparc/sparc64/vfork.S: ... here.
2451         * sysdeps/unix/sysv/linux/sparc/fork.S: Delete.
2452         * sysdeps/unix/sysv/linux/sparc/pt-vfork.S: New file.
2453         * sysdeps/unix/sysv/linux/sparc/sparc32/clone.S (__thread_start):
2454         Remove RESET_PID cpp guards.
2455         * sysdeps/unix/sysv/linux/sparc/sparc64/clone.S (__thread_start):
2456         Remove RESET_PID cpp guards.
2457         * sysdeps/unix/sysv/linux/sparc/vfork.S: Delete.
2458
2459 2014-06-13  Andreas Schwab  <schwab@linux-m68k.org>
2460
2461         * sysdeps/m68k/jmpbuf-unwind.h (_JMPBUF_UNWINDS, _jmpbuf_sp): Cast
2462         __sp to uintptr_t.
2463
2464 2014-06-13  Andi Kleen  <ak@linux.intel.com>
2465
2466         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: Remove.
2467         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S: dito.
2468         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S: dito.
2469         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: dito.
2470         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: dito.
2471         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: dito.
2472         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S: dito.
2473         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S: dito.
2474         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: dito.
2475         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: dito.
2476         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: dito.
2477         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S: dito.
2478         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S: dito.
2479         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: dito.
2480         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: dito.
2481         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: dito.
2482         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: dito.
2483         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: dito.
2484         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: dito.
2485         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: dito.
2486
2487         * nptl/pthread_rwlock_rdlock.c: Include elide.h.
2488         (pthread_rwlock_rdlock): Add elision.
2489         * nptl/pthread_rwlock_wrlock.c: Include elide.h.
2490         (pthread_rwlock_wrlock): Add elision.
2491         * nptl/pthread_rwlock_trywrlock.c: Include elide.h.
2492         (pthread_rwlock_trywrlock): Add elision.
2493         * nptl/pthread_rwlock_tryrdlock.c: Include elide.h.
2494         (pthread_rwlock_tryrdlock): Add elision.
2495         * nptl/pthread_rwlock_unlock.c: Include elide.h.
2496         (pthread_rwlock_tryrdlock): Add elision unlock.
2497         * nptl/sysdeps/pthread/pthread.h:
2498         (__PTHREAD_RWLOCK_ELISION_EXTRA): Handle new define
2499         (PTHREAD_RWLOCK_INITIALIZER,
2500         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP):
2501         Handle new elision field.
2502         * sysdeps/x86/nptl/elide.h: New file. Add generic elision macros.
2503         * sysdeps/arm/nptl/bits/pthreadtypes.h
2504         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2505         * sysdeps/sh/nptl/bits/pthreadtypes.h
2506         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2507         * sysdeps/tile/nptl/bits/pthreadtypes.h
2508         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2509         * sysdeps/a/nptl/bits/pthreadtypes.h
2510         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2511         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
2512         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2513         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
2514         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2515         * sysdeps/unix/sysv/linux/hppa/nptl/bits/pthreadtypes.h
2516         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2517         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
2518         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2519         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
2520         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2521         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
2522         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2523         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
2524         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2525         * sysdeps/unix/sysv/linux/powerpc/nptl/bits/pthreadtypes.h
2526         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2527         * sysdeps/unix/sysv/linux/x86/elision-conf.c:
2528         (elision_init): Set try_xbegin to zero when no RTM.
2529         * sysdeps/x86/nptl/bits/pthreadtypes.h
2530         (pthread_rwlock_t): Change __pad1 to __rwelision.
2531         (__PTHREAD_RWLOCK_ELISION_EXTRA): Add.
2532
2533 2014-06-13  Andi Kleen  <ak@linux.intel.com>
2534
2535         * nptl/pthread_rwlock_rdlock (__pthread_rwlock_rdlock):
2536         Split into __do_pthread_rwlock_rdlock and __pthread_rwlock_rdlock.
2537         * nptl/pthread_rwlock_wrlock (__pthread_rwlock_wrlock):
2538         Split into __do_pthread_rwlock_wrlock and __pthread_wrlock_rdlock.
2539
2540 2014-06-13  Meador Inge  <meadori@codesourcery.com>
2541
2542         [BZ #16996]
2543         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Ensure
2544         that the cached result has been set before returning it.
2545
2546 2014-06-12  Roland McGrath  <roland@hack.frob.com>
2547
2548         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h: Moved ...
2549         * sysdeps/sparc/nptl/bits/pthreadtypes.h: ... here.
2550         * nptl/sysdeps/unix/sysv/linux/sparc/bits/semaphore.h: Moved ...
2551         * sysdeps/sparc/nptl/bits/semaphore.h: ... here.
2552         * nptl/sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: Moved ...
2553         * sysdeps/unix/sysv/linux/sparc/bits/local_lim.h: ... here.
2554
2555         * nptl/sysdeps/sparc/Makefile: Moved ...
2556         * sysdeps/sparc/nptl/Makefile: ... here.
2557         * nptl/sysdeps/sparc/tcb-offsets.sym: Moved ...
2558         * sysdeps/sparc/nptl/tcb-offsets.sym: ... here.
2559         * nptl/sysdeps/sparc/tls.h: Moved ...
2560         * sysdeps/sparc/nptl/tls.h: ... here.
2561         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S: Moved ...
2562         * sysdeps/sparc/sparc32/nptl/pthread_spin_lock.S: ... here.
2563         * nptl/sysdeps/sparc/sparc32/pthread_spin_trylock.S: Moved ...
2564         * sysdeps/sparc/sparc32/nptl/pthread_spin_trylock.S: ... here.
2565         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Moved ...
2566         * sysdeps/sparc/sparc32/nptl/pthreaddef.h: ... here.
2567         * nptl/sysdeps/sparc/sparc64/pthread_spin_init.c: Moved ...
2568         * sysdeps/sparc/sparc64/nptl/pthread_spin_init.c: ... here.
2569         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S: Moved ...
2570         * sysdeps/sparc/sparc64/nptl/pthread_spin_lock.S: ... here.
2571         * nptl/sysdeps/sparc/sparc64/pthread_spin_trylock.S: Moved ...
2572         * sysdeps/sparc/sparc64/nptl/pthread_spin_trylock.S: ... here.
2573         * nptl/sysdeps/sparc/sparc64/pthread_spin_unlock.S: Moved ...
2574         * sysdeps/sparc/sparc64/nptl/pthread_spin_unlock.S: ... here.
2575         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Moved ...
2576         * sysdeps/sparc/sparc64/nptl/pthreaddef.h: ... here.
2577         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_init.c: Moved ...
2578         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_init.c: ... here.
2579         Update #include.
2580         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_lock.S: Moved ...
2581         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_lock.S: ... here.
2582         Update #include.
2583         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_trylock.S: Moved ...
2584         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_trylock.S: ... here.
2585         Update #include.
2586         * nptl/sysdeps/sparc/sparc32/sparcv9/pthread_spin_unlock.S: Moved ...
2587         * sysdeps/sparc/sparc32/sparcv9/nptl/pthread_spin_unlock.S: ... here.
2588         Update #include.
2589
2590         * nptl/sysdeps/sparc/tls.h (TLS_DEFINE_INIT_TP): New macro.
2591
2592         * sysdeps/unix/sysv/linux/sparc/arch-fork.h: New file.
2593         * nptl/sysdeps/unix/sysv/linux/sparc/fork.c: File removed.
2594
2595         * sysdeps/pthread/posix-timer.h: Include <list.h>.
2596         (struct list_links): Type removed.
2597         (struct thread_node, struct timer_node): Replace struct list_links
2598         with struct list_head.
2599         (list_unlink_ip): Likewise.
2600         * sysdeps/pthread/timer_routines.c
2601         (timer_free_list, thread_free_list, thread_active_list): Likewise.
2602         (list_append, list_insbefore): Likewise.
2603         (list_init): Function removed.
2604         (thread_init, init_module): Use INIT_LIST_HEAD instead.
2605         * sysdeps/nptl/Makefile: Move tst-timer bits to ...
2606         * sysdeps/pthread/Makefile: ... here, new file.
2607
2608         * nptl/sysdeps/unix/sysv/linux/Implies: Moved ...
2609         * sysdeps/nptl/Implies: ... here.
2610         * sysdeps/unix/sysv/linux/Implies: Add nptl.
2611         * nptl/sysdeps/pthread/list.h: Moved ...
2612         * include/list.h: ... here.
2613         * nptl/sysdeps/pthread/createthread.c: Moved ...
2614         * nptl/createthread.c: ... here.
2615         * nptl/sysdeps/unix/sysv/linux/createthread.c: Update #include.
2616         * nptl/sysdeps/pthread/pt-longjmp.c: Moved ...
2617         * nptl/pt-longjmp.c: ... here.
2618         * nptl/sysdeps/pthread/Makefile: Moved ...
2619         * sysdeps/nptl/Makefile: ... here.
2620         * nptl/sysdeps/pthread/Subdirs: Moved ...
2621         * sysdeps/nptl/Subdirs: ... here.
2622         * nptl/sysdeps/pthread/aio_misc.h: Moved ...
2623         * sysdeps/nptl/aio_misc.h: ... here.
2624         * nptl/sysdeps/pthread/bits/libc-lock.h: Moved ...
2625         * sysdeps/nptl/bits/libc-lock.h: ... here.
2626         * nptl/sysdeps/pthread/bits/libc-lockP.h: Moved ...
2627         * sysdeps/nptl/bits/libc-lockP.h: ... here.
2628         * nptl/sysdeps/pthread/bits/stdio-lock.h: Moved ...
2629         * sysdeps/nptl/bits/stdio-lock.h: ... here.
2630         * nptl/sysdeps/pthread/configure: Moved ...
2631         * sysdeps/nptl/configure: ... here.
2632         * nptl/sysdeps/pthread/configure.ac: Moved ...
2633         * sysdeps/nptl/configure.ac: ... here.
2634         * nptl/sysdeps/pthread/gai_misc.h: Moved ...
2635         * sysdeps/nptl/gai_misc.h: ... here.
2636         * nptl/sysdeps/pthread/librt-cancellation.c: Moved ...
2637         * sysdeps/nptl/librt-cancellation.c: ... here.
2638         * nptl/sysdeps/pthread/malloc-machine.h: Moved ...
2639         * sysdeps/nptl/malloc-machine.h: ... here.
2640         * nptl/sysdeps/pthread/pthread-functions.h: Moved ...
2641         * sysdeps/nptl/pthread-functions.h: ... here.
2642         * nptl/sysdeps/pthread/pthread.h: Moved ...
2643         * sysdeps/nptl/pthread.h: ... here.
2644         * nptl/sysdeps/pthread/setxid.h: Moved ...
2645         * sysdeps/nptl/setxid.h: ... here.
2646         * nptl/sysdeps/pthread/sigfillset.c: Moved ...
2647         * sysdeps/nptl/sigfillset.c: ... here.
2648         * nptl/sysdeps/pthread/tcb-offsets.h: Moved ...
2649         * sysdeps/nptl/tcb-offsets.h: ... here.
2650         * nptl/sysdeps/pthread/tst-mqueue8x.c: Moved ...
2651         * sysdeps/nptl/tst-mqueue8x.c: ... here.
2652         * nptl/sysdeps/pthread/unwind-forcedunwind.c: Moved ...
2653         * sysdeps/nptl/unwind-forcedunwind.c: ... here.
2654         * nptl/sysdeps/pthread/allocalim.h: Moved ...
2655         * sysdeps/pthread/allocalim.h: ... here.
2656         * nptl/sysdeps/pthread/bits/sigthread.h: Moved ...
2657         * sysdeps/pthread/bits/sigthread.h: ... here.
2658         * nptl/sysdeps/pthread/flockfile.c: Moved ...
2659         * sysdeps/pthread/flockfile.c: ... here.
2660         * nptl/sysdeps/pthread/ftrylockfile.c: Moved ...
2661         * sysdeps/pthread/ftrylockfile.c: ... here.
2662         * nptl/sysdeps/pthread/funlockfile.c: Moved ...
2663         * sysdeps/pthread/funlockfile.c: ... here.
2664         * nptl/sysdeps/pthread/posix-timer.h: Moved ...
2665         * sysdeps/pthread/posix-timer.h: ... here.
2666         * nptl/sysdeps/pthread/timer_create.c: Moved ...
2667         * sysdeps/pthread/timer_create.c: ... here.
2668         * nptl/sysdeps/pthread/timer_delete.c: Moved ...
2669         * sysdeps/pthread/timer_delete.c: ... here.
2670         * nptl/sysdeps/pthread/timer_getoverr.c: Moved ...
2671         * sysdeps/pthread/timer_getoverr.c: ... here.
2672         * nptl/sysdeps/pthread/timer_gettime.c: Moved ...
2673         * sysdeps/pthread/timer_gettime.c: ... here.
2674         * nptl/sysdeps/pthread/timer_routines.c: Moved ...
2675         * sysdeps/pthread/timer_routines.c: ... here.
2676         * nptl/sysdeps/pthread/timer_settime.c: Moved ...
2677         * sysdeps/pthread/timer_settime.c: ... here.
2678         * nptl/sysdeps/pthread/tst-timer.c: Moved ...
2679         * sysdeps/pthread/tst-timer.c: ... here.
2680         * nptl/sysdeps/pthread/pthread_sigmask.c: Moved ...
2681         * sysdeps/unix/sysv/linux/pthread_sigmask.c: ... here.
2682
2683         * sysdeps/unix/sysv/linux/sigprocmask.c: Include <nptl/pthreadP.h>.
2684         * nptl/sysdeps/pthread/sigprocmask.c: File removed.
2685
2686         * nptl/sysdeps/i386/i486/pthread_spin_trylock.S: Moved ...
2687         * sysdeps/i386/i486/nptl/pthread_spin_trylock.S: ... here.
2688         * nptl/sysdeps/i386/i586/pthread_spin_trylock.S: Moved ...
2689         * sysdeps/i386/i586/nptl/pthread_spin_trylock.S: ... here.
2690         Update #include target.
2691         * nptl/sysdeps/i386/i686/Makefile: Moved ...
2692         * sysdeps/i386/i686/nptl/Makefile: ... here.
2693         * nptl/sysdeps/i386/i686/pthread_spin_trylock.S: Moved ...
2694         * sysdeps/i386/i686/nptl/pthread_spin_trylock.S: ... here.
2695         Update #include target.
2696         * nptl/sysdeps/i386/i686/tls.h: Moved ...
2697         * sysdeps/i386/i686/nptl/tls.h: ... here.  Use #include_next.
2698         * nptl/sysdeps/i386/Makefile: Moved ...
2699         * sysdeps/i386/nptl/Makefile: ... here.
2700         * nptl/sysdeps/i386/pthread_spin_init.c: Moved ...
2701         * sysdeps/i386/nptl/pthread_spin_init.c: ... here.
2702         * sysdeps/x86_64/nptl/pthread_spin_init.c: Update #include target.
2703         * nptl/sysdeps/i386/pthread_spin_lock.S: Moved ...
2704         * sysdeps/i386/nptl/pthread_spin_lock.S: ... here.
2705         * nptl/sysdeps/i386/pthread_spin_unlock.S: Moved ...
2706         * sysdeps/i386/nptl/pthread_spin_unlock.S: ... here.
2707         * nptl/sysdeps/i386/pthreaddef.h: Moved ...
2708         * sysdeps/i386/nptl/pthreaddef.h: ... here.
2709         * nptl/sysdeps/i386/tcb-offsets.sym: Moved ...
2710         * sysdeps/i386/nptl/tcb-offsets.sym: ... here.
2711         * nptl/sysdeps/i386/tls.h: Moved ...
2712         * sysdeps/i386/nptl/tls.h: ... here.
2713
2714         * sysdeps/sh/Makefile [$(subdir) = csu]
2715         (gen-as-const-headers): Add tcb-offsets.sym.
2716         * nptl/sysdeps/sh/Makefile: File removed.
2717         * nptl/sysdeps/sh/pthread_spin_init.c: Moved ...
2718         * sysdeps/sh/nptl/pthread_spin_init.c: ... here.
2719         * nptl/sysdeps/sh/pthread_spin_lock.c: Moved ...
2720         * sysdeps/sh/nptl/pthread_spin_lock.c: ... here.
2721         * nptl/sysdeps/sh/pthread_spin_trylock.S: Moved ...
2722         * sysdeps/sh/nptl/pthread_spin_trylock.S: ... here.
2723         * nptl/sysdeps/sh/pthread_spin_unlock.S: Moved ...
2724         * sysdeps/sh/nptl/pthread_spin_unlock.S: ... here.
2725         * nptl/sysdeps/sh/pthreaddef.h: Moved ...
2726         * sysdeps/sh/nptl/pthreaddef.h: ... here.
2727         * nptl/sysdeps/sh/tcb-offsets.sym: Moved ...
2728         * sysdeps/sh/nptl/tcb-offsets.sym: ... here.
2729         * nptl/sysdeps/sh/tls.h: Moved ...
2730         * sysdeps/sh/nptl/tls.h: ... here.
2731         * nptl/sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: Moved ...
2732         * sysdeps/unix/sysv/linux/sh/libc-lowlevellock.S: ... here.
2733         * nptl/sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: Moved ...
2734         * sysdeps/unix/sysv/linux/sh/lowlevel-atomic.h: ... here.
2735         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S: Moved ...
2736         * sysdeps/unix/sysv/linux/sh/lowlevellock.S: ... here.
2737         * nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.h: Moved ...
2738         * sysdeps/unix/sysv/linux/sh/lowlevellock.h: ... here.
2739         * nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: Moved ...
2740         * sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S: ... here.
2741         * nptl/sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: Moved ...
2742         * sysdeps/unix/sysv/linux/sh/pthread_barrier_wait.S: ... here.
2743         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: Moved ...
2744         * sysdeps/unix/sysv/linux/sh/pthread_cond_broadcast.S: ... here.
2745         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: Moved ...
2746         * sysdeps/unix/sysv/linux/sh/pthread_cond_signal.S: ... here.
2747         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: Moved ...
2748         * sysdeps/unix/sysv/linux/sh/pthread_cond_timedwait.S: ... here.
2749         * nptl/sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: Moved ...
2750         * sysdeps/unix/sysv/linux/sh/pthread_cond_wait.S: ... here.
2751         * nptl/sysdeps/unix/sysv/linux/sh/pthread_once.S: Moved ...
2752         * sysdeps/unix/sysv/linux/sh/pthread_once.S: ... here.
2753         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: Moved ...
2754         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_rdlock.S: ... here.
2755         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S:
2756         Moved ...
2757         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedrdlock.S: ... here.
2758         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S:
2759         Moved ...
2760         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_timedwrlock.S: ... here.
2761         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: Moved ...
2762         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_unlock.S: ... here.
2763         * nptl/sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: Moved ...
2764         * sysdeps/unix/sysv/linux/sh/pthread_rwlock_wrlock.S: ... here.
2765         * nptl/sysdeps/unix/sysv/linux/sh/sem_post.S: Moved ...
2766         * sysdeps/unix/sysv/linux/sh/sem_post.S: ... here.
2767         * nptl/sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Moved ...
2768         * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: ... here.
2769         * nptl/sysdeps/unix/sysv/linux/sh/sem_trywait.S: Moved ...
2770         * sysdeps/unix/sysv/linux/sh/sem_trywait.S: ... here.
2771         * nptl/sysdeps/unix/sysv/linux/sh/sem_wait.S: Moved ...
2772         * sysdeps/unix/sysv/linux/sh/sem_wait.S: ... here.
2773         * nptl/sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: Moved ...
2774         * sysdeps/unix/sysv/linux/sh/sh4/lowlevellock.h: ... here.
2775         * nptl/sysdeps/unix/sysv/linux/sh/smp.h: Moved ...
2776         * sysdeps/unix/sysv/linux/sh/smp.h: ... here.
2777         * nptl/sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: Moved ...
2778         * sysdeps/unix/sysv/linux/sh/sysdep-cancel.h: ... here.
2779
2780 2014-06-12  Stefan Liebler  <stli@linux.vnet.ibm.com>
2781
2782         * posix/spawn_faction_addopen.c: Include string.h.
2783
2784 2014-06-11  Roland McGrath  <roland@hack.frob.com>
2785
2786         * nptl/sysdeps/x86_64/64/shlib-versions: Moved ...
2787         * sysdeps/x86_64/64/nptl/shlib-versions: ... here.
2788         * nptl/sysdeps/x86_64/Makefile: Moved ...
2789         * sysdeps/x86_64/nptl/Makefile: ... here.
2790         * nptl/sysdeps/x86_64/configure: Moved ...
2791         * sysdeps/x86_64/nptl/configure: ... here.
2792         * nptl/sysdeps/x86_64/configure.ac: Moved ...
2793         * sysdeps/x86_64/nptl/configure.ac: ... here.
2794         * nptl/sysdeps/x86_64/pthread_spin_init.c: Moved ...
2795         * sysdeps/x86_64/nptl/pthread_spin_init.c: ... here.
2796         * nptl/sysdeps/x86_64/pthread_spin_lock.S: Moved ...
2797         * sysdeps/x86_64/nptl/pthread_spin_lock.S: ... here.
2798         * nptl/sysdeps/x86_64/pthread_spin_trylock.S: Moved ...
2799         * sysdeps/x86_64/nptl/pthread_spin_trylock.S: ... here.
2800         * nptl/sysdeps/x86_64/pthread_spin_unlock.S: Moved ...
2801         * sysdeps/x86_64/nptl/pthread_spin_unlock.S: ... here.
2802         * nptl/sysdeps/x86_64/pthreaddef.h: Moved ...
2803         * sysdeps/x86_64/nptl/pthreaddef.h: ... here.
2804         * nptl/sysdeps/x86_64/tcb-offsets.sym: Moved ...
2805         * sysdeps/x86_64/nptl/tcb-offsets.sym: ... here.
2806         * nptl/sysdeps/x86_64/tls.h: Moved ...
2807         * sysdeps/x86_64/nptl/tls.h: ... here.
2808         * nptl/sysdeps/x86_64/x32/shlib-versions: Moved ...
2809         * sysdeps/x86_64/x32/nptl/shlib-versions: ... here.
2810         * nptl/sysdeps/x86_64/x32/tls.h: Moved ...
2811         * sysdeps/x86_64/x32/nptl/tls.h: ... here.
2812
2813         * sysdeps/x86_64/x32/nptl/tls.h: Use #include_next.
2814
2815 2014-06-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2816
2817         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2818
2819 2014-06-11  Joseph Myers  <joseph@codesourcery.com>
2820
2821         * conform/data/sys/mman.h-data [POSIX] (size_t): Do not require
2822         type.
2823         [POSIX] (off_t): Likewise.
2824         * conform/data/sys/stat.h-data (S_IRGRP): Require constant.
2825         [POSIX] (S_ISBLK): Require macro.
2826         [POSIX] (S_ISCHR): Likewise.
2827         [POSIX] (S_ISDIR): Likewise.
2828         [POSIX] (S_ISFIFO): Likewise.
2829         [POSIX] (S_ISREG): Likewise.
2830         [POSIX || XPG3 || XPG4 || UNIX98] (S_TYPEISTMO): Do not list
2831         optional-macro.
2832         * conform/data/sys/types.h-data [POSIX] (blkcnt_t): Do not require
2833         type.
2834         [POSIX] (time_t): Likewise.
2835         [POSIX] (timer_t): Likewise.
2836
2837 2014-06-11  Florian Weimer  <fweimer@redhat.com>
2838
2839         [BZ #17048]
2840         * posix/spawn_int.h (struct __spawn_action): Make the path string
2841         non-const to support deallocation.
2842         * posix/spawn_faction_addopen.c
2843         (posix_spawn_file_actions_addopen): Make a copy of the pathname.
2844         * posix/spawn_faction_destroy.c
2845         (posix_spawn_file_actions_destroy): Adjust comment.  Deallocate
2846         path in all spawn_do_open actions.
2847         * posix/tst-spawn.c (do_test): Exercise the copy operation in
2848         posix_spawn_file_actions_addopen.
2849
2850 2014-06-11  Chris Metcalf  <cmetcalf@tilera.com>
2851
2852         * sysdeps/unix/sysv/linux/tile/pt-vfork.c: New file.
2853         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: Remove file.
2854         * sysdeps/unix/sysv/linux/tile/vfork.S (__vfork): Make PT_VFORK
2855         conditional code always true.
2856         (__libc_vfork): New alias.
2857
2858 2014-06-11  Roland McGrath  <roland@hack.frob.com>
2859
2860         * sysdeps/tile/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2861         * sysdeps/unix/sysv/linux/tile/createthread.c: File removed.
2862
2863         * nptl/sysdeps/s390/tls.h (TLS_DEFINE_INIT_TP): New macro.
2864
2865         * sysdeps/alpha/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2866         * sysdeps/unix/sysv/linux/alpha/createthread.c: File removed.
2867
2868         * nptl/sysdeps/powerpc/tls.h (TLS_DEFINE_INIT_TP): New macro.
2869         * sysdeps/unix/sysv/linux/powerpc/createthread.c: File removed.
2870
2871         * sysdeps/aarch64/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
2872         * sysdeps/unix/sysv/linux/aarch64/nptl/createthread.c: File removed.
2873
2874 2014-06-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
2875
2876         * sysdeps/powerpc/powerpc64/power7/strcmp.S: New file: Optimization.
2877         * sysdeps/powerpc/powerpc64/multiarch/strcmp.c: New file:
2878         multiarch strcmp for PPC64.
2879         * sysdeps/powerpc/powerpc64/multiarch/strcmp-ppc64.S: New file.
2880         * sysdeps/powerpc/powerpc64/multiarch/strcmp-power7.S: New file.
2881         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcmp
2882         multiarch optimizations.
2883         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
2884         (__libc_ifunc_impl_list): Likewise.
2885
2886 2014-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
2887
2888         * benchtests/scripts/validate_benchout.py: New script.
2889         * benchtests/Makefile (bench-func): Call it.
2890         * benchtests/scripts/benchout.schema.json: New file.
2891
2892 2014-06-10  Chris Metcalf  <cmetcalf@tilera.com>
2893
2894         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h: Moved ...
2895         * sysdeps/tile/nptl/bits/pthreadtypes.h: ... here.
2896         * sysdeps/unix/sysv/linux/tile/nptl/bits/semaphore.h: Moved ...
2897         * sysdeps/tile/nptl/bits/semaphore.h: ... here.
2898         * sysdeps/unix/sysv/linux/tile/nptl/Makefile: Removed, merged into ...
2899         * sysdeps/unix/sysv/linux/tile/Makefile: ... here.
2900         * sysdeps/unix/sysv/linux/tile/nptl/clone.S: Moved ...
2901         * sysdeps/unix/sysv/linux/tile/clone.S: ... here.
2902         * sysdeps/unix/sysv/linux/tile/nptl/createthread.c: Moved ...
2903         * sysdeps/unix/sysv/linux/tile/createthread.c: ... here.
2904         * sysdeps/unix/sysv/linux/tile/nptl/lowlevellock.h: Moved ...
2905         * sysdeps/unix/sysv/linux/tile/lowlevellock.h: ... here.
2906         * sysdeps/unix/sysv/linux/tile/nptl/pt-vfork.S: Moved ...
2907         * sysdeps/unix/sysv/linux/tile/pt-vfork.S: ... here.
2908         * sysdeps/unix/sysv/linux/tile/nptl/sysdep-cancel.h: Moved ...
2909         * sysdeps/unix/sysv/linux/tile/sysdep-cancel.h: ... here.
2910         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/c++-types.data:
2911         Moved ...
2912         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/c++-types.data:
2913         ... here.
2914         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/ld.abilist:
2915         Moved ...
2916         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/ld.abilist: ... here.
2917         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libBrokenLocale.abilist:
2918         Moved ...
2919         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libBrokenLocale.abilist:
2920         ... here.
2921         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libanl.abilist:
2922         Moved ...
2923         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libanl.abilist:
2924         ... here.
2925         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libc.abilist:
2926         Moved ...
2927         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libc.abilist: ... here.
2928         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libcrypt.abilist:
2929         Moved ...
2930         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libcrypt.abilist:
2931         ... here.
2932         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libdl.abilist:
2933         Moved ...
2934         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libdl.abilist:
2935         ... here.
2936         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libm.abilist:
2937         Moved ...
2938         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libm.abilist: ... here.
2939         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libnsl.abilist:
2940         Moved ...
2941         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libnsl.abilist:
2942         ... here.
2943         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libpthread.abilist:
2944         Moved ...
2945         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libpthread.abilist:
2946         ... here.
2947         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libresolv.abilist:
2948         Moved ...
2949         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libresolv.abilist:
2950         ... here.
2951         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/librt.abilist:
2952         Moved ...
2953         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/librt.abilist: ... here.
2954         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libthread_db.abilist:
2955         Moved ...
2956         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libthread_db.abilist:
2957         ... here.
2958         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/nptl/libutil.abilist:
2959         Moved ...
2960         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx32/libutil.abilist:
2961         ... here.
2962         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/c++-types.data:
2963         Moved ...
2964         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/c++-types.data:
2965         ... here.
2966         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/ld.abilist:
2967         Moved ...
2968         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/ld.abilist: ... here.
2969         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libBrokenLocale.abilist:
2970         Moved ...
2971         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libBrokenLocale.abilist:
2972         ... here.
2973         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libanl.abilist:
2974         Moved ...
2975         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libanl.abilist:
2976         ... here.
2977         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libc.abilist:
2978         Moved ...
2979         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libc.abilist: ... here.
2980         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libcrypt.abilist:
2981         Moved ...
2982         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libcrypt.abilist:
2983         ... here.
2984         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libdl.abilist:
2985         Moved ...
2986         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libdl.abilist: ... here.
2987         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libm.abilist:
2988         Moved ...
2989         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libm.abilist: ... here.
2990         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libnsl.abilist:
2991         Moved ...
2992         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libnsl.abilist:
2993         ... here.
2994         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libpthread.abilist:
2995         Moved ...
2996         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libpthread.abilist:
2997         ... here.
2998         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libresolv.abilist:
2999         Moved ...
3000         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libresolv.abilist:
3001         ... here.
3002         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/librt.abilist:
3003         Moved ...
3004         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/librt.abilist: ... here.
3005         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libthread_db.abilist:
3006         Moved ...
3007         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libthread_db.abilist:
3008         ... here.
3009         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/nptl/libutil.abilist:
3010         Moved ...
3011         * sysdeps/unix/sysv/linux/tile/tilegx/tilegx64/libutil.abilist:
3012         ... here.
3013         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/c++-types.data: Moved ...
3014         * sysdeps/unix/sysv/linux/tile/tilepro/c++-types.data: ... here.
3015         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/ld.abilist: Moved ...
3016         * sysdeps/unix/sysv/linux/tile/tilepro/ld.abilist: ... here.
3017         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libBrokenLocale.abilist:
3018         Moved ...
3019         * sysdeps/unix/sysv/linux/tile/tilepro/libBrokenLocale.abilist:
3020         ... here.
3021         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libanl.abilist: Moved ...
3022         * sysdeps/unix/sysv/linux/tile/tilepro/libanl.abilist: ... here.
3023         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libc.abilist: Moved ...
3024         * sysdeps/unix/sysv/linux/tile/tilepro/libc.abilist: ... here.
3025         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libcrypt.abilist: Moved ...
3026         * sysdeps/unix/sysv/linux/tile/tilepro/libcrypt.abilist: ... here.
3027         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libdl.abilist: Moved ...
3028         * sysdeps/unix/sysv/linux/tile/tilepro/libdl.abilist: ... here.
3029         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libm.abilist: Moved ...
3030         * sysdeps/unix/sysv/linux/tile/tilepro/libm.abilist: ... here.
3031         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libnsl.abilist: Moved ...
3032         * sysdeps/unix/sysv/linux/tile/tilepro/libnsl.abilist: ... here.
3033         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libpthread.abilist:
3034         Moved ...
3035         * sysdeps/unix/sysv/linux/tile/tilepro/libpthread.abilist: ... here.
3036         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libresolv.abilist:
3037         Moved ...
3038         * sysdeps/unix/sysv/linux/tile/tilepro/libresolv.abilist: ... here.
3039         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/librt.abilist: Moved ...
3040         * sysdeps/unix/sysv/linux/tile/tilepro/librt.abilist: ... here.
3041         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libthread_db.abilist:
3042         Moved ...
3043         * sysdeps/unix/sysv/linux/tile/tilepro/libthread_db.abilist: ... here.
3044         * sysdeps/unix/sysv/linux/tile/tilepro/nptl/libutil.abilist: Moved ...
3045         * sysdeps/unix/sysv/linux/tile/tilepro/libutil.abilist: ... here.
3046         * sysdeps/unix/sysv/linux/tile/nptl/vfork.S: Moved ...
3047         * sysdeps/unix/sysv/linux/tile/vfork.S: ... here.
3048         * sysdeps/unix/sysv/linux/tile/nptl/waitpid.S: Moved ...
3049         * sysdeps/unix/sysv/linux/tile/waitpid.S: ... here.
3050
3051 2014-06-10  Wilco  <wdijkstr@arm.com>
3052
3053         * math/test-fenv-return.c: New file.
3054         * math/Makefile: Add new test test-fenv-return.
3055
3056 2014-06-10  Joseph Myers  <joseph@codesourcery.com>
3057
3058         [BZ #17042]
3059         * sysdeps/i386/fpu/e_log2.S (__ieee754_log2): Take absolete value
3060         when x - 1 is zero.
3061         * sysdeps/i386/fpu/e_log2f.S (__ieee754_log2f): Likewise.
3062         * sysdeps/i386/fpu/e_log2l.S (__ieee754_log2l): Likewise.
3063         * sysdeps/ieee754/ldbl-128/e_log2l.c (__ieee754_log2l): Return
3064         0.0L for an argument of 1.0L.
3065         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l):
3066         Likewise.
3067         * sysdeps/x86_64/fpu/e_log2l.S (__ieee754_log2l): Take absolute
3068         value when x - 1 is zero.
3069         * math/libm-test.inc (log2_test): Use ALL_RM_TEST.
3070         * sysdeps/i386/fpu/libm-test-ulps: Update.
3071         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3072
3073 2014-06-09  Bernard Ogden  <bernie.ogden@linaro.org>
3074
3075         [BZ #15119]
3076         * ports/sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.c: Remove file.
3077
3078 2014-06-09  Roland McGrath  <roland@hack.frob.com>
3079
3080         * nptl/sysdeps/sh/tls.h (TLS_DEFINE_INIT_TP): New macro.
3081         * nptl/sysdeps/unix/sysv/linux/sh/createthread.c: File removed.
3082
3083 2014-06-09  Roland McGrath  <roland@hack.frob.com>
3084
3085         * sysdeps/m68k/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
3086         * sysdeps/unix/sysv/linux/m68k/nptl/createthread.c: File removed.
3087
3088         * sysdeps/hppa/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
3089         * sysdeps/unix/sysv/linux/hppa/nptl/createthread.c: File removed.
3090
3091         * sysdeps/mips/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
3092         * sysdeps/unix/sysv/linux/mips/nptl/createthread.c: File removed.
3093
3094         * sysdeps/arm/nptl/tls.h (TLS_DEFINE_INIT_TP): New macro.
3095         * sysdeps/unix/sysv/linux/arm/createthread.c: File removed.
3096
3097         * nptl/sysdeps/pthread/createthread.c (TLS_DEFINE_INIT_TP): New macro,
3098         if not already defined.
3099         (do_clone): Use that in place of PREPARE_CREATE and TLS_VALUE.
3100         * nptl/sysdeps/x86_64/tls.h (TLS_DEFINE_INIT_TP): New macro.
3101         * nptl/sysdeps/i386/tls.h (tls_fill_user_desc): New function.
3102         (TLS_INIT_TP): Use it.
3103         (TLS_DEFINE_INIT_TP): New macro.
3104         * sysdeps/unix/sysv/linux/i386/createthread.c: File removed.
3105
3106 2014-06-09  Joseph Myers  <joseph@codesourcery.com>
3107
3108         * conform/data/termios.h-data [POSIX] (IUCLC): Do not expect
3109         constant.
3110         [POSIX] (IXANY): Likewise.
3111         [POSIX] (OLCUC): Likewise.
3112         [POSIX || POSIX2008] (CBAUD): Do not allow.
3113         [POSIX || POSIX2008] (DEFECHO): Likewise.
3114         [POSIX || POSIX2008] (ECHOCTL): Likewise.
3115         [POSIX || POSIX2008] (ECHOKE): Likewise.
3116         [POSIX || POSIX2008] (ECHOPRT): Likewise.
3117         [POSIX || POSIX2008] (EXTA): Likewise.
3118         [POSIX || POSIX2008] (EXTB): Likewise.
3119         [POSIX || POSIX2008] (FLUSHO): Likewise.
3120         [POSIX || POSIX2008] (LOBLK): Likewise.
3121         [POSIX || POSIX2008] (PENDIN): Likewise.
3122         [POSIX || POSIX2008] (SWTCH): Likewise.
3123         [POSIX || POSIX2008] (VDISCARD): Likewise.
3124         [POSIX || POSIX2008] (VDSUSP): Likewise.
3125         [POSIX || POSIX2008] (VLNEXT): Likewise.
3126         [POSIX || POSIX2008] (VREPRINT): Likewise.
3127         [POSIX || POSIX2008] (VSTATUS): Likewise.
3128         [POSIX || POSIX2008] (VWERASE): Likewise.
3129         (B*): Change to B[0123456789]*.
3130         * conform/data/time.h-data [POSIX || UNIX98]
3131         (CLOCK_PROCESS_CPUTIME_ID): Do not expect constant.
3132         [POSIX || UNIX98] (CLOCK_THREAD_CPUTIME_ID): Likewise.
3133         [POSIX || UNIX98] (CLOCK_MONOTONIC): Likewise.
3134         [POSIX] (tm_*): Do not allow.
3135
3136 2014-06-07  Joseph Myers  <joseph@codesourcery.com>
3137
3138         * Makefile (install): Don't set LANGUAGE.
3139         * Makefile.in (install): Likewise.
3140         * assert/Makefile (test-assert-ENV): Remove variable.
3141         (test-assert-perr-ENV): Likewise.
3142         * elf/Makefile (neededtest4-ENV): Likewise.
3143         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
3144         [$(cross-compiling) = no]: Don't set LANGUAGE.
3145         * io/ftwtest-sh (LANG): Remove variable.
3146         * libio/Makefile (tst-widetext-ENV): Likewise.
3147         * manual/install.texi (Running make install): Don't refer to
3148         environment settings for make install.
3149         * INSTALL: Regenerated.
3150         * nptl/tst-tls6.sh: Don't set LANG.
3151         * posix/globtest.sh (LANG): Remove variable.
3152         * string/Makefile (tester-ENV): Likewise.
3153         (inl-tester-ENV): Likewise.
3154         (noinl-tester-ENV): Likewise.
3155         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
3156         [$(cross-compiling) = no]: Don't set LANGUAGE.
3157         * timezone/Makefile (build-testdata): Use $(built-program-cmd)
3158         without explicit environment settings.
3159
3160 2014-06-06  Roland McGrath  <roland@hack.frob.com>
3161
3162         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h: Moved ...
3163         * sysdeps/sh/nptl/bits/pthreadtypes.h: ... here.
3164         * nptl/sysdeps/unix/sysv/linux/sh/bits/semaphore.h: Moved ...
3165         * sysdeps/sh/nptl/bits/semaphore.h: ... here.
3166
3167 2014-06-06  Chris Metcalf  <cmetcalf@tilera.com>
3168
3169         * crypt/crypt-private.h [DOS]: Add some includes taken from the
3170         other files in the crypt directory.
3171         * crypt/crypt.c: Remove duplicate includes.
3172         * crypt/crypt-entry.c: Likewise.
3173         * crypt/crypt_util.c: Likewise.
3174
3175 2014-06-06  Joseph Myers  <joseph@codesourcery.com>
3176
3177         * Makeconfig (run-program-env): New variable.
3178         (run-program-prefix-before-env): Likewise.
3179         (run-program-prefix-after-env): Likewise.
3180         (run-program-prefix): Define in terms of new variables.
3181         (built-program-cmd-before-env): New variable.
3182         (built-program-cmd-after-env): Likewise.
3183         (built-program-cmd): Define in terms of new variables.
3184         (test-program-prefix-before-env): New variable.
3185         (test-program-prefix-after-env): Likewise.
3186         (test-program-prefix): Define in terms of new variables.
3187         (test-program-cmd-before-env): New variable.
3188         (test-program-cmd-after-env): Likewise.
3189         (test-program-cmd): Define in terms of new variables.
3190         * Rules (make-test-out): Use $(run-program-env).
3191         * scripts/cross-test-ssh.sh (env_blacklist): Remove variable.
3192         (help): Do not mention environment variables.  Mention
3193         --timeoutfactor option.
3194         (timeoutfactor): New variable.
3195         (blacklist_exports): Remove function.
3196         (exports): Remove variable.
3197         (command): Do not include ${exports}.
3198         * manual/install.texi (Configuring and compiling): Do not mention
3199         test wrappers preserving environment variables.  Mention that last
3200         assignment to a variable must take precedence.
3201         * INSTALL: Regenerated.
3202         * benchtests/Makefile (run-bench): Use $(run-program-env).
3203         * catgets/Makefile ($(objpfx)test1.cat): Use
3204         $(built-program-cmd-before-env), $(run-program-env) and
3205         $(built-program-cmd-after-env).
3206         ($(objpfx)test2.cat): Do not specify environment variables
3207         explicitly.
3208         ($(objpfx)de/libc.cat): Use $(built-program-cmd-before-env),
3209         $(run-program-env) and $(built-program-cmd-after-env).
3210         ($(objpfx)test-gencat.out): Use $(test-program-cmd-before-env),
3211         $(run-program-env) and $(test-program-cmd-after-env).
3212         ($(objpfx)sample.SJIS.cat): Do not specify environment variables
3213         explicitly.
3214         * catgets/test-gencat.sh: Use test_program_cmd_before_env,
3215         run_program_env and test_program_cmd_after_env arguments.
3216         * elf/Makefile ($(objpfx)tst-pathopt.out): Use $(run-program-env).
3217         * elf/tst-pathopt.sh: Use run_program_env argument.
3218         * iconvdata/Makefile ($(objpfx)iconv-test.out): Use
3219         $(test-wrapper-env) and $(run-program-env).
3220         * iconvdata/run-iconv-test.sh: Use test_wrapper_env and
3221         run_program_env arguments.
3222         * iconvdata/tst-table.sh: Do not set GCONV_PATH explicitly.
3223         * intl/Makefile ($(objpfx)tst-gettext.out): Use
3224         $(test-program-prefix-before-env), $(run-program-env) and
3225         $(test-program-prefix-after-env).
3226         ($(objpfx)tst-gettext2.out): Likewise.
3227         * intl/tst-gettext.sh: Use test_program_prefix_before_env,
3228         run_program_env and test_program_prefix_after_env arguments.
3229         * intl/tst-gettext2.sh: Likewise.
3230         * intl/tst-gettext4.sh: Do not set environment variables
3231         explicitly.
3232         * intl/tst-gettext6.sh: Likewise.
3233         * intl/tst-translit.sh: Likewise.
3234         * malloc/Makefile ($(objpfx)tst-mtrace.out): Use
3235         $(test-program-prefix-before-env), $(run-program-env) and
3236         $(test-program-prefix-after-env).
3237         * malloc/tst-mtrace.sh: Use test_program_prefix_before_env,
3238         run_program_env and test_program_prefix_after_env arguments.
3239         * math/Makefile (run-regen-ulps): Use $(run-program-env).
3240         * nptl/Makefile ($(objpfx)tst-tls6.out): Use $(run-program-env).
3241         * nptl/tst-tls6.sh: Use run_program_env argument.  Set LANG=C
3242         explicitly with each use of ${test_wrapper_env}.
3243         * posix/Makefile ($(objpfx)wordexp-tst.out): Use
3244         $(test-program-prefix-before-env), $(run-program-env) and
3245         $(test-program-prefix-after-env).
3246         * posix/tst-getconf.sh: Do not set environment variables
3247         explicitly.
3248         * posix/wordexp-tst.sh: Use test_program_prefix_before_env,
3249         run_program_env and test_program_prefix_after_env arguments.
3250         * stdio-common/tst-printf.sh: Do not set environment variables
3251         explicitly.
3252         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Use
3253         $(test-program-prefix-before-env), $(run-program-env) and
3254         $(test-program-prefix-after-env).
3255         * stdlib/tst-fmtmsg.sh: Use test_program_prefix_before_env,
3256         run_program_env and test_program_prefix_after_env arguments.
3257         Split $test calls into $test_pre and $test.
3258         * timezone/Makefile (build-testdata): Use
3259         $(built-program-cmd-before-env), $(run-program-env) and
3260         $(built-program-cmd-after-env).
3261
3262 2014-06-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3263
3264         * sysdeps/powerpc/powerpc64/power7/strncat.S [STRLEN]: Define it as
3265         strlen for non SHARED builds.
3266
3267 2014-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
3268
3269         * nptl/allocatestack.c (check_list): Inlined function...
3270         (__reclaim_stacks): ... here.
3271
3272 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
3273
3274         [BZ #15698]
3275         * sysdeps/unix/sysv/linux/ifaddrs.c (getifaddrs_internal): Fix
3276         memory overrun.
3277
3278 2014-06-05  Joseph Myers  <joseph@codesourcery.com>
3279
3280         * Rules (make-test-out): Include
3281         LOCPATH=$(common-objpfx)localedata in default environment.
3282         * debug/Makefile (tst-chk1-ENV): Remove variable.
3283         (tst-chk2-ENV): Likewise.
3284         (tst-chk3-ENV): Likewise.
3285         (tst-chk4-ENV): Likewise.
3286         (tst-chk5-ENV): Likewise.
3287         (tst-chk6-ENV): Likewise.
3288         (tst-lfschk1-ENV): Likewise.
3289         (tst-lfschk2-ENV): Likewise.
3290         (tst-lfschk3-ENV): Likewise.
3291         (tst-lfschk4-ENV): Likewise.
3292         (tst-lfschk5-ENV): Likewise.
3293         (tst-lfschk6-ENV): Likewise.
3294         * iconvdata/Makefile (bug-iconv6-ENV): Likewise.
3295         (tst-iconv7-ENV): Likewise.
3296         * intl/Makefile (LOCPATH-ENV): Likewise.
3297         (tst-codeset-ENV): Likewise.
3298         (tst-gettext3-ENV): Likewise.
3299         (tst-gettext5-ENV): Likewise.
3300         * libio/Makefile (tst-widetext-ENV): Don't set LOCPATH.
3301         (tst-fopenloc-ENV): Likewise.
3302         (tst-fgetws-ENV): Remove variable.
3303         (tst-ungetwc1-ENV): Likewise.
3304         (tst-ungetwc2-ENV): Likewise.
3305         (bug-ungetwc2-ENV): Likewise.
3306         (tst-swscanf-ENV): Likewise.
3307         (bug-ftell-ENV): Likewise.
3308         (tst-fgetwc-ENV): Likewise.
3309         (tst-fseek-ENV): Likewise.
3310         (tst-ftell-partial-wide-ENV): Likewise.
3311         (tst-ftell-active-handler-ENV): Likewise.
3312         (tst-ftell-append-ENV): Likewise.
3313         * posix/Makefile (tst-fnmatch-ENV): Likewise.
3314         (tst-regexloc-ENV): Likewise.
3315         (bug-regex1-ENV): Likewise.
3316         (tst-regex-ENV): Likewise.
3317         (tst-regex2-ENV): Likewise.
3318         (bug-regex5-ENV): Likewise.
3319         (bug-regex6-ENV): Likewise.
3320         (bug-regex17-ENV): Likewise.
3321         (bug-regex18-ENV): Likewise.
3322         (bug-regex19-ENV): Likewise.
3323         (bug-regex20-ENV): Likewise.
3324         (bug-regex22-ENV): Likewise.
3325         (bug-regex23-ENV): Likewise.
3326         (bug-regex25-ENV): Likewise.
3327         (bug-regex26-ENV): Likewise.
3328         (bug-regex30-ENV): Likewise.
3329         (bug-regex32-ENV): Likewise.
3330         (bug-regex33-ENV): Likewise.
3331         (bug-regex34-ENV): Likewise.
3332         (bug-regex35-ENV): Likewise.
3333         (tst-rxspencer-ENV): Likewise.
3334         (tst-rxspencer-no-utf8-ENV): Likewise.
3335         * stdio-common/Makefile (tst-sprintf-ENV): Likewise.
3336         (tst-sscanf-ENV): Likewise.
3337         (tst-swprintf-ENV): Likewise.
3338         (tst-swscanf-ENV): Likewise.
3339         (test-vfprintf-ENV): Likewise.
3340         (scanf13-ENV): Likewise.
3341         (bug14-ENV): Likewise.
3342         (tst-grouping-ENV): Likewise.
3343         * stdlib/Makefile (tst-strtod-ENV): Likewise.
3344         (tst-strtod3-ENV): Likewise.
3345         (tst-strtod4-ENV): Likewise.
3346         (tst-strtod5-ENV): Likewise.
3347         (testmb2-ENV): Likewise./
3348         * string/Makefile (tst-strxfrm-ENV): Likewise.
3349         (tst-strxfrm2-ENV): Likewise.
3350         (bug-strcoll1-ENV): Likewise.
3351         (test-strcasecmp-ENV): Likewise.
3352         (test-strncasecmp-ENV): Likewise.
3353         * time/Makefile (tst-strptime-ENV): Likewise.
3354         (tst-ftime_l-ENV): Likewise.
3355         * wcsmbs/Makefile (tst-btowc-ENV): Likewise.
3356         (tst-mbrtowc-ENV): Likewise.
3357         (tst-wcrtomb-ENV): Likewise.
3358         (tst-mbrtowc2-ENV): Likewise.
3359         (tst-c16c32-1-ENV): Likewise.
3360         (tst-mbsnrtowcs-ENV): Likewise.
3361
3362 2014-06-05  Ondřej Bílka  <neleai@seznam.cz>
3363
3364         * manual/resource.texi (How to get information about the memory
3365         subsystem?): Fix typo.
3366         Reported by Peon de la Parra Ivan <peon@keba.com>
3367
3368 2014-06-03  Guo Yixuan  <culu.gyx@gmail.com>
3369
3370         [BZ #16882]
3371         * nptl/sysdeps/sparc/sparc32/pthread_spin_lock.S
3372         (pthread_spin_lock): Branch out of spin loop to proper location.
3373         * nptl/sysdeps/sparc/sparc64/pthread_spin_lock.S
3374         (pthread_spin_lock): Likewise.
3375
3376         * nptl/tst-spin4.c: New test.
3377         * nptl/Makefile (tests): Add tst-spin4.
3378
3379 2014-06-03  Andreas Schwab  <schwab@suse.de>
3380
3381         [BZ #15946]
3382         * resolv/res_send.c (send_dg): Reload file descriptor after
3383         calling reopen.
3384
3385 2014-06-03  Stefan Liebler  <stli@linux.vnet.ibm.com>
3386
3387         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
3388
3389 2014-06-03  Richard Henderson  <rth@redhat.com>
3390
3391         * sysdeps/unix/sysv/linux/aarch64/pt-vfork.c: New file.
3392         * sysdeps/unix/sysv/linux/aarch64/nptl/pt-vfork.S: Remove file.
3393         * sysdeps/unix/sysv/linux/aarch64/vfork.S (__vfork): Incorporate
3394         SAVE_PID and RESTORE_PID blocks from pt-vfork.S.  Map 0 to INT_MIN
3395         in the SAVE_PID block.
3396         (__libc_vfork): New alias.
3397         * sysdeps/unix/sysv/linux/aarch64/nptl/vfork.S: Remove file.
3398
3399         * sysdeps/unix/sysv/linux/aarch64/clone.S (__clone): Save args for
3400         child in registers, not on the stack.  Remove RESET_PID conditionals.
3401         * sysdeps/unix/sysv/linux/aarch64/nptl/clone.S: Remove file.
3402
3403 2014-06-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3404
3405         * sysdeps/aarch64/libm-test-ulps: Regenerate.
3406
3407 2014-06-03  Wilco  <wdijkstr@arm.com>
3408
3409         * sysdeps/aarch64/fpu/math_private.h (libc_fesetround_aarch64)
3410         (libc_feholdexcept_setround_aarch64) (libc_feholdsetround_aarch64)
3411         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
3412         Use _FPU_FPCR_RM_MASK for rounding mask rather than FE_TOWARDZERO.
3413         * sysdeps/aarch64/fpu/get-rounding-mode.h (get_rounding_mode):
3414         Likewise.
3415
3416 2014-06-03  Wilco  <wdijkstr@arm.com>
3417
3418         * sysdeps/aarch64/fpu/math_private.h
3419         (libc_feholdexcept_aarch64) (libc_feholdexcept_setround_aarch64)
3420         (libc_fetestexcept_aarch64) (libc_fesetenv_aarch64)
3421         (libc_feupdateenv_test_aarch64) (libc_feholdsetround_aarch64)
3422         (libc_feresetround_aarch64) (libc_feholdsetround_aarch64_ctx):
3423         Fix declarations.
3424
3425 2014-06-03  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3426
3427         * crypt/crypt-private.h: Include ufc-crypt.h.
3428         (__b64_from_24bit): Declare extern.
3429         * crypt/crypt_util.c(__b64_from_24bit): New function.
3430         (b64t): New static const variable.
3431         * crypt/md5-crypt.c (b64_from_24bit): Remove function.
3432         (b64t): Remove variable.
3433         (__md5_crypt_r): Replace b64_from_24bit with __b64_from_24bit.
3434         * crypt/sha256-crypt.c: Include crypt-private.h.
3435         (b64t): Remove variable.
3436         (__sha256_crypt_r): Remove b64_from_24bit and replace
3437         with __b64_from_24bit.
3438         * crypt/sha512-crypt.c: Likewise.
3439
3440 2014-06-02  Roland McGrath  <roland@hack.frob.com>
3441
3442         * nptl/sysdeps/unix/sysv/linux/sh/vfork.S: Moved ...
3443         * sysdeps/unix/sysv/linux/sh/vfork.S: ... here.
3444         Label the code __libc_vfork rather than __vfork.
3445         [!NOT_IN_libc] (vfork): Define as weak alias.
3446         [!NOT_IN_libc] (__vfork): Define as strong alias, and libc_hidden_def.
3447         * sysdeps/unix/sysv/linux/sh/pt-vfork.S: New file.
3448         * nptl/sysdeps/unix/sysv/linux/sh/pt-vfork.S: File removed.
3449
3450 2014-06-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
3451
3452         * malloc/malloc.c (malloc_info): Fix format specifier for
3453         n_mmaps.
3454
3455 2014-06-02  Wilco  <wdijkstr@arm.com>
3456
3457         * sysdeps/aarch64/fpu/fpu_control.h (_FPU_SETCW): Remove ISB after
3458         FPCR write.
3459
3460 2014-06-02  Wilco  <wdijkstr@arm.com>
3461
3462         [BZ #17009]
3463         * sysdeps/aarch64/fpu/feupdateenv (feupdateenv):
3464         Rewrite to reduce FPCR/FPSR accesses.
3465
3466 2014-06-01  David S. Miller  <davem@davemloft.net>
3467
3468         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3469
3470 2014-05-31  David S. Miller  <davem@davemloft.net>
3471
3472         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Force computations
3473         to occur in round to nearest mode when |x| >= 2.0
3474
3475 2014-05-30  Richard Henderson  <rth@twiddle.net>
3476
3477         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Remove.
3478         (PSEUDO_RET_NOERRNO): Remove.
3479         (ret): Don't redefine.
3480         (ret_NOERRNO): Define in terms of ret.
3481         (ret_ERRVAL): Likewise.
3482
3483         * sysdeps/unix/sysv/linux/aarch64/ioctl.S (__ioctl): Remove the
3484         use of PSEUDO_RET; perform the error check directly.
3485
3486 2014-05-30 Marko Myllynen  <myllynen@redhat.com>
3487
3488         * sysdeps/x86_64/link-defines.sym (BND_SIZE): Replace __int128
3489         with __int128_t.
3490
3491 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3492
3493         * malloc/malloc (malloc_info): Fix formatting.
3494
3495 2014-05-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3496             Roland McGrath  <roland@hack.frob.com>
3497
3498         * malloc/malloc (malloc_info): Also print mmapped statistics.
3499
3500 2014-05-30  Roland McGrath  <roland@hack.frob.com>
3501
3502         * sysdeps/unix/sysv/linux/m68k/arch-fork.h: New file.
3503         * sysdeps/unix/sysv/linux/m68k/nptl/fork.c: File removed.
3504
3505 2014-05-30  Ondřej Bílka  <neleai@seznam.cz>
3506
3507         * malloc/malloc.c (malloc_info): Inline mi_arena.
3508
3509 2014-05-29  Richard Henderson  <rth@twiddle.net>
3510
3511         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (INTERNAL_VSYSCALL_NCS):
3512         Remove comma before expanding ASM_ARGS_##nr.
3513         (INTERNAL_SYSCALL_RAW): Make _sys_result signed, instead of casting.
3514         Make _x0 a strict output; make _x8 a strict input; adjust expansion
3515         of ASM_ARGS_##nr.
3516         (CLOBBER_ARGS_0, CLOBBER_ARGS_1, CLOBBER_ARGS_2): Remove.
3517         (CLOBBER_ARGS_3, CLOBBER_ARGS_4, CLOBBER_ARGS_5): Remove.
3518         (CLOBBER_ARGS_6, CLOBBER_ARGS_7): Remove.
3519         (ASM_ARGS_1): Add leading comma.
3520
3521         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [NOT_IN_libc]
3522         (SYSCALL_ERROR_HANDLER): Use tpidr_el0 instead of a call
3523         to __errno_location.
3524         * sysdeps/unix/sysv/linux/aarch64/nptl/localplt.data (libpthread.so):
3525         Remove the expected plt for __errno_location.
3526
3527         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
3528         [NOT_IN_libc] (SINGLE_THREAD_P): Use tpidr_el0 instead of a
3529         call to __read_tp.
3530
3531         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
3532         Always allocate 64 bytes of stack frame.  Use ldp/stp to create
3533         it and break it down.
3534         (DOCARGS_0, DOCARGS_1): Do nothing.
3535         (DOCARGS_2): Update to store into the new stack frame.
3536         (DOCARGS_3, DOCARGS_4, DOCARGS_5, DOCARGS_6): Likewise.
3537         (UNDOCARGS_1): Update to restore from the new stack frame.
3538         (UNDOCARGS_2, UNDOCARGS_3, UNDOCARGS_4): Likewise.
3539         (UNDOCARGS_5, UNDOCARGS_6): Likewise.
3540
3541         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
3542         (SINGLE_THREAD_P): New parameter for result regno.
3543         (PSEUDO): Update to match; use cbz instead of beq.
3544
3545         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
3546         Use ENTRY to define the _nocancel entry point.  Share the syscall
3547         and syscall error check paths with the cancel path.
3548         (PSEUDO_END): New.
3549
3550         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h: Adjust
3551         whitespace; tabs before and after asm mnemonics.
3552
3553 2014-05-29  Eric Wong  <normalperson@yhbt.net>
3554
3555         [BZ #15132]
3556         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
3557         Call fstat64 or stat64 internally, depending on arguments passed.
3558         Replace stat buffer argument with file descriptor argument.
3559         (INTERNAL_STATVFS): Update arguments to match __statvfs_getflags.
3560         * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs):
3561         Pass fd to __internal_statvfs instead of calling fstat64.
3562         * sysdeps/unix/sysv/linux/fstatvfs64.c (__fstatvfs64):
3563         Pass fd to __internal_statvfs64 instead of calling fstat64.
3564         * sysdeps/unix/sysv/linux/statvfs.c (statvfs):
3565         Pass -1 to __internal_statvfs instead of calling stat64.
3566         * sysdeps/unix/sysv/linux/statvfs64.c (__statvfs64):
3567         Pass -1 to __internal_statvfs64 instead of calling stat64.
3568
3569 2014-05-28  Roland McGrath  <roland@hack.frob.com>
3570
3571         * sysdeps/unix/sysv/linux/sh/clone.S: Deconditionalize the code
3572         that was previously under [RESET_PID].
3573         * nptl/sysdeps/unix/sysv/linux/sh/clone.S: File removed.
3574
3575         * sysdeps/unix/sysv/linux/tile/arch-fork.h: New file.
3576         * sysdeps/unix/sysv/linux/tile/nptl/fork.c: File removed.
3577
3578 2014-05-27  Roland McGrath  <roland@hack.frob.com>
3579
3580         * sysdeps/unix/sysv/linux/ia64/arch-fork.h: New file.
3581
3582         * sysdeps/unix/sysv/linux/sh/arch-fork.h: New file.
3583         * nptl/sysdeps/unix/sysv/linux/sh/fork.c: File removed.
3584
3585 2014-05-27  Ondřej Bílka  <neleai@seznam.cz>
3586
3587         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate code.
3588
3589 2014-05-27  Andreas Schwab  <schwab@suse.de>
3590
3591         * csu/libc-tls.c (__libc_setup_tls): Remove second argument from
3592         TLS_INIT_TP macro.
3593         * elf/dl-load.c (_dl_map_object_from_fd): Likewise.
3594         * elf/rtld.c (init_tls, dl_main): Likewise.
3595         * nptl/sysdeps/i386/tls.h (TLS_INIT_TP): Likewise.
3596         * nptl/sysdeps/powerpc/tls.h (TLS_INIT_TP): Likewise.
3597         * nptl/sysdeps/s390/tls.h (TLS_INIT_TP): Likewise.
3598         * nptl/sysdeps/sh/tls.h (TLS_INIT_TP): Likewise.
3599         * nptl/sysdeps/sparc/tls.h (TLS_INIT_TP): Likewise.
3600         * nptl/sysdeps/x86_64/tls.h (TLS_INIT_TP): Likewise.
3601         * sysdeps/aarch64/nptl/tls.h (TLS_INIT_TP): Likewise.
3602         * sysdeps/alpha/nptl/tls.h (TLS_INIT_TP): Likewise.
3603         * sysdeps/arm/nptl/tls.h (TLS_INIT_TP): Likewise.
3604         * sysdeps/hppa/nptl/tls.h (TLS_INIT_TP): Likewise.
3605         * sysdeps/ia64/nptl/tls.h (TLS_INIT_TP): Likewise.
3606         * sysdeps/m68k/nptl/tls.h (TLS_INIT_TP): Likewise.
3607         * sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Likewise.
3608         * sysdeps/microblaze/nptl/tls.h (TLS_INIT_TP): Likewise.
3609         * sysdeps/mips/nptl/tls.h (TLS_INIT_TP): Likewise.
3610         * sysdeps/tile/nptl/tls.h (TLS_INIT_TP): Likewise.
3611         * sysdeps/generic/tls.h: Update description.
3612
3613 2014-05-27  Will Newton  <will.newton@linaro.org>
3614
3615         [BZ #16990]
3616         * sysdeps/arm/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Save
3617         and restore r2 rather than just restoring.
3618
3619 2014-05-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3620
3621         [BZ #16724]
3622         * libio/tst-ftell-append.c: New test case.
3623         * libio/Makefile (tests): Add test case.
3624         * libio/fileops.c (do_ftell): Don't trust _IO_read_end when in
3625         append mode.
3626         * libio/wfileops.c (do_ftell_wide): Likewise.
3627
3628 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3629
3630         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3631
3632         * nptl/sysdeps/unix/sysv/linux/powerpc/Versions: Remove, merge into
3633         ...
3634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions: ... here.
3635         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
3636         * nptl/sysdeps/unix/sysv/linux/powerpc/Makefile: Moved rules to ...
3637         * sysdeps/unix/sysv/linux/powerpc/Makefile: ... here.
3638         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: Moved ...
3639         * sysdeps/unix/sysv/linux/powerpc/bits/local_lim.h: ... here.
3640         * nptl/sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Moved ...
3641         * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: ...here.
3642         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h:
3643         Moved ...
3644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep-cancel.h: ... here.
3645         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h:
3646         Moved ...
3647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep-cancel.h: ... here.
3648         * nptl/sysdeps/unix/sysv/linux/powerpc/createthread.c: Moved ...
3649         * sysdeps/unix/sysv/linux/powerpc/createthread.c: ... here.
3650         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Moved ...
3651         * sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: ... here.
3652         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: Moved
3653         ...
3654         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstack.c: ... here.
3655         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c:
3656         Moved ...
3657         * sysdeps/unix/sysv/linux/powerpc/pthread_attr_setstacksize.c: ...
3658         here.
3659         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: Moved
3660         ...
3661         * sysdeps/unix/sysv/linux/powerpc/pthread_spin_unlock.c: ... here.
3662         * nptl/sysdeps/unix/sysv/linux/powerpc/sem_post.c: Moved ...
3663         * sysdeps/unix/sysv/linux/powerpc/sem_post.c: ... here.
3664
3665         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Moved ...
3666         * sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: ... here.
3667         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: Moved ...
3668         * sysdeps/unix/sysv/linux/powerpc/bits/semaphore.h: ... here.
3669
3670         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Remove,
3671         merge into ...
3672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: ... here.
3673         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: Moved
3674         ...
3675         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c: ... here.
3676         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: Moved
3677         ...
3678         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c: ... here.
3679         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
3680         Moved ...
3681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c: ...
3682         here.
3683         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
3684         Moved ...
3685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c: ... here.
3686         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
3687         Moved ...
3688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c: ... here.
3689
3690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Remove
3691         conditional [RESET_PID].
3692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Likewise.
3693         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: File
3694         removed.
3695         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: File
3696         removed.
3697
3698         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: Include
3699         <tcb-offsets.h>.
3700         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
3701         (__libc_vfork): New strong alias.
3702         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/pt-vfork.S: File
3703         removed.
3704         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S: File
3705         Removed.
3706
3707         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: Include
3708         <tcb-offsets.h>.
3709         (__vfork): Incorporate save/retore of PID from nptl/vfork.S here.
3710         (__libc_vfork): New strong alias.
3711         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/pt-vfork.S: File
3712         removed.
3713         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S: File
3714         removed.
3715
3716 2014-05-26  Carlos O'Donell  <carlos@redhat.com>
3717
3718         * malloc/malloc.c (mi_arena): New function.
3719         (malloc_info): Remove nested function mi_arena. Call non-nosted
3720         function mi_arena.
3721
3722 2014-05-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3723
3724         * sysdeps/powerpc/powerpc32/power4/memset.S (memset): Replace insrdi
3725         by insrwi.
3726         * sysdeps/powerpc/powerpc32/power6/memset.S (memset): Likewise.
3727         * sysdeps/powerpc/powerpc32/power7/memset.S (memset): Likewise.
3728         * sysdeps/powerpc/powerpc32/power7/memchr.S (memchr): Likewise.
3729         * sysdeps/powerpc/powerpc32/power7/memrchr.S (memrchr): Likewise.
3730         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S (rawmemchr): Likewise.
3731         * sysdeps/powerpc/powerpc32/power7/strchr.S (strchr): Likewise.
3732         * sysdeps/powerpc/powerpc32/power7/strchrnul.S (strchrnul): Likewise.
3733
3734 2014-05-26  Andreas Schwab  <schwab@suse.de>
3735
3736         [BZ #16984]
3737         * locale/programs/repertoire.c (repertoire_read): Add slash
3738         between I18NPATH element and file name.
3739         * locale/programs/locfile.c (locfile_read): Likewise.
3740
3741 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
3742
3743         * nptl/pthread_mutexattr_settype.c
3744         (__pthread_mutexattr_settype):
3745         Disable lock elision for PTHREAD_MUTEX_NORMAL.
3746
3747 2014-05-26  Stefan Liebler  <stli@linux.vnet.ibm.com>
3748
3749         * nptl/tst-mutex5 (do_test):
3750         Use #ifndef ENABLE_LOCK_ELISION instead of #ifdef.
3751
3752 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3753
3754         * benchtests/README: Document 'init' directive.
3755         * benchtests/bench-skeleton.c (main) [BENCH_INIT]: Call
3756         BENCH_INIT.
3757         * scripts/bench.py (gen_source): Define BENCH_INIT macro.
3758         (parse_file): Recognize 'init' directive.
3759
3760 2014-05-26  Kyle McMartin  <kyle@redhat.com>
3761
3762         [BZ #16796]
3763         * sysdeps/aarch64/nptl/tls.h: increase TCB alignment to the
3764         alignment of struct pthread.
3765
3766 2014-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3767
3768         [BZ #16878]
3769         * nscd/netgroupcache.c (addgetnetgrentX): Look for
3770         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
3771         * nscd/nss_files/files-netgrp.c (_nss_netgroup_parseline): Use
3772         NSS_STATUS_TRYAGAIN to indicate insufficient buffer space.
3773
3774 2014-05-25  Richard Henderson  <rth@twiddle.net>
3775
3776         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
3777         (SINGLE_THREAD_P_PIC): Remove.
3778         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
3779         (SINGLE_THREAD_P_PIC): Remove.
3780
3781         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (PSEUDO_RET): Move
3782         branch to syscall error ...
3783         (PSEUDO): ... here.
3784         [NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Rename the label
3785         from __local_syscall_error to .Lsyscall_error.
3786         [!NOT_IN_libc] (SYSCALL_ERROR_HANDLER): Branch to __syscall_error.
3787         (SYSCALL_ERROR): Update label name.
3788
3789         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
3790         Do not use DOARGS/UNDOARGS.
3791         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Likewise.
3792         (DOARGS_0, DOARGS_1, DOARGS_2, DOARGS_3): Remove.
3793         (DOARGS_4, DOARGS_5, DOARGS_6, DOARGS_7): Remove.
3794         (UNDOARGS_0, UNDOARGS_1, UNDOARGS_2, UNDOARGS_3): Remove.
3795         (UNDOARGS_4, UNDOARGS_5, UNDOARGS_6, UNDOARGS_7): Remove.
3796
3797         * sysdeps/unix/sysv/linux/aarch64/sysdep.h (DO_CALL): Fix
3798         block comment.
3799
3800         * sysdeps/unix/sysv/linux/alpha/vfork.S (vfork, __vfork): Only
3801         define if !NOT_IN_libc.
3802         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S (vfork, __vfork): Only
3803         define with non-default symbol versions.
3804
3805 2014-05-23  Richard Henderson  <rth@twiddle.net>
3806
3807         * nptl/pt-vfork.c (vfork_resolve): Rename from vfork_ifunc.
3808         (vfork, __vfork): Define via compat_symbol.
3809
3810         * nptl/pt-vfork.c: Error if !HAVE_IFUNC.
3811         [!HAVE_IFUNC] (vfork_compat): Remove.
3812         [!HAVE_IFUNC] (DEFINE_VFORK): Remove.
3813
3814 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
3815
3816         [BZ #16978]
3817         * posix/tar.h [!__USE_XOPEN2K] (TSVTX): Define macro.
3818         * conform/Makefile (test-xfail-POSIX/tar.h/conform): Remove
3819         variable.
3820
3821 2014-05-23  Richard Henderson  <rth@twiddle.net>
3822
3823         * sysdeps/unix/sysv/linux/alpha/nptl/Makefile: Merge into...
3824         * sysdeps/unix/sysv/linux/alpha/Makefile: ... here.
3825         * sysdeps/unix/sysv/linux/alpha/nptl/Versions: Merge into...
3826         * sysdeps/unix/sysv/linux/alpha/Versions: ... here.
3827
3828         * sysdeps/unix/sysv/linux/alpha/nptl/aio_cancel.c: Moved ...
3829         * sysdeps/unix/sysv/linux/alpha/aio_cancel.c: ... here.
3830         * sysdeps/unix/sysv/linux/alpha/nptl/bits/local_lim.h: Moved ...
3831         * sysdeps/unix/sysv/linux/alpha/bits/local_lim.h: ... here.
3832         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h: Moved ...
3833         * sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h: ... here.
3834         * sysdeps/unix/sysv/linux/alpha/nptl/bits/semaphore.h: Moved ...
3835         * sysdeps/unix/sysv/linux/alpha/bits/semaphore.h: ... here.
3836         * sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data: Moved ...
3837         * sysdeps/unix/sysv/linux/alpha/c++-types.data: ... here.
3838         * sysdeps/unix/sysv/linux/alpha/nptl/createthread.c: Moved ...
3839         * sysdeps/unix/sysv/linux/alpha/createthread.c: ... here.
3840         * sysdeps/unix/sysv/linux/alpha/nptl/ld.abilist: Moved ...
3841         * sysdeps/unix/sysv/linux/alpha/ld.abilist: ... here.
3842         * sysdeps/unix/sysv/linux/alpha/nptl/libBrokenLocale.abilist: Moved ...
3843         * sysdeps/unix/sysv/linux/alpha/libBrokenLocale.abilist: ... here.
3844         * sysdeps/unix/sysv/linux/alpha/nptl/libanl.abilist: Moved ...
3845         * sysdeps/unix/sysv/linux/alpha/libanl.abilist: ... here.
3846         * sysdeps/unix/sysv/linux/alpha/nptl/libc.abilist: Moved ...
3847         * sysdeps/unix/sysv/linux/alpha/libc.abilist: ... here.
3848         * sysdeps/unix/sysv/linux/alpha/nptl/libcrypt.abilist: Moved ...
3849         * sysdeps/unix/sysv/linux/alpha/libcrypt.abilist: ... here.
3850         * sysdeps/unix/sysv/linux/alpha/nptl/libdl.abilist: Moved ...
3851         * sysdeps/unix/sysv/linux/alpha/libdl.abilist: ... here.
3852         * sysdeps/unix/sysv/linux/alpha/nptl/libm.abilist: Moved ...
3853         * sysdeps/unix/sysv/linux/alpha/libm.abilist: ... here.
3854         * sysdeps/unix/sysv/linux/alpha/nptl/libnsl.abilist: Moved ...
3855         * sysdeps/unix/sysv/linux/alpha/libnsl.abilist: ... here.
3856         * sysdeps/unix/sysv/linux/alpha/nptl/libpthread.abilist: Moved ...
3857         * sysdeps/unix/sysv/linux/alpha/libpthread.abilist: ... here.
3858         * sysdeps/unix/sysv/linux/alpha/nptl/libresolv.abilist: Moved ...
3859         * sysdeps/unix/sysv/linux/alpha/libresolv.abilist: ... here.
3860         * sysdeps/unix/sysv/linux/alpha/nptl/librt.abilist: Moved ...
3861         * sysdeps/unix/sysv/linux/alpha/librt.abilist: ... here.
3862         * sysdeps/unix/sysv/linux/alpha/nptl/libthread_db.abilist: Moved ...
3863         * sysdeps/unix/sysv/linux/alpha/libthread_db.abilist: ... here.
3864         * sysdeps/unix/sysv/linux/alpha/nptl/libutil.abilist: Moved ...
3865         * sysdeps/unix/sysv/linux/alpha/libutil.abilist: ... here.
3866         * sysdeps/unix/sysv/linux/alpha/nptl/localplt.data: Moved ...
3867         * sysdeps/unix/sysv/linux/alpha/localplt.data: ... here.
3868         * sysdeps/unix/sysv/linux/alpha/nptl/lowlevellock.h: Moved ...
3869         * sysdeps/unix/sysv/linux/alpha/lowlevellock.h: ... here.
3870         * sysdeps/unix/sysv/linux/alpha/nptl/sem_post.c: Moved ...
3871         * sysdeps/unix/sysv/linux/alpha/sem_post.c: ... here.
3872         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h: Moved ...
3873         * sysdeps/unix/sysv/linux/alpha/sysdep-cancel.h: ... here.
3874         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Moved ...
3875         * sysdeps/unix/sysv/linux/alpha/timer_create.c: ... here.
3876         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Moved ...
3877         * sysdeps/unix/sysv/linux/alpha/timer_delete.c: ... here.
3878         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Moved ...
3879         * sysdeps/unix/sysv/linux/alpha/timer_getoverr.c: ... here.
3880         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Moved ...
3881         * sysdeps/unix/sysv/linux/alpha/timer_gettime.c: ... here.
3882         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Moved ...
3883         * sysdeps/unix/sysv/linux/alpha/timer_settime.c: ... here.
3884
3885         * sysdeps/unix/sysv/linux/alpha/syscalls.list: Remove vfork.
3886         * sysdeps/unix/sysv/linux/alpha/nptl/vfork.S: Move file ...
3887         * sysdeps/unix/sysv/linux/alpha/vfork.S: ... here.  Restore PID
3888         before exiting on error.
3889         (__libc_vfork): New strong alias.
3890         * sysdeps/unix/sysv/linux/alpha/nptl/pt-vfork.S: Remove file.
3891         * sysdeps/unix/sysv/linux/alpha/pt-vfork.S: New file.
3892
3893         * sysdeps/unix/sysv/linux/alpha/clone.S: Deconditionalize the code
3894         that was previously under [RESET_PID].
3895         * sysdeps/unix/sysv/linux/alpha/nptl/clone.S: File removed.
3896
3897         * sysdeps/unix/sysv/linux/alpha/nptl/fork.c: Remove file.
3898
3899 2014-05-23  Joseph Myers  <joseph@codesourcery.com>
3900
3901         [BZ #16977]
3902         * sysdeps/i386/fpu/e_log10.S (__ieee754_log10): Take absolute
3903         value when x - 1 is zero.
3904         * sysdeps/i386/fpu/e_log10f.S (__ieee754_log10f): Likewise.
3905         * sysdeps/i386/fpu/e_log10l.S (__ieee754_log10l): Likewise.
3906         * sysdeps/ieee754/ldbl-128/e_log10l.c (__ieee754_log10l): Return
3907         0.0L for an argument of 1.0L.
3908         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l):
3909         Likewise.
3910         * sysdeps/x86_64/fpu/e_log10l.S (__ieee754_log10l): Take absolute
3911         value when x - 1 is zero.
3912         * math/libm-test.inc (log10_test): Use ALL_RM_TEST.
3913         * sysdeps/i386/fpu/libm-test-ulps: Update.
3914         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3915
3916 2014-05-23  Rasmus Villemoes  <rv@rasmusvillemoes.dk>
3917
3918         * manual/filesys.texi (Scanning Directory Content): Fix prototype of
3919         alphasort and versionsort.
3920
3921 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3922
3923         * sysdeps/powerpc/fpu/math_private.h [copysign]: Remove unneeded
3924         macro.
3925         [copysignf]: Likewise.
3926
3927 2014-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3928
3929         * crypt/md5-crypt.c: Fix formatting.
3930
3931 2014-05-22  Kostya Serebryany  <konstantin.s.serebryany@gmail.com>
3932
3933         * crypt/md5-crypt.c (__md5_crypt_r): Remove a nested function.
3934         (b64_from_24bit): New function.
3935
3936 2014-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3937
3938         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c (memchr): Remove
3939         libc_hidden_builtin_def to ifunc.
3940         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
3941         [libc_hidden_builtin_def]: Define hidden definition to __memchr_ppc32.
3942
3943 2014-05-21  Roland McGrath  <roland@hack.frob.com>
3944
3945         * sysdeps/unix/sysv/linux/aarch64/arch-fork.h: New file.
3946         * sysdeps/unix/sysv/linux/aarch64/nptl/fork.c: File removed.
3947
3948 2014-05-21  Joseph Myers  <joseph@codesourcery.com>
3949
3950         * nscd/Depend (linuxthreads): Remove.
3951         (nptl): Add.
3952         * resolv/Depend (linuxthreads): Remove.
3953         * rt/Depend (linuxthreads): Remove.
3954
3955         * Makeconfig [$(build-hardcoded-path-in-tests) = yes]
3956         (rtld-tests-LDFLAGS): Use $(elf-objpfx) instead of
3957         $(common-objpfx)elf/.
3958         (link-libc-before-gnulib): Likewise.
3959         (elfobjdir): Remove variable.
3960         * Makefile (install): Use $(elf-objpfx) instead of
3961         $(common-objpfx)elf/.
3962         * Makerules (link-libc-args): Use $(elf-objpfx) instead of
3963         $(elfobjdir)/.
3964         (link-libc-deps): Likewise.
3965         ($(common-objpfx)libc.so): Likewise.
3966         ($(common-objpfx)linkobj/libc.so): Likewise.
3967         [$(cross-compiling) = no] (symbolic-link-prog): Use $(elf-objpfx)
3968         instead of $(common-objpfx)elf/.
3969         (symbolic-link-list): Likewise.
3970         * iconvdata/Makefile ($(inst_gconvdir)/gconv-modules)
3971         [$(cross-compiling) = no]: Likewise.
3972         * sysdeps/arm/Makefile (gnulib-arch): Use $(elf-objpfx) instead of
3973         $(elfobjdir)/.
3974         (static-gnulib-arch): Likewise.
3975         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules)
3976         [$(cross-compiling) = no]: Use $(elf-objpfx) instead of
3977         $(common-objpfx)elf/.
3978
3979 2014-05-21  Richard Henderson  <rth@redhat.com>
3980
3981         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h
3982         (SINGLE_THREAD_P): Use the correct width load.  Fold
3983         into the ldr offset.
3984
3985         * sysdeps/unix/sysv/linux/aarch64/sysdep.h [RTLD_PRIVATE_ERRNO]
3986         (SYSCALL_ERROR_HANDLER): Fold add insn into str offset.
3987
3988 2014-05-20  Joseph Myers  <joseph@codesourcery.com>
3989
3990         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c
3991         (libgcc_s_resume): Use __attribute_used__.
3992         * sysdeps/unix/sysv/linux/arm/unwind-resume.c (libgcc_s_resume):
3993         Likewise.
3994
3995 2014-05-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3996
3997         * sysdeps/powerpc/fpu/math_private.h [__copysignf]: Fix copysign macro
3998         optimization when used with float constants.
3999
4000         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4001
4002 2014-05-20  Aurelien Jarno  <aurelien@aurel32.net>
4003
4004         [BZ #16915]
4005         * locale/nl_langinfo_l.c: Make direct reference to every
4006         _nl_current_CATEGORY symbol.
4007         * localedata/Makefile (test-srcs): Add tst-langinfo-static.
4008         (tests-static): Add tst-langinfo-static.
4009         (tests-special): Add tst-langinfo-static.out.
4010         ($(objpfx)tst-langinfo.out): Redirect output.
4011         ($(objpfx)tst-langinfo-static.out): New.
4012         * localedata/tst-langinfo.sh: Send output to stdout.
4013         * localedata/tst-langinfo-static.c: New file.
4014
4015         [BZ #16965]
4016         * stdlib/strtod_l.c (round_and_return): Add code to shift limbs
4017         when the shift amount is modulo the limb size.
4018
4019 2014-05-20  Richard Henderson  <rth@redhat.com>
4020
4021         [BZ #16967]
4022         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h (struct sigaction):
4023         Change type of sa_flags from unsigned int to int.
4024
4025         [BZ #16966]
4026         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h: Remove file.
4027
4028         * sysdeps/alpha/dl-machine.h (ELF_MACHINE_NO_RELA): Define.
4029
4030 2014-05-20  Will Newton  <will.newton@linaro.org>
4031
4032         * sysdeps/unix/sysv/linux/aarch64/nptl/sysdep-cancel.h (PSEUDO):
4033         Test the return value of the system call in the nocancel case.
4034
4035 2014-05-20  Will Newton  <will.newton@linaro.org>
4036             Yvan Roux  <yvan.roux@linaro.org>
4037
4038         * sysdeps/unix/sysv/linux/aarch64/sys/user.h: Remove unused
4039         #include of asm/ptrace.h.
4040         (PTRACE_GET_THREAD_AREA): Remove #undef.
4041         (PTRACE_GETHBPREGS): Likewise.
4042         (PTRACE_SETHBPREGS): Likewise.
4043         (struct user_regs_struct): New structure.
4044         (struct user_fpsimd_struct): New structure.
4045         * sysdeps/unix/sysv/linux/aarch64/sys/procfs.h: Remove unused
4046         #include of asm/ptrace.h and second #include of sys/user.h.
4047         (PTRACE_GET_THREAD_AREA): Remove #undef.
4048         (PTRACE_GETHBPREGS): Likewise.
4049         (PTRACE_SETHBPREGS): Likewise.
4050         (ELF_NGREG): Use new struct user_regs_struct.
4051         (elf_fpregset_t): Use new struct user_fpsimd_struct.
4052
4053 2014-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4054
4055         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypof.c: Moved ...
4056         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c: ... here.
4057
4058 2014-05-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
4059
4060         [BZ #16958]
4061         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Add missing
4062         membar to avoid block loads/stores to overlap previous stores.
4063
4064 2014-05-17  Richard Henderson  <rth@redhat.com>
4065
4066         * sysdeps/unix/sysv/linux/alpha/nptl/sysdep-cancel.h (PSEUDO):
4067         Create the __##syscall_name##_nocancel entry point.
4068         * sysdeps/unix/sysv/linux/alpha/sigsuspend.S (__sigsuspend_nocancel):
4069         Remove; let the sysdep-cancel.h code create it.
4070
4071 2014-05-17  David S. Miller  <davem@davemloft.net>
4072
4073         * sysdeps/unix/sysv/linux/sparc/bits/termios.h (PAGEOUT, WRAP):
4074         Protect with __USE_GNU.
4075         (TIOCSET_TEMPT): Likewise.
4076         (TIOCM_LE, TIOCM_DTR, TIOCM_RTS, TIOCM_ST, TIOCM_SR, TIOCM_CTS,
4077         TIOCM_CAR, TIOCM_RNG, TIOCM_DSR, TIOCM_CD, TIOCM_RI): Remove as
4078         these are already provided in bits/ioctl-types.h
4079
4080 2014-05-16  Roland McGrath  <roland@hack.frob.com>
4081
4082         * sysdeps/unix/sysv/linux/alpha/arch-fork.h: New file.
4083         * sysdeps/unix/sysv/linux/ia64/nptl/fork.c: File removed.
4084
4085         * sysdeps/unix/sysv/linux/not-cancel.h (waitpid_not_cancel):
4086         Use wait4 regardless of [__NR_waitpid].
4087
4088 2014-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
4089
4090         PR libgcc/60166
4091         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
4092         (_FP_NANSIGN_Q): Set the quiet bit.
4093
4094 2014-05-16  Joseph Myers  <joseph@codesourcery.com>
4095
4096         * benchtests/Makefile
4097         ($(addprefix $(objpfx)bench-,$(bench-math))): Depend on $(libm),
4098         not $(common-objpfx)math/libm.so.
4099         ($(addprefix $(objpfx)bench-,$(bench-pthread))): Depend on
4100         $(shared-thread-library), not $(common-objpfx)nptl/libpthread.so.
4101         * elf/Makefile ($(objpfx)noload): Depend on $(libdl), not
4102         $(common-objpfx)dlfcn/libdl.so.
4103         ($(objpfx)tst-audit8): Depend on $(libm), not
4104         $(common-objpfx)math/libm.so.
4105         * malloc/Makefile ($(objpfx)libmemusage.so): Depend on $(libdl),
4106         not $(common-objpfx)dlfcn/libdl.so.
4107         * math/Makefile
4108         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
4109         Depend on $(libm), not $(objpfx)libm.so.  Do not condition on
4110         [$(build-shared) = yes].
4111         ($(objpfx)test-fenv-tls): Depend on $(shared-thread-library), not
4112         $(common-objpfx)nptl/libpthread.so.
4113         * misc/Makefile ($(objpfx)tst-tsearch): Depend on $(libm), not
4114         $(common-objpfx)math/libm.so$(libm.so-version) or
4115         $(common-objpfx)math/libm.a depending on [$(build-shared) = yes].
4116         * nptl/Makefile ($(objpfx)tst-unload): Depend on $(libdl), not
4117         $(common-objpfx)dlfcn/libdl.so.
4118         * setjmp/Makefile (link-libm): Remove variable.
4119         ($(objpfx)tst-setjmp-fp): Depend on $(libm), not $(link-libm).
4120         * stdio-common/Makefile (link-libm): Remove variable.
4121         ($(objpfx)tst-printf-round): Depend on $(libm), not $(link-libm).
4122         * stdlib/Makefile (link-libm): Remove variable.
4123         ($(objpfx)bug-getcontext): Depend on $(libm), not $(link-libm).
4124         ($(objpfx)tst-strtod-round): Likewise.
4125         ($(objpfx)tst-tininess): Likewise.
4126         ($(objpfx)tst-strtod-underflow): Likewise.
4127         ($(objpfx)tst-strtod6): Likewise.
4128         ($(objpfx)tst-tls-atexit): Depend on $(shared-thread-library) and
4129         $(libdl), not $(common-objpfx)nptl/libpthread.so and
4130         $(common-objpfx)dlfcn/libdl.so.
4131
4132 2014-05-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4133
4134         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_MISC]: Guard
4135         BSD terminal modes definitions.
4136
4137 2014-05-16  Roland McGrath  <roland@hack.frob.com>
4138
4139         * sysdeps/unix/sysv/linux/arm/arch-fork.h: New file.
4140         * sysdeps/unix/sysv/linux/arm/fork.c: File removed.
4141
4142         * sysdeps/unix/sysv/linux/arch-fork.h: New file.
4143         * sysdeps/unix/sysv/linux/i386/fork.h: Moved ...
4144         * sysdeps/unix/sysv/linux/i386/arch-fork.h: ... here.
4145         Don't do #include_next.
4146         * sysdeps/unix/sysv/linux/x86_64/fork.h: Moved ...
4147         * sysdeps/unix/sysv/linux/x86_64/arch-fork.h: ... here.
4148         Don't do #include_next.
4149         * sysdeps/unix/sysv/linux/mips/arch-fork.h: New file.
4150         * sysdeps/unix/sysv/linux/mips/fork.h: File removed.
4151         * sysdeps/unix/sysv/linux/powerpc/arch-fork.h: New file.
4152         * sysdeps/unix/sysv/linux/powerpc/fork.h: File removed.
4153
4154 2014-05-16  Allan McRae  <allan@archlinux.org>
4155
4156         * po/sv.po: Update Swedish translation from translation project.
4157
4158         * timezone/Makefile ($(objpfx)tzselect): Use correct variable
4159         in sed expression.
4160
4161 2014-05-16  Aurelien Jarno  <aurelien@aurel32.net>
4162
4163         [BZ #16917]
4164         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal): Return
4165         errno if the TIOCGPTN ioctl fails with an error different than
4166         EINVAL.
4167         * login/tst-ptsname.c: New file.
4168         * login/Makefile (tests): Add tst-ptsname.
4169
4170         [BZ #16943]
4171         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
4172         and prlimit64.
4173
4174 2014-05-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4175
4176         [BZ #16849]
4177         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only check for
4178         herrno to return EAI_AGAIN.
4179
4180 2014-05-14  Roland McGrath  <roland@hack.frob.com>
4181
4182         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: Moved ...
4183         * sysdeps/unix/sysv/linux/i386/c++-types.data: ... here.
4184         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: Moved ...
4185         * sysdeps/unix/sysv/linux/i386/ld.abilist: ... here.
4186         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: Moved ...
4187         * sysdeps/unix/sysv/linux/i386/libBrokenLocale.abilist: ... here.
4188         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: Moved ...
4189         * sysdeps/unix/sysv/linux/i386/libanl.abilist: ... here.
4190         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Moved ...
4191         * sysdeps/unix/sysv/linux/i386/libc.abilist: ... here.
4192         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: Moved ...
4193         * sysdeps/unix/sysv/linux/i386/libcrypt.abilist: ... here.
4194         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: Moved ...
4195         * sysdeps/unix/sysv/linux/i386/libdl.abilist: ... here.
4196         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: Moved ...
4197         * sysdeps/unix/sysv/linux/i386/libm.abilist: ... here.
4198         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: Moved ...
4199         * sysdeps/unix/sysv/linux/i386/libnsl.abilist: ... here.
4200         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Moved ...
4201         * sysdeps/unix/sysv/linux/i386/libpthread.abilist: ... here.
4202         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: Moved ...
4203         * sysdeps/unix/sysv/linux/i386/libresolv.abilist: ... here.
4204         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: Moved ...
4205         * sysdeps/unix/sysv/linux/i386/librt.abilist: ... here.
4206         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: Moved ...
4207         * sysdeps/unix/sysv/linux/i386/libthread_db.abilist: ... here.
4208         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: Moved ...
4209         * sysdeps/unix/sysv/linux/i386/libutil.abilist: ... here.
4210         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: Moved ...
4211         * sysdeps/unix/sysv/linux/i386/localplt.data: ... here.
4212         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: Moved ...
4213         * sysdeps/unix/sysv/linux/x86_64/64/c++-types.data: ... here.
4214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Moved ...
4215         * sysdeps/unix/sysv/linux/x86_64/64/ld.abilist: ... here.
4216         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
4217         Moved ...
4218         * sysdeps/unix/sysv/linux/x86_64/64/libBrokenLocale.abilist: ... here.
4219         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Moved ...
4220         * sysdeps/unix/sysv/linux/x86_64/64/libanl.abilist: ... here.
4221         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Moved ...
4222         * sysdeps/unix/sysv/linux/x86_64/64/libc.abilist: ... here.
4223         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Moved ...
4224         * sysdeps/unix/sysv/linux/x86_64/64/libcrypt.abilist: ... here.
4225         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Moved ...
4226         * sysdeps/unix/sysv/linux/x86_64/64/libdl.abilist: ... here.
4227         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Moved ...
4228         * sysdeps/unix/sysv/linux/x86_64/64/libm.abilist: ... here.
4229         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Moved ...
4230         * sysdeps/unix/sysv/linux/x86_64/64/libnsl.abilist: ... here.
4231         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist: Moved ...
4232         * sysdeps/unix/sysv/linux/x86_64/64/libpthread.abilist: ... here.
4233         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist: Moved ...
4234         * sysdeps/unix/sysv/linux/x86_64/64/libresolv.abilist: ... here.
4235         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Moved ...
4236         * sysdeps/unix/sysv/linux/x86_64/64/librt.abilist: ... here.
4237         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist: Moved ...
4238         * sysdeps/unix/sysv/linux/x86_64/64/libthread_db.abilist: ... here.
4239         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Moved ...
4240         * sysdeps/unix/sysv/linux/x86_64/64/libutil.abilist: ... here.
4241         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data: Moved ...
4242         * sysdeps/unix/sysv/linux/x86_64/x32/c++-types.data: ... here.
4243         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: Moved ...
4244         * sysdeps/unix/sysv/linux/x86_64/x32/ld.abilist: ... here.
4245         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
4246         Moved ...
4247         * sysdeps/unix/sysv/linux/x86_64/x32/libBrokenLocale.abilist: ... here.
4248         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist: Moved ...
4249         * sysdeps/unix/sysv/linux/x86_64/x32/libanl.abilist: ... here.
4250         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Moved ...
4251         * sysdeps/unix/sysv/linux/x86_64/x32/libc.abilist: ... here.
4252         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist: Moved ...
4253         * sysdeps/unix/sysv/linux/x86_64/x32/libcrypt.abilist: ... here.
4254         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist: Moved ...
4255         * sysdeps/unix/sysv/linux/x86_64/x32/libdl.abilist: ... here.
4256         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist: Moved ...
4257         * sysdeps/unix/sysv/linux/x86_64/x32/libm.abilist: ... here.
4258         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist: Moved ...
4259         * sysdeps/unix/sysv/linux/x86_64/x32/libnsl.abilist: ... here.
4260         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist: Moved ...
4261         * sysdeps/unix/sysv/linux/x86_64/x32/libpthread.abilist: ... here.
4262         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist: Moved ...
4263         * sysdeps/unix/sysv/linux/x86_64/x32/libresolv.abilist: ... here.
4264         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist: Moved ...
4265         * sysdeps/unix/sysv/linux/x86_64/x32/librt.abilist: ... here.
4266         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
4267         Moved ...
4268         * sysdeps/unix/sysv/linux/x86_64/x32/libthread_db.abilist: ... here.
4269         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist: Moved ...
4270         * sysdeps/unix/sysv/linux/x86_64/x32/libutil.abilist: ... here.
4271
4272         * nptl/sysdeps/unix/sysv/linux/x86/Makefile: File removed.
4273         * sysdeps/unix/sysv/linux/x86/Makefile [$(subdir) = nptl]
4274         (libpthread-sysdep_routines): Add elision-related stuff here instead.
4275         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.c: Moved ...
4276         * sysdeps/unix/sysv/linux/x86/elision-conf.c: ... here.
4277         * nptl/sysdeps/unix/sysv/linux/x86/elision-conf.h: Moved ...
4278         * sysdeps/unix/sysv/linux/x86/elision-conf.h: ... here.
4279         * nptl/sysdeps/unix/sysv/linux/x86/elision-lock.c: Moved ...
4280         * sysdeps/unix/sysv/linux/x86/elision-lock.c: ... here.
4281         * nptl/sysdeps/unix/sysv/linux/x86/elision-timed.c: Moved ...
4282         * sysdeps/unix/sysv/linux/x86/elision-timed.c: ... here.
4283         * nptl/sysdeps/unix/sysv/linux/x86/elision-trylock.c: Moved ...
4284         * sysdeps/unix/sysv/linux/x86/elision-trylock.c: ... here.
4285         * nptl/sysdeps/unix/sysv/linux/x86/elision-unlock.c: Moved ...
4286         * sysdeps/unix/sysv/linux/x86/elision-unlock.c: ... here.
4287         * nptl/sysdeps/unix/sysv/linux/x86/force-elision.h: Moved ...
4288         * sysdeps/unix/sysv/linux/x86/force-elision.h: ... here.
4289         * nptl/sysdeps/unix/sysv/linux/x86/hle.h: Moved ...
4290         * sysdeps/unix/sysv/linux/x86/hle.h: ... here.
4291         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.c: Moved ...
4292         * sysdeps/unix/sysv/linux/x86/init-arch.c: ... here.
4293         * nptl/sysdeps/unix/sysv/linux/x86/init-arch.h: Moved ...
4294         * sysdeps/unix/sysv/linux/x86/init-arch.h: ... here.
4295         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: Moved ...
4296         * sysdeps/unix/sysv/linux/x86/pthread_mutex_cond_lock.c: ... here.
4297         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: Moved ...
4298         * sysdeps/unix/sysv/linux/x86/pthread_mutex_lock.c: ... here.
4299         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: Moved ...
4300         * sysdeps/unix/sysv/linux/x86/pthread_mutex_timedlock.c: ... here.
4301         * nptl/sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: Moved ...
4302         * sysdeps/unix/sysv/linux/x86/pthread_mutex_trylock.c: ... here.
4303
4304         * sysdeps/unix/sysv/linux/mips/fork.h: New file.
4305         * sysdeps/unix/sysv/linux/mips/nptl/fork.c: File removed.
4306
4307         * nptl/sysdeps/unix/sysv/linux/i386/Implies: File removed.
4308         * nptl/sysdeps/unix/sysv/linux/i386/i786/Implies: Moved ...
4309         * sysdeps/unix/sysv/linux/i386/i786/Implies: ... here.
4310         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: Moved ...
4311         * sysdeps/unix/sysv/linux/i386/i586/sem_wait.S: ... here.
4312         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S:
4313         Moved ...
4314         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_wrlock.S: ... here.
4315         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S:
4316         Moved ...
4317         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_timedwait.S: ... here.
4318         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S:
4319         Moved ...
4320         * sysdeps/unix/sysv/linux/i386/i586/pthread_barrier_wait.S: ... here.
4321         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S:
4322         Moved ...
4323         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_unlock.S: ... here.
4324         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: Moved ...
4325         * sysdeps/unix/sysv/linux/i386/i586/sem_timedwait.S: ... here.
4326         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S:
4327         Moved ...
4328         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_signal.S: ... here.
4329         * nptl/sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: Moved ...
4330         * sysdeps/unix/sysv/linux/i386/i586/libc-lowlevellock.S: ... here.
4331         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: Moved ...
4332         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_wait.S: ... here.
4333         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: Moved ...
4334         * sysdeps/unix/sysv/linux/i386/i586/lowlevelrobustlock.S: ... here.
4335         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S:
4336         Moved ...
4337         * sysdeps/unix/sysv/linux/i386/i586/pthread_cond_broadcast.S: ... here.
4338         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
4339         Moved ...
4340         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedrdlock.S:
4341         ... here.
4342         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: Moved ...
4343         * sysdeps/unix/sysv/linux/i386/i586/sem_trywait.S: ... here.
4344         * nptl/sysdeps/unix/sysv/linux/i386/i586/sem_post.S: Moved ...
4345         * sysdeps/unix/sysv/linux/i386/i586/sem_post.S: ... here.
4346         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
4347         Moved ...
4348         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_timedwrlock.S:
4349         ... here.
4350         * nptl/sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S:
4351         Moved ...
4352         * sysdeps/unix/sysv/linux/i386/i586/pthread_rwlock_rdlock.S: ... here.
4353         * nptl/sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: Moved ...
4354         * sysdeps/unix/sysv/linux/i386/i586/lowlevellock.S: ... here.
4355         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: Moved ...
4356         * sysdeps/unix/sysv/linux/i386/i486/sem_wait.S: ... here.
4357         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S:
4358         Moved ...
4359         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_wrlock.S: ... here.
4360         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S:
4361         Moved ...
4362         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_timedwait.S: ... here.
4363         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S:
4364         Moved ...
4365         * sysdeps/unix/sysv/linux/i386/i486/pthread_barrier_wait.S: ... here.
4366         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S:
4367         Moved ...
4368         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_unlock.S: ... here.
4369         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: Moved ...
4370         * sysdeps/unix/sysv/linux/i386/i486/sem_timedwait.S: ... here.
4371         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S:
4372         Moved ...
4373         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_signal.S: ... here.
4374         * nptl/sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: Moved ...
4375         * sysdeps/unix/sysv/linux/i386/i486/libc-lowlevellock.S: ... here.
4376         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: Moved ...
4377         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_wait.S: ... here.
4378         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: Moved ...
4379         * sysdeps/unix/sysv/linux/i386/i486/lowlevelrobustlock.S: ... here.
4380         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S:
4381         Moved ...
4382         * sysdeps/unix/sysv/linux/i386/i486/pthread_cond_broadcast.S: ... here.
4383         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
4384         Moved ...
4385         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedrdlock.S:
4386         ... here.
4387         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: Moved ...
4388         * sysdeps/unix/sysv/linux/i386/i486/sem_trywait.S: ... here.
4389         * nptl/sysdeps/unix/sysv/linux/i386/i486/sem_post.S: Moved ...
4390         * sysdeps/unix/sysv/linux/i386/i486/sem_post.S: ... here.
4391         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
4392         Moved ...
4393         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_timedwrlock.S:
4394         ... here.
4395         * nptl/sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S:
4396         Moved ...
4397         * sysdeps/unix/sysv/linux/i386/i486/pthread_rwlock_rdlock.S: ... here.
4398         * nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: Moved ...
4399         * sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S: ... here.
4400         * nptl/sysdeps/unix/sysv/linux/i386/dl-sysdep.h: Moved ...
4401         * sysdeps/unix/sysv/linux/i386/dl-sysdep.h: ... here.
4402         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h: Moved ...
4403         * sysdeps/unix/sysv/linux/i386/lowlevellock.h: ... here.
4404         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: Moved ...
4405         * sysdeps/unix/sysv/linux/i386/i686/sem_wait.S: ... here.
4406         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S:
4407         Moved ...
4408         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_wrlock.S: ... here.
4409         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S:
4410         Moved ...
4411         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_timedwait.S: ... here.
4412         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S:
4413         Moved ...
4414         * sysdeps/unix/sysv/linux/i386/i686/pthread_barrier_wait.S: ... here.
4415         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S:
4416         Moved ...
4417         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_unlock.S: ... here.
4418         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: Moved ...
4419         * sysdeps/unix/sysv/linux/i386/i686/sem_timedwait.S: ... here.
4420         * nptl/sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: Moved ...
4421         * sysdeps/unix/sysv/linux/i386/i686/dl-sysdep.h: ... here.
4422         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S:
4423         Moved ...
4424         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_signal.S: ... here.
4425         * nptl/sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: Moved ...
4426         * sysdeps/unix/sysv/linux/i386/i686/libc-lowlevellock.S: ... here.
4427         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: Moved ...
4428         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_wait.S: ... here.
4429         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: Moved ...
4430         * sysdeps/unix/sysv/linux/i386/i686/lowlevelrobustlock.S: ... here.
4431         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S:
4432         Moved ...
4433         * sysdeps/unix/sysv/linux/i386/i686/pthread_cond_broadcast.S: ... here.
4434         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
4435         Moved ...
4436         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedrdlock.S:
4437         ... here.
4438         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: Moved ...
4439         * sysdeps/unix/sysv/linux/i386/i686/sem_trywait.S: ... here.
4440         * nptl/sysdeps/unix/sysv/linux/i386/i686/sem_post.S: Moved ...
4441         * sysdeps/unix/sysv/linux/i386/i686/sem_post.S: ... here.
4442         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
4443         Moved ...
4444         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_timedwrlock.S:
4445         ... here.
4446         * nptl/sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S:
4447         Moved ...
4448         * sysdeps/unix/sysv/linux/i386/i686/pthread_rwlock_rdlock.S: ... here.
4449         * nptl/sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: Moved ...
4450         * sysdeps/unix/sysv/linux/i386/i686/lowlevellock.S: ... here.
4451         * nptl/sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: Moved ...
4452         * sysdeps/unix/sysv/linux/i386/sysdep-cancel.h: ... here.
4453         * nptl/sysdeps/unix/sysv/linux/i386/smp.h: Moved ...
4454         * sysdeps/unix/sysv/linux/i386/smp.h: ... here.
4455         * nptl/sysdeps/unix/sysv/linux/i386/pthread_once.S: Moved ...
4456         * sysdeps/unix/sysv/linux/i386/pthread_once.S: ... here.
4457         * nptl/sysdeps/unix/sysv/linux/i386/createthread.c: Moved ...
4458         * sysdeps/unix/sysv/linux/i386/createthread.c: ... here.
4459
4460         * sysdeps/unix/sysv/linux/powerpc/fork.h: New file.
4461         * nptl/sysdeps/unix/sysv/linux/powerpc/fork.c: File removed.
4462
4463         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_init.c: File removed.
4464         * nptl/sysdeps/unix/sysv/linux/i386/pthread_spin_unlock.S: File removed.
4465
4466         * nptl/sysdeps/unix/sysv/linux/x86_64/Implies: File removed.
4467         * nptl/sysdeps/unix/sysv/linux/x86_64/cancellation.S: Moved ...
4468         * sysdeps/unix/sysv/linux/x86_64/cancellation.S: ... here.
4469         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: Moved ...
4470         * sysdeps/unix/sysv/linux/x86_64/libc-cancellation.S: ... here.
4471         * nptl/sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: Moved ...
4472         * sysdeps/unix/sysv/linux/x86_64/libc-lowlevellock.S: ... here.
4473         * nptl/sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: Moved ...
4474         * sysdeps/unix/sysv/linux/x86_64/librt-cancellation.S: ... here.
4475         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Moved ...
4476         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: ... here.
4477         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: Moved ...
4478         * sysdeps/unix/sysv/linux/x86_64/lowlevellock.S: ... here.
4479         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: Moved ...
4480         * sysdeps/unix/sysv/linux/x86_64/lowlevelrobustlock.S: ... here.
4481         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: Moved ...
4482         * sysdeps/unix/sysv/linux/x86_64/pthread_barrier_wait.S: ... here.
4483         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S:
4484         Moved ...
4485         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_broadcast.S: ... here.
4486         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: Moved ...
4487         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_signal.S: ... here.
4488         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:
4489         Moved ...
4490         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S: ... here.
4491         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: Moved ...
4492         * sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S: ... here.
4493         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_once.S: Moved ...
4494         * sysdeps/unix/sysv/linux/x86_64/pthread_once.S: ... here.
4495         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: Moved ...
4496         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_rdlock.S: ... here.
4497         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S:
4498         Moved ...
4499         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedrdlock.S: ... here.
4500         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S:
4501         Moved ...
4502         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_timedwrlock.S: ... here.
4503         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: Moved ...
4504         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_unlock.S: ... here.
4505         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: Moved ...
4506         * sysdeps/unix/sysv/linux/x86_64/pthread_rwlock_wrlock.S: ... here.
4507         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: Moved ...
4508         * sysdeps/unix/sysv/linux/x86_64/pthread_setaffinity.c: ... here.
4509         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_post.S: Moved ...
4510         * sysdeps/unix/sysv/linux/x86_64/sem_post.S: ... here.
4511         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: Moved ...
4512         * sysdeps/unix/sysv/linux/x86_64/sem_timedwait.S: ... here.
4513         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: Moved ...
4514         * sysdeps/unix/sysv/linux/x86_64/sem_trywait.S: ... here.
4515         * nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S: Moved ...
4516         * sysdeps/unix/sysv/linux/x86_64/sem_wait.S: ... here.
4517         * nptl/sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: Moved ...
4518         * sysdeps/unix/sysv/linux/x86_64/sysdep-cancel.h: ... here.
4519
4520         * nptl/sysdeps/unix/sysv/linux/fork.c: Use <> for fork.h #include.
4521         * nptl/sysdeps/unix/sysv/linux/x86_64/fork.c: File removed.
4522         * sysdeps/unix/sysv/linux/x86_64/fork.h: New file.
4523         * nptl/sysdeps/unix/sysv/linux/i386/fork.c: File removed.
4524         * sysdeps/unix/sysv/linux/i386/fork.h: New file.
4525
4526         * nptl/sysdeps/unix/sysv/linux/i386/not-cancel.h: Moved ...
4527         * sysdeps/unix/sysv/linux/not-cancel.h: ... here.
4528         * nptl/sysdeps/unix/sysv/linux/sparc/not-cancel.h: File removed.
4529         * nptl/sysdeps/unix/sysv/linux/sh/not-cancel.h: File removed.
4530         * nptl/sysdeps/unix/sysv/linux/powerpc/not-cancel.h: File removed.
4531         * nptl/sysdeps/unix/sysv/linux/x86_64/not-cancel.h: File removed.
4532         * nptl/sysdeps/unix/sysv/linux/s390/not-cancel.h: File removed.
4533         * sysdeps/unix/sysv/linux/generic/not-cancel.h: File removed.
4534         * sysdeps/unix/sysv/linux/generic/nptl/not-cancel.h: File removed.
4535         * sysdeps/unix/sysv/linux/m68k/nptl/not-cancel.h: File removed.
4536
4537         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_init.c: File removed.
4538         * nptl/sysdeps/unix/sysv/linux/x86_64/pthread_spin_unlock.S: Likewise.
4539
4540         * nptl/sysdeps/unix/sysv/linux/x86_64/compat-timer.h: Moved ...
4541         * sysdeps/unix/sysv/linux/x86_64/compat-timer.h: ... here.
4542         * nptl/sysdeps/unix/sysv/linux/x86_64/Versions: Remove, merge into ...
4543         * sysdeps/unix/sysv/linux/x86_64/Versions: ... here.
4544         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_create.c: Moved ...
4545         * sysdeps/unix/sysv/linux/x86_64/timer_create.c: here.
4546         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_delete.c: Moved ...
4547         * sysdeps/unix/sysv/linux/x86_64/timer_delete.c: ... here
4548         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: Moved ...
4549         * sysdeps/unix/sysv/linux/x86_64/timer_getoverr.c: ... here
4550         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: Moved ...
4551         * sysdeps/unix/sysv/linux/x86_64/timer_gettime.c: ... here
4552         * nptl/sysdeps/unix/sysv/linux/x86_64/timer_settime.c: Moved ...
4553         * sysdeps/unix/sysv/linux/x86_64/timer_settime.c: ... here
4554         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_create.c:
4555         Update #include.
4556         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_delete.c:
4557         Likewise.
4558         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_getoverr.c:
4559         Likewise.
4560         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_gettime.c:
4561         Likewise.
4562         * nptl/sysdeps/unix/sysv/linux/powerpc/powerpc64/timer_settime.c:
4563         Likewise.
4564         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_create.c:
4565         Likewise.
4566         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_delete.c:
4567         Likewise.
4568         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_getoverr.c:
4569         Likewise.
4570         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_gettime.c:
4571         Likewise.
4572         * nptl/sysdeps/unix/sysv/linux/sparc/sparc64/timer_settime.c:
4573         Likewise.
4574         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_create.c: Likewise.
4575         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_delete.c: Likewise.
4576         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_getoverr.c: Likewise.
4577         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_gettime.c: Likewise.
4578         * nptl/sysdeps/unix/sysv/linux/s390/s390-64/timer_settime.c: Likewise.
4579         * sysdeps/unix/sysv/linux/alpha/nptl/timer_create.c: Likewise.
4580         * sysdeps/unix/sysv/linux/alpha/nptl/timer_delete.c: Likewise.
4581         * sysdeps/unix/sysv/linux/alpha/nptl/timer_getoverr.c: Likewise.
4582         * sysdeps/unix/sysv/linux/alpha/nptl/timer_gettime.c: Likewise.
4583         * sysdeps/unix/sysv/linux/alpha/nptl/timer_settime.c: Likewise.
4584         * sysdeps/unix/sysv/linux/ia64/nptl/timer_create.c: Likewise.
4585         * sysdeps/unix/sysv/linux/ia64/nptl/timer_delete.c: Likewise.
4586         * sysdeps/unix/sysv/linux/ia64/nptl/timer_getoverr.c: Likewise.
4587         * sysdeps/unix/sysv/linux/ia64/nptl/timer_gettime.c:  Likewise.
4588         * sysdeps/unix/sysv/linux/ia64/nptl/timer_settime.c:  Likewise.
4589
4590         * sysdeps/unix/sysv/linux/x86_64/clone.S: Deconditionalize the code
4591         that was previously under [RESET_PID].
4592         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
4593         * nptl/sysdeps/unix/sysv/linux/x86_64/clone.S: File removed.
4594         * nptl/sysdeps/unix/sysv/linux/i386/clone.S: File removed.
4595
4596         * sysdeps/i386/nptl/Implies: New file.
4597         * sysdeps/x86_64/nptl/Implies: New file.
4598         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h: Moved ...
4599         * sysdeps/x86/nptl/bits/pthreadtypes.h: ... here.
4600         * nptl/sysdeps/unix/sysv/linux/x86/bits/semaphore.h: Moved ...
4601         * sysdeps/x86/nptl/bits/semaphore.h: ... here.
4602
4603         * sysdeps/unix/sysv/linux/i386/vfork.S: Include <tcb-offsets.h>.
4604         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
4605         (__libc_vfork): New strong alias.
4606         * nptl/sysdeps/unix/sysv/linux/i386/vfork.S: File removed.
4607         * nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S: File removed.
4608
4609         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Include <tcb-offsets.h>.
4610         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
4611         (__libc_vfork): New strong alias.
4612         * nptl/sysdeps/unix/sysv/linux/x86_64/vfork.S: File removed.
4613         * nptl/sysdeps/unix/sysv/linux/x86_64/pt-vfork.S: File removed.
4614
4615         * sysdeps/unix/sysv/linux/arm/vfork.S: Include <tcb-offsets.h>.
4616         (__vfork): Incorporate save/restore of PID from nptl/vfork.S here.
4617         (__libc_vfork): New strong alias.
4618         * sysdeps/unix/sysv/linux/arm/nptl/vfork.S: File removed.
4619         * sysdeps/unix/sysv/linux/arm/nptl/pt-vfork.S: File removed.
4620         * nptl/pt-vfork.c: New file.
4621         * nptl/Versions (libc: GLIBC_PRIVATE): Add __libc_vfork.
4622         (libpthread: GLIBC_2.20): New version set (empty).
4623
4624 2014-05-14  Will Newton  <will.newton@linaro.org>
4625
4626         * stdlib/gmp-impl.h: Test USE_STACK_ALLOC #ifdef
4627         rather than #if.
4628
4629 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
4630
4631         [BZ #16564]
4632         * sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
4633         arguments with exponent 65 or above.
4634         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
4635         arguments 0x1p113L or above.
4636         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
4637         to arguments 0x1p107L or above.
4638         * sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
4639         positive arguments with exponent 65 or above.
4640         * math/auto-libm-test-in: Add more tests of log1p.
4641         * math/auto-libm-test-out: Regenerated.
4642
4643         [BZ #16928]
4644         * math/s_cacos.c (__cacos): Ensure zero real part of result from
4645         non-finite arguments is +0.
4646         * math/s_cacosf.c (__cacosf): Likewise.
4647         * math/s_cacosl.c (__cacosl): Likewise.
4648         * math/libm-test.inc (cacos_test): Use ALL_RM_TEST.
4649         * sysdeps/i386/fpu/libm-test-ulps: Update.
4650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4651
4652         [BZ #16927]
4653         * sysdeps/i386/fpu/e_acosh.S (__ieee754_acosh): Use fabs on x-1
4654         value.
4655         * sysdeps/i386/fpu/e_acoshf.S (__ieee754_acoshf): Likewise.
4656         * sysdeps/i386/fpu/e_acoshl.S (__ieee754_acoshl): Likewise.
4657         * sysdeps/ieee754/ldbl-96/e_acoshl.c (__ieee754_acoshl): Correct
4658         for explicit high bit of mantissa when testing for argument equal
4659         to 1.
4660         * math/libm-test.inc (acosh_test): Use ALL_RM_TEST.
4661         * sysdeps/i386/fpu/libm-test-ulps: Update.
4662         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4663
4664         [BZ #16516]
4665         * sysdeps/ieee754/dbl-64/s_erf.c (efx8): Remove variable.
4666         (__erf): Scale by 16 instead of 8 in potentially underflowing
4667         case.  Ensure exception if result actually underflows.
4668         * sysdeps/ieee754/flt-32/s_erff.c (efx8): Remove variable.
4669         (__erff): Scale by 16 instead of 8 in potentially underflowing
4670         case.  Ensure exception if result actually underflows.
4671         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <float.h>.
4672         (efx8): Remove variable.
4673         (__erfl): Scale by 16 instead of 8 in potentially underflowing
4674         case.  Ensure exception if result actually underflows.
4675         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <float.h>.
4676         (efx8): Remove variable.
4677         (__erfl): Scale by 16 instead of 8 in potentially underflowing
4678         case.  Ensure exception if result actually underflows.
4679         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <float.h>.
4680         (efx8): Remove variable.
4681         (__erfl): Scale by 16 instead of 8 in potentially underflowing
4682         case.  Ensure exception if result actually underflows.
4683         * math/auto-libm-test-in: Add more tests of erf.
4684         * math/auto-libm-test-out: Regenerated.
4685
4686 2014-05-14  Andreas Schwab  <schwab@suse.de>
4687
4688         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, dl_main):
4689         Remove code conditionalized on USE___THREAD.
4690
4691         * config.h.in (HAVE_PT_CHOWN): Define as 0.
4692         * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
4693         not definedness.
4694
4695 2014-05-14  Joseph Myers  <joseph@codesourcery.com>
4696
4697         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
4698         Define unconditionally.
4699         (__ASSUME_O_CLOEXEC): Likewise.
4700         (__ASSUME_SOCK_CLOEXEC): Likewise.
4701         (__ASSUME_IN_NONBLOCK): Likewise.
4702         (__ASSUME_PIPE2): Likewise.
4703         (__ASSUME_EVENTFD2): Likewise.
4704         (__ASSUME_SIGNALFD4): Likewise.
4705         (__ASSUME_DUP3): Likewise.
4706         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
4707         (__ASSUME_DUP3): Do not define.
4708         (__ASSUME_EVENTFD2): Likewise.
4709         (__ASSUME_IN_NONBLOCK): Likewise.
4710         (__ASSUME_O_CLOEXEC): Likewise.
4711         (__ASSUME_PIPE2): Likewise.
4712         (__ASSUME_SIGNALFD4): Likewise.
4713         (__ASSUME_SOCK_CLOEXEC): Likewise.
4714         (__ASSUME_UTIMES): Undefine.
4715         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4716         (__ASSUME_UTIMES): Do not define.
4717         (__ASSUME_O_CLOEXEC): Likewise.
4718         (__ASSUME_SOCK_CLOEXEC): Likewise.
4719         (__ASSUME_IN_NONBLOCK): Undefine if [__LINUX_KERNEL_VERSION <
4720         0x020621] instead of defining if [__LINUX_KERNEL_VERSION >=
4721         0x020621].
4722         (__ASSUME_PIPE2): Likewise.
4723         (__ASSUME_EVENTFD2): Likewise.
4724         (__ASSUME_SIGNALFD4): Likewise.
4725         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_DUP3): Undefine.
4726         * sysdeps/unix/sysv/linux/arm/kernel-features.h (__ASSUME_UTIMES):
4727         Do not define.
4728         (__ASSUME_EVENTFD2): Likewise.
4729         (__ASSUME_SIGNALFD4): Likewise.
4730         * sysdeps/unix/sysv/linux/hppa/kernel-features.h
4731         (__ASSUME_32BITUIDS): Likewise.
4732         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
4733         (__ASSUME_IPC64): Likewise.
4734         (__ASSUME_ST_INO_64_BIT): Likewise.
4735         (__ASSUME_GETDENTS64_SYSCALL): Likewise.
4736         [__LINUX_KERNEL_VERSION < 0x030e00] (__ASSUME_UTIMES): Undefine.
4737         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4738         (__ASSUME_UTIMES): Do not define.
4739         (__ASSUME_PSELECT): Likewise.
4740         (__ASSUME_PPOLL): Likewise.
4741         (__ASSUME_O_CLOEXEC): Likewise.
4742         (__ASSUME_SOCK_CLOEXEC): Likewise.
4743         (__ASSUME_IN_NONBLOCK): Likewise.
4744         (__ASSUME_PIPE2): Likewise.
4745         (__ASSUME_EVENTFD2): Likewise.
4746         (__ASSUME_SIGNALFD4): Likewise.
4747         (__ASSUME_DUP3): Likewise.
4748         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4749         (__ASSUME_UTIMES): Likewise.
4750         (__ASSUME_O_CLOEXEC): Likewise.
4751         (__ASSUME_SOCK_CLOEXEC): Likewise.
4752         (__ASSUME_IN_NONBLOCK): Likewise.
4753         (__ASSUME_PIPE2): Likewise.
4754         (__ASSUME_EVENTFD2): Likewise.
4755         (__ASSUME_SIGNALFD4): Likewise.
4756         (__ASSUME_DUP3): Likewise.
4757         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
4758         (__ASSUME_UTIMES): Likewise.
4759         (__ASSUME_O_CLOEXEC): Likewise.
4760         (__ASSUME_SOCK_CLOEXEC): Likewise.
4761         (__ASSUME_IN_NONBLOCK): Likewise.
4762         (__ASSUME_PIPE2): Likewise.
4763         (__ASSUME_EVENTFD2): Likewise.
4764         (__ASSUME_SIGNALFD4): Likewise.
4765         (__ASSUME_DUP3): Likewise.
4766         * sysdeps/unix/sysv/linux/mips/kernel-features.h (__ASSUME_IPC64):
4767         Likewise.
4768         (__ASSUME_UTIMES): Likewise.
4769         (__ASSUME_EVENTFD2): Likewise.
4770         (__ASSUME_SIGNALFD4): Likewise.
4771         * sysdeps/unix/sysv/linux/tile/kernel-features.h
4772         (__ASSUME_O_CLOEXEC): Likewise.
4773         (__ASSUME_SOCK_CLOEXEC): Likewise.
4774         (__ASSUME_IN_NONBLOCK): Likewise.
4775         (__ASSUME_PIPE2): Likewise.
4776         (__ASSUME_EVENTFD2): Likewise.
4777         (__ASSUME_SIGNALFD4): Likewise.
4778         (__ASSUME_DUP3): Likewise.
4779         (__ASSUME_UTIMES): Undefine.
4780
4781         * sysdeps/arm/fclrexcpt.c (__feclearexcept): Rename to
4782         feclearexcept.  Remove symbol versioning code.
4783         * sysdeps/arm/fegetenv.c (__fegetenv): Rename to fegetenv.  Remove
4784         symbol versioning code.
4785         * sysdeps/arm/fesetenv.c (__fesetenv): Rename to fesetenv.  Remove
4786         symbol versioning code.
4787         * sysdeps/arm/feupdateenv.c (__feupdateenv): Rename to
4788         feupdateenv.  Remove symbol versioning code.
4789         * sysdeps/arm/fgetexcptflg.c (__fegetexceptflag): Rename to
4790         fegetexceptflag.  Remove symbol versioning code.
4791         * sysdeps/arm/fsetexcptflg.c (__fesetexceptflag): Rename to
4792         fesetexceptflag.  Remove symbol versioning code.
4793         * sysdeps/unix/sysv/linux/arm/Versions (libc): Remove GLIBC_2.0,
4794         GLIBC_2.2 and GLIBC_2.3.3 entries.  Change GLIBC_2.1 to GLIBC_2.4.
4795         * sysdeps/unix/sysv/linux/arm/posix_fadvise64.c
4796         (__posix_fadvise64_l32): Remove prototype.
4797         [SHLIB_COMPAT(libc, GLIBC_2_2, GLIBC_2_3_3)]: Remove conditional
4798         code.
4799
4800 2014-05-13  Roland McGrath  <roland@hack.frob.com>
4801
4802         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h: Moved ...
4803         * sysdeps/arm/nptl/bits/pthreadtypes.h: ... here.
4804         * sysdeps/unix/sysv/linux/arm/nptl/bits/semaphore.h: Moved ...
4805         * sysdeps/arm/nptl/bits/semaphore.h: ... here.
4806
4807 2014-05-13  Sami Kerola  <kerolasa@iki.fi>
4808
4809         * timezone/Makefile ($(objpfx)tzselect): Use zonedir instead
4810         current working directory
4811
4812 2014-05-13  Roland McGrath  <roland@hack.frob.com>
4813
4814         * sysdeps/unix/sysv/linux/arm/nptl/c++-types.data: Moved ...
4815         * sysdeps/unix/sysv/linux/arm/c++-types.data: ... here.
4816         * sysdeps/unix/sysv/linux/arm/nptl/createthread.c: Moved ...
4817         * sysdeps/unix/sysv/linux/arm/createthread.c: ... here.
4818         * sysdeps/unix/sysv/linux/arm/nptl/fork.c: Moved ...
4819         * sysdeps/unix/sysv/linux/arm/fork.c: ... here.
4820         * sysdeps/unix/sysv/linux/arm/nptl/ld.abilist: Moved ...
4821         * sysdeps/unix/sysv/linux/arm/ld.abilist: ... here.
4822         * sysdeps/unix/sysv/linux/arm/nptl/libBrokenLocale.abilist: Moved ...
4823         * sysdeps/unix/sysv/linux/arm/libBrokenLocale.abilist: ... here.
4824         * sysdeps/unix/sysv/linux/arm/nptl/libanl.abilist: Moved ...
4825         * sysdeps/unix/sysv/linux/arm/libanl.abilist: ... here.
4826         * sysdeps/unix/sysv/linux/arm/nptl/libc.abilist: Moved ...
4827         * sysdeps/unix/sysv/linux/arm/libc.abilist: ... here.
4828         * sysdeps/unix/sysv/linux/arm/nptl/libcrypt.abilist: Moved ...
4829         * sysdeps/unix/sysv/linux/arm/libcrypt.abilist: ... here.
4830         * sysdeps/unix/sysv/linux/arm/nptl/libdl.abilist: Moved ...
4831         * sysdeps/unix/sysv/linux/arm/libdl.abilist: ... here.
4832         * sysdeps/unix/sysv/linux/arm/nptl/libm.abilist: Moved ...
4833         * sysdeps/unix/sysv/linux/arm/libm.abilist: ... here.
4834         * sysdeps/unix/sysv/linux/arm/nptl/libnsl.abilist: Moved ...
4835         * sysdeps/unix/sysv/linux/arm/libnsl.abilist: ... here.
4836         * sysdeps/unix/sysv/linux/arm/nptl/libpthread.abilist: Moved ...
4837         * sysdeps/unix/sysv/linux/arm/libpthread.abilist: ... here.
4838         * sysdeps/unix/sysv/linux/arm/nptl/libresolv.abilist: Moved ...
4839         * sysdeps/unix/sysv/linux/arm/libresolv.abilist: ... here.
4840         * sysdeps/unix/sysv/linux/arm/nptl/librt.abilist: Moved ...
4841         * sysdeps/unix/sysv/linux/arm/librt.abilist: ... here.
4842         * sysdeps/unix/sysv/linux/arm/nptl/libthread_db.abilist: Moved ...
4843         * sysdeps/unix/sysv/linux/arm/libthread_db.abilist: ... here.
4844         * sysdeps/unix/sysv/linux/arm/nptl/libutil.abilist: Moved ...
4845         * sysdeps/unix/sysv/linux/arm/libutil.abilist: ... here.
4846         * sysdeps/unix/sysv/linux/arm/nptl/localplt.data: Moved ...
4847         * sysdeps/unix/sysv/linux/arm/localplt.data: ... here.
4848         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.h: Moved ...
4849         * sysdeps/unix/sysv/linux/arm/lowlevellock.h: ... here.
4850         * sysdeps/unix/sysv/linux/arm/nptl/sysdep-cancel.h: Moved ...
4851         * sysdeps/unix/sysv/linux/arm/sysdep-cancel.h: ... here.
4852         * sysdeps/unix/sysv/linux/arm/nptl/unwind-forcedunwind.c: Moved ...
4853         * sysdeps/unix/sysv/linux/arm/unwind-forcedunwind.c: ... here.
4854         * sysdeps/unix/sysv/linux/arm/nptl/unwind-resume.c: Moved ...
4855         * sysdeps/unix/sysv/linux/arm/unwind-resume.c: ... here.
4856
4857         * sysdeps/unix/sysv/linux/arm/Versions (libc: GLIBC_PRIVATE): New set.
4858         * sysdeps/unix/sysv/linux/arm/nptl/Versions: File removed.
4859
4860         * sysdeps/unix/sysv/linux/arm/Makefile
4861         [$(subdir) = rt] (librt-sysdep_routines, librt-shared-only-routines):
4862         Add rt-aeabi_unwind_cpp_pr1.
4863         [$(subdir) = nptl] (librt-sysdep_routines, librt-shared-only-routines):
4864         Add nptl-aeabi_unwind_cpp_pr1.
4865         [$(subdir) = nptl] (tests): Filter out tst-cleanupx4.
4866         * sysdeps/unix/sysv/linux/arm/nptl/Makefile: File removed.
4867         * sysdeps/unix/sysv/linux/arm/nptl/rt-aeabi_unwind_cpp_pr1.c: Move ...
4868         * sysdeps/unix/sysv/linux/arm/rt-aeabi_unwind_cpp_pr1.c: ... here.
4869         * sysdeps/unix/sysv/linux/arm/nptl/nptl-aeabi_unwind_cpp_pr1.c: Move ...
4870         * sysdeps/unix/sysv/linux/arm/nptl-aeabi_unwind_cpp_pr1.c: ... here.
4871
4872         * sysdeps/unix/sysv/linux/arm/configure.ac: Force -fexceptions here.
4873         * sysdeps/unix/sysv/linux/arm/configure: Regenerated.
4874         * sysdeps/unix/sysv/linux/arm/nptl/configure.ac: File removed.
4875         * sysdeps/unix/sysv/linux/arm/nptl/configure: File removed.
4876
4877         * sysdeps/unix/sysv/linux/arm/clone.S: Include <tcb-offsets.h>.
4878         Deconditionalize the code that was previously under [RESET_PID].
4879         * sysdeps/unix/sysv/linux/arm/nptl/clone.S: File removed.
4880
4881         * sysdeps/generic/exit-thread.h: New file.
4882         * sysdeps/unix/sysv/linux/exit-thread.h: New file.
4883         * include/unistd.h (__exit_thread): Remove declaration.
4884         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Drop exit-thread.
4885         * sysdeps/unix/sysv/linux/exit-thread.S: File removed.
4886         * csu/libc-start.c: Include <exit-thread.h>.
4887         (LIBC_START_MAIN): Pass no argument to __exit_thread.
4888         * nptl/pthread_create.c: Include <exit-thread.h>.
4889         (start_thread): Call __exit_thread in place of __exit_thread_inline.
4890         * nptl/sysdeps/i386/pthreaddef.h (__exit_thread_inline): Macro removed.
4891         * nptl/sysdeps/powerpc/pthreaddef.h: Likewise.
4892         * nptl/sysdeps/s390/pthreaddef.h: Likewise.
4893         * nptl/sysdeps/sh/pthreaddef.h: Likewise.
4894         * nptl/sysdeps/sparc/sparc32/pthreaddef.h: Likewise.
4895         * nptl/sysdeps/sparc/sparc64/pthreaddef.h: Likewise.
4896         * nptl/sysdeps/x86_64/pthreaddef.h: Likewise.
4897         * sysdeps/aarch64/nptl/pthreaddef.h: Likewise.
4898         * sysdeps/alpha/nptl/pthreaddef.h: Likewise.
4899         * sysdeps/arm/nptl/pthreaddef.h: Likewise.
4900         * sysdeps/hppa/nptl/pthreaddef.h: Likewise.
4901         * sysdeps/ia64/nptl/pthreaddef.h: Likewise.
4902         * sysdeps/m68k/nptl/pthreaddef.h: Likewise.
4903         * sysdeps/microblaze/nptl/pthreaddef.h: Likewise.
4904         * sysdeps/mips/nptl/pthreaddef.h: Likewise.
4905         * sysdeps/tile/nptl/pthreaddef.h: Likewise.
4906
4907 2014-05-13  Andreas Schwab  <schwab@suse.de>
4908
4909         * sysdeps/unix/grantpt.c (grantpt): Fix typo in assertion.
4910
4911 2014-05-12  Joseph Myers  <joseph@codesourcery.com>
4912
4913         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__]
4914         (__ASSUME_UTIMES): Do not condition on kernel version.
4915         (__ASSUME_PSELECT): Define unconditionally.
4916         (__ASSUME_PPOLL): Likewise.
4917         (__ASSUME_ATFCTS): Likewise.
4918         (__ASSUME_SET_ROBUST_LIST): Do not condition on kernel version.
4919         (__ASSUME_COMPLETE_READV_WRITEV): Define unconditionally.
4920         (__ASSUME_FUTEX_LOCK_PI): Do not condition on kernel version.
4921         (__ASSUME_UTIMENSAT): Define unconditionally.
4922         (__ASSUME_PRIVATE_FUTEX): Likewise.
4923         (__ASSUME_FALLOCATE): Likewise.
4924         (__ASSUME_O_CLOEXEC): Likewise.
4925         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Remove.
4926         (__ASSUME_ARG_MAX_STACK_BASED): Likewise.
4927         (__ASSUME_ADJ_OFFSET_SS_READ): Define unconditionally.
4928         (__ASSUME_SOCK_CLOEXEC): Do not condition on kernel version.
4929         (__ASSUME_IN_NONBLOCK): Likewise.
4930         (__ASSUME_PIPE2): Likewise.
4931         (__ASSUME_EVENTFD2): Likewise.
4932         (__ASSUME_SIGNALFD4): Likewise.
4933         (__ASSUME_DUP3): Likewise.
4934         [__x86_64__ || __sparc__] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4935         (__ASSUME_FUTEX_CLOCK_REALTIME): Define unconditionally.
4936         (__ASSUME_AT_RANDOM): Likewise.
4937         (__ASSUME_PREADV): Likewise.
4938         (__ASSUME_PWRITEV): Likewise.
4939         (__ASSUME_REQUEUE_PI): Do not condition on kernel version.
4940         (__ASSUME_F_GETOWN_EX): Define unconditionally.
4941         (__ASSUME_XFS_RESTRICTED_CHOWN): Likewise.
4942         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
4943         [!__ASSUME_ARG_MAX_STACK_BASED]: Remove conditional code.
4944         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
4945         (__ASSUME_O_CLOEXEC): Define unconditionally.
4946         (__ASSUME_PSELECT): Do not undefine conditionally.
4947         (__ASSUME_PPOLL): Likewise.
4948         (__ASSUME_ATFCTS): Likewise.
4949         (__ASSUME_SET_ROBUST_LIST): Likewise.
4950         (__ASSUME_UTIMENSAT): Likewise.
4951         (__ASSUME_FDATASYNC): Define unconditionally.
4952         * sysdeps/unix/sysv/linux/arm/kernel-features.h
4953         (__ASSUME_SIGFRAME_V2): Likewise.
4954         )__ASSUME_EVENTFD2): Likewise.
4955         (__ASSUME_SIGNALFD4): Likewise.
4956         (__ASSUME_PSELECT): Do not undefine conditionally.
4957         (__ASSUME_PPOLL): Likewise.
4958         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
4959         (__ASSUME_PSELECT): Define unconditionally.
4960         (__ASSUME_PPOLL): Likewise.
4961         (__ASSUME_O_CLOEXEC): Likewise.
4962         (__ASSUME_SOCK_CLOEXEC): Likewise.
4963         (__ASSUME_IN_NONBLOCK): Likewise.
4964         (__ASSUME_PIPE2): Likewise.
4965         (__ASSUME_EVENTFD2): Likewise.
4966         (__ASSUME_SIGNALFD4): Likewise.
4967         (__ASSUME_DUP3): Likewise.
4968         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
4969         (__ASSUME_O_CLOEXEC): Likewise.
4970         (__ASSUME_SOCK_CLOEXEC): Likewise.
4971         (__ASSUME_IN_NONBLOCK): Likewise.
4972         (__ASSUME_PIPE2): Likewise.
4973         (__ASSUME_EVENTFD2): Likewise.
4974         (__ASSUME_SIGNALFD4): Likewise.
4975         (__ASSUME_DUP3): Likewise.
4976         * sysdeps/unix/sysv/linux/mips/kernel-features.h
4977         (__ASSUME_EVENTFD2): Likewise.
4978         (__ASSUME_SIGNALFD4): Likewise.
4979         (__ASSUME_ACCEPT4_SYSCALL): Likewise.
4980
4981 2014-05-12  Andreas Schwab  <schwab@suse.de>
4982
4983         [BZ #16932]
4984         * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r)
4985         (_nss_nis_gethostbyname4_r): Return error if item length is larger
4986         than maximum RPC packet size.
4987         * nis/nss_nis/nis-initgroups.c (initgroups_netid): Likewise.
4988         * nis/nss_nis/nis-network.c (_nss_nis_getnetbyname_r): Likewise.
4989         * nis/nss_nis/nis-service.c (_nss_nis_getservbyname_r)
4990         (_nss_nis_getservbyport_r): Likewise.
4991
4992 2014-05-12  Will Newton  <will.newton@linaro.org>
4993
4994         * malloc/Makefile (tests): Add tst-mallopt.
4995         * malloc/tst-mallopt.c: New file.
4996
4997 2014-05-09  Roland McGrath  <roland@hack.frob.com>
4998
4999         * sysdeps/arm/armv7/strcmp.S: Use sfi_breg prefix on loads not from sp.
5000         [NO_THUMB]: Cope without cbz, cnbz, and orn instructions.
5001
5002 2014-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5003
5004         * elf/Makefile (tst-tlsmod5.so): Add $(no-as-needed).
5005         (tst-tlsmod6.so): Likewise.
5006
5007 2014-05-09  Roland McGrath  <roland@hack.frob.com>
5008
5009         * sysdeps/gnu/unwind-resume.c (libgcc_s_resume): Mark as noreturn.
5010
5011 2014-05-09  Joseph Myers  <joseph@codesourcery.com>
5012
5013         [BZ #16064]
5014         * sysdeps/i386/fpu/fegetenv.c: Include <unistd.h>, <ldsodefs.h>
5015         and <dl-procinfo.h>.
5016         (__fegetenv): Save SSE state in envp->__eip if supported.
5017         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Save SSE state in
5018         envp->__eip if supported.
5019         * sysdeps/i386/fpu/fesetenv.c: Include <unistd.h>, <ldsodefs.h>
5020         and <dl-procinfo.h>.
5021         (__fesetenv): Always set __eip, __cs_selector, __opcode,
5022         __data_offset and __data_selector in environment to 0.  Set SSE
5023         state if supported.
5024         * sysdeps/x86/fpu/Makefile [$(subdir) = math] (tests): Add
5025         test-fenv-sse.
5026         [$(subdir) = math] (CFLAGS-test-fenv-sse.c): Add -msse2
5027         -mfpmath=sse.
5028         * sysdeps/x86/fpu/test-fenv-sse.c: New file.
5029
5030 2014-05-09  Will Newton  <will.newton@linaro.org>
5031
5032         * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize
5033         and libc_relro_required for ARM.
5034         * sysdeps/arm/preconfigure: Regenerate.
5035
5036 2014-05-09  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5037             Stefan Liebler  <stli@linux.vnet.ibm.com>
5038
5039         * config.make.in (enable-lock-elision): New Makefile variable.
5040         * configure.ac: Likewise.
5041         * configure: Regenerate.
5042         * sysdeps/s390/configure.ac:
5043         Add check for gcc transactions support.
5044         * sysdeps/s390/configure: Regenerate.
5045         * nptl/sysdeps/unix/sysv/linux/s390/Makefile: New file.
5046         Build elision files if enabled.
5047         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.c: New file.
5048         Add lock elision support for s390.
5049         * nptl/sysdeps/unix/sysv/linux/s390/elision-conf.h: Likewise.
5050         * nptl/sysdeps/unix/sysv/linux/s390/elision-lock.c: Likewise.
5051         * nptl/sysdeps/unix/sysv/linux/s390/elision-timed.c: Likewise.
5052         * nptl/sysdeps/unix/sysv/linux/s390/elision-trylock.c: Likewise.
5053         * nptl/sysdeps/unix/sysv/linux/s390/elision-unlock.c: Likewise.
5054         * nptl/sysdeps/unix/sysv/linux/s390/force-elision.h: Likewise.
5055         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_cond_lock.c:
5056         Likewise.
5057         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_lock.c:
5058         Likewise.
5059         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_timedlock.c:
5060         Likewise.
5061         * nptl/sysdeps/unix/sysv/linux/s390/pthread_mutex_trylock.c:
5062         Likewise.
5063         * nptl/sysdeps/unix/sysv/linux/s390/lowlevellock.h:
5064         (__lll_timedlock_elision, __lll_lock_elision)
5065         (__lll_unlock_elision, __lll_trylock_elision)
5066         (lll_timedlock_elision, lll_lock_elision)
5067         (lll_unlock_elision, lll_trylock_elision): Add.
5068         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5069         (pthread_mutex_t): Add lock elision support for s390.
5070
5071 2014-05-14  Wilco  <wdijkstr@arm.com>
5072
5073         * sysdeps/arm/fclrexcpt.c: Cleanup.
5074         * sysdeps/arm/fedisblxcpt.c: Cleanup.
5075         * sysdeps/arm/feenablxcpt.c: Cleanup.
5076         * sysdeps/arm/fegetenv.c: Cleanup.
5077         * sysdeps/arm/fegetexcept.c: Cleanup.
5078         * sysdeps/arm/fegetround.c: Cleanup.
5079         * sysdeps/arm/feholdexcpt.c: Cleanup.
5080         * sysdeps/arm/fesetenv.c: Cleanup.
5081         * sysdeps/arm/fesetround.c: Cleanup.
5082         * sysdeps/arm/feupdateenv.c: Cleanup.
5083         * sysdeps/arm/fgetexcptflg.c: Cleanup.
5084         * sysdeps/arm/fraiseexcpt.c: Cleanup.
5085         * sysdeps/arm/fsetexcptflg.c: Cleanup.
5086         * sysdeps/arm/ftestexcept.c: Cleanup.
5087         * sysdeps/arm/get-rounding-mode.h: Cleanup.
5088         * sysdeps/arm/setfpucw.c: Cleanup.
5089
5090 2014-05-09  Will Newton  <will.newton@linaro.org>
5091
5092         * sysdeps/arm/armv7/strcmp.S: New file.
5093         * NEWS: Mention addition of ARMv7 optimized strcmp.
5094
5095 2014-05-08  Roland McGrath  <roland@hack.frob.com>
5096
5097         * Makeconfig ($(common-objpfx)config.status): Fix patsubst uses to
5098         look for %.ac rather than %.in.
5099
5100         * sysdeps/mach/hurd/configure.ac (inhibit_glue): Remove variable.
5101         * sysdeps/unix/sysv/linux/configure.ac: Likewise.
5102         * sysdeps/mach/hurd/configure: Regenerated.
5103         * sysdeps/unix/sysv/linux/configure: Regenerated.
5104
5105         * bits/utsname.h (_UTSNAME_DOMAIN_LENGTH): New macro, set to 0.
5106
5107 2014-05-07  Steve Ellcey  <sellcey@mips.com>
5108
5109         [BZ# 16922]
5110         * sysdeps/mips/sys/asm.h (INT_SUB): Fix definition.
5111         (LONG_SUB): Ditto.
5112         (PTR_SUB): Ditto.
5113
5114 2014-05-07  Andreas Schwab  <schwab@suse.de>
5115
5116         * sysdeps/posix/getaddrinfo.c (gaih_inet): Advance address pointer
5117         when skipping over non-matching result from nscd.
5118
5119 2014-05-07  Ondřej Bílka  <neleai@seznam.cz>
5120
5121         [BZ #16876]
5122         * nptl/sockperf.c (client): Check socket return value.
5123
5124         [BZ #16877]
5125         * nscd/selinux.c (nscd_request_avc_has_perm): Check if there is
5126         nscd security class.
5127
5128 2014-05-06  Roland McGrath  <roland@hack.frob.com>
5129
5130         * sysdeps/unix/sysv/linux/arm/nptl/unwind.h: File moved to ...
5131         * sysdeps/arm/unwind.h: ... here.
5132
5133 2014-05-06  Aurelien Jarno  <aurelien@aurel32.net>
5134
5135         [BZ# 16916]
5136         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h (EFD_SEMAPHORE):
5137         Define.
5138
5139 2014-05-06  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
5140
5141         * sysdeps/powerpc/powerpc64/power7/strncpy.S: New file: Optimization.
5142         * sysdeps/powerpc/powerpc64/multiarch/strncpy.c: New file:
5143         multiarch strncpy for PPC64.
5144         * sysdeps/powerpc/powerpc64/multiarch/strncpy-ppc64.c: New file
5145         * sysdeps/powerpc/powerpc64/multiarch/strncpy-power7.S: New file
5146         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpcpy, stpncpy
5147         multiarch optimizations.
5148         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
5149         (__libc_ifunc_impl_list): Likewise.
5150         * sysdeps/powerpc/powerpc64/power7/stpncpy.S: New file: Optimization.
5151         * sysdeps/powerpc/powerpc64/multiarch/stpncpy.c: New file:
5152         multiarch stpncpy for PPC64.
5153         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-ppc64.c: New file
5154         * sysdeps/powerpc/powerpc64/multiarch/stpncpy-power7.S: New file
5155
5156 2014-05-06  Andreas Schwab  <schwab@suse.de>
5157
5158         [BZ #16912]
5159         * gmon/mcount.c (_MCOUNT_DECL): Use
5160         atomic_compare_and_exchange_bool_acq instead of
5161         catomic_compare_and_exchange_bool_acq.
5162
5163 2014-05-05  Roland McGrath  <roland@hack.frob.com>
5164
5165         * elf/Makefile (others, install-bin): Remove pldd.
5166         (pldd-modules): Variable removed.
5167         ($(objpfx)pldd): Target removed.
5168         * sysdeps/unix/sysv/linux/Makefile [$(subdir) = elf]
5169         (others, install-bin): Append pldd here.
5170         ($(objpfx)pldd): New target.
5171
5172         * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
5173         to 0, so the first #if test emitted later doesn't see it undefined.
5174         (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
5175         * sysdeps/gnu/errlist.c: Regenerated.
5176
5177 2014-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5178
5179         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
5180         [libc_hidden_builtin_def]: Define to empty value.
5181         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S:
5182         [libc_hidden_builtin_def]: Likewise.
5183         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S:
5184         [libc_hidden_builtin_def]: Likewise.
5185         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S:
5186         [libc_hidden_builtin_def]: Likewise.
5187         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c (memcpy): Redefined to
5188         __redirect_memcpy and define ifunc as default hidden symbol.
5189         * sysdeps/powerpc/powerpc64/multiarch/memset.c (memset): Likewise.
5190         * sysdeps/powerpc/powerpc64/multiarch/strlen.c (strlen): Likewise.
5191
5192 2014-05-04  Adam Conrad  <adconrad@0c3.net>
5193
5194         * locale/iso-4217.def: Reintroduce XDR currency.
5195
5196 2014-05-04  Allan McRae  <allan@archlinux.org>
5197
5198         * po/eo.po: Update Esperanto translation from translation project.
5199
5200 2014-05-02  Carlos O'Donell  <carlos@redhat.com>
5201
5202         * sysdeps/x86_64/multiarch/init-arch.h: Define FEATURE_INDEX_1 to 0,
5203         and FEATURE_INDEX_MAX to 1.
5204         [!__ASSEMBLER__]: Remove anonymous enum for FEATURE_INDEX_*.
5205
5206 2014-05-01  Steve Ellcey  <sellcey@mips.com>
5207
5208         * iconvdata/ansi_x3.110.c (ONE_DIRECTION): Define.
5209         * iconvdata/armscii-8.c (ONE_DIRECTION): Define.
5210         * iconvdata/big5.c (ONE_DIRECTION): Define.
5211         * iconvdata/big5hkscs.c (ONE_DIRECTION): Define.
5212         * iconvdata/cp1255.c (ONE_DIRECTION): Define.
5213         * iconvdata/cp1258.c (ONE_DIRECTION): Define.
5214         * iconvdata/cp932.c (ONE_DIRECTION): Define.
5215         * iconvdata/euc-cn.c (ONE_DIRECTION): Define.
5216         * iconvdata/euc-jisx0213.c (ONE_DIRECTION): Define.
5217         * iconvdata/euc-jp-ms.c (ONE_DIRECTION): Define.
5218         * iconvdata/euc-jp.c (ONE_DIRECTION): Define.
5219         * iconvdata/euc-kr.c (ONE_DIRECTION): Define.
5220         * iconvdata/euc-tw.c (ONE_DIRECTION): Define.
5221         * iconvdata/gb18030.c (ONE_DIRECTION): Define.
5222         * iconvdata/gbbig5.c (ONE_DIRECTION): Define.
5223         * iconvdata/gbgbk.c (ONE_DIRECTION): Define.
5224         * iconvdata/gbk.c (ONE_DIRECTION): Define.
5225         * iconvdata/ibm1364.c (ONE_DIRECTION): Define.
5226         * iconvdata/ibm930.c (ONE_DIRECTION): Define.
5227         * iconvdata/ibm932.c (ONE_DIRECTION): Define.
5228         * iconvdata/ibm933.c (ONE_DIRECTION): Define.
5229         * iconvdata/ibm935.c (ONE_DIRECTION): Define.
5230         * iconvdata/ibm937.c (ONE_DIRECTION): Define.
5231         * iconvdata/ibm939.c (ONE_DIRECTION): Define.
5232         * iconvdata/ibm943.c (ONE_DIRECTION): Define.
5233         * iconvdata/iso-2022-cn-ext.c (ONE_DIRECTION): Define.
5234         * iconvdata/iso-2022-cn.c (ONE_DIRECTION): Define.
5235         * iconvdata/iso-2022-jp-3.c (ONE_DIRECTION): Define.
5236         * iconvdata/iso-2022-jp.c (ONE_DIRECTION): Define.
5237         * iconvdata/iso-2022-kr.c (ONE_DIRECTION): Define.
5238         * iconvdata/iso646.c (ONE_DIRECTION): Define.
5239         * iconvdata/iso8859-1.c (ONE_DIRECTION): Define.
5240         * iconvdata/iso_11548-1.c (ONE_DIRECTION): Define.
5241         * iconvdata/iso_6937-2.c (ONE_DIRECTION): Define.
5242         * iconvdata/iso_6937.c (ONE_DIRECTION): Define.
5243         * iconvdata/johab.c (ONE_DIRECTION): Define.
5244         * iconvdata/shift_jisx0213.c (ONE_DIRECTION): Define.
5245         * iconvdata/sjis.c (ONE_DIRECTION): Define.
5246         * iconvdata/t.61.c (ONE_DIRECTION): Define.
5247         * iconvdata/tcvn5712-1.c (ONE_DIRECTION): Define.
5248         * iconvdata/tscii.c (ONE_DIRECTION): Define.
5249         * iconvdata/uhc.c (ONE_DIRECTION): Define.
5250         * iconvdata/unicode.c (ONE_DIRECTION): Define.
5251         * iconvdata/utf-16.c (ONE_DIRECTION): Define.
5252         * iconvdata/utf-32.c (ONE_DIRECTION): Define.
5253         * iconvdata/utf-7.c (ONE_DIRECTION): Define.
5254
5255 2014-05-01  Roland McGrath  <roland@hack.frob.com>
5256
5257         * libio/libioP.h [!_IO_USE_OLD_IO_FILE && !_G_IO_NO_BACKWARD_COMPAT]
5258         (_IO_JUMPS_OFFSET): Define to 0.
5259
5260         * nptl/sysdeps/pthread/bits/libc-lock.h
5261         [_LIBC && (!NOT_IN_libc || IS_IN_libpthread)]
5262         (__libc_lock_define_initialized_recursive): Always define using
5263         initializer.  Modern compilers treat uninitialized (implicit zero) and
5264         explicit zero initializers the same (i.e. put the datum in bss).
5265
5266 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5267
5268         * nscd/nscd-client.h: Include <string.h>.
5269
5270 2014-05-01  David S. Miller  <davem@davemloft.net>
5271
5272         [BZ #16885]
5273         * sysdeps/sparc/sparc64/strcmp.S: Fix end comparison handling when
5274         multiple zero bytes exist at the end of a string.
5275         Reported by Aurelien Jarno <aurelien@aurel32.net>
5276
5277         * string/test-strcmp.c (check): Add explicit test for situations where
5278         there are multiple zero bytes after the first.
5279
5280 2014-05-01  Andreas Schwab  <schwab@linux-m68k.org>
5281
5282         [BZ #16890]
5283         * stdio-common/vfprintf.c (process_arg) [%p]: Mark string as wide
5284         when compiling wprintf.
5285         * stdio-common/tstdiomisc.c (t3): New function.
5286         (main): Call it.
5287
5288 2014-05-01  Steve Ellcey  <sellcey@mips.com>
5289
5290         * intl/iconv/skeleton.c (ONE_DIRECTION): Remove define.
5291         * iconv/gconv_simple.c (ONE_DIRECTION): Define.
5292         * iconvdata/8bit-gap.c (ONE_DIRECTION): Ditto.
5293         * iconvdata/8bit-generic.c (ONE_DIRECTION): Ditto.
5294
5295 2014-05-01  Steve Ellcey  <sellcey@mips.com>
5296
5297         * stdlib/longlong.h: Updated from GCC.
5298
5299 2014-05-01  Will Newton  <will.newton@linaro.org>
5300             Bernard Ogden  <bernie.ogden@linaro.org>
5301
5302         * NEWS: Update fixed bug list.
5303
5304         [BZ #15119]
5305         * sysdeps/unix/sysv/linux/arm/nptl/lowlevellock.c: Remove file.
5306
5307 2014-04-30  David S. Miller  <davem@davemloft.net>
5308
5309         * sysdeps/sparc/fpu/fenv_private.h (HAVE_RM_CTX): Define.
5310         (libc_feholdexcept_setround_sparc_ctx): New function.
5311         (libc_fesetenv_sparc_ctx): Likewise.
5312         (libc_feupdateenv_sparc_ctx): Likewise.
5313         (libc_feholdsetround_sparc_ctx): Likewise.
5314         (libc_feholdexcept_setround_ctx): Define.
5315         (libc_feholdexcept_setroundf_ctx): Likewise.
5316         (libc_feholdexcept_setroundl_ctx): Likewise.
5317         (libc_fesetenv_ctx): Likewise.
5318         (libc_fesetenvf_ctx): Likewise.
5319         (libc_fesetenvl_ctx): Likewise.
5320         (libc_feupdateenv_ctx): Likewise.
5321         (libc_feupdateenvf_ctx): Likewise.
5322         (libc_feupdateenvl_ctx): Likewise.
5323         (libc_feresetround_ctx): Likewise.
5324         (libc_feresetroundf_ctx): Likewise.
5325         (libc_feresetroundl_ctx): Likewise.
5326         (libc_feholdsetround_ctx): Likewise.
5327         (libc_feholdsetroundf_ctx): Likewise.
5328         (libc_feholdsetroundl_ctx): Likewise.
5329
5330         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
5331         with __USE_GNU instead of XOPEN cpp guards.
5332
5333         * sysdeps/sparc/bits/string.h (_STRING_ARCH_unaligned): Define to
5334         0.
5335
5336         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (EMT_TAGOVF): Protect
5337         with XOPEN cpp guards.
5338
5339 2014-04-30  Julian Brown  <julian@codesourcery.com>
5340
5341         [BZ #16888]
5342         * sysdeps/arm/dl-machine.h (elf_machine_rela): Fix R_ARM_IRELATIVE
5343         handling.
5344
5345 2014-04-30  Joseph Myers  <joseph@codesourcery.com>
5346
5347         [BZ #9894]
5348         * sysdeps/unix/sysv/linux/configure.ac (LIBC_LINUX_VERSION):
5349         Change to 2.6.32.
5350         (arch_minimum_kernel): Change all 2.6.16 settings to 2.6.32.
5351         * sysdeps/unix/sysv/linux/configure: Regenerated.
5352         * sysdeps/unix/sysv/linux/microblaze/configure.ac: Remove file.
5353         * sysdeps/unix/sysv/linux/microblaze/configure: Likewise.
5354         * sysdeps/unix/sysv/linux/tile/configure.ac: Likewise.
5355         * sysdeps/unix/sysv/linux/tile/configure: Likewise.
5356         * README: Update reference to required Linux kernel version.
5357         * manual/install.texi (Linux): Update reference to required Linux
5358         kernel headers version.
5359         * INSTALL: Regenerated.
5360
5361         * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow
5362         header inclusion.
5363         [POSIX] (limits.h): Likewise.
5364         [POSIX] (math.h): Likewise.
5365         [POSIX] (sys/wait.h): Likewise.
5366         * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require
5367         function.
5368         [POSIX] (stddef.h): Do not allow header inclusion.
5369
5370 2014-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5371
5372         * sysdeps/generic/symbol-hacks.h (memcpy): Add internal alias.
5373
5374 2014-04-30  Yang Yingliang  <yangyingliang@huawei.com>
5375
5376         * nptl/pthread_cond_broadcast.c (__pthread_cond_broadcast):
5377         Return immediately after lll_futex_wake.
5378
5379 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5380
5381         [BZ #16791]
5382         * nscd/nscd-client.h (datahead_init_common): Initialize entire
5383         structure.
5384         (datahead_init_pos): Call datahead_init_common early.
5385         (datahead_init_neg): Likewise.
5386
5387         * nscd/nscd-client.h (datahead_init_common, datahead_init_pos,
5388         datahead_init_neg): New functions.
5389         * nscd/aicache.c (addhstaiX): Use them.
5390         * nscd/grpcache.c (cache_addgr): Likewise.
5391         * nscd/hstcache.c (cache_addhst): Likewise.
5392         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5393         * nscd/netgroupcache.c (do_notfound): Likewise.
5394         (addgetnetgrentX): Likewise.
5395         (addinnetgrX): Likewise.
5396         * nscd/pwdcache.c (cache_addpw): Likewise.
5397         * nscd/servicescache.c (cache_addserv): Likewise.
5398
5399 2014-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5400             Atsushi Onoe  <atsushi@onoe.org>
5401
5402         [BZ #14308]
5403         [BZ #12994]
5404         [BZ #13651]
5405         * resolv/res_query.c (__libc_res_nsearch): Return if at least
5406         one response is valid.
5407         * resolv/res_send.c (send_dg): Check for validity of other
5408         response if the current response is a referral.
5409
5410 2014-04-29  Steve Ellcey  <sellcey@mips.com>
5411
5412         * iconv/skeleton.c (ONE_DIRECTION): Set default value if not set.
5413
5414 2014-04-29  Stefan Liebler  <stli@linux.vnet.ibm.com>
5415
5416         [BZ #16823]
5417         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl):
5418         Always divide by positive zero when computing -Inf result.
5419         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
5420         * sysdeps/ieee754/flt-32/s_log1pf.c (__log1pf): Likewise.
5421
5422 2014-04-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5423
5424         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Do not update
5425         FPSCR if value do not change.
5426         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
5427         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Likewise.
5428         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Likewise.
5429         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
5430         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Likewise.
5431         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_reg_to_exceptions): New helper
5432         function.
5433
5434 2014-05-29  Carlos O'Donell  <carlos@systemhalted.org>
5435
5436         * sysdeps/hppa: Move directory from ports/sysdeps/hppa.
5437         * sysdeps/unix/sysv/linux/hppa: Move directory from
5438         ports/systeps/unix/sysv/linux/hppa.
5439         * README: Update listing for hppa-*-linux-gnu.
5440
5441 2014-04-28  Ondřej Bílka  <neleai@seznam.cz>
5442
5443         [BZ #16754]
5444         * manual/stdio.texi (Hook functions): Fix types of stream hook
5445         functions.
5446         [BZ #16854]
5447         * socket/sys/socket.h: Fix typo in comment.
5448
5449 2014-04-28  Wilco  <wdijkstr@arm.com>
5450
5451         * sysdeps/arm/fenv_private.h: New file.
5452         * sysdeps/arm/math_private.h: New file.
5453         * sysdeps/arm/fpu_control.h: Add _FPU_MASK_NCZV and _FPU_MASK_EXCEPT.
5454
5455 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
5456
5457         * sysdeps/x86/bits/link.h (La_x86_64_regs): Replace __int128
5458         with __int128_t.
5459         (La_x86_64_retval): Likewise.
5460
5461 2014-04-24  Ian Bolton  <ian.bolton@arm.com>
5462
5463         * sysdeps/aarch64/fpu/fclrexcpt.c (feclearexcept): Don't write to
5464         fpsr if value didn't change.
5465         * sysdeps/aarch64/fpu/fedisblxcpt.c (fedisableexcept): Don't write
5466         to fpcr if value didn't change.
5467         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Likewise.
5468         * sysdeps/aarch64/fpu/feholdexcpt.c (feholdexcept): Don't write to
5469         fpsr or fpcr if value didn't change.
5470         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
5471         * sysdeps/aarch64/fpu/fesetround.c (fesetround): Don't write to
5472         fpcr if value didn't change.
5473         * sysdeps/aarch64/fpu/fsetexcptflg.c (fesetexceptflag): Don't write
5474         to fpsr if value didn't change.
5475
5476 2014-02-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5477
5478         * nptl/tst-sem3.c: Use test-skeleton.c
5479         (main): Rename to do_test.  Use return instead of
5480         exit.
5481         * nptl/tst-sem4.c: Use test-skeleton.c
5482         (main): Rename to do_test.
5483
5484 2014-04-22  David S. Miller  <davem@davemloft.net>
5485
5486         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h
5487         (struct sigaction): New struct member __glibc_reserved0, change
5488         type of sa_flags to int.
5489
5490 2014-04-22  Yufeng Zhang  <yufeng.zhang@arm.com>
5491
5492         * stdlib/longlong.h (count_leading_zeros, count_trailing_zeros)
5493         (COUNT_LEADING_ZEROS_0): Define for AArch64.
5494
5495 2014-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5496
5497         * nptl/sysdeps/unix/sysv/linux/sem_trywait.c: Include atomic.h.
5498         * nptl/sysdeps/unix/sysv/linux/sem_wait.c: Likewise.
5499
5500 2014-04-22  Will Newton  <will.newton@linaro.org>
5501             Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
5502
5503         * sysdeps/aarch64/__longjmp.S: Include stap-probe.h.
5504         (__longjmp): Add longjmp and longjmp_target SystemTap
5505         probes.
5506         * sysdeps/aarch64/setjmp.S: Include stap-probe.h.
5507         (__sigsetjmp): Add setjmp SystemTap probe.
5508
5509 2014-04-17  Carlos O'Donell  <carlos@redhat.com>
5510
5511         * manual/intro.texi (Roadmap to the manual): Sort chapter listing to
5512         match manual order.
5513
5514 2014-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5515
5516         * nptl/sysdeps/unix/sysv/linux/powerpc/pthread_once.c: Remove file.
5517
5518         * sysdeps/powerpc/fpu/fenv_private.h
5519         (libc_feholdexcept_setroundl_ctx): Define to
5520         libc_feholdexcept_setround_ppc_ctx.
5521         (libc_fesetenvl_ctx): Define to libc_fesetenv_ppc_ctx.
5522         (libc_feholdsetroundl_ctx): Define to libc_feholdsetround_ppc_ctx.
5523         (libc_feresetroundl_ctx): Define to libc_feresetround_ppc_ctx.
5524         (libc_feupdateenvl_ctx): libc_feupdateenv_ppc_ctx.
5525
5526 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
5527
5528         * sysdeps/aarch64/math-tests.h: New file.
5529
5530 2014-04-17  Sihai Yao  <sihai.ysh@alibaba-inc.com>
5531
5532         * sysdeps/x86_64/multiarch/ifunc-defines.sym (COMMON_CPUID_INDEX_7):
5533         New.
5534         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5535         Check and set bit_AVX2_Usable.
5536         * sysdeps/x86_64/multiarch/init-arch.h (bit_AVX2_Usable): New
5537         macro.
5538         (bit_AVX2): Likewise.
5539         (index_AVX2_Usable): Likewise.
5540         (CPUID_AVX2): Likewise.
5541         (HAS_AVX2): Likewise.
5542
5543 2014-04-17  Will Newton  <will.newton@linaro.org>
5544
5545         * manual/setjmp.texi (System V contexts): Add note that
5546         calling setcontext on a context created by a call to a
5547         signal handler is undefined.  Update text to note that
5548         setcontext from a signal handler is possible but not
5549         recommended.
5550
5551         [BZ #16629]
5552         * stdlib/tst-setcontext.c: Include signal.h.
5553         (main): Check that the signal stack before and
5554         after swapcontext is the same.
5555
5556         * sysdeps/unix/sysv/linux/aarch64/setcontext.S (__setcontext):
5557         Re-implement to restore registers in user code and avoid
5558         rt_sigreturn system call.
5559
5560 2014-04-17  Wilco  <wdijkstr@arm.com>
5561
5562         * sysdeps/arm/math-tests.h: New file: Set ARM math-test settings.
5563         * sysdeps/generic/math-tests.h: Add macro (EXCEPTION_ENABLE_SUPPORTED).
5564         * math/test-fenv.c: Skip exception trap tests on targets which only
5565         support non-stop mode.
5566
5567 2014-04-17  Ian Bolton  <ian.bolton@arm.com>
5568             Wilco Dijkstra  <wilco.dijkstra@arm.com>
5569
5570         * sysdeps/aarch64/fpu/math_private.h (HAVE_RM_CTX)
5571         (libc_feholdsetround_aarch64_ctx)
5572         (libc_feholdsetround_ctx, libc_feholdsetroundf_ctx)
5573         (libc_feholdsetroundl_ctx, libc_feresetround_aarch64_ctx)
5574         (libc_feresetround_ctx, libc_feresetroundf_ctx)
5575         (libc_feresetroundl_ctx, libc_feresetround_noex_aarch64_ctx)
5576         (libc_feresetround_noex_ctx, libc_feresetround_noexf_ctx)
5577         (libc_feresetround_noexl_ctx): Define.
5578
5579 2014-04-16  Richard Henderson  <rth@redhat.com>
5580
5581         * sysdeps/unix/sysv/linux/alpha/nptl/pthread_once.c: Remove.
5582
5583         * sysdeps/alpha/Makefile [debug] (CFLAGS-backtrace.c): Enable
5584         unwind tables.
5585
5586         * sysdeps/unix/alpha/sysdep.h (__pointer_chk_guard): Remove
5587         const from the non-libc, non-ldso copy.
5588
5589         * sysdeps/alpha/libm-test-ulps: Regenerate.
5590
5591 2014-04-16  Ian Bolton  <ian.bolton@arm.com>
5592             Wilco Dijkstra  <wilco.dijkstra@arm.com>
5593
5594         * sysdeps/aarch64/fpu/math_private.h: New file.
5595
5596 2014-04-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
5597
5598         * sysdeps/aarch64/libm-test-ulps: Regenerate.
5599
5600 2014-04-16  Igor Zamyatin  <igor.zamyatin@intel.com>
5601
5602         * sysdeps/x86_64/bits/link.h (La_x86_64_regs): Add lr_bnd.
5603         (La_x86_64_retval): Add lrv_bnd0 and lrv_bnd1.
5604         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Save
5605         Intel MPX bound registers before _dl_profile_fixup.
5606         * sysdeps/x86_64/dl-trampoline.h: Restore Intel MPX bound
5607         registers after _dl_profile_fixup.  Save and restore bound
5608         registers bnd0/bnd1 when calling _dl_call_pltexit.
5609         * sysdeps/x86_64/link-defines.sym (BND_SIZE): New.
5610         (LR_BND_OFFSET): Likewise.
5611         (LRV_BND0_OFFSET): Likewise.
5612         (LRV_BND1_OFFSET): Likewise.
5613
5614 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5615
5616         * sysdeps/mach/hurd/tls.h (dtv, dtv_t, tcbhead_t): Move declarations
5617         to...
5618         * sysdeps/mach/hurd/i386/tls.h: ... here.
5619         (tcbhead_t): Add multiple_threads, sysinfo, stack_guard,
5620         pointer_guard, gscope_flag, private_futex, __private_tm, __private_ss
5621         fields.
5622
5623 2014-04-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5624
5625         * sysdeps/mach/munmap.c (__munmap): Return EINVAL if `addr' is 0.
5626
5627 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
5628
5629         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
5630
5631 2014-04-16  Stefan Liebler  <stli@linux.vnet.ibm.com>
5632
5633         [BZ #14770]
5634         * sysdeps/s390/configure.ac: Check for Binutils >= 2.24.
5635         * sysdeps/s390/configure: Regenerate.
5636
5637         [BZ #16824]
5638         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l):
5639         Set round-to-nearest internally to reduce error accumulation.
5640
5641 2014-04-16  Alan Modra  <amodra@gmail.com>
5642
5643         [BZ #16740]
5644         [BZ #16619]
5645         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Rewrite.
5646         * math/libm-test.inc (frexp_test_data): Add tests.
5647         * NEWS: Update fixed bug list.
5648
5649 2014-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5650
5651         * benchtests/Makefile: Depend on libraries in build directory.
5652         (bench-math): Separate out math tests.
5653         (bench-pthread): Separate out pthread tests.
5654         (bench): Include math and pthread tests.
5655
5656 2014-04-14  Carlos O'Donell  <carlos@redhat.com>
5657
5658         [BZ #16831]
5659         * csu/libc-start.c (LIBC_START_MAIN) [!SHARED]: Call
5660         _dl_debug_initialize.
5661
5662         * configure.ac: Remove SELinux header check.
5663         * configure: Regenerate.
5664         * nscd/selinux.c (perms): Array of const char* to permission names.
5665         (nscd_request_avc_has_perm): Call security_deny_unknown to find
5666         default policy. Call string_to_security_class and string_to_av_perm to
5667         translate strings. Enforce default policy and call avs_has_perm with
5668         results of translated strings.
5669
5670 2014-04-13  David S. Miller  <davem@davemloft.net>
5671
5672         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5673
5674 2014-04-12  Allan McRae  <allan@archlinux.org>
5675
5676         [BZ #16838]
5677         * manual/string.texi (Collation Functions): Fix qsort argument
5678         order in example.
5679         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5680
5681 2014-04-11  Chris Metcalf  <cmetcalf@tilera.com>
5682
5683         * math/test-fenv-preserve.c [FE_ALL_EXCEPT == 0] (do_test):
5684         Make the test a no-op if there are no exceptions defined.
5685
5686 2014-04-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
5687
5688         * elf/Makefile (tests): make tst-dlopen-aout conditional on
5689         enable-hardcoded-path-in-tests
5690
5691 2014-04-11  Will Newton  <will.newton@linaro.org>
5692
5693         * benchtests/Makefile (extra-objs): Add json-lib.o.
5694         (bench-func): Tidy up JSON output.
5695         * benchtests/bench-skeleton.c: Include json-lib.h.
5696         (main): Use JSON library functions to do output of
5697         benchmark results.
5698         * benchtests/bench-timing-type.c (main): Output the
5699         timing type simply, leaving formatting to the user.
5700         * benchtests/json-lib.c: New file.
5701         * benchtests/json-lib.h: Likewise.
5702
5703 2014-04-11  Torvald Riegel  <triegel@redhat.com>
5704
5705         [BZ #15215]
5706         * nptl/sysdeps/unix/sysv/linux/sparc/pthread_once.c: Moved to ...
5707         * nptl/sysdeps/unix/sysv/linux/pthread_once.c: ... here.  Add missing
5708         memory barriers.  Add comments.
5709         * sysdeps/unix/sysv/linux/aarch64/nptl/pthread_once.c: Remove file.
5710         * sysdeps/unix/sysv/linux/arm/nptl/pthread_once.c: Remove file.
5711         * sysdeps/unix/sysv/linux/ia64/nptl/pthread_once.c: Remove file.
5712         * sysdeps/unix/sysv/linux/m68k/nptl/pthread_once.c: Remove file.
5713         * sysdeps/unix/sysv/linux/mips/nptl/pthread_once.c: Remove file.
5714         * sysdeps/unix/sysv/linux/tile/nptl/pthread_once.c: Remove file.
5715
5716 2014-04-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
5717
5718         * sysdeps/s390/s390-32/configure.ac: Unify file with ...
5719         * sysdeps/s390/s390-64/configure.ac: ... this ...
5720         * sysdeps/s390/configure.ac: ... to here.
5721         * sysdeps/s390/s390-32/configure: Delete file.
5722         * sysdeps/s390/s390-64/configure: Delete file.
5723         * sysdeps/s390/configure: Regenerate.
5724
5725 2014-04-11  Joseph Anthony Pasquale Holsten  <joseph@josephholsten.com>
5726
5727         * resolv/res_query.c (__libc_res_nsearch): Fix typo in comment.
5728
5729 2014-04-11  Will Newton  <will.newton@linaro.org>
5730
5731         * malloc/malloc.c [!MALLOC_DEBUG]: #define MALLOC_DEBUG
5732         to zero if it is not defined elsewhere.  (mtrim): Test
5733         the value of MALLOC_DEBUG with #if rather than #ifdef.
5734
5735 2014-04-10 Torvald Riegel  <triegel@redhat.com>
5736
5737         * benchtests/pthread_once-inputs: New file.
5738         * benchtests/pthread_once-source.c: New file.
5739         * benchtests/README: Update documentation.
5740
5741 2014-04-09  Igor Zamyatin  <igor.zamyatin@intel.com>
5742             H.J. Lu  <hongjiu.lu@intel.com>
5743
5744         * config.h.in (HAVE_MPX_SUPPORT): New #undef.
5745         * sysdeps/x86_64/configure.ac: Set HAVE_MPX_SUPPORT.
5746         * sysdeps/x86_64/configure: Regenerated.
5747         * sysdeps/x86_64/dl-trampoline.S (REGISTER_SAVE_AREA): New
5748         macro.
5749         (REGISTER_SAVE_RAX): Likewise.
5750         (REGISTER_SAVE_RCX): Likewise.
5751         (REGISTER_SAVE_RDX): Likewise.
5752         (REGISTER_SAVE_RSI): Likewise.
5753         (REGISTER_SAVE_RDI): Likewise.
5754         (REGISTER_SAVE_R8): Likewise.
5755         (REGISTER_SAVE_R9): Likewise.
5756         (REGISTER_SAVE_BND0): Likewise.
5757         (REGISTER_SAVE_BND1): Likewise.
5758         (REGISTER_SAVE_BND2): Likewise.
5759         (_dl_runtime_resolve): Use them.  Save and restore Intel MPX
5760         bound registers when calling _dl_fixup.
5761
5762 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5763
5764         * bits/string.h (_STRING_ARCH_unaligned): Define it to 0.
5765         * crypt/sha256.c (_STRING_ARCH_unaligned): Check its value instead
5766         of its definition.
5767         * iconv/gconv_simple.c (_STRING_ARCH_unaligned): Likewise.
5768         * iconv/loop.c (_STRING_ARCH_unaligned): Likewise.
5769         * iconv/skeleton.c (_STRING_ARCH_unaligned): Likewise.
5770         * nscd/nscd_gethst_r.c (_STRING_ARCH_unaligned): Likewise.
5771         * nscd/nscd_getserv_r.c (_STRING_ARCH_unaligned): Likewise.
5772         * nscd/nscd_helper.c (_STRING_ARCH_unaligned): Likewise.
5773         * resolv/res_send.c (_STRING_ARCH_unaligned): Likewise.
5774
5775 2014-04-09  Peter Brett  <peter@peter-b.co.uk>
5776
5777         [BZ #15514]
5778         * sysdeps/posix/pathconf.c (__pathconf): Use statvfs64() for
5779         pathconf(_PC_NAME_MAX).
5780
5781 2014-04-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5782
5783         * nptl/sysdeps/pthread/pthread.h (__PTHREAD_MUTEX_HAVE_ELISION):
5784         Remove macro usage.
5785         (__PTHREAD_SPINS): Move definition to ...
5786         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
5787         (__PTHREAD_SPINS): ... here.
5788         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
5789         (__PTHREAD_SPIN): Likewise.
5790         * nptl/sysdeps/unix/sysv/linux/sh/bits/pthreadtypes.h
5791         (__PTHREAD_SPIN): Likewise.
5792         * nptl/sysdeps/unix/sysv/linux/sparc/bits/pthreadtypes.h
5793         (__PTHREAD_SPIN): Likewise.
5794         * nptl/sysdeps/unix/sysv/linux/x86/bits/pthreadtypes.h
5795         (__PTHREAD_SPIN): Likewise.
5796         * sysdeps/unix/sysv/linux/aarch64/nptl/bits/pthreadtypes.h
5797         (__PTHREAD_SPIN): Likewise.
5798         * sysdeps/unix/sysv/linux/alpha/nptl/bits/pthreadtypes.h
5799         (__PTHREAD_SPIN): Likewise.
5800         * sysdeps/unix/sysv/linux/arm/nptl/bits/pthreadtypes.h
5801         (__PTHREAD_SPIN): Likewise.
5802         * sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h
5803         (__PTHREAD_SPIN): Likewise.
5804         * sysdeps/unix/sysv/linux/m68k/nptl/bits/pthreadtypes.h
5805         (__PTHREAD_SPIN): Likewise.
5806         * sysdeps/unix/sysv/linux/microblaze/nptl/bits/pthreadtypes.h
5807         (__PTHREAD_SPIN): Likewise.
5808         * sysdeps/unix/sysv/linux/mips/nptl/bits/pthreadtypes.h
5809         (__PTHREAD_SPIN): Likewise.
5810         * sysdeps/unix/sysv/linux/tile/nptl/bits/pthreadtypes.h
5811         (__PTHREAD_SPIN): Likewise.
5812
5813         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: New file.
5814         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: new file.
5815         * sysdeps/powerpc/powerpc64/power6x/multiarch/Implies: New file.
5816         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove multiarch
5817         imply folder.
5818         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Likewise.
5819         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: Likewise.
5820         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: Likewise.
5821         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: Adjust
5822         correct imply path.
5823         * sysdeps/powerpc/powerpc64/power7/strncat.S (STRLEN): Define correct
5824         strlen symbol for non multi-arch builds.
5825         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (__isnan): Add
5826         missing hidden_def and weak_alias.
5827
5828 2014-04-08  Carlos O'Donell  <carlos@redhat.com>
5829
5830         * manual/ipc.texi (sem_close): AC-unsafe because of aculock.
5831
5832 2014-04-07  Will Newton  <will.newton@linaro.org>
5833
5834         * string/basename.c [HAVE_CONFIG_H]: Remove #ifdef and
5835         and contents.  [!_LIBC] Remove #ifndef and contents.
5836         (basename): Use ANSI prototype.  [_LIBC] Remove #idef.
5837         * string/memccpy.c (__memccpy): Use ANSI prototype.
5838         * string/memfrob.c (memfrob): Likewise.
5839         * string/strcoll.c (STRCOLL): Likewise.
5840         * string/strlen.c (strlen): Likewise.
5841         * string/strtok.c (STRTOK): Likewise.
5842         * string/strcat.c: Remove unused #include of memcopy.h.
5843         (strcat): Use ANSI prototype.
5844         * string/strchr.c: Remove unused #include of memcopy.h.
5845         (strchr): Use ANSI prototype.
5846         * string/strcmp.c: Remove unused #include of memcopy.h.
5847         (strcmp): Use ANSI prototype.
5848         * string/strcpy.c: Remove unused #include of memcopy.h.
5849         (strcpy): Use ANSI prototype.
5850
5851 2014-04-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5852
5853         * Makeconfig (CPPFLAGS): Add config-extra-cppflags to list.
5854         * config.make.in (config-extra-cppflags): Set it from
5855         libc_extra_cppflags.
5856         * configure.ac (libc_extra_cflags): Make it accumulate over
5857         configure fragments.
5858         (libc_extra_cppflags): New flag.
5859         * configure. Regenerate.
5860         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac
5861         (libc_cv_ppc64_def_call_elf): Define it to yes if compiler does
5862         not set _CALL_ELF and add -D_CALL_ELF=1 to libc_extra_cppflags.
5863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Regenerate.
5864
5865         [BZ #16815]
5866         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (__nearbyint): Fix
5867         result for FE_DOWNWARD rounding mode.
5868         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S (__nearbyintf):
5869         Likewise.
5870         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5871
5872 2014-04-04  Chris Metcalf  <cmetcalf@tilera.com>
5873
5874         * sysdeps/tile/dl-runtime.c (_dl_unmap): Fix cut-and-paste bug
5875         in function argument name.
5876
5877 2014-04-03  David Svoboda  <svoboda@cert.org>
5878
5879         [BZ #5666]
5880         * manual/stdio.texi (Line-Oriented Input): Document buffer allocation
5881         explicitly.
5882
5883 2014-04-03  Roland McGrath  <roland@hack.frob.com>
5884
5885         * elf/dl-unmap-segments.h: New file.
5886         * sysdeps/generic/ldsodefs.h
5887         (DL_UNMAP): Use _dl_unmap_segments in place of __munmap.
5888         * elf/dl-close.c: Include <dl-unmap-segments.h>.
5889         * elf/dl-fptr.c: Likewise.
5890         (_dl_unmap): Use _dl_unmap_segments in place of __munmap.
5891         * sysdeps/aarch64/tlsdesc.c: Likewise.
5892         * sysdeps/arm/tlsdesc.c: Likewise.
5893         * sysdeps/i386/tlsdesc.c: Likewise.
5894         * sysdeps/tile/dl-runtime.c: Likewise.
5895         * sysdeps/x86_64/tlsdesc.c: Likewise.
5896         * elf/dl-load.h: New file.
5897         * elf/dl-load.c: Include it.
5898         (MAP_FILE, MAP_COPY, MAP_BASE_ADDR):
5899         Macros moved to dl-load.h.
5900         (ELF_PREFERRED_ADDRESS_DATA, ELF_PREFERRED_ADDRESS): Likewise.
5901         (_dl_map_object_from_fd): Type 'struct loadcmd' moved to dl-load.h.
5902         Use _dl_unmap_segments in place of __munmap.
5903         Break out segment-mapping loop into ...
5904         * elf/dl-map-segments.h (_dl_map_segments): ... here, in new file.
5905
5906 2014-04-03  Will Newton  <will.newton@linaro.org>
5907
5908         * elf/dl-lookup.c (do_lookup_x): Remove comment
5909         referring to nested function and move variable
5910         declarations down to before first use.
5911
5912 2014-04-02  Joseph Myers  <joseph@codesourcery.com>
5913
5914         [BZ #16799]
5915         [BZ #16800]
5916         * math/s_catan.c (__catan): Avoid passing -0 denominator to atan2
5917         with 0 numerator.
5918         * math/s_catanf.c (__catanf): Likewise.
5919         * math/s_catanh.c (__catanh): Likewise.
5920         * math/s_catanhf.c (__catanhf): Likewise.
5921         * math/s_catanhl.c (__catanhl): Likewise.
5922         * math/s_catanl.c (__catanl): Likewise.
5923         * sysdeps/ieee754/flt-32/e_logf.c (__ieee754_logf): Always divide
5924         by positive zero when computing -Inf result.
5925         * math/libm-test.inc (catan_test): Use ALL_RM_TEST.
5926         (catanh_test): Likewise.
5927         * sysdeps/i386/fpu/libm-test-ulps: Update.
5928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5929
5930         [BZ #16789]
5931         * math/s_clog.c (__clog): Use math_force_eval to ensure underflow
5932         instead of using underflowing value in computing result.
5933         * math/s_clog10.c (__clog10): Likewise.
5934         * math/s_clog10f.c (__clog10f): Likewise.
5935         * math/s_clog10l.c (__clog10l): Likewise.
5936         * math/s_clogf.c (__clogf): Likewise.
5937         * math/s_clogl.c (__clogl): Likewise.
5938         * math/libm-test.inc (clog_test): Use ALL_RM_TEST.
5939         (clog10_test): Likewise.
5940         * sysdeps/i386/fpu/libm-test-ulps: Update.
5941         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5942
5943 2014-04-02  Alan Modra  <amodra@gmail.com>
5944
5945         [BZ #16739]
5946         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Correct
5947         output when value is near a power of two.  Use int64_t for lx and
5948         remove casts.  Use decimal rather than hex exponent constants.
5949         Don't use long double multiplication when double will suffice.
5950         * math/libm-test.inc (nextafter_test_data): Add tests.
5951         * NEWS: Add 16739 and 16786 to bug list.
5952
5953         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Correct stream hint.
5954
5955         * sysdeps/powerpc/powerpc64/start.S: Add @toc to toc symbol reference.
5956
5957 2014-04-01  Will Newton  <will.newton@linaro.org>
5958
5959         * benchtests/Makefile (CFLAGS-bench-ffs.c): Add
5960         -fno-builtin.  (CFLAGS-bench-ffsll.c): Likewise.
5961
5962 2014-04-01  Florian Weimer  <fweimer@redhat.com>
5963
5964         [BZ #13347]
5965         * nptl/nptl-init.c (sighandler_setxid): Check system call result.
5966         * nptl/tst-setuid2.c: New file.
5967         * nptl/Makefile (xtests): Add tst-setuid2.
5968
5969 2014-04-01  Alan Modra  <amodra@gmail.com>
5970
5971         [BZ #16786]
5972         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S: Don't trash stack.
5973
5974 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
5975
5976         [BZ #6803]
5977         [BZ #6804]
5978         * math/w_scalb.c (__scalb): For non-SVID mode, check result and
5979         set errno as appropriate.
5980         * math/w_scalbf.c (__scalbf): Likewise.
5981         * math/w_scalbl.c (__scalbl): Likewise.
5982         * math/gen-libm-test.pl (parse_args): Handle ERRNO_PLUS_OFLOW,
5983         ERRNO_MINUS_OFLOW, ERRNO_PLUS_UFLOW and ERRNO_MINUS_UFLOW.
5984         * math/libm-test.inc (scalb_test_data): Add errno expectations.
5985         Add more NaN tests.
5986
5987         [BZ #16349]
5988         * math/w_atan2.c: Include <errno.h>.
5989         (__atan2): Set errno for result underflowing to zero.
5990         * math/w_atan2f.c: Include <errno.h>.
5991         (__atan2f): Set errno for result underflowing to zero.
5992         * math/w_atan2l.c: Include <errno.h>.
5993         (__atan2l): Set errno for result underflowing to zero.
5994         * math/auto-libm-test-in: Don't allow missing errno for some atan2
5995         tests.
5996         * math/auto-libm-test-out: Regenerated.
5997
5998 2014-03-31  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5999
6000         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S (MFVSRD_R3_V1):
6001         Encode instruction correctly in little endian.
6002         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S (MFVSRD_R3_V1):
6003         Likewise.
6004         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S (MFVSRD_R3_V1):
6005         Likewise.
6006         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S (MFVSRD_R3_V1):
6007         Likewise.
6008         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S (MFVSRD_R3_V1):
6009         Likewise.
6010
6011 2014-03-31  Joseph Myers  <joseph@codesourcery.com>
6012
6013         [BZ #9894]
6014         * sysdeps/unix/sysv/linux/kernel-features.h
6015         [__sparc__ && !__arch64__ && !__sparc_v9__]
6016         (__ASSUME_SET_ROBUST_LIST): Do not define.
6017         [__sparc__ && !__arch64__ && !__sparc_v9__]
6018         (__ASSUME_FUTEX_LOCK_PI): Likewise.
6019         [__sparc__ && !__arch64__ && !__sparc_v9__] (__ASSUME_REQUEUE_PI):
6020         Likewise.
6021         * sysdeps/unix/sysv/linux/arm/kernel-features.h
6022         (__ASSUME_FUTEX_LOCK_PI): Undefine.
6023         (__ASSUME_REQUEUE_PI): Likewise.
6024         (__ASSUME_SET_ROBUST_LIST): Likewise.
6025         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
6026         [__LINUX_KERNEL_VERSION < 0x030a00] (__ASSUME_FUTEX_LOCK_PI):
6027         Undefine.
6028         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6029         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_FUTEX_LOCK_PI):
6030         Likewise.
6031         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_REQUEUE_PI):
6032         Likewise.
6033         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_SET_ROBUST_LIST):
6034         Likewise.
6035         * sysdeps/unix/sysv/linux/mips/kernel-features.h
6036         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_FUTEX_LOCK_PI):
6037         Undefine.
6038         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_REQUEUE_PI): Likewise.
6039         [__mips == 1 || _MIPS_ARCH_R5900] (__ASSUME_SET_ROBUST_LIST):
6040         Likewise.
6041
6042         [BZ #16648]
6043         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6044         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_FUTIMESAT): Define.
6045         * sysdeps/unix/sysv/linux/microblaze/futimesat.c: New file.
6046
6047 2014-03-31  Will Newton  <will.newton@linaro.org>
6048
6049         * benchtests/Makefile (bench): Add ffs and ffsll to list
6050         of tests.
6051         * benchtests/ffs-inputs: New file.
6052         * benchtests/ffsll-inputs: Likewise.
6053
6054 2014-03-29  Joseph Myers  <joseph@codesourcery.com>
6055
6056         [BZ #16770]
6057         * math/e_scalb.c (__ieee754_scalb): Check second argument is not
6058         too large before casting to int.
6059         * math/e_scalbf.c (__ieee754_scalbf): Likewise.
6060         * math/e_scalbl.c (__ieee754_scalbl): Likewise.
6061         * math/libm-test.inc (scalb_test_data): Add more tests.
6062
6063 2014-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
6064
6065         * benchtests/Makefile (DETAILED_OPT): New make option.
6066         (bench-func): Run benchmark program with -d if DETAILED_OPT is
6067         set.
6068         * benchtests/bench-skeleton.c: Include stdbool.h.
6069         (main): Store and print timings per input.
6070         * benchtests/scripts/bench.py (STRUCT_TEMPLATE): Add timing
6071         member to each argument value.
6072         (EPILOGUE): Define new macros RESULT and RESULT_ACCUM.
6073         (_print_arg_data): Initialize per-input timing to 0.
6074
6075         * benchtests/Makefile (timing-type): New binary.
6076         (bench-clean): Also remove bench-timing-type.
6077         (bench): New target for timing-type.
6078         (bench-func): Print output in JSON format.
6079         * benchtests/bench-skeleton.c (main): Print output in JSON
6080         format.
6081         * benchtests/bench-timing-type.c: New file.
6082         * benchtests/bench-timing.h (TIMING_TYPE): New macro.
6083         (TIMING_PRINT_STATS): Remove.
6084         * benchtests/scripts/bench.py (_print_arg_data): Store variant
6085         name separately.
6086
6087         * benchtests/bench-modf.c: Remove.
6088         * benchtests/modf-inputs: New inputs file.
6089
6090 2014-03-28  Joseph Myers  <joseph@codesourcery.com>
6091
6092         [BZ #16362]
6093         * math/s_clog10.c (M_PI_LOG10E): New macro.
6094         (__clog10): Use M_PI_LOG10E instead of M_PI when real and
6095         imaginary parts are 0.
6096         * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
6097         (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
6098         imaginary parts are 0.
6099         * math/s_clog10l.c (M_PI_LOG10El): New macro.
6100         (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
6101         imaginary parts are 0.
6102         * math/libm-test.inc (clog10_test_data): Update expected results
6103         for when real and imaginary parts are 0.
6104
6105 2014-03-27  Paul Pluzhnikov  <ppluzhnikov@google.com>
6106
6107         * elf/dl-load.c: Finish conversion of __builtin_expect into
6108         __glibc_{un}likely.
6109
6110 2014-03-27  Joseph Myers  <joseph@codesourcery.com>
6111
6112         [BZ #16348]
6113         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]: Use
6114         1+x for argument with exponent below -67.
6115         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [!USE_AS_EXPM1L]:
6116         Likewise.
6117         * math/auto-libm-test-in: Add more tests of exp.
6118         * math/auto-libm-test-out: Regenerated.
6119
6120 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6121
6122         [BZ #16759]
6123         * inet/getnetgrent_r.c (get_nonempty_val): New function.
6124         (nscd_getnetgrent): Use it.
6125
6126         [BZ #16760]
6127         * nscd/netgroupcache.c (addgetnetgrentX): Use memmove instead
6128         of stpcpy.
6129
6130 2014-03-27  Andi Kleen  <ak@linux.intel.com>
6131
6132         * nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h (lll_lock)
6133         (lll_robust_lock, lll_cond_lock, lll_timedlock)
6134         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
6135         (lll_robust_unlock): Remove out of line section. Use cfi
6136         intrinsics.
6137         (LLL_STUB_UNWIND_INFO*): Remove.
6138         * nptl/sysdeps/unix/sysv/linux/i386/lowlevellock.h (lll_lock)
6139         (lll_robust_lock, lll_cond_lock, lll_timedlock)
6140         (lll_robust_cond_lock, lll_robust_timedlock, lll_unlock)
6141         (lll_robust_unlock): Remove out of line section. Use cfi
6142         intrinsics.
6143         (LLL_STUB_UNWIND_INFO*): Remove.
6144
6145 2014-03-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6146
6147         [BZ #16758]
6148         * nscd/netgroupcache.c (addinnetgrX): Succeed if triplet has
6149         blank values.
6150
6151 2014-03-26  Paul Pluzhnikov  <ppluzhnikov@google.com>
6152
6153         * elf/dl-load.c: Convert __builtin_expect into __glibc_{un}likely.
6154
6155 2014-03-26  Joseph Myers  <joseph@codesourcery.com>
6156
6157         [BZ #16198]
6158         * sysdeps/x86_64/fpu/fegetenv.c (fegetenv): Use fldenv after
6159         fnstenv.
6160         * math/test-fenv-preserve.c: New file.
6161         * math/Makefile (tests): Add test-fenv-preserve.
6162
6163 2014-03-26  Will Newton <will.newton@linaro.org>
6164
6165         * benchtests/bench-strtod.c (TIMEOUT): Define to 10.
6166
6167 2014-03-25  Roland McGrath  <roland@hack.frob.com>
6168
6169         * scripts/versionlist.awk: Partition the version sets and emit all
6170         GLIBC_* (sorted) before all others (sorted).
6171
6172 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
6173
6174         * elf/Versions (libc) [EXPORT_UNWIND_FIND_FDE]: Add empty
6175         GLIBC_2.2.5 version.
6176
6177 2014-03-25 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6178
6179         * scripts/localplt.awk: Check for PLT generated by internal IFUNC
6180         calls.
6181
6182         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h: Revert
6183         previous change.
6184
6185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6186
6187 2014-03-25  Andreas Schwab  <schwab@suse.de>
6188
6189         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Add out_fail2
6190         label to be used after in6ailist is initialized.
6191
6192 2014-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6193
6194         * nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
6195         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
6196
6197 2014-03-25  Joseph Myers  <joseph@codesourcery.com>
6198
6199         [BZ #16357]
6200         [BZ #16599]
6201         * math/gen-auto-libm-tests.c (fp_format_desc): Add field
6202         min_plus_half.
6203         (fp_formats): Update initializers.
6204         (init_fp_formats): Initialize new field.
6205         (output_for_one_input_case): Allow underflow for results up to
6206         min_plus_half.
6207         * math/libm-test.inc (log1p_test): Use ALL_RM_TEST.
6208         * math/auto-libm-test-in: Don't mark some underflows from asin and
6209         atanh as spurious.
6210         * math/auto-libm-test-out: Regenerated.
6211         * sysdeps/i386/fpu/libm-test-ulps: Update.
6212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6213
6214 2014-03-25  Andreas Schwab  <schwab@suse.de>
6215
6216         * libio/Makefile (tst-ftell-partial-wide-ENV)
6217         (tst-ftell-active-handler-ENV): Define.
6218
6219 2014-03-25  Stefan Liebler <stli@linux.vnet.ibm.com>
6220
6221         * NEWS: Add 16712, 16713, 16714 to fixed bug list.
6222
6223 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
6224
6225         * elf/tst-dlopen-aout.c: Adjust comments. Use test-skeleton.c
6226
6227 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
6228
6229         * sysdeps/ieee754/dbl-64/e_exp.c: Include <math.h>.
6230         * sysdeps/x86_64/fpu/multiarch/e_exp.c
6231         [HAVE_FMA4_SUPPORT || HAVE_AVX_SUPPORT]: Likewise.
6232
6233 2014-03-24  Paul Pluzhnikov  <ppluzhnikov@google.com>
6234
6235         [BZ #16634]
6236         * elf/dl-load.c (open_verify): Add mode parameter.
6237         Error early when ET_EXEC and mode does not have __RTLD_OPENEXEC.
6238         (open_path): Change from boolean 'secure' to complete flag 'mode'
6239         (_dl_map_object): Adjust.
6240         * elf/Makefile (tests): Add tst-dlopen-aout.
6241         * elf/tst-dlopen-aout.c: New test.
6242
6243 2014-03-24  Stefan Liebler <stli@linux.vnet.ibm.com>
6244
6245         [BZ #16714]
6246         * sysdeps/unix/sysv/linux/s390/bits/stat.h
6247         (struct stat): Rename member pad0 to __glibc_reserved0.
6248
6249         [BZ #16712]
6250         * sysdeps/s390/s390-32/bits/wordsize.h
6251         (__WORDSIZE32_SIZE_ULONG): New define.
6252         * sysdeps/s390/s390-64/bits/wordsize.h
6253         (__WORDSIZE32_SIZE_ULONG): Likewise.
6254         * sysdeps/generic/stdint.h (SIZE_MAX):
6255         Define as UL if __WORDSIZE32_SIZE_ULONG.
6256
6257         [BZ #16713]
6258         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h
6259         (__glibc_reserved0): New variable.
6260         (sa_flags): Change type to int.
6261
6262         * posix/Makefile (before-compile): Use += before-compile instead
6263         of a :=.
6264
6265         * nptl/sysdeps/unix/sysv/linux/s390/bits/pthreadtypes.h
6266         (__PTHREAD_MUTEX_HAVE_ELISION): New define.
6267
6268 2014-03-20  Andreas Schwab  <schwab@suse.de>
6269
6270         [BZ #16743]
6271         * sysdeps/posix/getaddrinfo.c (gaih_inet): Properly skip over
6272         non-matching result from nscd.
6273
6274 2014-03-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
6275
6276         * scripts/bench.py: Moved to ...
6277         * benchtests/scripts/bench.py: ... here.
6278         * benchtests/Makefile ($(objpfx)bench-%.c): Adjust.
6279
6280 2014-03-24  Andreas Schwab  <schwab@suse.de>
6281
6282         [BZ #16002]
6283         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Use
6284         alloca_account and account alloca use for struct in6ailist.
6285
6286 2014-03-24  Joseph Myers  <joseph@codesourcery.com>
6287
6288         [BZ #16284]
6289         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use original
6290         rounding mode to recompute results that overflow to infinity or
6291         underflow to zero.
6292         * math/auto-libm-test-in: Don't mark tests as expected to fail for
6293         bug 16284.
6294         * math/auto-libm-test-out: Regenerated.
6295         * math/libm-test.inc (ccos_test): Use ALL_RM_TEST.
6296         (ccosh_test): Likewise.
6297         (csin_test_data): Use plus_oflow.
6298         (csin_test): Use ALL_RM_TEST.
6299         (csinh_test_data): Use plus_oflow.
6300         (csinh_test): Use ALL_RM_TEST.
6301         * sysdeps/i386/fpu/libm-test-ulps: Update.
6302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6303
6304 2014-03-21  Joseph Myers  <joseph@codesourcery.com>
6305
6306         * sysdeps/mips/bits/wordsize.h: Include <sgidefs.h>.
6307         * sysdeps/unix/sysv/linux/mips/getrlimit64.c: Likewise.
6308         * sysdeps/unix/sysv/linux/mips/setrlimit64.c: Likewise.
6309
6310         [BZ #16731]
6311         * sysdeps/i386/fpu/e_log.S (__ieee754_log): Take absolute value
6312         when x - 1 is zero.
6313         * sysdeps/i386/fpu/e_logf.S (__ieee754_logf): Likewise.
6314         * sysdeps/i386/fpu/e_logl.S (__ieee754_logl): Likewise.
6315         * sysdeps/i386/i686/fpu/e_logl.S (__ieee754_logl): Likewise.
6316         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Return +0 when
6317         argument is 1.
6318         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Likewise.
6319         * sysdeps/x86_64/fpu/e_logl.S: Take absolute value when x - 1 is
6320         zero.
6321         * math/libm-test.inc (log_test): Use ALL_RM_TEST.
6322         * sysdeps/i386/fpu/libm-test-ulps: Update.
6323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6324
6325 2014-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6326
6327         * scripts/bench.pl: Remove file.
6328         * scripts/bench.py: New benchmark script.
6329         * benchtests/Makefile ($(objpfx)bench-%.c): Use it.
6330         * benchtests/README: Mention python dependency.
6331         * scripts/pylintrc: New file.
6332         * scripts/pylint: New file.
6333
6334         * bits/mathdef.h: Use #ifdef instead of #if.
6335         * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
6336         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
6337         * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
6338         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
6339         * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
6340         _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
6341
6342 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6343             Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
6344
6345         * string/strpbrk.c (strpbrk): Using macro to redefine symbol name.
6346         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strpbrk-power7
6347         and strpbrk-ppc64 objects.
6348         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6349         (__libc_ifunc_impl_list): Add new strpbrk optimized symbols.
6350         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-power7.S: New file:
6351         multiarch strpbrk for POWER7.
6352         * sysdeps/powerpc/powerpc64/multiarch/strpbrk-ppc64.c: New file:
6353         multiarch strpbrk for PPC64.
6354         * sysdeps/powerpc/powerpc64/multiarch/strpbrk.c: New file: strpbrk
6355         ifunc selector.
6356         * sysdeps/powerpc/powerpc64/power7/strpbrk.S: New file: optimited
6357         strpbrk for POWER7.
6358
6359 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
6360
6361         * math/libm-test.inc (asinh_test): Use ALL_RM_TEST.
6362         (atan_test): Likewise.
6363         (atanh_test_data): Use NO_TEST_INLINE for two tests.
6364         (atanh_test): Use ALL_RM_TEST.
6365         (atan2_test_data): Likewise.
6366         (cabs_test): Likewise.
6367         (cacosh_test): Likewise.
6368         (carg_test): Likewise.
6369         (casin_test): Likewise.
6370         (casinh_test): Likewise.
6371         (cbrt_test): Likewise.
6372         (csqrt_test): Likewise.
6373         (erf_test): Likewise.
6374         (erfc_test): Likewise.
6375         (pow10_test): Likewise.
6376         (exp2_test): Likewise.
6377         (hypot_test): Likewise.
6378         (j0_test): Likewise.
6379         (j1_test): Likewise.
6380         (lgamma_test): Likewise.
6381         (gamma_test): Likewise.
6382         (sincos_test): Likewise.
6383         (tanh_test): Likewise.
6384         (y0_test): Likewise.
6385         (y1_test): Likewise.
6386         * sysdeps/i386/fpu/libm-test-ulps: Update.
6387         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6388
6389 2014-03-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6390
6391         * string/strcspn.c (strcspn): Using macro to redefine symbol name.
6392         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcspn-power7
6393         and strcspn-ppc64 objects.
6394         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
6395         (__libc_ifunc_impl_list): Add new strcspn optimized symbols.
6396         * sysdeps/powerpc/powerpc64/multiarch/strcspn-power7.S: New file:
6397         multiarch strcspn for POWER7.
6398         * sysdeps/powerpc/powerpc64/multiarch/strcspn-ppc64.c: New file:
6399         multiarch strcspn for PPC64.
6400         * sysdeps/powerpc/powerpc64/multiarch/strcspn.c: New file: strcspn
6401         ifunc selector.
6402         * sysdeps/powerpc/powerpc64/power7/strcspn.S: New file: optimited
6403         strcspn for POWER7.
6404
6405 2014-03-20  Joseph Myers  <joseph@codesourcery.com>
6406
6407         * math/gen-libm-test.pl (generate_testfile): Expect only function
6408         name as argument to AUTO_TESTS_* and pass results for all rounding
6409         modes to parse_args.
6410         (parse_auto_input): Separate inputs of automatic tests from
6411         outputs before storing in %auto_tests.
6412         * math/libm-test.inc (acos_test_data): Update call to
6413         AUTO_TESTS_f_f.
6414         (acos_test): Use ALL_RM_TEST.
6415         (acos_tonearest_test_data): Remove.
6416         (acos_test_tonearest): Likewise.
6417         (acos_towardzero_test_data): Likewise.
6418         (acos_test_towardzero): Likewise.
6419         (acos_downward_test_data): Likewise.
6420         (acos_test_downward): Likewise.
6421         (acos_upward_test_data): Likewise.
6422         (acos_test_upward): Likewise.
6423         (acosh_test_data): Update call to AUTO_TESTS_f_f.
6424         (asin_test_data): Likewise.
6425         (asin_test): Use ALL_RM_TEST.
6426         (asin_tonearest_test_data): Remove.
6427         (asin_test_tonearest): Likewise.
6428         (asin_towardzero_test_data): Likewise.
6429         (asin_test_towardzero): Likewise.
6430         (asin_downward_test_data): Likewise.
6431         (asin_test_downward): Likewise.
6432         (asin_upward_test_data): Likewise.
6433         (asin_test_upward): Likewise.
6434         (asinh_test_data): Update call to AUTO_TESTS_f_f.
6435         (atan_test_data): Likewise.
6436         (atanh_test_data): Likewise.
6437         (atan2_test_data): Update call to AUTO_TESTS_ff_f.
6438         (cabs_test_data): Update call to AUTO_TESTS_c_f.
6439         (carg_test_data): Likewise.
6440         (cbrt_test_data): Update call to AUTO_TESTS_f_f.
6441         (ccos_test_data): Update call to AUTO_TESTS_c_c.
6442         (ccosh_test_data): Likewise.
6443         (cexp_test_data): Likewise.
6444         (clog_test_data): Likewise.
6445         (clog10_test_data): Likewise.
6446         (cos_test_data): Update call to AUTO_TESTS_f_f.
6447         (cos_test): Use ALL_RM_TEST.
6448         (cos_tonearest_test_data): Remove.
6449         (cos_test_tonearest): Likewise.
6450         (cos_towardzero_test_data): Likewise.
6451         (cos_test_towardzero): Likewise.
6452         (cos_downward_test_data): Likewise.
6453         (cos_test_downward): Likewise.
6454         (cos_upward_test_data): Likewise.
6455         (cos_test_upward): Likewise.
6456         (cosh_test_data): Update call to AUTO_TESTS_f_f.
6457         (cosh_test): Use ALL_RM_TEST.
6458         (cosh_tonearest_test_data): Remove.
6459         (cosh_test_tonearest): Likewise.
6460         (cosh_towardzero_test_data): Likewise.
6461         (cosh_test_towardzero): Likewise.
6462         (cosh_downward_test_data): Likewise.
6463         (cosh_test_downward): Likewise.
6464         (cosh_upward_test_data): Likewise.
6465         (cosh_test_upward): Likewise.
6466         (cpow_test_data): Update call to AUTO_TESTS_cc_c.
6467         (csqrt_test_data): Update call to AUTO_TESTS_c_c.
6468         (ctan_test_data): Likewise.
6469         (ctan_test): Use ALL_RM_TEST.
6470         (ctan_tonearest_test_data): Remove.
6471         (ctan_test_tonearest): Likewise.
6472         (ctan_towardzero_test_data): Likewise.
6473         (ctan_test_towardzero): Likewise.
6474         (ctan_downward_test_data): Likewise.
6475         (ctan_test_downward): Likewise.
6476         (ctan_upward_test_data): Likewise.
6477         (ctan_test_upward): Likewise.
6478         (ctanh_test_data): Update call to AUTO_TESTS_c_c.
6479         (ctanh_test): Use ALL_RM_TEST.
6480         (ctanh_tonearest_test_data): Remove.
6481         (ctanh_test_tonearest): Likewise.
6482         (ctanh_towardzero_test_data): Likewise.
6483         (ctanh_test_towardzero): Likewise.
6484         (ctanh_downward_test_data): Likewise.
6485         (ctanh_test_downward): Likewise.
6486         (ctanh_upward_test_data): Likewise.
6487         (ctanh_test_upward): Likewise.
6488         (erf_test_data): Update call to AUTO_TESTS_f_f.
6489         (erfc_test_data): Likewise.
6490         (exp_test_data): Likewise.
6491         (exp_test): Use ALL_RM_TEST.
6492         (exp_tonearest_test_data): Remove.
6493         (exp_test_tonearest): Likewise.
6494         (exp_towardzero_test_data): Likewise.
6495         (exp_test_towardzero): Likewise.
6496         (exp_downward_test_data): Likewise.
6497         (exp_test_downward): Likewise.
6498         (exp_upward_test_data): Likewise.
6499         (exp_test_upward): Likewise.
6500         (exp10_test_data): Update call to AUTO_TESTS_f_f.
6501         (exp10_test): Use ALL_RM_TEST.
6502         (exp10_tonearest_test_data): Remove.
6503         (exp10_test_tonearest): Likewise.
6504         (exp10_towardzero_test_data): Likewise.
6505         (exp10_test_towardzero): Likewise.
6506         (exp10_downward_test_data): Likewise.
6507         (exp10_test_downward): Likewise.
6508         (exp10_upward_test_data): Likewise.
6509         (exp10_test_upward): Likewise.
6510         (exp2_test_data): Update call to AUTO_TESTS_f_f.
6511         (expm1_test_data): Likewise.
6512         (expm1_test): Use ALL_RM_TEST.
6513         (expm1_tonearest_test_data): Remove.
6514         (expm1_test_tonearest): Likewise.
6515         (expm1_towardzero_test_data): Likewise.
6516         (expm1_test_towardzero): Likewise.
6517         (expm1_downward_test_data): Likewise.
6518         (expm1_test_downward): Likewise.
6519         (expm1_upward_test_data): Likewise.
6520         (expm1_test_upward): Likewise.
6521         (fma_test_data): Update call to AUTO_TESTS_fff_f.
6522         (fma_test): Use ALL_RM_TEST.
6523         (fma_towardzero_test_data): Remove.
6524         (fma_test_towardzero): Likewise.
6525         (fma_downward_test_data): Likewise.
6526         (fma_test_downward): Likewise.
6527         (fma_upward_test_data): Likewise.
6528         (fma_test_upward): Likewise.
6529         (hypot_test_data): Update call to AUTO_TESTS_ff_f.
6530         (j0_test_data): Update call to AUTO_TESTS_f_f.
6531         (j1_test_data): Likewise.
6532         (jn_test_data): Update call to AUTO_TESTS_if_f.
6533         (lgamma_test_data): Update call to AUTO_TESTS_f_f1.
6534         (log_test_data): Update call to AUTO_TESTS_f_f.
6535         (log10_test_data): Likewise.
6536         (log1p_test_data): Likewise.
6537         (log2_test_data): Likewise.
6538         (pow_test_data): Update call to AUTO_TESTS_ff_f.
6539         (pow_tonearest_test_data): Likewise.
6540         (sin_test_data): Update call to AUTO_TESTS_f_f.
6541         (sin_test): Use ALL_RM_TEST.
6542         (sin_tonearest_test_data): Remove.
6543         (sin_test_tonearest): Likewise.
6544         (sin_towardzero_test_data): Likewise.
6545         (sin_test_towardzero): Likewise.
6546         (sin_downward_test_data): Likewise.
6547         (sin_test_downward): Likewise.
6548         (sin_upward_test_data): Likewise.
6549         (sin_test_upward): Likewise.
6550         (sincos_test_data): Update call to AUTO_TESTS_fFF_11.
6551         (sinh_test_data): Update call to AUTO_TESTS_f_f.
6552         (sinh_test): Use ALL_RM_TEST.
6553         (sinh_tonearest_test_data): Remove.
6554         (sinh_test_tonearest): Likewise.
6555         (sinh_towardzero_test_data): Likewise.
6556         (sinh_test_towardzero): Likewise.
6557         (sinh_downward_test_data): Likewise.
6558         (sinh_test_downward): Likewise.
6559         (sinh_upward_test_data): Likewise.
6560         (sinh_test_upward): Likewise.
6561         (sqrt_test_data): Update call to AUTO_TESTS_f_f.
6562         (sqrt_test): Use ALL_RM_TEST.
6563         (sqrt_tonearest_test_data): Remove.
6564         (sqrt_test_tonearest): Likewise.
6565         (sqrt_towardzero_test_data): Likewise.
6566         (sqrt_test_towardzero): Likewise.
6567         (sqrt_downward_test_data): Likewise.
6568         (sqrt_test_downward): Likewise.
6569         (sqrt_upward_test_data): Likewise.
6570         (sqrt_test_upward): Likewise.
6571         (tan_test_data): Update call to AUTO_TESTS_f_f.
6572         (tan_test): Use ALL_RM_TEST.
6573         (tan_tonearest_test_data): Remove.
6574         (tan_test_tonearest): Likewise.
6575         (tan_towardzero_test_data): Likewise.
6576         (tan_test_towardzero): Likewise.
6577         (tan_downward_test_data): Likewise.
6578         (tan_test_downward): Likewise.
6579         (tan_upward_test_data): Likewise.
6580         (tan_test_upward): Likewise.
6581         (tanh_test_data): Update call to AUTO_TESTS_f_f.
6582         (tgamma_test_data): Likewise.
6583         (y0_test_data): Likewise.
6584         (y1_test_data): Likewise.
6585         (yn_test_data): Update call to AUTO_TESTS_if_f.
6586         (main): Do not call removed functions.
6587
6588 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
6589
6590         * math/libm-test.inc (fdim_test): Use ALL_RM_TEST.
6591         (ldexp_test_data): Remove.
6592         (ldexp_test): Move to after scalbn_test.  Use ALL_RM_TEST with
6593         scalbn_test_data.
6594         (scalb_test): Use ALL_RM_TEST.
6595
6596 2014-03-19  Andreas Schwab  <schwab@suse.de>
6597
6598         * nscd/nscd.service: Also invalidate netgroup cache on reload.
6599
6600 2014-03-19  Joseph Myers  <joseph@codesourcery.com>
6601
6602         [BZ #16649]
6603         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
6604         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PREADV): Undefine.
6605         [__LINUX_KERNEL_VERSION < 0x020621] (__ASSUME_PWRITEV): Likewise.
6606         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6607         (__ASSUME_PREADV): Undefine.
6608         (__ASSUME_PWRITEV): Likewise.
6609
6610 2014-03-18  Roland McGrath  <roland@hack.frob.com>
6611
6612         * bits/mman-linux.h: Add comment about non-Linux use.
6613         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add comment about
6614         bits/mman-linux.h resting place.
6615
6616         * sysdeps/unix/sysv/linux/bits/mman-linux.h: Moved to ...
6617         * bits/mman-linux.h: ... here.
6618
6619 2014-03-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6620
6621         * conform/conformtest.pl: Add standard definition when calling C
6622         preprocessor on data files.
6623         (checknamespace): Remove unused variable.
6624
6625 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
6626
6627         * math/gen-libm-test.pl (parse_args): Handle plus_oflow,
6628         minus_oflow, plus_uflow and minus_uflow in expected results.
6629         * math/libm-test.inc (scalbn_test_data): Add more tests of
6630         negative arguments.  Use plus_oflow, minus_oflow, plus_uflow and
6631         minus_uflow.
6632         (scalbn_test): Use ALL_RM_TEST.
6633         (scalbln_test_data): Add more tests of negative arguments.  Use
6634         plus_oflow, minus_oflow, plus_uflow and minus_uflow.
6635         (scalbln_test): Use ALL_RM_TEST.
6636
6637 2014-03-18  Roland McGrath  <roland@hack.frob.com>
6638
6639         * scripts/abilist.awk: Ignore symbols marked with .hidden.
6640
6641 2014-03-18  Will Newton  <will.newton@linaro.org>
6642
6643         * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Remove
6644         inaccurate comment.
6645
6646 2014-03-18  Joseph Myers  <joseph@codesourcery.com>
6647
6648         * Makerules [!subdir] (check-abi): Exit with error status if a
6649         test failed.
6650
6651 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
6652
6653         * math/libm-test.inc (nearbyint_test_data): Include all tests used
6654         for rint.  Include results for all rounding modes.
6655         (nearbyint_test): Use ALL_RM_TEST.
6656         (rint_test_data): Include all tests used for nearbyint.
6657
6658 2014-03-17  Will Newton  <will.newton@linaro.org>
6659
6660         * nptl/sysdeps/pthread/pthread.h: Revert previous
6661         change.
6662
6663         * sysdeps/generic/ldsodefs.h: Revert previous
6664         change.
6665
6666         * libio/genops.c: Revert previous change.
6667         * libio/libioP.h: Likewise.
6668         * stdio-common/vfprintf.c: Likewise.
6669
6670         * sysdeps/generic/math_private.h: Revert previous
6671         change.
6672
6673         * sysdeps/generic/math_private.h: Check whether
6674         HAVE_RM_CTX is defined with #ifdef rather
6675         than #if.
6676
6677         * argp/argp-fmtstream.h: Check whether
6678         __STRICT_ANSI__ is defined with #ifdef rather
6679         than #if.
6680         * argp/argp.h: Likewise.
6681
6682         * libio/genops.c: Check whether
6683         _IO_JUMPS_OFFSET is defined with #ifdef rather
6684         than #if.
6685         * libio/libioP.h: Likewise.
6686         * stdio-common/vfprintf.c: Likewise.
6687
6688         * sysdeps/generic/ldsodefs.h: Check whether
6689         HP_SMALL_TIMING_AVAIL is defined with #ifdef rather
6690         than #if.
6691
6692         * nptl/sysdeps/pthread/pthread.h: Check
6693         __PTHREAD_MUTEX_HAVE_ELISION is defined before testing
6694         its value.
6695
6696 2014-03-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
6697
6698         * libio/iofdopen.c (_IO_new_fdopen): Seek to end only if
6699         setting O_APPEND.
6700         * libio/tst-ftell-active-handler.c (do_append_test): Add a
6701         test case.
6702
6703         [BZ #16680]
6704         * libio/fileops.c (_IO_file_open): Seek to end of file but
6705         don't cache the offset.
6706         (get_file_offset): Remove function.
6707         (do_ftell): Use cached offset when available.
6708         * libio/iofdopen.c (_IO_new_fdopen): Seek to end of file but
6709         don't cache the offset.
6710         * libio/tst-ftell-active-handler.c (do_rewind_test): New test
6711         case.
6712         (do_one_test): Call it.
6713         (do_ftell_test): Fix up expected old offset for a+ mode.
6714         * libio/wfileops.c (do_ftell_wide): Used cached offset when
6715         available.
6716
6717         * libio/tst-ftell-active-handler.c (do_ftell_test): Don't mix
6718         up test status with function return status.
6719         (do_write_test): Likewise.
6720         (do_append_test): Likewise.
6721
6722         * nptl/sysdeps/pthread/bits/libc-lockP.h [defined NOT_IN_libc
6723         && !defined IS_IN_libpthread && __LT_SPINNOCK_INIT != 0]:
6724         Remove.
6725
6726 2014-03-17  Joseph Myers  <joseph@codesourcery.com>
6727
6728         * math/gen-libm-test.pl (parse_args): Handle results specified for
6729         each rounding mode separately.
6730         * math/libm-test.inc (lrint_test_data): Merge in per-rounding-mode
6731         tests and results from lrint_tonearest_test_data,
6732         lrint_towardzero_test_data, lrint_downward_test_data and
6733         lrint_upward_test_data.
6734         (lrint_test): Use ALL_RM_TEST.
6735         (lrint_tonearest_test_data): Remove.
6736         (lrint_test_tonearest): Likewise.
6737         (lrint_towardzero_test_data): Likewise.
6738         (lrint_test_towardzero): Likewise.
6739         (lrint_downward_test_data): Likewise.
6740         (lrint_test_downward): Likewise.
6741         (lrint_upward_test_data): Likewise.
6742         (lrint_test_upward): Likewise.
6743         (llrint_test_data): Merge in per-rounding-mode tests and results
6744         from llrint_tonearest_test_data, llrint_towardzero_test_data,
6745         llrint_downward_test_data and llrint_upward_test_data.
6746         (llrint_test): Use ALL_RM_TEST.
6747         (llrint_tonearest_test_data): Remove.
6748         (llrint_test_tonearest): Likewise.
6749         (llrint_towardzero_test_data): Likewise.
6750         (llrint_test_towardzero): Likewise.
6751         (llrint_downward_test_data): Likewise.
6752         (llrint_test_downward): Likewise.
6753         (llrint_upward_test_data): Likewise.
6754         (llrint_test_upward): Likewise.
6755         (rint_test_data): Merge in per-rounding-mode tests and results
6756         from rint_tonearest_test_data, rint_towardzero_test_data,
6757         rint_downward_test_data and rint_upward_test_data.  Add
6758         per-rounding-mode results for tests not in those arrays.
6759         (rint_test): Use ALL_RM_TEST.
6760         (rint_tonearest_test_data): Remove.
6761         (rint_test_tonearest): Likewise.
6762         (rint_towardzero_test_data): Likewise.
6763         (rint_test_towardzero): Likewise.
6764         (rint_downward_test_data): Likewise.
6765         (rint_test_downward): Likewise.
6766         (rint_upward_test_data): Likewise.
6767         (rint_test_upward): Likewise.
6768         (main): Don't call removed functions.
6769
6770 2014-03-14  Roland McGrath  <roland@hack.frob.com>
6771
6772         * csu/Makefile ($(objpfx)version-info.h): Remove linux-specific
6773         "Compiled on ..." crapola.  It is anti-useful.
6774
6775 2014-03-14  Joseph Myers  <joseph@codesourcery.com>
6776
6777         * scripts/evaluate-test.sh: Handle fourth argument to determine
6778         whether test run should stop on failure.
6779         * Makeconfig (stop-on-test-failure): New variable.
6780         (evaluate-test): Pass fourth argument to evaluate-test.sh based on
6781         $(stop-on-test-failure).
6782         * Makefile (tests): Give a summary of results from testing and
6783         exit with failure status if they include an ERROR or FAIL.
6784         (xtests): Likewise.
6785         * manual/install.texi (Configuring and compiling): Mention
6786         stop-on-test-failure=y.
6787         * INSTALL: Regenerated.
6788
6789 2014-03-14  Roland McGrath  <roland@hack.frob.com>
6790
6791         * scripts/versionlist.awk: New file.
6792         * Makerules [$(build-shared) = yes]
6793         (postclean-generated): Add Versions.def, not Versions.def.v and
6794         Versions.def.v.i.
6795         ($(common-objpfx)Versions.def.v.i): Target removed.
6796         ($(common-objpfx)Versions.def): New target.
6797         ($(common-objpfx)Versions.all): Depend on that rather that
6798         $(common-objpfx)Versions.def.v.
6799         * Versions.def: File removed.
6800
6801         * Makeconfig (+gccwarn): Add -Wundef.
6802         * include/errno.h [IS_IN_rtld] [!RTLD_PRIVATE_ERRNO]: #error to catch
6803         a dl-sysdep.h breaking its contract.
6804         [!IS_IN_rtld] (RTLD_PRIVATE_ERRNO): Define it to 0.
6805         * include/stackinfo.h: New file.
6806         * nptl/sysdeps/i386/tls.h (TLS_DTV_AT_TP): New macro.
6807         * nptl/sysdeps/powerpc/tls.h (TLS_TCB_AT_TP): New macro.
6808         * nptl/sysdeps/s390/tls.h (TLS_DTV_AT_TP): New macro.
6809         * nptl/sysdeps/sh/tls.h (TLS_TCB_AT_TP): New macro.
6810         * nptl/sysdeps/sparc/tls.h (TLS_DTV_AT_TP): New macro.
6811         * nptl/sysdeps/x86_64/tls.h (TLS_DTV_AT_TP): New macro.
6812         * sysdeps/aarch64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6813         * sysdeps/alpha/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6814         * sysdeps/arm/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6815         * sysdeps/ia64/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6816         * sysdeps/m68k/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6817         * sysdeps/mach/hurd/i386/tls.h (TLS_DTV_AT_TP): New macro.
6818         * sysdeps/microblaze/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6819         * sysdeps/mips/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6820         * sysdeps/tile/nptl/tls.h (TLS_TCB_AT_TP): New macro.
6821
6822 2014-03-14  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6823
6824         [BZ #16707]
6825         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Remove wrong
6826         implementation.
6827         * math/libm-test.inc (round_test_data): Add more tests.
6828
6829         [BZ #16706]
6830         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Remove wrong
6831         implementation.
6832         * math/libm-test.inc (nearbyint_test_data): Add more tests.
6833
6834         [BZ #16701]
6835         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Remove wrong
6836         implementation.
6837         * math/libm-test.inc (ceil_test_data): Add more tests.
6838
6839         * math/libm-test.inc (trunc_test_data): Add more tests related to
6840         BZ#16414.
6841
6842 2014-03-14  Roland McGrath  <roland@hack.frob.com>
6843
6844         * nptl/pthread_create.c (__pthread_create_2_1): Test TLS_TCB_AT_TP
6845         with #if rather than #ifdef.
6846         * nptl/sysdeps/pthread/createthread.c (create_thread): Likewise.
6847
6848 2014-03-14  H.J. Lu  <hongjiu.lu@intel.com>
6849
6850         * sysdeps/x86_64/configure.ac: Check AVX-512 assembler support
6851         first.  Disable AVX-512 GCC support if assembler doesn't support
6852         it.
6853         * sysdeps/x86_64/configure: Regenerated.
6854
6855 2014-03-13  Carlos O'Donell  <carlos@redhat.com>
6856
6857         * nptl/pthread_attr_setstack.c (__pthread_attr_setstack)
6858         [!_STACK_GROWS_DOWN]: Don't add stacksize to stackaddr.
6859         (__old_pthread_attr_setstack): Likewise.
6860         * nptl/pthread_attr_getstack.c (__pthread_attr_getstack)
6861         [!_STACK_GROWS_DOWN]: Likewise.
6862
6863 2014-03-13  Mike Frysinger  <vapier@gentoo.org>
6864
6865         * config.make.in (have-bash2): Delete.
6866         * configure.ac (libc_cv_have_bash2): Delete.
6867         * configure: Regenerate.
6868         * elf/Makefile (common-ldd-rewrite): Rename to ...
6869         (ldd-rewrite): ... this.  Move bash-ldd-rewrite content to end.
6870         (sh-ldd-rewrite): Delete.
6871         (bash-ldd-rewrite): Delete.
6872         (have-bash2): Delete checks.
6873         [ldd-rewrite-script]: Change $(ldd-shell)-ldd-rewrite to
6874         ldd-rewrite.
6875
6876         * config.make.in (have-ksh): Delete.
6877         (KSH): Delete.
6878         * configure.ac (libc_cv_have_ksh): Delete.
6879         * configure: Regenerate.
6880
6881         * elf/Makefile: Delete $(have-ksh) check.
6882         ($(objpfx)sotruss): Change KSH to BASH.
6883         * elf/sotruss.ksh: Rename to ...
6884         * elf/sotruss.sh: ... this.  Change @KSH@ to @BASH@.  Change
6885         function style to match POSIX.  Drop ksh vim mode setting.
6886
6887         * manual/time.texi (Specifying the Time Zone with TZ): Change
6888         Tuesday to Thursday.
6889
6890         * debug/tst-longjmp_chk2.c: Update header comment.
6891         (stackoverflow_handler): Add comment.  Call assert on pass value.
6892
6893 2014-03-13  Igor Zamyatin  <igor.zamyatin@intel.com>
6894
6895         * config.h.in (HAVE_AVX512_SUPPORT): New #undef.
6896         (HAVE_AVX512_ASM_SUPPORT): Likewise.
6897         * sysdeps/x86_64/bits/link.h (La_x86_64_zmm): New.
6898         (La_x86_64_vector): Add zmm.
6899         * sysdeps/x86_64/Makefile (tests): Add tst-audit10.
6900         (modules-names): Add tst-auditmod10a and tst-auditmod10b.
6901         ($(objpfx)tst-audit10): New target.
6902         ($(objpfx)tst-audit10.out): Likewise.
6903         (tst-audit10-ENV): New.
6904         (AVX512-CFLAGS): Likewise.
6905         (CFLAGS-tst-audit10.c): Likewise.
6906         (CFLAGS-tst-auditmod10a.c): Likewise.
6907         (CFLAGS-tst-auditmod10b.c): Likewise.
6908         * sysdeps/x86_64/configure.ac: Set config-cflags-avx512,
6909         HAVE_AVX512_SUPPORT and HAVE_AVX512_ASM_SUPPORT.
6910         * sysdeps/x86_64/configure: Regenerated.
6911         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Add
6912         AVX-512 zmm register support.
6913         (_dl_x86_64_save_sse): Likewise.
6914         (_dl_x86_64_restore_sse): Likewise.
6915         * sysdeps/x86_64/dl-trampoline.h: Updated to support different
6916         size vector registers.
6917         * sysdeps/x86_64/link-defines.sym (YMM_SIZE): New.
6918         (ZMM_SIZE): Likewise.
6919         * sysdeps/x86_64/tst-audit10.c: New file.
6920         * sysdeps/x86_64/tst-auditmod10a.c: Likewise.
6921         * sysdeps/x86_64/tst-auditmod10b.c: Likewise.
6922
6923 2014-03-13  Roland McGrath  <roland@hack.frob.com>
6924
6925         * configure.ac (HAVE_EHDR_START): New check.
6926         * configure: Regenerated.
6927         * config.h.in (HAVE_EHDR_START): New #undef.
6928         * elf/rtld.c (dl_main) [HAVE_EHDR_START]: Use __ehdr_start rather than
6929         assuming the lowest-addressed segment maps the start of the file.
6930
6931 2014-03-13  Joseph Myers  <joseph@codesourcery.com>
6932
6933         * INSTALL: Regenerated.
6934
6935 2014-03-13  Will Newton  <will.newton@linaro.org>
6936
6937         * manual/setjmp.texi (System V contexts): Improve
6938         clarity and grammar of documentation.
6939
6940 2014-03-12  Paul Pluzhnikov  <ppluzhnikov@google.com>
6941
6942         [BZ #16381]
6943         * elf/Makefile (tests): Add tst-pie2.
6944         (tests-pie): Add tst-pie2.
6945         * elf/tst-pie2.c: New file.
6946         * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type
6947         for ET_EXEC.
6948         * elf/rtld.c (map_doit): Load executable as lt_executable.
6949         (dl_main): Likewise.
6950
6951 2014-03-12  Joseph Myers  <joseph@codesourcery.com>
6952
6953         [BZ #16642]
6954         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
6955         (__ASSUME_PSELECT): Undefine.
6956
6957 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6958
6959         [BZ #16689]
6960         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S
6961         (__bzero_ppc): Call memset@local instead of __memset_ppc@local for
6962         static build.
6963         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: Build IFUNC
6964         selector for static builds.
6965
6966 2014-03-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
6967
6968         [BZ #16695]
6969         * nscd/netgroupcache.c (addgetnetgrentX): Factor in space for
6970         key in the buffer.
6971
6972 2014-03-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6973
6974         * sysdeps/powerpc/powerpc64/multiarch/strspn.c (strspn): Build
6975         IFUNC selector for static builds.
6976
6977 2014-03-11  Joseph Myers  <joseph@codesourcery.com>
6978
6979         * sysdeps/mips/math_private.h [__mips_hard_float]
6980         (libc_feresetround_ctx): Define to libc_feupdateenv_mips_ctx not
6981         libc_feresetround_mips_ctx.
6982         [__mips_hard_float] (libc_feresetroundf_ctx): Likewise.
6983         [__mips_hard_float] (libc_feresetroundl_ctx): Likewise.
6984         [__mips_hard_float] (libc_feresetround_mips_ctx): Remove.
6985
6986         [BZ #16677]
6987         * math/s_nextafter.c (__nextafter): Do not return value from
6988         overflowing computation.
6989         * sysdeps/i386/fpu/s_nextafterl.c (__nextafterl): Likewise.
6990         * sysdeps/ieee754/flt-32/s_nextafterf.c (__nextafterf): Likewise.
6991         * sysdeps/ieee754/ldbl-128/s_nextafterl.c (__nextafterl):
6992         Likewise.
6993         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl):
6994         Likewise.
6995         * sysdeps/m68k/m680x0/fpu/s_nextafterl.c (__nextafterl): Likewise.
6996         * math/libm-test.inc (nextafter_test): Use ALL_RM_TEST.
6997
6998 2014-03-11  Roland McGrath  <roland@hack.frob.com>
6999
7000         * sysdeps/arm/setjmp.S: Use sfi_breg on stores of mangled registers.
7001         * sysdeps/arm/__longjmp.S: Use sfi_breg on loads of mangled registers.
7002         Move sfi_sp use from the load-multiple (that no longer sets sp) to
7003         the new mov targetting sp.
7004
7005 2014-03-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7006
7007         [BZ #16683]
7008         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S (__bzero_ppc):
7009         Define it for static builds as well.
7010         (NO_BZERO_IMPL): Likewise.
7011
7012 2014-03-11  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
7013
7014         * sysdeps/powerpc/powerpc64/power7/strspn.S: New file: Optimization.
7015         * sysdeps/powerpc/powerpc64/multiarch/strspn.c: New file:
7016         multiarch strspn for PPC64.
7017         * sysdeps/powerpc/powerpc64/multiarch/strspn-ppc64.c: New file
7018         * sysdeps/powerpc/powerpc64/multiarch/strspn-power7.S: New file
7019         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7020         (__libc_ifunc_impl_list): Likewise.
7021         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strspn
7022         multiarch optimizations
7023         * string/strspn.c (strspn): Using macro to redefine symbol name.
7024
7025 2014-03-10  Vidya Ranganathan  <vidya@linux.vnet.ibm.com>
7026             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7027
7028         * sysdeps/powerpc/powerpc64/power7/strncat.S: New file: Optimization.
7029         * sysdeps/powerpc/powerpc64/multiarch/strncat.c: New file:
7030         multiarch strncat for PPC64.
7031         * sysdeps/powerpc/powerpc64/multiarch/strncat-ppc64.c: New file
7032         * sysdeps/powerpc/powerpc64/multiarch/strncat-power7.S: New file
7033         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
7034         (__libc_ifunc_impl_list): Likewise.
7035         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncat
7036         multiarch optimizations
7037
7038 2014-03-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7039
7040         [BZ #16639]
7041         * nscd/nscd.service: Make service type forking.
7042
7043 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7044
7045         * sysdeps/powerpc/power5+/fpu/s_modf.c (__modf): Fix to return correct
7046         sign in non default rounding modes.
7047         * sysdeps/powerpc/power5+/fpu/s_modff.c (__modff): Likewise.
7048
7049 2014-03-08  Joseph Myers  <joseph@codesourcery.com>
7050
7051         * math/libm-test.inc (ALL_RM_TEST): New macro.
7052         (ceil_test): Use ALL_RM_TEST.
7053         (cimag_test): Likewise.
7054         (conj_test): Likewise.
7055         (copysign_test): Likewise.
7056         (cproj_test): Likewise.
7057         (creal_test): Likewise.
7058         (fabs_test): Likewise.
7059         (floor_test): Likewise.
7060         (fmax_test): Likewise.
7061         (fmin_test): Likewise.
7062         (fmod_test): Likewise.
7063         (fpclassify_test): Likewise.
7064         (frexp_test): Likewise.
7065         (ilogb_test): Likewise.
7066         (isfinite_test): Likewise.
7067         (finite_test): Likewise.
7068         (isgreater_test): Likewise.
7069         (isgreaterequal_test): Likewise.
7070         (isinf_test): Likewise.
7071         (isless_test): Likewise.
7072         (islessequal_test): Likewise.
7073         (islessgreater_test): Likewise.
7074         (isnan_test): Likewise.
7075         (isnormal_test): Likewise.
7076         (issignaling_test): Likewise.
7077         (isunordered_test): Likewise.
7078         (logb_test): Likewise.
7079         (logb_downward_test_data): Remove.
7080         (logb_test_downward): Likewise.
7081         (lround_test): Use ALL_RM_TEST.
7082         (llround_test): Likewise.
7083         (modf_test): Likewise.
7084         (nexttoward_test): Likewise.
7085         (remainder_test): Likewise.
7086         (drem_test): Likewise.
7087         (remainder_tonearest_test_data): Likewise.
7088         (remainder_test_tonearest): Likewise.
7089         (drem_test_tonearest): Likewise.
7090         (remainder_towardzero_test_data): Likewise.
7091         (remainder_test_towardzero): Likewise.
7092         (drem_test_towardzero): Likewise.
7093         (remainder_downward_test_data): Likewise.
7094         (remainder_test_downward): Likewise.
7095         (drem_test_downward): Likewise.
7096         (remainder_upward_test_data): Likewise.
7097         (remainder_test_upward): Likewise.
7098         (drem_test_upward): Likewise.
7099         (remquo_test): Use ALL_RM_TEST.  Remove comment about x.
7100         (round_test): Use ALL_RM_TEST.
7101         (signbit_test): Likewise.
7102         (trunc_test): Likewise.
7103         (significand_test): Likewise.
7104         (main): Don't call removed functions.
7105
7106 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
7107
7108         [BZ #16674]
7109         * bits/siginfo.h (ILL_ILLOPC): Condition on [__USE_XOPEN_EXTENDED
7110         || __USE_XOPEN2K8].
7111         (ILL_ILLOPN): Likewise.
7112         (ILL_ILLADR): Likewise.
7113         (ILL_ILLTRP): Likewise.
7114         (ILL_PRVOPC): Likewise.
7115         (ILL_PRVREG): Likewise.
7116         (ILL_COPROC): Likewise.
7117         (ILL_BADSTK): Likewise.
7118         (FPE_INTDIV): Likewise.
7119         (FPE_INTOVF): Likewise.
7120         (FPE_FLTDIV): Likewise.
7121         (FPE_FLTOVF): Likewise.
7122         (FPE_FLTUND): Likewise.
7123         (FPE_FLTRES): Likewise.
7124         (FPE_FLTINV): Likewise.
7125         (FPE_FLTSUB): Likewise.
7126         (SEGV_MAPERR): Likewise.
7127         (SEGV_ACCERR): Likewise.
7128         (BUS_ADRALN): Likewise.
7129         (BUS_ADRERR): Likewise.
7130         (BUS_OBJERR): Likewise.
7131         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7132         (TRAP_TRACE): Likewise.
7133         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7134         __USE_XOPEN2K8].
7135         (CLD_KILLED): Likewise.
7136         (CLD_DUMPED): Likewise.
7137         (CLD_TRAPPED): Likewise.
7138         (CLD_STOPPED): Likewise.
7139         (CLD_CONTINUED): Likewise.
7140         (POLL_IN): Likewise.
7141         (POLL_OUT): Likewise.
7142         (POLL_MSG): Likewise.
7143         (POLL_ERR): Likewise.
7144         (POLL_PRI): Likewise.
7145         (POLL_HUP): Likewise.
7146         * sysdeps/unix/sysv/linux/alpha/bits/siginfo.h (ILL_ILLOPC):
7147         Likewise.
7148         (ILL_ILLOPN): Likewise.
7149         (ILL_ILLADR): Likewise.
7150         (ILL_ILLTRP): Likewise.
7151         (ILL_PRVOPC): Likewise.
7152         (ILL_PRVREG): Likewise.
7153         (ILL_COPROC): Likewise.
7154         (ILL_BADSTK): Likewise.
7155         (FPE_INTDIV): Likewise.
7156         (FPE_INTOVF): Likewise.
7157         (FPE_FLTDIV): Likewise.
7158         (FPE_FLTOVF): Likewise.
7159         (FPE_FLTUND): Likewise.
7160         (FPE_FLTRES): Likewise.
7161         (FPE_FLTINV): Likewise.
7162         (FPE_FLTSUB): Likewise.
7163         (SEGV_MAPERR): Likewise.
7164         (SEGV_ACCERR): Likewise.
7165         (BUS_ADRALN): Likewise.
7166         (BUS_ADRERR): Likewise.
7167         (BUS_OBJERR): Likewise.
7168         (BUS_MCEERR_AR): Likewise.
7169         (BUS_MCEERR_AO): Likewise.
7170         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7171         (TRAP_TRACE): Likewise.
7172         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7173         __USE_XOPEN2K8].
7174         (CLD_KILLED): Likewise.
7175         (CLD_DUMPED): Likewise.
7176         (CLD_TRAPPED): Likewise.
7177         (CLD_STOPPED): Likewise.
7178         (CLD_CONTINUED): Likewise.
7179         (POLL_IN): Likewise.
7180         (POLL_OUT): Likewise.
7181         (POLL_MSG): Likewise.
7182         (POLL_ERR): Likewise.
7183         (POLL_PRI): Likewise.
7184         (POLL_HUP): Likewise.
7185         * sysdeps/unix/sysv/linux/bits/siginfo.h (ILL_ILLOPC): Likewise.
7186         (ILL_ILLOPN): Likewise.
7187         (ILL_ILLADR): Likewise.
7188         (ILL_ILLTRP): Likewise.
7189         (ILL_PRVOPC): Likewise.
7190         (ILL_PRVREG): Likewise.
7191         (ILL_COPROC): Likewise.
7192         (ILL_BADSTK): Likewise.
7193         (FPE_INTDIV): Likewise.
7194         (FPE_INTOVF): Likewise.
7195         (FPE_FLTDIV): Likewise.
7196         (FPE_FLTOVF): Likewise.
7197         (FPE_FLTUND): Likewise.
7198         (FPE_FLTRES): Likewise.
7199         (FPE_FLTINV): Likewise.
7200         (FPE_FLTSUB): Likewise.
7201         (SEGV_MAPERR): Likewise.
7202         (SEGV_ACCERR): Likewise.
7203         (BUS_ADRALN): Likewise.
7204         (BUS_ADRERR): Likewise.
7205         (BUS_OBJERR): Likewise.
7206         (BUS_MCEERR_AR): Likewise.
7207         (BUS_MCEERR_AO): Likewise.
7208         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7209         (TRAP_TRACE): Likewise.
7210         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7211         __USE_XOPEN2K8].
7212         (CLD_KILLED): Likewise.
7213         (CLD_DUMPED): Likewise.
7214         (CLD_TRAPPED): Likewise.
7215         (CLD_STOPPED): Likewise.
7216         (CLD_CONTINUED): Likewise.
7217         (POLL_IN): Likewise.
7218         (POLL_OUT): Likewise.
7219         (POLL_MSG): Likewise.
7220         (POLL_ERR): Likewise.
7221         (POLL_PRI): Likewise.
7222         (POLL_HUP): Likewise.
7223         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (ILL_ILLOPC):
7224         Likewise.
7225         (ILL_ILLOPN): Likewise.
7226         (ILL_ILLADR): Likewise.
7227         (ILL_ILLTRP): Likewise.
7228         (ILL_PRVOPC): Likewise.
7229         (ILL_PRVREG): Likewise.
7230         (ILL_COPROC): Likewise.
7231         (ILL_BADSTK): Likewise.
7232         (ILL_BADIADDR): Likewise.
7233         (ILL_BREAK): Likewise.
7234         (FPE_INTDIV): Likewise.
7235         (FPE_INTOVF): Likewise.
7236         (FPE_FLTDIV): Likewise.
7237         (FPE_FLTOVF): Likewise.
7238         (FPE_FLTUND): Likewise.
7239         (FPE_FLTRES): Likewise.
7240         (FPE_FLTINV): Likewise.
7241         (FPE_FLTSUB): Likewise.
7242         (FPE_DECOVF): Likewise.
7243         (FPE_DECDIV): Likewise.
7244         (FPE_DECERR): Likewise.
7245         (FPE_INVASC): Likewise.
7246         (FPE_INVDEC): Likewise.
7247         (SEGV_MAPERR): Likewise.
7248         (SEGV_ACCERR): Likewise.
7249         (SEGV_PSTKOVF): Likewise.
7250         (BUS_ADRALN): Likewise.
7251         (BUS_ADRERR): Likewise.
7252         (BUS_OBJERR): Likewise.
7253         (BUS_MCEERR_AR): Likewise.
7254         (BUS_MCEERR_AO): Likewise.
7255         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7256         (TRAP_TRACE): Likewise.
7257         (TRAP_BRANCH): Likewise.
7258         (TRAP_HWBKPT): Likewise.
7259         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7260         __USE_XOPEN2K8].
7261         (CLD_KILLED): Likewise.
7262         (CLD_DUMPED): Likewise.
7263         (CLD_TRAPPED): Likewise.
7264         (CLD_STOPPED): Likewise.
7265         (CLD_CONTINUED): Likewise.
7266         (POLL_IN): Likewise.
7267         (POLL_OUT): Likewise.
7268         (POLL_MSG): Likewise.
7269         (POLL_ERR): Likewise.
7270         (POLL_PRI): Likewise.
7271         (POLL_HUP): Likewise.
7272         * sysdeps/unix/sysv/linux/mips/bits/siginfo.h (ILL_ILLOPC): Likewise.
7273         (ILL_ILLOPN): Likewise.
7274         (ILL_ILLADR): Likewise.
7275         (ILL_ILLTRP): Likewise.
7276         (ILL_PRVOPC): Likewise.
7277         (ILL_PRVREG): Likewise.
7278         (ILL_COPROC): Likewise.
7279         (ILL_BADSTK): Likewise.
7280         (FPE_INTDIV): Likewise.
7281         (FPE_INTOVF): Likewise.
7282         (FPE_FLTDIV): Likewise.
7283         (FPE_FLTOVF): Likewise.
7284         (FPE_FLTUND): Likewise.
7285         (FPE_FLTRES): Likewise.
7286         (FPE_FLTINV): Likewise.
7287         (FPE_FLTSUB): Likewise.
7288         (SEGV_MAPERR): Likewise.
7289         (SEGV_ACCERR): Likewise.
7290         (BUS_ADRALN): Likewise.
7291         (BUS_ADRERR): Likewise.
7292         (BUS_OBJERR): Likewise.
7293         (BUS_MCEERR_AR): Likewise.
7294         (BUS_MCEERR_AO): Likewise.
7295         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7296         (TRAP_TRACE): Likewise.
7297         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7298         __USE_XOPEN2K8].
7299         (CLD_KILLED): Likewise.
7300         (CLD_DUMPED): Likewise.
7301         (CLD_TRAPPED): Likewise.
7302         (CLD_STOPPED): Likewise.
7303         (CLD_CONTINUED): Likewise.
7304         (POLL_IN): Likewise.
7305         (POLL_OUT): Likewise.
7306         (POLL_MSG): Likewise.
7307         (POLL_ERR): Likewise.
7308         (POLL_PRI): Likewise.
7309         (POLL_HUP): Likewise.
7310         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (ILL_ILLOPC): Likewise.
7311         (ILL_ILLOPN): Likewise.
7312         (ILL_ILLADR): Likewise.
7313         (ILL_ILLTRP): Likewise.
7314         (ILL_PRVOPC): Likewise.
7315         (ILL_PRVREG): Likewise.
7316         (ILL_COPROC): Likewise.
7317         (ILL_BADSTK): Likewise.
7318         (FPE_INTDIV): Likewise.
7319         (FPE_INTOVF): Likewise.
7320         (FPE_FLTDIV): Likewise.
7321         (FPE_FLTOVF): Likewise.
7322         (FPE_FLTUND): Likewise.
7323         (FPE_FLTRES): Likewise.
7324         (FPE_FLTINV): Likewise.
7325         (FPE_FLTSUB): Likewise.
7326         (SEGV_MAPERR): Likewise.
7327         (SEGV_ACCERR): Likewise.
7328         (BUS_ADRALN): Likewise.
7329         (BUS_ADRERR): Likewise.
7330         (BUS_OBJERR): Likewise.
7331         (BUS_MCEERR_AR): Likewise.
7332         (BUS_MCEERR_AO): Likewise.
7333         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7334         (TRAP_TRACE): Likewise.
7335         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7336         __USE_XOPEN2K8].
7337         (CLD_KILLED): Likewise.
7338         (CLD_DUMPED): Likewise.
7339         (CLD_TRAPPED): Likewise.
7340         (CLD_STOPPED): Likewise.
7341         (CLD_CONTINUED): Likewise.
7342         (POLL_IN): Likewise.
7343         (POLL_OUT): Likewise.
7344         (POLL_MSG): Likewise.
7345         (POLL_ERR): Likewise.
7346         (POLL_PRI): Likewise.
7347         (POLL_HUP): Likewise.
7348         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (ILL_ILLOPC): Likewise.
7349         (ILL_ILLOPN): Likewise.
7350         (ILL_ILLADR): Likewise.
7351         (ILL_ILLTRP): Likewise.
7352         (ILL_PRVOPC): Likewise.
7353         (ILL_PRVREG): Likewise.
7354         (ILL_COPROC): Likewise.
7355         (ILL_BADSTK): Likewise.
7356         (FPE_INTDIV): Likewise.
7357         (FPE_INTOVF): Likewise.
7358         (FPE_FLTDIV): Likewise.
7359         (FPE_FLTOVF): Likewise.
7360         (FPE_FLTUND): Likewise.
7361         (FPE_FLTRES): Likewise.
7362         (FPE_FLTINV): Likewise.
7363         (FPE_FLTSUB): Likewise.
7364         (SEGV_MAPERR): Likewise.
7365         (SEGV_ACCERR): Likewise.
7366         (BUS_ADRALN): Likewise.
7367         (BUS_ADRERR): Likewise.
7368         (BUS_OBJERR): Likewise.
7369         (BUS_MCEERR_AR): Likewise.
7370         (BUS_MCEERR_AO): Likewise.
7371         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7372         (TRAP_TRACE): Likewise.
7373         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7374         __USE_XOPEN2K8].
7375         (CLD_KILLED): Likewise.
7376         (CLD_DUMPED): Likewise.
7377         (CLD_TRAPPED): Likewise.
7378         (CLD_STOPPED): Likewise.
7379         (CLD_CONTINUED): Likewise.
7380         (POLL_IN): Likewise.
7381         (POLL_OUT): Likewise.
7382         (POLL_MSG): Likewise.
7383         (POLL_ERR): Likewise.
7384         (POLL_PRI): Likewise.
7385         (POLL_HUP): Likewise.
7386         * sysdeps/unix/sysv/linux/tile/bits/siginfo.h (ILL_ILLOPC): Likewise.
7387         (ILL_ILLOPN): Likewise.
7388         (ILL_ILLADR): Likewise.
7389         (ILL_ILLTRP): Likewise.
7390         (ILL_PRVOPC): Likewise.
7391         (ILL_PRVREG): Likewise.
7392         (ILL_COPROC): Likewise.
7393         (ILL_BADSTK): Likewise.
7394         (ILL_DBLFLT): Likewise.
7395         (ILL_HARDWALL): Likewise.
7396         (FPE_INTDIV): Likewise.
7397         (FPE_INTOVF): Likewise.
7398         (FPE_FLTDIV): Likewise.
7399         (FPE_FLTOVF): Likewise.
7400         (FPE_FLTUND): Likewise.
7401         (FPE_FLTRES): Likewise.
7402         (FPE_FLTINV): Likewise.
7403         (FPE_FLTSUB): Likewise.
7404         (SEGV_MAPERR): Likewise.
7405         (SEGV_ACCERR): Likewise.
7406         (BUS_ADRALN): Likewise.
7407         (BUS_ADRERR): Likewise.
7408         (BUS_OBJERR): Likewise.
7409         (BUS_MCEERR_AR): Likewise.
7410         (BUS_MCEERR_AO): Likewise.
7411         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7412         (TRAP_TRACE): Likewise.
7413         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7414         __USE_XOPEN2K8].
7415         (CLD_KILLED): Likewise.
7416         (CLD_DUMPED): Likewise.
7417         (CLD_TRAPPED): Likewise.
7418         (CLD_STOPPED): Likewise.
7419         (CLD_CONTINUED): Likewise.
7420         (POLL_IN): Likewise.
7421         (POLL_OUT): Likewise.
7422         (POLL_MSG): Likewise.
7423         (POLL_ERR): Likewise.
7424         (POLL_PRI): Likewise.
7425         (POLL_HUP): Likewise.
7426         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (ILL_ILLOPC): Likewise.
7427         (ILL_ILLOPN): Likewise.
7428         (ILL_ILLADR): Likewise.
7429         (ILL_ILLTRP): Likewise.
7430         (ILL_PRVOPC): Likewise.
7431         (ILL_PRVREG): Likewise.
7432         (ILL_COPROC): Likewise.
7433         (ILL_BADSTK): Likewise.
7434         (FPE_INTDIV): Likewise.
7435         (FPE_INTOVF): Likewise.
7436         (FPE_FLTDIV): Likewise.
7437         (FPE_FLTOVF): Likewise.
7438         (FPE_FLTUND): Likewise.
7439         (FPE_FLTRES): Likewise.
7440         (FPE_FLTINV): Likewise.
7441         (FPE_FLTSUB): Likewise.
7442         (SEGV_MAPERR): Likewise.
7443         (SEGV_ACCERR): Likewise.
7444         (BUS_ADRALN): Likewise.
7445         (BUS_ADRERR): Likewise.
7446         (BUS_OBJERR): Likewise.
7447         (BUS_MCEERR_AR): Likewise.
7448         (BUS_MCEERR_AO): Likewise.
7449         (TRAP_BRKPT): Condition on [__USE_XOPEN_EXTENDED].
7450         (TRAP_TRACE): Likewise.
7451         (CLD_EXITED): Condition on [__USE_XOPEN_EXTENDED ||
7452         __USE_XOPEN2K8].
7453         (CLD_KILLED): Likewise.
7454         (CLD_DUMPED): Likewise.
7455         (CLD_TRAPPED): Likewise.
7456         (CLD_STOPPED): Likewise.
7457         (CLD_CONTINUED): Likewise.
7458         (POLL_IN): Likewise.
7459         (POLL_OUT): Likewise.
7460         (POLL_MSG): Likewise.
7461         (POLL_ERR): Likewise.
7462         (POLL_PRI): Likewise.
7463         (POLL_HUP): Likewise.
7464         * conform/Makefile (test-xfail-POSIX/signal.h/conform): Remove.
7465         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
7466
7467         [BZ #16670]
7468         * posix/sched.h [!__USE_XOPEN2K] (__need_time_t): Don't define
7469         before #include of <time.h>.
7470         [!__USE_XOPEN2K] (__need_timespec): Likewise.
7471         * conform/Makefile (test-xfail-POSIX/sched.h/conform): Remove.
7472         (test-xfail-UNIX98/sched.h/conform): Likewise.
7473
7474 2014-03-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7475
7476         * sysdeps/aarch64/fpu/feenablxcpt.c (feenableexcept): Detect and
7477         error absence of trapping exception support.
7478         * sysdeps/aarch64/fpu/fesetenv.c (fesetenv): Likewise.
7479
7480 2014-03-07  Joseph Myers  <joseph@codesourcery.com>
7481
7482         * catgets/Makefile (tests-special): Add $(objpfx)sample.SJIS.cat.
7483         ($(objpfx)sample.SJIS.cat): Use $(evaluate-test).
7484         * timezone/Makefile (testdata): Move definition above include of
7485         Rules.
7486         (test-zones): New variable.
7487         (tests-special): Add zone files.
7488         (build-testdata): Use $(evaluate-test).
7489
7490         * elf/Makefile (tests-special): Rename tests to end with .out.
7491         ($(objpfx)noload-mem): Likewise.
7492         ($(objpfx)tst-leaks1-mem): Likewise.
7493         ($(objpfx)tst-leaks1-static-mem.out): Likewise.
7494         * iconv/Makefile (xtests-special): Change test-iconvconfig to
7495         $(objpfx)test-iconvconfig.out.
7496         (test-iconvconfig): Change to $(objpfx)test-iconvconfig.out.  Use
7497         set -e inside subshell and redirect output to file.
7498         * iconvdata/Makefile (generated): Rename tests to end with .out.
7499         Correct type.
7500         (tests-special): Rename tests to end with .out.
7501         ($(objpfx)mtrace-tst-loading): Likewise.
7502         * intl/Makefile (generated): Likewise.
7503         (tests-special): Likewise.
7504         ($(objpfx)mtrace-tst-gettext): Likewise.
7505         * misc/Makefile (generated): Likewise.
7506         (tests-special): Likewise.
7507         ($(objpfx)tst-error1-mem): Likewise.
7508         * nptl/Makefile (tests-special): Likewise.
7509         ($(objpfx)tst-stack3-mem): Likewise.
7510         (generated): Likewise.
7511         * posix/Makefile (generated): Likewise.
7512         (tests-special): Likewise.
7513         (xtests-special): Likewise.
7514         ($(objpfx)tst-fnmatch-mem): Likewise.
7515         ($(objpfx)bug-regex2-mem): Likewise.
7516         ($(objpfx)bug-regex14-mem): Likewise.
7517         ($(objpfx)bug-regex21-mem): Likewise.
7518         ($(objpfx)bug-regex31-mem): Likewise.
7519         ($(objpfx)tst-vfork3-mem): Likewise.
7520         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
7521         ($(objpfx)tst-pcre-mem): Likewise.
7522         ($(objpfx)tst-boost-mem): Likewise.
7523         ($(objpfx)bug-ga2-mem): Likewise.
7524         ($(objpfx)bug-glob2-mem): Likewise.
7525         * resolv/Makefile (generate): Likewise.
7526         (tests-special): Likewise.
7527         (xtests-special): Likewise.
7528         (generated): Likewise.
7529         ($(objpfx)mtrace-tst-leaks): Likewise.
7530         ($(objpfx)mtrace-tst-leaks2): Likewise.
7531
7532         * scripts/merge-test-results.sh: New file.
7533         * Makefile (tests-special-notdir): New variable.
7534         (tests): Run merge-test-results.sh.
7535         (xtests): Likewise.
7536         * Rules (tests-special-notdir): New variable.
7537         (xtests-special-notdir): Likewise.
7538         (tests): Run merge-test-results.sh
7539         (xtests): Likewise.
7540
7541         * Makeconfig (test-xfail-name): New variable.
7542         (evaluate-test): Use $(test-xfail-name) instead of $(@F:.out=) to
7543         compute variable name for expected failures.
7544         * conform/Makefile (conformtest-headers-data): New variable.
7545         (conformtest-standards): Likewise.
7546         (conformtest-headers-ISO): Likewise.
7547         (conformtest-headers-ISO99): Likewise.
7548         (conformtest-headers-ISO11): Likewise.
7549         (conformtest-headers-POSIX): Likewise.
7550         (conformtest-headers-XPG3): Likewise.
7551         (conformtest-headers-XPG4): Likewise.
7552         (conformtest-headers-UNIX98): Likewise.
7553         (conformtest-headers-XOPEN2K): Likewise.
7554         (conformtest-headers-POSIX2008): Likewise.
7555         (conformtest-headers-XOPEN2K8): Likewise.
7556         (conformtest-header-list-base): Likewise.
7557         (conformtest-header-list-tests): Likewise.
7558         (conformtest-header-base): Likewise.
7559         (conformtest-header-tests): Likewise.
7560         (tests-special): Add $(conformtest-header-list-tests).  If
7561         [$(fast-check) && !$(cross-compiling)], add
7562         $(conformtest-header-tests) instead of
7563         $(objpfx)run-conformtest.out.
7564         (generated): Add $(conformtest-header-list-base).  If
7565         [$(fast-check) && !$(cross-compiling)], add
7566         $(conformtest-header-base).  Remove previous setting.
7567         ($(conformtest-header-list-tests)): New target.
7568         (test-xfail-run-conformtest): Remove variable.
7569         ($(objpfx)run-conformtest.out): Remove target.
7570         (test-xfail-ISO11/complex.h/conform): New variable.
7571         (test-xfail-ISO11/stdalign.h/conform): Likewise.
7572         (test-xfail-ISO11/stdnoreturn.h/conform): Likewise.
7573         (test-xfail-XPG3/varargs.h/conform): Likewise.
7574         (test-xfail-XPG4/varargs.h/conform): Likewise.
7575         (test-xfail-UNIX98/varargs.h/conform): Likewise.
7576         (test-xfail-XPG4/ndbm.h/conform): Likewise.
7577         (test-xfail-UNIX98/ndbm.h/conform): Likewise.
7578         (test-xfail-XOPEN2K/ndbm.h/conform): Likewise.
7579         (test-xfail-XOPEN2K8/ndbm.h/conform): Likewise.
7580         (test-xfail-XPG3/fcntl.h/conform): Likewise.
7581         (test-xfail-XPG3/ftw.h/conform): Likewise.
7582         (test-xfail-XPG3/grp.h/conform): Likewise.
7583         (test-xfail-XPG3/langinfo.h/conform): Likewise.
7584         (test-xfail-XPG3/limits.h/conform): Likewise.
7585         (test-xfail-XPG3/pwd.h/conform): Likewise.
7586         (test-xfail-XPG3/search.h/conform): Likewise.
7587         (test-xfail-XPG3/signal.h/conform): Likewise.
7588         (test-xfail-XPG3/stdio.h/conform): Likewise.
7589         (test-xfail-XPG3/stdlib.h/conform): Likewise.
7590         (test-xfail-XPG3/string.h/conform): Likewise.
7591         (test-xfail-XPG3/sys/ipc.h/conform): Likewise.
7592         (test-xfail-XPG3/sys/msg.h/conform): Likewise.
7593         (test-xfail-XPG3/sys/sem.h/conform): Likewise.
7594         (test-xfail-XPG3/sys/shm.h/conform): Likewise.
7595         (test-xfail-XPG3/sys/stat.h/conform): Likewise.
7596         (test-xfail-XPG3/sys/types.h/conform): Likewise.
7597         (test-xfail-XPG3/sys/wait.h/conform): Likewise.
7598         (test-xfail-XPG3/termios.h/conform): Likewise.
7599         (test-xfail-XPG3/time.h/conform): Likewise.
7600         (test-xfail-XPG3/unistd.h/conform): Likewise.
7601         (test-xfail-XPG4/arpa/inet.h/conform): Likewise.
7602         (test-xfail-XPG4/fcntl.h/conform): Likewise.
7603         (test-xfail-XPG4/langinfo.h/conform): Likewise.
7604         (test-xfail-XPG4/netdb.h/conform): Likewise.
7605         (test-xfail-XPG4/netinet/in.h/conform): Likewise.
7606         (test-xfail-XPG4/signal.h/conform): Likewise.
7607         (test-xfail-XPG4/stdio.h/conform): Likewise.
7608         (test-xfail-XPG4/stdlib.h/conform): Likewise.
7609         (test-xfail-XPG4/stropts.h/conform): Likewise.
7610         (test-xfail-XPG4/sys/ipc.h/conform): Likewise.
7611         (test-xfail-XPG4/sys/msg.h/conform): Likewise.
7612         (test-xfail-XPG4/sys/sem.h/conform): Likewise.
7613         (test-xfail-XPG4/sys/shm.h/conform): Likewise.
7614         (test-xfail-XPG4/sys/socket.h/conform): Likewise.
7615         (test-xfail-XPG4/sys/stat.h/conform): Likewise.
7616         (test-xfail-XPG4/sys/time.h/conform): Likewise.
7617         (test-xfail-XPG4/sys/types.h/conform): Likewise.
7618         (test-xfail-XPG4/sys/wait.h/conform): Likewise.
7619         (test-xfail-XPG4/termios.h/conform): Likewise.
7620         (test-xfail-XPG4/ucontext.h/conform): Likewise.
7621         (test-xfail-XPG4/unistd.h/conform): Likewise.
7622         (test-xfail-XPG4/utmpx.h/conform): Likewise.
7623         (test-xfail-POSIX/sched.h/conform): Likewise.
7624         (test-xfail-POSIX/signal.h/conform): Likewise.
7625         (test-xfail-POSIX/sys/wait.h/conform): Likewise.
7626         (test-xfail-POSIX/tar.h/conform): Likewise.
7627         (test-xfail-UNIX98/arpa/inet.h/conform): Likewise.
7628         (test-xfail-UNIX98/fcntl.h/conform): Likewise.
7629         (test-xfail-UNIX98/langinfo.h/conform): Likewise.
7630         (test-xfail-UNIX98/netdb.h/conform): Likewise.
7631         (test-xfail-UNIX98/netinet/in.h/conform): Likewise.
7632         (test-xfail-UNIX98/sched.h/conform): Likewise.
7633         (test-xfail-UNIX98/signal.h/conform): Likewise.
7634         (test-xfail-UNIX98/stdio.h/conform): Likewise.
7635         (test-xfail-UNIX98/stdlib.h/conform): Likewise.
7636         (test-xfail-UNIX98/stropts.h/conform): Likewise.
7637         (test-xfail-UNIX98/sys/ipc.h/conform): Likewise.
7638         (test-xfail-UNIX98/sys/msg.h/conform): Likewise.
7639         (test-xfail-UNIX98/sys/sem.h/conform): Likewise.
7640         (test-xfail-UNIX98/sys/shm.h/conform): Likewise.
7641         (test-xfail-UNIX98/sys/socket.h/conform): Likewise.
7642         (test-xfail-UNIX98/sys/time.h/conform): Likewise.
7643         (test-xfail-UNIX98/sys/wait.h/conform): Likewise.
7644         (test-xfail-UNIX98/ucontext.h/conform): Likewise.
7645         (test-xfail-UNIX98/unistd.h/conform): Likewise.
7646         (test-xfail-UNIX98/utmpx.h/conform): Likewise.
7647         (test-xfail-XOPEN2K/aio.h/conform): Likewise.
7648         (test-xfail-XOPEN2K/arpa/inet.h/conform): Likewise.
7649         (test-xfail-XOPEN2K/fcntl.h/conform): Likewise.
7650         (test-xfail-XOPEN2K/langinfo.h/conform): Likewise.
7651         (test-xfail-XOPEN2K/math.h/conform): Likewise.
7652         (test-xfail-XOPEN2K/mqueue.h/conform): Likewise.
7653         (test-xfail-XOPEN2K/netdb.h/conform): Likewise.
7654         (test-xfail-XOPEN2K/netinet/in.h/conform): Likewise.
7655         (test-xfail-XOPEN2K/semaphore.h/conform): Likewise.
7656         (test-xfail-XOPEN2K/signal.h/conform): Likewise.
7657         (test-xfail-XOPEN2K/stdarg.h/conform): Likewise.
7658         (test-xfail-XOPEN2K/stdio.h/conform): Likewise.
7659         (test-xfail-XOPEN2K/stropts.h/conform): Likewise.
7660         (test-xfail-XOPEN2K/sys/ipc.h/conform): Likewise.
7661         (test-xfail-XOPEN2K/sys/msg.h/conform): Likewise.
7662         (test-xfail-XOPEN2K/sys/sem.h/conform): Likewise.
7663         (test-xfail-XOPEN2K/sys/shm.h/conform): Likewise.
7664         (test-xfail-XOPEN2K/sys/socket.h/conform): Likewise.
7665         (test-xfail-XOPEN2K/sys/wait.h/conform): Likewise.
7666         (test-xfail-XOPEN2K/termios.h/conform): Likewise.
7667         (test-xfail-XOPEN2K/tgmath.h/conform): Likewise.
7668         (test-xfail-XOPEN2K/ucontext.h/conform): Likewise.
7669         (test-xfail-XOPEN2K/utmpx.h/conform): Likewise.
7670         (test-xfail-POSIX2008/arpa/inet.h/conform): Likewise.
7671         (test-xfail-POSIX2008/fcntl.h/conform): Likewise.
7672         (test-xfail-POSIX2008/netdb.h/conform): Likewise.
7673         (test-xfail-POSIX2008/netinet/in.h/conform): Likewise.
7674         (test-xfail-POSIX2008/signal.h/conform): Likewise.
7675         (test-xfail-POSIX2008/stropts.h/conform): Likewise.
7676         (test-xfail-POSIX2008/sys/socket.h/conform): Likewise.
7677         (test-xfail-POSIX2008/sys/wait.h/conform): Likewise.
7678         (test-xfail-XOPEN2K8/arpa/inet.h/conform): Likewise.
7679         (test-xfail-XOPEN2K8/fcntl.h/conform): Likewise.
7680         (test-xfail-XOPEN2K8/limits.h/conform): Likewise.
7681         (test-xfail-XOPEN2K8/math.h/conform): Likewise.
7682         (test-xfail-XOPEN2K8/netdb.h/conform): Likewise.
7683         (test-xfail-XOPEN2K8/netinet/in.h/conform): Likewise.
7684         (test-xfail-XOPEN2K8/signal.h/conform): Likewise.
7685         (test-xfail-XOPEN2K8/stdio.h/conform): Likewise.
7686         (test-xfail-XOPEN2K8/stropts.h/conform): Likewise.
7687         (test-xfail-XOPEN2K8/sys/ipc.h/conform): Likewise.
7688         (test-xfail-XOPEN2K8/sys/msg.h/conform): Likewise.
7689         (test-xfail-XOPEN2K8/sys/select.h/conform): Likewise.
7690         (test-xfail-XOPEN2K8/sys/sem.h/conform): Likewise.
7691         (test-xfail-XOPEN2K8/sys/shm.h/conform): Likewise.
7692         (test-xfail-XOPEN2K8/sys/socket.h/conform): Likewise.
7693         (test-xfail-XOPEN2K8/sys/time.h/conform): Likewise.
7694         (test-xfail-XOPEN2K8/sys/wait.h/conform): Likewise.
7695         (test-xfail-XOPEN2K8/termios.h/conform): Likewise.
7696         (test-xfail-XOPEN2K8/tgmath.h/conform): Likewise.
7697         (test-xfail-XOPEN2K8/utmpx.h/conform): Likewise.
7698         (conformtest-cc-flags): Likewise.
7699         ($(conformtest-header-tests): New target.
7700         * conform/check-header-lists.sh: New file.
7701         * conform/run-conformtest.sh: Remove.
7702
7703         * conform/conformtest.pl: Allow ' and \ in values given for
7704         constants.
7705         * conform/data/semaphore.h-data [POSIX] (fcntl.h): Allow header
7706         inclusion.
7707         [POSIX] (sys/types.h): Likewise.
7708         [POSIX2008 || XOPEN2K8] (sys/types.h): Don't allow header
7709         inclusion.
7710         [POSIX || UNIX98 || XOPEN2K] (time.h): Don't allow header
7711         inclusion.
7712         * conform/data/signal.h-data (SIGIO): Remove expectation.
7713         [XPG3] (SIGBUS): Do not expect.
7714         [POSIX || XPG3] (SIGPOLL): Likewise.
7715         [POSIX || XPG3] (SIGPROF): Likewise.
7716         [POSIX || XPG3] (SIGSYS): Likewise.
7717         [XPG3] (SIGTRAP): Likewise.
7718         [POSIX || XPG3] (SIGURG): Likewise.
7719         [POSIX || XPG3] (SIGVTALRM): Likewise.
7720         [POSIX || XPG3] (SIGXCPU): Likewise.
7721         [POSIX || XPG3] (SIGXFSZ): Likewise.
7722         [POSIX] (SA_SIGINFO): Expect.
7723         [XPG3] (siginfo_t): Do not expect type or contents.
7724         [POSIX] (si_pid): Do not expect element.
7725         [POSIX] (si_uid): Likewise.
7726         [POSIX] (si_addr): Likewise.
7727         [POSIX] (si_status): Likewise.
7728         [POSIX] (si_band): Likewise.
7729         [XPG4] (si_value): Likewise.
7730         [POSIX || XPG3] (ILL_ILLOPC): Do not expect.
7731         [POSIX || XPG3] (ILL_ILLOPN): Likewise.
7732         [POSIX || XPG3] (ILL_ILLADR): Likewise.
7733         [POSIX || XPG3] (ILL_ILLTRP): Likewise.
7734         [POSIX || XPG3] (ILL_PRVOPC): Likewise.
7735         [POSIX || XPG3] (ILL_PRVREG): Likewise.
7736         [POSIX || XPG3] (ILL_COPROC): Likewise.
7737         [POSIX || XPG3] (ILL_BADSTK): Likewise.
7738         [POSIX || XPG3] (FPE_INTDIV): Likewise.
7739         [POSIX || XPG3] (FPE_INTOVF): Likewise.
7740         [POSIX || XPG3] (FPE_FLTDIV): Likewise.
7741         [POSIX || XPG3] (FPE_FLTOVF): Likewise.
7742         [POSIX || XPG3] (FPE_FLTUND): Likewise.
7743         [POSIX || XPG3] (FPE_FLTRES): Likewise.
7744         [POSIX || XPG3] (FPE_FLTINV): Likewise.
7745         [POSIX || XPG3] (FPE_FLTSUB): Likewise.
7746         [POSIX || XPG3] (SEGV_MAPERR): Likewise.
7747         [POSIX || XPG3] (SEGV_ACCERR): Likewise.
7748         [POSIX || XPG3] (BUS_ADRALN): Likewise.
7749         [POSIX || XPG3] (BUS_ADRERR): Likewise.
7750         [POSIX || XPG3] (BUS_OBJERR): Likewise.
7751         [POSIX || XPG3] (CLD_EXITED): Likewise.
7752         [POSIX || XPG3] (CLD_KILLED): Likewise.
7753         [POSIX || XPG3] (CLD_DUMPED): Likewise.
7754         [POSIX || XPG3] (CLD_TRAPPED): Likewise.
7755         [POSIX || XPG3] (CLD_STOPPED): Likewise.
7756         [POSIX || XPG3] (CLD_CONTINUED): Likewise.
7757         [POSIX || XPG3] (POLL_IN): Likewise.
7758         [POSIX || XPG3] (POLL_OUT): Likewise.
7759         [POSIX || XPG3] (POLL_MSG): Likewise.
7760         [POSIX || XPG3] (POLL_ERR): Likewise.
7761         [POSIX || XPG3] (POLL_PRI): Likewise.
7762         [POSIX || XPG3] (POLL_HUP): Likewise.
7763         [POSIX || XPG3 || POSIX2008] (TRAP_BRKPT): Likewise.
7764         [POSIX || XPG3 || POSIX2008] (TRAP_TRACE): Likewise.
7765         (SIG*): Do not allow.
7766         [XPG3] (si_*): Likewise.
7767         [XPG3] (SI_*): Likewise.
7768         [XPG3 || XPG4] (sigev_*): Likewise.
7769         [XPG3 || XPG4] (SIGEV_*): Likewise.
7770         [XPG3 || XPG4] (sival_*): Likewise.
7771         [POSIX || XPG3 || XPG4] (uc_*): Likewise.
7772         [POSIX || XPG3] (BUS_*): Likewise.
7773         [POSIX || XPG3] (CLD_*): Likewise.
7774         [POSIX || XPG3] (FPE_*): Likewise.
7775         [POSIX || XPG3] (ILL_*): Likewise.
7776         [POSIX || XPG3] (POLL_*): Likewise.
7777         [POSIX || XPG3] (SEGV_*): Likewise.
7778         [POSIX || XPG3 || POSIX2008] (SS_*): Likewise.
7779         [POSIX || XPG3 || POSIX2008] (SV_*): Likewise.
7780         [POSIX || XPG3 || POSIX2008] (TRAP_*): Likewise.
7781         [POSIX || XPG3 || POSIX2008] (ss_*): Likewise.
7782         [POSIX || XPG3 || POSIX2008] (sv_*): Likewise.
7783         * conform/data/tar.h-data (TMAGLEN): Use macro-int-constant.
7784         Specify type and value.
7785         (TVERSLEN): Likewise.
7786         (REGTYPE): Likewise.
7787         (AREGTYPE): Likewise.
7788         (LNKTYPE): Likewise.
7789         (SYMTYPE): Likewise.
7790         (CHRTYPE): Likewise.
7791         (BLKTYPE): Likewise.
7792         (DIRTYPE): Likewise.
7793         (FIFOTYPE): Likewise.
7794         (CONTTYPE): Likewise.
7795         (TSUID): Likewise.
7796         (TSGID): Likewise.
7797         (TSVTX): Likewise.
7798         (TUREAD): Likewise.
7799         (TUWRITE): Likewise.
7800         (TUEXEC): Likewise.
7801         (TGREAD): Likewise.
7802         (TGWRITE): Likewise.
7803         (TGEXEC): Likewise.
7804         (TOREAD): Likewise.
7805         (TOWRITE): Likewise.
7806         (TOEXEC): Likewise.
7807         [POSIX] (TSVTX): Expect constant.
7808
7809 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
7810
7811         * Makefile (tests): Change dependencies to ....
7812         (tests-special): ... additions to this variable.
7813         (tests): Depend on $(tests-special).
7814         * Makerules (check-abi-list): New variable.
7815         (check-abi): Depend on $(check-abi-list).
7816         [$(subdir) = elf] (tests-special): Add
7817         $(objpfx)check-abi-libc.out.
7818         [$(build-shared) = yes && subdir] (tests-special): Add
7819         $(check-abi-list).
7820         [$(build-shared) = yes && subdir] (tests): Do not depend on
7821         check-abi.
7822         * Rules (tests): Depend on $(tests-special).
7823         (xtests): Depend on $(xtests-special).
7824         * catgets/Makefile (tests): Change dependencies to ....
7825         (tests-special): ... additions to this variable.
7826         * conform/Makefile (tests): Change dependencies to ....
7827         (tests-special): ... additions to this variable.
7828         * elf/Makefile (tests): Change dependencies to ....
7829         (tests-special): ... additions to this variable.
7830         * grp/Makefile (tests): Change dependencies to ....
7831         (tests-special): ... additions to this variable.
7832         * iconv/Makefile (xtests): Change dependencies to ....
7833         (xtests-special): ... additions to this variable.
7834         * iconvdata/Makefile (tests): Change dependencies to ....
7835         (tests-special): ... additions to this variable.
7836         * intl/Makefile (tests): Change dependencies to ....
7837         (tests-special): ... additions to this variable.  Also add
7838         $(objpfx)tst-gettext.out.
7839         * io/Makefile (tests): Change dependencies to ....
7840         (tests-special): ... additions to this variable.
7841         * libio/Makefile (tests): Change dependencies to ....
7842         (tests-special): ... additions to this variable.
7843         * malloc/Makefile (tests): Change dependencies to ....
7844         (tests-special): ... additions to this variable.
7845         * misc/Makefile (tests): Change dependencies to ....
7846         (tests-special): ... additions to this variable.
7847         * nptl/Makefile (tests): Change dependencies to ....
7848         (tests-special): ... additions to this variable.
7849         * nptl_db/Makefile (tests): Change dependencies to ....
7850         (tests-special): ... additions to this variable.
7851         * posix/Makefile (tests): Change dependencies to ....
7852         (tests-special): ... additions to this variable.
7853         (xtests): Change dependencies to ....
7854         (xtests-special): ... additions to this variable.
7855         * resolv/Makefile (tests): Change dependencies to ....
7856         (tests-special): ... additions to this variable.
7857         (xtests): Change dependencies to ....
7858         (xtests-special): ... additions to this variable.
7859         * stdio-common/Makefile (tests): Change dependencies to ....
7860         (tests-special): ... additions to this variable.
7861         (do-tst-unbputc): Remove target.
7862         (do-tst-printf): Likewise.
7863         * stdlib/Makefile (tests): Change dependencies to ....
7864         (tests-special): ... additions to this variable.
7865         * string/Makefile (tests): Change dependencies to ....
7866         (tests-special): ... additions to this variable.
7867         * sysdeps/x86/Makefile (tests): Change dependencies to ....
7868         (tests-special): ... additions to this variable.
7869
7870         * conform/data/netinet/tcp.h-data [POSIX2008 || XOPEN2K8]: Enable
7871         whole file.
7872         * conform/data/sys/timeb.h-data [POSIX2008 || XOPEN2K8]: Disable
7873         whole file.
7874         * conform/data/sys/uio.h-data [POSIX2008]: Likewise.
7875         * conform/data/ucontext.h-data [POSIX2008 || XOPEN2K8]: Likewise.
7876
7877         * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
7878         * conform/data/arpa/inet.h-data [XPG3]: Likewise.
7879         * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
7880         * conform/data/fmtmsg.h-data [XPG3]: Likewise.
7881         * conform/data/libgen.h-data [XPG3]: Likewise.
7882         * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
7883         * conform/data/ndbm.h-data [XPG3]: Likewise.
7884         * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
7885         * conform/data/netdb.h-data [XPG3]: Likewise.
7886         * conform/data/netinet/in.h-data [XPG3]: Likewise.
7887         * conform/data/poll.h-data [XPG3]: Likewise.
7888         * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
7889         * conform/data/strings.h-data [XPG3]: Likewise.
7890         * conform/data/stropts.h-data [XPG3]: Likewise.
7891         * conform/data/sys/mman.h-data [XPG3]: Likewise.
7892         * conform/data/sys/resource.h-data [XPG3]: Likewise.
7893         * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
7894         Likewise.
7895         * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
7896         * conform/data/sys/time.h-data [XPG3]: Likewise.
7897         * conform/data/sys/timeb.h-data [XPG3]: Likewise.
7898         * conform/data/sys/uio.h-data [XPG3]: Likewise.
7899         * conform/data/sys/un.h-data [XPG3]: Likewise.
7900         * conform/data/syslog.h-data [XPG3]: Likewise.
7901         * conform/data/ucontext.h-data [XPG3]: Likewise.
7902         * conform/data/utmpx.h-data [XPG3]: Likewise.
7903         * conform/data/varargs.h-data [UNIX98]: Enable file.
7904
7905         * manual/Makefile (INSTALL_INFO): Remove variable setting.
7906
7907         * math/libm-test.inc (struct test_f_f_data): Move expected results
7908         into structure for each rounding mode.
7909         (struct test_ff_f_data): Likewise.
7910         (struct test_ff_f_data_nexttoward): Likewise.
7911         (struct test_fi_f_data): Likewise.
7912         (struct test_fl_f_data): Likewise.
7913         (struct test_if_f_data): Likewise.
7914         (struct test_fff_f_data): Likewise.
7915         (struct test_c_f_data): Likewise.
7916         (struct test_f_f1_data): Likewise.
7917         (struct test_fF_f1_data): Likewise.
7918         (struct test_ffI_f1_data): Likewise.
7919         (struct test_c_c_data): Likewise.
7920         (struct test_cc_c_data): Likewise.
7921         (struct test_f_i_data): Likewise.
7922         (struct test_ff_i_data): Likewise.
7923         (struct test_f_l_data): Likewise.
7924         (struct test_f_L_data): Likewise.
7925         (struct test_fFF_11_data): Likewise.
7926         (RM_): New macro.
7927         (RM_FE_DOWNWARD): Likewise.
7928         (RM_FE_TONEAREST): Likewise.
7929         (RM_FE_TOWARDZERO): Likewise.
7930         (RM_FE_UPWARD): Likewise.
7931         (RUN_TEST_LOOP_f_f): Update references to expected results.
7932         (RUN_TEST_LOOP_2_f): Likewise.
7933         (RUN_TEST_LOOP_fff_f): Likewise.
7934         (RUN_TEST_LOOP_c_f): Likewise.
7935         (RUN_TEST_LOOP_f_f1): Likewise.
7936         (RUN_TEST_LOOP_fF_f1): Likewise.
7937         (RUN_TEST_LOOP_fI_f1): Likewise.
7938         (RUN_TEST_LOOP_ffI_f1): Likewise.
7939         (RUN_TEST_LOOP_c_c): Likewise.
7940         (RUN_TEST_LOOP_cc_c): Likewise.
7941         (RUN_TEST_LOOP_f_i): Likewise.
7942         (RUN_TEST_LOOP_f_i_tg): Likewise.
7943         (RUN_TEST_LOOP_ff_i_tg): Likewise.
7944         (RUN_TEST_LOOP_f_b): Likewise.
7945         (RUN_TEST_LOOP_f_b_tg): Likewise.
7946         (RUN_TEST_LOOP_f_l): Likewise.
7947         (RUN_TEST_LOOP_f_L): Likewise.
7948         (RUN_TEST_LOOP_fFF_11): Likewise.
7949         * math/gen-libm-test.pl (parse_args): Output four copies of
7950         expected results for each test.
7951
7952         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
7953         (__ASSUME_UTIMES): Remove.
7954         * sysdeps/unix/sysv/linux/tile/kernel-features.h
7955         (__ASSUME_UTIMES): Likewise.
7956
7957         * math/gen-auto-libm-tests.c: Update comment on output format.
7958         (output_for_one_input_case): Generate before-rounding and
7959         after-rounding information as conditions on output flags not
7960         floating-point format.
7961         * math/auto-libm-test-out: Regenerated.
7962         * math/gen-libm-test.pl (cond_value): New function.
7963         (or_cond_value): Use cond_value.
7964         (generate_testfile): Handle conditional exceptions.
7965
7966 2014-03-05  Joseph Myers  <joseph@codesourcery.com>
7967
7968         * math/libm-test.inc (max_valid_error): New variable.
7969         (init_max_error): Take new argument specifying whether function
7970         results are exactly determined.  Set max_valid_error and bound
7971         other variables for errors based on this argument.
7972         (set_max_error): Do not record results above max_valid_error.
7973         (check_float_internal): Only accept errors of up to 0.5ulps if
7974         also at most max_valid_error.
7975         (START): Take new argument EXACT and pass it to init_max_error.
7976         (acos_test): Update call to START.
7977         (acos_test_tonearest): Likewise.
7978         (acos_test_towardzero): Likewise.
7979         (acos_test_downward): Likewise.
7980         (acos_test_upward): Likewise.
7981         (acosh_test): Likewise.
7982         (asin_test): Likewise.
7983         (asin_test_tonearest): Likewise.
7984         (asin_test_towardzero): Likewise.
7985         (asin_test_downward): Likewise.
7986         (asin_test_upward): Likewise.
7987         (asinh_test): Likewise.
7988         (atan_test): Likewise.
7989         (atanh_test): Likewise.
7990         (atan2_test): Likewise.
7991         (cabs_test): Likewise.
7992         (cacos_test): Likewise.
7993         (cacosh_test): Likewise.
7994         (carg_test): Likewise.
7995         (casin_test): Likewise.
7996         (casinh_test): Likewise.
7997         (catan_test): Likewise.
7998         (catanh_test): Likewise.
7999         (cbrt_test): Likewise.
8000         (ccos_test): Likewise.
8001         (ccosh_test): Likewise.
8002         (ceil_test): Likewise.
8003         (cexp_test): Likewise.
8004         (cimag_test): Likewise.
8005         (clog_test): Likewise.
8006         (clog10_test): Likewise.
8007         (conj_test): Likewise.
8008         (copysign_test): Likewise.
8009         (cos_test): Likewise.
8010         (cos_test_tonearest): Likewise.
8011         (cos_test_towardzero): Likewise.
8012         (cos_test_downward): Likewise.
8013         (cos_test_upward): Likewise.
8014         (cosh_test): Likewise.
8015         (cosh_test_tonearest): Likewise.
8016         (cosh_test_towardzero): Likewise.
8017         (cosh_test_downward): Likewise.
8018         (cosh_test_upward): Likewise.
8019         (cpow_test): Likewise.
8020         (cproj_test): Likewise.
8021         (creal_test): Likewise.
8022         (csin_test): Likewise.
8023         (csinh_test): Likewise.
8024         (csqrt_test): Likewise.
8025         (ctan_test): Likewise.
8026         (ctan_test_tonearest): Likewise.
8027         (ctan_test_towardzero): Likewise.
8028         (ctan_test_downward): Likewise.
8029         (ctan_test_upward): Likewise.
8030         (ctanh_test): Likewise.
8031         (ctanh_test_tonearest): Likewise.
8032         (ctanh_test_towardzero): Likewise.
8033         (ctanh_test_downward): Likewise.
8034         (ctanh_test_upward): Likewise.
8035         (erf_test): Likewise.
8036         (erfc_test): Likewise.
8037         (exp_test): Likewise.
8038         (exp_test_tonearest): Likewise.
8039         (exp_test_towardzero): Likewise.
8040         (exp_test_downward): Likewise.
8041         (exp_test_upward): Likewise.
8042         (exp10_test): Likewise.
8043         (exp10_test_tonearest): Likewise.
8044         (exp10_test_towardzero): Likewise.
8045         (exp10_test_downward): Likewise.
8046         (exp10_test_upward): Likewise.
8047         (pow10_test): Likewise.
8048         (exp2_test): Likewise.
8049         (expm1_test): Likewise.
8050         (expm1_test_tonearest): Likewise.
8051         (expm1_test_towardzero): Likewise.
8052         (expm1_test_downward): Likewise.
8053         (expm1_test_upward): Likewise.
8054         (fabs_test): Likewise.
8055         (fdim_test): Likewise.
8056         (floor_test): Likewise.
8057         (fma_test): Likewise.
8058         (fma_test_towardzero): Likewise.
8059         (fma_test_downward): Likewise.
8060         (fma_test_upward): Likewise.
8061         (fmax_test): Likewise.
8062         (fmin_test): Likewise.
8063         (fmod_test): Likewise.
8064         (fpclassify_test): Likewise.
8065         (frexp_test): Likewise.
8066         (hypot_test): Likewise.
8067         (ilogb_test): Likewise.
8068         (isfinite_test): Likewise.
8069         (finite_test): Likewise.
8070         (isgreater_test): Likewise.
8071         (isgreaterequal_test): Likewise.
8072         (isinf_test): Likewise.
8073         (isless_test): Likewise.
8074         (islessequal_test): Likewise.
8075         (islessgreater_test): Likewise.
8076         (isnan_test): Likewise.
8077         (isnormal_test): Likewise.
8078         (issignaling_test): Likewise.
8079         (isunordered_test): Likewise.
8080         (j0_test): Likewise.
8081         (j1_test): Likewise.
8082         (jn_test): Likewise.
8083         (ldexp_test): Likewise.
8084         (lgamma_test): Likewise.
8085         (gamma_test): Likewise.
8086         (lrint_test): Likewise.
8087         (lrint_test_tonearest): Likewise.
8088         (lrint_test_towardzero): Likewise.
8089         (lrint_test_downward): Likewise.
8090         (lrint_test_upward): Likewise.
8091         (llrint_test): Likewise.
8092         (llrint_test_tonearest): Likewise.
8093         (llrint_test_towardzero): Likewise.
8094         (llrint_test_downward): Likewise.
8095         (llrint_test_upward): Likewise.
8096         (log_test): Likewise.
8097         (log10_test): Likewise.
8098         (log1p_test): Likewise.
8099         (log2_test): Likewise.
8100         (logb_test): Likewise.
8101         (logb_test_downward): Likewise.
8102         (lround_test): Likewise.
8103         (llround_test): Likewise.
8104         (modf_test): Likewise.
8105         (nearbyint_test): Likewise.
8106         (nextafter_test): Likewise.
8107         (nexttoward_test): Likewise.
8108         (pow_test): Likewise.
8109         (pow_test_tonearest): Likewise.
8110         (pow_test_towardzero): Likewise.
8111         (pow_test_downward): Likewise.
8112         (pow_test_upward): Likewise.
8113         (remainder_test): Likewise.
8114         (drem_test): Likewise.
8115         (remainder_test_tonearest): Likewise.
8116         (drem_test_tonearest): Likewise.
8117         (remainder_test_towardzero): Likewise.
8118         (drem_test_towardzero): Likewise.
8119         (remainder_test_downward): Likewise.
8120         (drem_test_downward): Likewise.
8121         (remainder_test_upward): Likewise.
8122         (drem_test_upward): Likewise.
8123         (remquo_test): Likewise.
8124         (rint_test): Likewise.
8125         (rint_test_tonearest): Likewise.
8126         (rint_test_towardzero): Likewise.
8127         (rint_test_downward): Likewise.
8128         (rint_test_upward): Likewise.
8129         (round_test): Likewise.
8130         (scalb_test): Likewise.
8131         (scalbn_test): Likewise.
8132         (scalbln_test): Likewise.
8133         (signbit_test): Likewise.
8134         (sin_test): Likewise.
8135         (sin_test_tonearest): Likewise.
8136         (sin_test_towardzero): Likewise.
8137         (sin_test_downward): Likewise.
8138         (sin_test_upward): Likewise.
8139         (sincos_test): Likewise.
8140         (sinh_test): Likewise.
8141         (sinh_test_tonearest): Likewise.
8142         (sinh_test_towardzero): Likewise.
8143         (sinh_test_downward): Likewise.
8144         (sinh_test_upward): Likewise.
8145         (sqrt_test): Likewise.
8146         (sqrt_test_tonearest): Likewise.
8147         (sqrt_test_towardzero): Likewise.
8148         (sqrt_test_downward): Likewise.
8149         (sqrt_test_upward): Likewise.
8150         (tan_test): Likewise.
8151         (tan_test_tonearest): Likewise.
8152         (tan_test_towardzero): Likewise.
8153         (tan_test_downward): Likewise.
8154         (tan_test_upward): Likewise.
8155         (tanh_test): Likewise.
8156         (tgamma_test): Likewise.
8157         (trunc_test): Likewise.
8158         (y0_test): Likewise.
8159         (y1_test): Likewise.
8160         (yn_test): Likewise.
8161         (significand_test): Likewise.
8162
8163         * math/libm-test.inc (struct ulp_data): Don't refer to ulps for
8164         individual tests in comment.
8165         (libm-test-ulps.h): Don't refer to test_ulps in #include comment.
8166         (prev_max_error): New variable.
8167         (prev_real_max_error): Likewise.
8168         (prev_imag_max_error): Likewise.
8169         (compare_ulp_data): Don't refer to test names in comment.
8170         (find_test_ulps): Remove function.
8171         (find_function_ulps): Likewise.
8172         (find_complex_function_ulps): Likewise.
8173         (init_max_error): Take function name as argument.  Look up ulps
8174         for that function.
8175         (print_ulps): Remove function.
8176         (print_max_error): Use prev_max_error instead of calling
8177         find_function_ulps.
8178         (print_complex_max_error): Use prev_real_max_error and
8179         prev_imag_max_error instead of calling find_complex_function_ulps.
8180         (check_float_internal): Take max_ulp parameter instead of calling
8181         find_test_ulps.  Don't call print_ulps.
8182         (check_float): Update call to check_float_internal.
8183         (check_complex): Update calls to check_float_internal.
8184         (START): Pass argument to init_max_error.
8185         * math/gen-libm-test.pl (%results): Don't include "kind"
8186         information.
8187         (parse_ulps): Don't handle ulps of individual tests.
8188         (print_ulps_file): Likewise.
8189         (output_ulps): Likewise.
8190         * math/README.libm-test: Update.
8191         * manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
8192         individual tests.
8193         * sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
8194         * sysdeps/alpha/fpu/libm-test-ulps: Likewise.
8195         * sysdeps/arm/libm-test-ulps: Likewise.
8196         * sysdeps/i386/fpu/libm-test-ulps: Likewise.
8197         * sysdeps/ia64/fpu/libm-test-ulps: Likewise.
8198         * sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
8199         * sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
8200         * sysdeps/microblaze/libm-test-ulps: Likewise.
8201         * sysdeps/mips/mips32/libm-test-ulps: Likewise.
8202         * sysdeps/mips/mips64/libm-test-ulps: Likewise.
8203         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8204         * sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
8205         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
8206         * sysdeps/sh/libm-test-ulps: Likewise.
8207         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
8208         * sysdeps/tile/libm-test-ulps: Likewise.
8209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8210
8211 2014-03-04  Joseph Myers  <joseph@codesourcery.com>
8212
8213         * math/libm-test.inc (print_complex_max_error): Check separately
8214         whether real and imaginary errors are within allowed range and
8215         pass 0 to print_complex_function_ulps instead of value within
8216         allowed range.
8217
8218 2014-03-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
8219
8220         * libio/tst-ftell-active-handler.c (get_handles_fdopen): Fix
8221         formatting.
8222         (get_handles_fopen): Likewise.
8223         (do_write_test): Likewise.
8224
8225         * libio/wfileops.c (do_ftell_wide): Fix up formatting.
8226
8227         * libio/fileops.c (do_ftell): Use cached offset when
8228         available.
8229         * libio/iofwide.c (do_ftell_wide): Likewise.
8230         * libio/iofdopen.c (_IO_new_fdopen): Don't use
8231         _IO_file_attach.
8232         * libio/wfileops.c (_IO_fwide): Don't cache offset.
8233
8234         [BZ #16532]
8235         * libio/libioP.h (get_file_offset): New function.
8236         * libio/fileops.c (get_file_offset): Likewise.
8237         (do_ftell): Likewise.
8238         (_IO_new_file_seekoff): Split out ftell logic.
8239         * libio/wfileops.c (do_ftell_wide): Likewise.
8240         (_IO_wfile_seekoff): Split out ftell logic.
8241         * libio/tst-ftell-active-handler.c: New test case.
8242         * libio/Makefile (tests): Add it.
8243
8244 2014-03-03  Roland McGrath  <roland@hack.frob.com>
8245
8246         * nptl/ChangeLog: Renamed to nptl/ChangeLog.old, no longer used.
8247         * nptl_db/ChangeLog: Renamed to nptl_db/ChangeLog.old, no longer used.
8248
8249 2014-03-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
8250
8251         [BZ #16639]
8252         * nscd/connections.c (nscd_init): Call do_exit.
8253         (start_threads): Call do_exit and notify_parent.
8254         (begin_drop_privileges): Call do_exit.
8255         (finish_drop_privileges): Likewise.
8256         * nscd/selinux.c (preserve_capabilities): Likewise.
8257         (install_real_capabilities): Likewise.
8258         (nscd_selinux_enabled): Likewise.
8259         (avc_create_thread): Likewise.
8260         (avc_alloc_lock): Likewise.
8261         (nscd_avc_init): Likewise.
8262         * nscd/nscd.c (parent_fd): New static variable.
8263         (main): Create a pipe between parent and child processes.
8264         Skip closing parent_fd.
8265         (monitor_child): New function.
8266         (do_exit): Likewise.
8267         (notify_parent): Likewise.
8268         * nscd/nscd.h (notify_parent): Likewise.
8269         (do_exit): Likewise.
8270
8271 2014-03-03  Carlos O'Donell  <carlos@redhat.com>
8272
8273         * malloc/malloc.c (__libc_calloc): Revert last change.
8274
8275 2014-03-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8276
8277         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8278
8279 2014-03-03  Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
8280
8281         * sysdeps/powerpc/powerpc64/power7/strrchr.S: New file.
8282         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strrchr multiarch
8283         implementation.
8284         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
8285         (__libc_ifunc_impl_list): Likewise.
8286         * sysdeps/powerpc/powerpc64/multiarch/strrchr.c: New file.
8287         * sysdeps/powerpc/powerpc64/multiarch/strrchr-ppc64.c: New file.
8288         * sysdeps/powerpc/powerpc64/multiarch/strrchr-power7.S: New file.
8289         * string/strrchr.c: Define STRRCHR.
8290
8291 2014-02-28  Ondřej Bílka  <neleai@seznam.cz>
8292
8293         * benchtest/bench-strtok.c (simple_strtok): Delete.
8294         (strtok_string): Use as benchmark.
8295         * string/strtok (STRTOK): New macro.
8296
8297 2014-02-28  Carlos O'Donell  <carlos@redhat.com>
8298
8299         * manual/threads.texi: Add header and standard comments to all
8300         functions.
8301
8302         * elf/dl-lookup.c (check_match): New function.
8303         (ELF_MACHINE_SYM_NO_MATCH): Adjust comment.
8304         (do_lookup_x): Remove nested function check_match. Use non-nested
8305         function check_match.
8306
8307 2014-02-28  Roland McGrath  <roland@hack.frob.com>
8308
8309         * csu/Makefile (generated, before-compile): Use += rather than =.
8310         * catgets/Makefile (generated, generated-dirs): Likewise.
8311         * debug/Makefile (generated): Likewise.
8312         * dlfcn/Makefile (generated): Likewise.
8313         * elf/Makefile (before-compile, generated, generated-dirs): Likewise.
8314         * iconvdata/Makefile (before-compile, generated): Likewise.
8315         * intl/Makefile (before-compile, generated, generated-dirs): Likewise.
8316         * libio/Makefile (generated): Likewise.
8317         * malloc/Makefile (generated): Likewise.
8318         * manual/Makefile (generated, generated-dirs): Likewise.
8319         * misc/Makefile (generated): Likewise.
8320         * posix/Makefile (generated): Likewise.
8321         * resolv/Makefile (generated): Likewise.
8322         * sunrpc/Makefile (generated, generated-dirs): Likewise.
8323         * timezone/Makefile (generated, generated-dirs): Likewise.
8324
8325         * stdio-common/Versions (libc: GLIBC_PRIVATE): Add missing }.
8326
8327 2014-02-27  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8328
8329         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
8330         power8 implementation.
8331         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power8.S: New
8332         file: POWER8 llround ifunc implementation.
8333         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c
8334         (__lllround): Add POWER8 implementation.
8335         * sysdeps/powerpc/powerpc64/power8/fpu/s_llround.S: New file:
8336         POWER8 llround implementation.
8337
8338         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint
8339         power8 implementation.
8340         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power8.S: New
8341         file: POWER8 llrint ifunc implementation.
8342         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c (__lllrint):
8343         Add POWER8 implementation.
8344         * sysdeps/powerpc/powerpc64/power8/fpu/s_llrint.S: New file:
8345         POWER8 llrint implementation.
8346
8347         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite
8348         power8 implementation.
8349         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power8.S: New
8350         file: POWER8 finite ifunc implementation.
8351         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c (__finite):
8352         Add POWER8 implementation.
8353         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c (__finitef):
8354         Likewise.
8355         * sysdeps/powerpc/powerpc64/power8/fpu/s_finite.S: New file:
8356         POWER8 finite implementation.
8357         * sysdeps/powerpc/powerpc64/power8/fpu/s_finitef.S: New file.
8358
8359         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf
8360         power8 implementation.
8361         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power8.S: New
8362         file: POWER8 isinf ifunc implementation.
8363         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c (__isinf): Add
8364         POWER8 implementation.
8365         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c (__isinff):
8366         Likewise.
8367         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinf.S: New file: POWER8
8368         isinf implementation.
8369         * sysdeps/powerpc/powerpc64/power8/fpu/s_isinff.S: New file.
8370
8371         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
8372         (INIT_ARCH): Add hwcap2 initialization.
8373         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
8374         power8 implementation.
8375         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power8.S: New
8376         file: POWER8 isnan ifunc implementation.
8377         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c (__isnan): Add
8378         POWER8 implementation.
8379         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c (__isnanf):
8380         Likewise.
8381         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnan.S: New file: POWER8
8382         isnan implementation.
8383         * sysdeps/powerpc/powerpc64/power8/fpu/s_isnanf.S: New file.
8384
8385 2014-02-27  Joey Ye  <joey.ye@arm.com>
8386
8387         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_NANFRAC_S, _FP_NANFRAC_D)
8388         (_FP_NANFRAC_Q): Set to zero.
8389
8390 2014-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8391
8392         [BZ #16623]
8393         * math/auto-libm-test-in: New test inputs.
8394         * math/auto-libm-test-out: Regenerate.
8395         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Preserve sign of A
8396         and DA.
8397         (__cos): Likewise.
8398         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
8399
8400 2014-02-27  Joseph Myers  <joseph@codesourcery.com>
8401
8402         * scripts/evaluate-test.sh: Take new argument indicating whether
8403         failure is expected.
8404         * Makeconfig (evaluate-test): Pass argument to evaluate-test.sh
8405         indicating whether failure is expected.
8406         * conform/Makefile (test-xfail-run-conformtest): New variable.
8407         ($(objpfx)run-conformtest.out): Don't expect to fail at makefile
8408         level.
8409         * posix/Makefile (test-xfail-annexc): New variable.
8410         ($(objpfx)annexc.out): Don't expect to fail at makefile level.
8411
8412 2014-02-26  Joseph Myers  <joseph@codesourcery.com>
8413
8414         * argp/Makefile: Include Makeconfig immediately after defining
8415         subdir.
8416         * assert/Makefile: Likewise.
8417         * benchtests/Makefile: Likewise.
8418         * catgets/Makefile: Likewise.
8419         * conform/Makefile: Likewise.
8420         * crypt/Makefile: Likewise.
8421         * csu/Makefile: Likewise.
8422         (all): Remove target.
8423         * ctype/Makefile: Include Makeconfig immediately after defining
8424         subdir.
8425         * debug/Makefile: Likewise.
8426         * dirent/Makefile: Likewise.
8427         * dlfcn/Makefile: Likewise.
8428         * gmon/Makefile: Likewise.
8429         * gnulib/Makefile: Likewise.
8430         * grp/Makefile: Likewise.
8431         * gshadow/Makefile: Likewise.
8432         * hesiod/Makefile: Likewise.
8433         * hurd/Makefile: Likewise.
8434         (all): Remove target.
8435         * iconvdata/Makefile: Include Makeconfig immediately after
8436         defining subdir.
8437         * inet/Makefile: Likewise.
8438         * intl/Makefile: Likewise.
8439         * io/Makefile: Likewise.
8440         * libio/Makefile: Likewise.
8441         (all): Remove target.
8442         * locale/Makefile: Include Makeconfig immediately after defining
8443         subdir.
8444         * login/Makefile: Likewise.
8445         * mach/Makefile: Likewise.
8446         (all): Remove target.
8447         * malloc/Makefile: Include Makeconfig immediately after defining
8448         subdir.
8449         (all): Remove target.
8450         * manual/Makefile: Include Makeconfig immediately after defining
8451         subdir.
8452         * math/Makefile: Likewise.
8453         * misc/Makefile: Likewise.
8454         * nis/Makefile: Likewise.
8455         * nss/Makefile: Likewise.
8456         * po/Makefile: Likewise.
8457         (all): Remove target.
8458         * posix/Makefile: Include Makeconfig immediately after defining
8459         subdir.
8460         * pwd/Makefile: Likewise.
8461         * resolv/Makefile: Likewise.
8462         * resource/Makefile: Likewise.
8463         * rt/Makefile: Likewise.
8464         * setjmp/Makefile: Likewise.
8465         * shadow/Makefile: Likewise.
8466         * signal/Makefile: Likewise.
8467         * socket/Makefile: Likewise.
8468         * soft-fp/Makefile: Likewise.
8469         * stdio-common/Makefile: Likewise.
8470         * stdlib/Makefile: Likewise.
8471         * streams/Makefile: Likewise.
8472         * string/Makefile: Likewise.
8473         * sunrpc/Makefile: Likewise.
8474         (all): Remove target.
8475         * sysvipc/Makefile: Include Makeconfig immediately after defining
8476         subdir.
8477         * termios/Makefile: Likewise.
8478         * time/Makefile: Likewise.
8479         * timezone/Makefile: Likewise.
8480         (all): Remove target.
8481         * wcsmbs/Makefile: Include Makeconfig immediately after defining
8482         subdir.
8483         * wctype/Makefile: Likewise.
8484
8485 2014-02-26  Steve Ellcey  <sellcey@mips.com>
8486
8487         * sysdeps/mips/math_private.h (_FPU_MASK_ALL) New.
8488         (libc_feholdexcept_mips): Use _FPU_MASK_ALL.
8489         (libc_feholdexcept_setround_mips): Ditto.
8490         (libc_feholdsetround): New.
8491         (libc_feholdsetroundf): New.
8492         (libc_feholdsetroundl): New.
8493         (libc_feupdateenv_test_mips): New.
8494         (libc_feupdateenv_test): New.
8495         (libc_feupdateenv_testf): New.
8496         (libc_feupdateenv_testl): New.
8497         (libc_feresetround): New.
8498         (libc_feresetroundf): New.
8499         (libc_feresetroundl): New.
8500         (libc_fetestexcept_mips): New.
8501         (libc_fetestexcept): New.
8502         (libc_fetestexceptf): New.
8503         (libc_fetestexceptl): New.
8504         (HAVE_RM_CTX): New.
8505         (libc_feholdexcept_setround_mips_ctx): New.
8506         (libc_feholdexcept_setround_ctx): New.
8507         (libc_feholdexcept_setroundf_ctx): New.
8508         (libc_feholdexcept_setroundl_ctx): New.
8509         (libc_fesetenv_mips_ctx): New.
8510         (libc_fesetenv_ctx): New.
8511         (libc_fesetenv_ctxf): New.
8512         (libc_fesetenv_ctxl): New.
8513         (libc_feupdateenv_mips_ctx): New.
8514         (libc_feupdateenv_ctx): New.
8515         (libc_feupdateenvf_ctx): New.
8516         (libc_feupdateenvl_ctx): New.
8517         (libc_feholdsetround_mips_ctx): New.
8518         (libc_feholdsetround_ctx): New.
8519         (libc_feholdsetroundf_ctx): New.
8520         (libc_feholdsetroundl_ctx): New.
8521         (libc_feresetround_mips_ctx): New.
8522         (libc_feresetround_ctx): New.
8523         (libc_feresetroundf_ctx): New.
8524         (libc_feresetroundl_ctx): New.
8525
8526 2014-02-26  Carlos O'Donell  <carlos@redhat.com>
8527
8528         * manual/ipc.texi (Semaphores): Use @Theglibc{}.
8529
8530         * manual/ipc.texi: New file.
8531         * manual/Makefile (chapters): Add ipc.
8532         * manual/job.texi: Add "Inter-Process Communication" to next.
8533         * manual/process.texi: Add "Inter-Process Communication" to prev.
8534
8535 2014-02-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8536
8537         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8538
8539 2014-02-26  Ondřej Bílka  <neleai@seznam.cz>
8540
8541         * malloc/malloc.c (__libc_calloc): Simplify implementation.
8542
8543         * manual/arith.texi: Fix spaces after sentences.
8544         * manual/charset.texi: Likewise.
8545         * manual/errno.texi: Likewise.
8546         * manual/install.texi: Likewise.
8547         * manual/llio.texi: Likewise.
8548         * manual/locale.texi: Likewise.
8549         * manual/maint.texi: Likewise.
8550         * manual/math.texi: Likewise.
8551         * manual/memory.texi: Likewise.
8552         * manual/message.texi: Likewise.
8553         * manual/probes.texi: Likewise.
8554         * manual/resource.texi: Likewise.
8555         * manual/signal.texi: Likewise.
8556         * manual/socket.texi: Likewise.
8557         * manual/stdio.texi: Likewise.
8558         * manual/string.texi: Likewise.
8559         * manual/time.texi: Likewise.
8560         * manual/users.texi: Likewise.
8561
8562 2014-02-25  Carlos O'Donell  <carlos@redhat.com>
8563
8564         [BZ #16632]
8565         * include/features.h: Don't warn about _BSD_SOURCE or _SVID_SOURCE if
8566         _DEFAULT_SOURCE is defined.
8567
8568 2014-02-25  Ulrich Drepper  <drepper@gmail.com>
8569             Carlos O'Donell  <carlos@redhat.com>
8570
8571         [BZ #16613]
8572         * elf/dl-tls.c (_dl_count_modids): New function.
8573         * sysdeps/generic/ldsodefs.h: Declare _dl_count_modids.
8574         * elf/rtld.c (dl_main): Call _dl_count_modids to track TLS usage in
8575         audit library and increment generation counter.
8576         (_dl_allocate_tls_init): Add assertion to check TLS generation count.
8577         * elf/tst-audit9.c: New file.
8578         * elf/tst-auditmod9a.c: New file.
8579         * elf/tst-auditmod9b.c: New file.
8580         * elf/Makefile: Add rules to build and run tst-audit9.
8581
8582 2014-02-25  Florian Weimer  <fweimer@redhat.com>
8583
8584         [BZ #15347]
8585         * misc/sys/select.h (__FD_MASK): Avoid signed integer overflow.
8586
8587 2014-02-25  Will Newton  <will.newton@linaro.org>
8588
8589         * sysdeps/arm/__longjmp.S: Include stap-probe.h.
8590         (__longjmp): Restore sp and lr before restoring callee
8591         saved registers.  Add longjmp and longjmp_target
8592         SystemTap probe point.
8593         * sysdeps/arm/bits/setjmp.h (__jmp_buf): Update comment.
8594         * sysdeps/arm/include/bits/setjmp.h (__JMP_BUF_SP):
8595         Define to zero to match jmpbuf layout.
8596         * sysdeps/arm/setjmp.S: Include stap-probe.h.
8597         (__sigsetjmp): Save sp and lr before saving callee
8598         saved registers.  Add setjmp SystemTap probe point.
8599
8600 2014-02-24  Stefan Liebler  <stli@linux.vnet.ibm.com>
8601
8602         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
8603
8604 2014-02-24  Andreas Schwab  <schwab@suse.de>
8605
8606         [BZ #15804]
8607         * elf/pldd.c (wait_for_ptrace_stop): New function.
8608         (main): Call it after attaching.
8609
8610 2014-02-22  Roland McGrath  <roland@hack.frob.com>
8611
8612         * Makerules ($(common-objpfx)Versions.v.i): No longer depend
8613         on $(common-objpfx)abi-versions.h; using <shlib-compat.h> inside
8614         Versions files is now verboten.
8615         * hurd/Versions (libc: GLIBC_2.0):
8616         Remove various [SHLIB_COMPAT (libc, GLIBC_2_0, ...)] sections.
8617         (libc: HURD_CTHREADS_0.3): Remove conditionalization, was under
8618         [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_2)].
8619         * mach/Versions: Likewise.
8620
8621         * csu/Versions: Remove unused %include.
8622         * resolv/Versions: Likewise.
8623
8624 2014-02-21  Joseph Myers  <joseph@codesourcery.com>
8625
8626         * Makefile ($(objpfx)c++-types-check.out): Use $(evaluate-test).
8627         ($(objpfx)check-local-headers.out): Likewise.
8628         ($(objpfx)begin-end-check.out): Likewise.
8629         * Makerules (check-abi-%.out): Likewise.
8630         * catgets/Makefile ($(objpfx)test1.cat): Likewise.
8631         ($(objpfx)test2.cat): Likewise.
8632         ($(objpfx)de/libc.cat): Likewise.
8633         ($(objpfx)test-gencat.out): Likewise.
8634         * conform/Makefile ($(objpfx)run-conformtest.out): Likewise.
8635         * elf/Makefile ($(objpfx)order-cmp.out): Likewise.
8636         ($(objpfx)noload-mem): Likewise.
8637         ($(objpfx)tst-pathopt.out): Likewise.
8638         ($(objpfx)tst-rtld-load-self.out): Likewise.
8639         ($(objpfx)tst-array1-cmp.out): Likewise.
8640         ($(objpfx)tst-array1-static-cmp.out): Likewise.
8641         ($(objpfx)tst-array2-cmp.out): Likewise.
8642         ($(objpfx)tst-array3-cmp.out): Likewise.
8643         ($(objpfx)tst-array4-cmp.out): Likewise.
8644         ($(objpfx)tst-array5-cmp.out): Likewise.
8645         ($(objpfx)tst-array5-static-cmp.out): Likewise.
8646         ($(objpfx)check-textrel.out): Likewise.
8647         ($(objpfx)check-execstack.out): Likewise.
8648         ($(objpfx)check-localplt.out): Likewise.
8649         ($(objpfx)order2-cmp.out): Likewise.
8650         ($(objpfx)tst-leaks1-mem): Likewise.
8651         ($(objpfx)tst-leaks1-static-mem): Likewise.
8652         ($(objpfx)tst-initorder-cmp.out): Likewise.
8653         ($(objpfx)tst-initorder2-cmp.out): Likewise.
8654         ($(objpfx)tst-unused-dep.out): Likewise.
8655         ($(objpfx)tst-unused-dep-cmp.out): Likewise.
8656         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Likewise.
8657         * iconv/Makefile (test-iconvconfig): Likewise.
8658         * iconvdata/Makefile ($(objpfx)mtrace-tst-loading): Likewise.
8659         ($(objpfx)iconv-test.out): Likewise.
8660         ($(objpfx)tst-tables.out): Likewise.
8661         * intl/Makefile ($(objpfx)mtrace-tst-gettext): Likewise.
8662         ($(objpfx)tst-gettext.out): Likewise.
8663         ($(objpfx)tst-translit.out): Likewise.
8664         ($(objpfx)tst-gettext2.out): Likewise.
8665         ($(objpfx)tst-gettext4.out): Likewise.
8666         ($(objpfx)tst-gettext6.out): Likewise.
8667         * io/Makefile ($(objpfx)ftwtest.out): Likewise.
8668         * libio/Makefile ($(objpfx)test-freopen.out): Likewise.
8669         ($(objpfx)tst-fopenloc-cmp.out): Likewise.
8670         ($(objpfx)tst-fopenloc-mem.out): Likewise.
8671         * malloc/Makefile ($(objpfx)tst-mtrace.out): Likewise.
8672         * misc/Makefile ($(objpfx)tst-error1-mem): Likewise.
8673         * posix/Makefile ($(objpfx)globtest.out): Likewise.
8674         ($(objpfx)wordexp-tst.out): Likewise.
8675         ($(objpfx)annexc.out): Likewise.
8676         ($(objpfx)tst-fnmatch-mem): Likewise.
8677         ($(objpfx)bug-regex2-mem): Likewise.
8678         ($(objpfx)bug-regex14-mem): Likewise.
8679         ($(objpfx)bug-regex21-mem): Likewise.
8680         ($(objpfx)bug-regex31-mem): Likewise.
8681         ($(objpfx)tst-vfork3-mem): Likewise.
8682         ($(objpfx)tst-rxspencer-no-utf8-mem): Likewise.
8683         ($(objpfx)tst-pcre-mem): Likewise.
8684         ($(objpfx)tst-boost-mem): Likewise.
8685         ($(objpfx)tst-getconf.out): Likewise.
8686         ($(objpfx)bug-ga2-mem): Likewise.
8687         ($(objpfx)bug-glob2-mem): Likewise.
8688         * resolv/Makefile ($(objpfx)mtrace-tst-leaks): Likewise.
8689         ($(objpfx)mtrace-tst-leaks2): Likewise.
8690         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Likewise.
8691         ($(objpfx)tst-printf.out): Likewise.
8692         ($(objpfx)tst-setvbuf1.out): Likewise.
8693         ($(objpfx)tst-setvbuf1-cmp.out): Likewise.
8694         * stdlib/Makefile ($(objpfx)isomac.out): Likewise.
8695         ($(objpfx)tst-fmtmsg.out): Likewise.
8696         * string/Makefile ($(objpfx)tst-svc-cmp.out): Likewise.
8697         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Likewise.
8698
8699         * bits/fcntl.h [__USE_MISC]: Remove redundant conditionals.
8700         * bits/sigaction.h [__USE_MISC]: Likewise.
8701         * bits/waitstatus.h: Update #endif comments.
8702         * ctype/ctype.h: Likewise.
8703         * dirent/dirent.h: Likewise.
8704         [__USE_MISC]: Remove redundant conditionals.
8705         * grp/grp.h: Update #endif comments.
8706         [__USE_GNU]: Remove redundant conditionals.
8707         [__USE_MISC]: Likewise.
8708         * inet/netinet/in.h [__USE_GNU]: Likewise.
8709         * io/sys/stat.h [__USE_MISC]: Likewise.
8710         * libio/bits/stdio-ldbl.h [__USE_MISC]: Likewise.
8711         * libio/bits/stdio.h: Update #endif comments.
8712         [__USE_MISC]: Remove redundant conditionals.
8713         * libio/bits/stdio2.h [__USE_MISC]: Likewise.
8714         * libio/stdio.h: Update #endif comments.
8715         [__USE_MISC]: Remove redundant conditionals.
8716         * math/bits/math-finite.h [__USE_MISC]: Likewise.
8717         * math/bits/mathcalls.h [__USE_MISC]: Likewise.
8718         * math/math.h: Update #else and #endif comments.
8719         [__USE_MISC]: Remove redundant conditionals.
8720         * misc/sys/uio.h: Update #endif comments.
8721         * posix/bits/unistd.h [__USE_MISC]: Remove redundant conditionals.
8722         * posix/glob.h [__USE_MISC]: Likewise.
8723         * posix/sys/types.h: Update #endif comments.
8724         [__USE_MISC]: Remove redundant conditionals.
8725         * posix/sys/wait.h: Update #endif comments.
8726         [__USE_MISC]: Remove redundant conditionals.
8727         * posix/unistd.h: Update #endif comments.
8728         [__USE_MISC]: Remove redundant conditionals.
8729         * pwd/pwd.h [__USE_GNU]: Likewise.
8730         [__USE_MISC]: Likewise.
8731         * resolv/netdb.h [__USE_GNU]: Likewise.
8732         * signal/signal.h: Update #endif comments.
8733         [__USE_MISC]: Remove redundant conditionals.
8734         * stdlib/stdlib.h: Update #else and #endif comments.
8735         [__USE_MISC]: Remove redundant conditionals.
8736         [__USE_GNU]: Likewise.
8737         * string/bits/string2.h [__USE_MISC]: Likewise.
8738         * string/string.h: Update #endif comments.
8739         [__USE_MISC]: Remove redundant conditionals.
8740         * sysdeps/m68k/m680x0/fpu/bits/mathinline.h [__USE_MISC]:
8741         Likewise.
8742         * sysdeps/mach/hurd/bits/fcntl.h [__USE_MISC]: Likewise.
8743         * sysdeps/mach/hurd/bits/stat.h [__USE_MISC]: Likewise.
8744         * sysdeps/unix/sysv/linux/alpha/bits/sigaction.h [__USE_MISC]:
8745         Likewise.
8746         * sysdeps/unix/sysv/linux/alpha/bits/stat.h [__USE_MISC]:
8747         Likewise.
8748         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: Update #endif
8749         comments.
8750         [__USE_MISC]: Remove redundant conditionals.
8751         * sysdeps/unix/sysv/linux/bits/in.h [__USE_GNU]: Likewise.
8752         * sysdeps/unix/sysv/linux/bits/sigaction.h [__USE_MISC]: Likewise.
8753         * sysdeps/unix/sysv/linux/bits/socket.h [__USE_GNU]: Likewise.
8754         * sysdeps/unix/sysv/linux/bits/stat.h [__USE_MISC]: Likewise.
8755         * sysdeps/unix/sysv/linux/ia64/bits/sigaction.h [__USE_MISC]:
8756         Likewise.
8757         * sysdeps/unix/sysv/linux/m68k/bits/stat.h [__USE_MISC]: Likewise.
8758         * sysdeps/unix/sysv/linux/mips/bits/sigaction.h [__USE_MISC]:
8759         Likewise.
8760         * sysdeps/unix/sysv/linux/mips/bits/stat.h [__USE_MISC]: Likewise.
8761         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h [__USE_MISC]:
8762         Likewise.
8763         * sysdeps/unix/sysv/linux/s390/bits/sigaction.h [__USE_MISC]:
8764         Likewise.
8765         * sysdeps/unix/sysv/linux/s390/bits/stat.h [__USE_MISC]: Likewise.
8766         * sysdeps/unix/sysv/linux/sparc/bits/sigaction.h [__USE_MISC]:
8767         Likewise.
8768         * sysdeps/unix/sysv/linux/sparc/bits/stat.h [__USE_MISC]:
8769         Likewise.
8770         * sysdeps/unix/sysv/linux/x86/bits/stat.h [__USE_MISC]: Likewise.
8771         * sysdeps/x86/bits/string.h: Update #endif comments.
8772         * sysdeps/x86/fpu/bits/mathinline.h [__USE_MISC]: Remove redundant
8773         conditionals.
8774         * time/sys/time.h: Update #endif comments.
8775         * time/time.h: Likewise.
8776         [__USE_MISC]: Remove redundant conditionals.
8777
8778 2014-02-21  Yury Gribov  <y.gribov@samsung.com>
8779
8780         [BZ #16600]
8781         * sysdeps/arm/libm-test-ulps: Update for VFPv4.
8782
8783 2014-02-21  Andreas Schwab  <schwab@linux-m68k.org>
8784
8785         * Versions.def (librt): Add GLIBC_2.17.
8786
8787 2014-02-21  Adam Conrad  <adconrad@0c3.net>
8788
8789         * sysdeps/powerpc/bits/hwcap.h: Allow _SYSDEPS_SYSDEP_H guard as a
8790         synonym for _SYS_AUXV_H to allow direct inclusion.
8791         * sysdeps/sparc/bits/hwcap.h: Likewise.
8792         * sysdeps/powerpc/sysdep.h: Define _SYSDEPS_SYSDEP_H instead of
8793         _SYS_AUXV_H so we can include sysdep.h and sys/auxv.h together.
8794         * sysdeps/sparc/sysdep.h: Likewise.
8795
8796 2014-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8797
8798         * benchtests/bench-strrchr.c (do_test): Fix minor formatting.
8799
8800 2014-02-21  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
8801
8802         * benchtests/bench-strrchr.c: Print length instead of position.
8803
8804 2014-02-20  Joseph Myers  <joseph@codesourcery.com>
8805
8806         [BZ #16611]
8807         * sysdeps/unix/sysv/linux/kernel-features.h
8808         [__LINUX_KERNEL_VERSION >= 0x030000 && __ASSUME_SOCKETCALL]
8809         (__ASSUME_SENDMMSG_SOCKETCALL): Define.
8810         [__LINUX_KERNEL_VERSION >= 0x030000 && (__i386__ || __x86_64__ ||
8811         __powerpc__ || __sh__ || __sparc__)] (__ASSUME_SENDMMSG_SYSCALL):
8812         Likewise.
8813         [__i386__ || __powerpc__ || __sh__ || __sparc__]
8814         (__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8815         [__ASSUME_SENDMMSG_SOCKETCALL || __ASSUME_SENDMMSG_SYSCALL]
8816         (__ASSUME_SENDMMSG): Define instead of using previous
8817         [__LINUX_KERNEL_VERSION >= 0x020627] condition.
8818         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8819         (__ASSUME_SENDMMSG_SYSCALL): Define.
8820         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8821         [__LINUX_KERNEL_VERSION >= 0x030200] (__ASSUME_SENDMMSG_SYSCALL):
8822         Likewise.
8823         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8824         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8825         Likewise.
8826         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8827         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8828         Likewise.
8829         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SOCKETCALL
8830         && !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
8831         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
8832         [__ASSUME_SENDMMSG]: Change conditionals to
8833         [__ASSUME_SENDMMSG_SOCKETCALL].
8834         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8835         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_SENDMMSG_SYSCALL):
8836         Define.
8837         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8838         [__LINUX_KERNEL_VERSION >= 0x030100] (__ASSUME_SENDMMSG_SYSCALL):
8839         Likewise.
8840         * sysdeps/unix/sysv/linux/sendmmsg.c [__ASSUME_SOCKETCALL &&
8841         !__ASSUME_SENDMMSG_SYSCALL_WITH_SOCKETCALL &&
8842         !__ASSUME_SENDMMSG_SYSCALL] (__NR_sendmmsg): Undefine.
8843         [!__ASSUME_SENDMMSG]: Change conditional to
8844         [!__ASSUME_SENDMMSG_SOCKETCALL].
8845         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8846         [__LINUX_KERNEL_VERSION >= 0x030000] (__ASSUME_SENDMMSG_SYSCALL):
8847         Define.
8848
8849         [BZ #16610]
8850         * sysdeps/unix/sysv/linux/kernel-features.h
8851         [__LINUX_KERNEL_VERSION >= 0x020621 && __ASSUME_SOCKETCALL]
8852         (__ASSUME_RECVMMSG_SOCKETCALL): Define.
8853         [(__LINUX_KERNEL_VERSION >= 0x020621 && (__i386__ || __x86_64__ ||
8854         __sparc__)) || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__
8855         || __sh__))] (__ASSUME_RECVMMSG_SYSCALL): Likewise.
8856         [__i386__ || __sparc__]
8857         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8858         [__ASSUME_RECVMMSG_SOCKETCALL || __ASSUME_RECVMMSG_SYSCALL]
8859         (__ASSUME_RECVMMSG): Define instead of using previous
8860         [__LINUX_KERNEL_VERSION >= 0x020621] condition.
8861         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8862         (__ASSUME_RECVMMSG_SYSCALL): Define.
8863         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8864         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8865         Likewise.
8866         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8867         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8868         Likewise.
8869         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8870         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8871         Likewise.
8872         * sysdeps/unix/sysv/linux/internal_recvmmsg.S [__ASSUME_SOCKETCALL
8873         && !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
8874         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
8875         [__ASSUME_RECVMMSG]: Change condition to
8876         [__ASSUME_RECVMMSG_SOCKETCALL].
8877         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8878         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8879         Define.
8880         (__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL): Likewise.
8881         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8882         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_RECVMMSG_SYSCALL):
8883         Likewise.
8884         * sysdeps/unix/sysv/linux/recvmmsg.c [__ASSUME_SOCKETCALL &&
8885         !__ASSUME_RECVMMSG_SYSCALL_WITH_SOCKETCALL &&
8886         !__ASSUME_RECVMMSG_SYSCALL] (__NR_recvmmsg): Undefine.
8887         [!__ASSUME_RECVMMSG]: Change condition to
8888         [!__ASSUME_RECVMMSG_SOCKETCALL].
8889         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8890         (__ASSUME_RECVMMSG_SYSCALL): Define.
8891
8892         [BZ #16609]
8893         * sysdeps/unix/sysv/linux/kernel-features.h [__i386__ ||
8894         __powerpc__ || __s390__ || __sh__ || __sparc__]
8895         (__ASSUME_SOCKETCALL): Define.
8896         [__LINUX_KERNEL_VERSION && __ASSUME_SOCKETCALL]
8897         (__ASSUME_ACCEPT4_SOCKETCALL): Likewise.
8898         [(__LINUX_KERNEL_VERSION >= 0x02061c && (__x86_64__ || __sparc__))
8899         || (__LINUX_KERNEL_VERSION >= 0x020625 && (__powerpc__ ||
8900         __sh__))] (__ASSUME_ACCEPT4_SYSCALL): Likewise.
8901         [__sparc__] (__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL): Likewise.
8902         [__ASSUME_ACCEPT4_SOCKETCALL || __ASSUME_ACCEPT4_SYSCALL]
8903         (__ASSUME_ACCEPT4): Define instead of using previous
8904         [__LINUX_KERNEL_VERSION >= 0x02061c && (__i386__ || __x86_64__ ||
8905         __powerpc__ || __sparc__ || __s390__)] condition.
8906         * sysdeps/unix/sysv/linux/aarch64/kernel-features.h
8907         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
8908         * sysdeps/unix/sysv/linux/accept4.c [__ASSUME_SOCKETCALL &&
8909         !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
8910         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
8911         [!__ASSUME_ACCEPT4]: Change condition to
8912         [!__ASSUME_ACCEPT4_SOCKETCALL].
8913         * sysdeps/unix/sysv/linux/alpha/kernel-features.h
8914         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.  Correct
8915         condition to [__LINUX_KERNEL_VERSION >= 0x030200].
8916         * sysdeps/unix/sysv/linux/arm/kernel-features.h
8917         [__LINUX_KERNEL_VERSION >= 0x020624] (__ASSUME_ACCEPT4): Change to
8918         __ASSUME_ACCEPT4_SYSCALL.
8919         * sysdeps/unix/sysv/linux/i386/accept4.S [__ASSUME_ACCEPT4]:
8920         Change conditions to [__ASSUME_ACCEPT4_SOCKETCALL].
8921         * sysdeps/unix/sysv/linux/ia64/kernel-features.h
8922         [__LINUX_KERNEL_VERSION >= 0x030300] (__ASSUME_ACCEPT4): Change to
8923         __ASSUME_ACCEPT4_SYSCALL.
8924         * sysdeps/unix/sysv/linux/internal_accept4.S [__ASSUME_SOCKETCALL
8925         && !__ASSUME_ACCEPT4_SYSCALL_WITH_SOCKETCALL &&
8926         !__ASSUME_ACCEPT4_SYSCALL] (__NR_accept4): Undefine.
8927         [__ASSUME_ACCEPT4]: Change condition to
8928         [__ASSUME_ACCEPT4_SOCKETCALL].
8929         * sysdeps/unix/sysv/linux/m68k/kernel-features.h
8930         (__ASSUME_SOCKETCALL): Define.
8931         [__LINUX_KERNEL_VERSION >= 0x02061c] (__ASSUME_ACCEPT4): Remove.
8932         * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
8933         (__ASSUME_SOCKETCALL): Define.
8934         (__ASSUME_ACCEPT4): Remove.
8935         [__LINUX_KERNEL_VERSION >= 0x020621] (__ASSUME_ACCEPT4_SYSCALL):
8936         Define.
8937         * sysdeps/unix/sysv/linux/mips/kernel-features.h
8938         [__LINUX_KERNEL_VERSION >= 0x02061f] (__ASSUME_ACCEPT4_SYSCALL):
8939         Likewise.
8940         * sysdeps/unix/sysv/linux/tile/kernel-features.h
8941         (__ASSUME_ACCEPT4): Change to __ASSUME_ACCEPT4_SYSCALL.
8942
8943         * sysdeps/unix/sysv/linux/arm/bits/hwcap.h (HWCAP_ARM_VFPD32): New
8944         macro.
8945         (HWCAP_ARM_LPAE): Likewise.
8946         (HWCAP_ARM_EVTSTRM): Likewise.
8947         * sysdeps/unix/sysv/linux/arm/dl-procinfo.c (_dl_arm_cap_flags):
8948         Add vpfd32, lpae and evtstrm.
8949         * sysdeps/unix/sysv/linux/arm/dl-procinfo.h (_DL_HWCAP_COUNT):
8950         Increase to 22.
8951
8952 2014-02-19  Joseph Myers  <joseph@codesourcery.com>
8953
8954         * math/auto-libm-test-in: Add tests of clog10.
8955         * math/auto-libm-test-out: Regenerated.
8956         * math/libm-test.inc (clog10_test_data): Use AUTO_TESTS_c_c.
8957         * sysdeps/i386/fpu/libm-test-ulps: Update.
8958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8959
8960 2014-02-18  Andreas Schwab  <schwab@suse.de>
8961
8962         [BZ #16574]
8963         * resolv/res_send.c (send_vc): Add parameter ansp2_malloced.
8964         Store non-zero if the second buffer was newly allocated.
8965         (send_dg): Likewise.
8966         (__libc_res_nsend): Add parameter ansp2_malloced and pass it down
8967         to send_vc and send_dg.
8968         (res_nsend): Pass NULL for ansp2_malloced.
8969         * resolv/res_query.c (__libc_res_nquery): Add parameter
8970         answerp2_malloced and pass it down to __libc_res_nsend.
8971         (res_nquery): Pass additional NULL to __libc_res_nquery.
8972         (__libc_res_nsearch): Add parameter answerp2_malloced and pass it
8973         down to __libc_res_nquery and __libc_res_nquerydomain.  Deallocate
8974         second answer buffer if answerp2_malloced was set.
8975         (res_nsearch): Pass additional NULL to __libc_res_nsearch.
8976         (__libc_res_nquerydomain): Add parameter
8977         answerp2_malloced and pass it down to __libc_res_nquery.
8978         (res_nquerydomain): Pass additional NULL to
8979         __libc_res_nquerydomain.
8980         * resolv/nss_dns/dns-network.c (_nss_dns_getnetbyname_r): Pass
8981         additional NULL to __libc_res_nsend and __libc_res_nquery.
8982         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Pass
8983         additional NULL to __libc_res_nsearch.
8984         (_nss_dns_gethostbyname4_r): Revert last change.  Use new
8985         parameter of __libc_res_nsearch to check for separately allocated
8986         second buffer.
8987         (_nss_dns_gethostbyaddr2_r): Pass additional NULL to
8988         __libc_res_nquery.
8989         * resolv/nss_dns/dns-canon.c (_nss_dns_getcanonname_r): Pass
8990         additional NULL to __libc_res_nquery.
8991         * resolv/gethnamaddr.c (gethostbyname2): Pass additional NULL to
8992         __libc_res_nsearch.
8993         (gethostbyaddr): Pass additional NULL to __libc_res_nquery.
8994         * include/resolv.h: Update prototypes of __libc_res_nquery,
8995         __libc_res_nsearch, __libc_res_nsend.
8996
8997 2014-02-18  Joseph Myers  <joseph@codesourcery.com>
8998
8999         * math/auto-libm-test-in: Add tests of fma.
9000         * math/auto-libm-test-out: Regenerated.
9001         * math/libm-test.inc (fma_test_data): Use AUTO_TESTS_fff_f.
9002         (fma_towardzero_test_data): Likewise.
9003         (fma_downward_test_data): Likewise.
9004         (fma_upward_test_data): Likewise.
9005         * math/gen-auto-libm-tests.c (rounding_mode_desc): Add field
9006         mpc_mode.
9007         (rounding_modes): Add values for new field.
9008         (func_calc_method): Add value mpfr_fff_f.
9009         (func_calc_desc): Add mpfr_fff_f union field.
9010         (test_function): Add field exact_args.
9011         (FUNC): Add macro argument EXACT_ARGS.
9012         (FUNC_mpfr_f_f): Update call to FUNC.
9013         (FUNC_mpfr_f_f): Likewise.
9014         (FUNC_mpfr_ff_f): Likewise.
9015         (FUNC_mpfr_if_f): Likewise.
9016         (FUNC_mpc_c_f): Likewise.
9017         (FUNC_mpc_c_c): Likewise.
9018         (test_functions): Add fma.  Update calls to FUNC.
9019         (handle_input_arg): Add argument exact_args.
9020         (add_test): Update call to handle_input_arg.
9021         (calc_generic_results): Add argument mode.  Handle mpfr_fff_f.
9022         (output_for_one_input_case): Update call to calc_generic_results.
9023         Recalculate exact zero results in each rounding mode.
9024
9025         * math/gen-auto-libm-tests.c (adjust_real): Ensure integers are
9026         non-negative before setting low bit.
9027         * math/auto-libm-test-in: Mark one asin test possibly having
9028         spurious underflow.
9029         * math/auto-libm-test-out: Regenerated.
9030         * sysdeps/i386/fpu/libm-test-ulps: Update.
9031         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9032
9033 2014-02-17  David Holsgrove <david.holsgrove@xilinx.com>
9034
9035         * sysdeps/microblaze: Move directory from ports/sysdeps/microblaze.
9036         * sysdeps/unix/sysv/linux/microblaze: Move directory from
9037         ports/sysdeps/unix/sysv/linux/microblaze.
9038         * README: Add missing listing for microblaze*-*-linux-gnu.
9039
9040 2014-02-16  Mike Frysinger  <vapier@gentoo.org>
9041
9042         * sysdeps/ia64: Move directory from ports/sysdeps/ia64.
9043         * sysdeps/unix/sysv/linux/ia64: Move directory from
9044         ports/sysdeps/unix/sysv/linux/ia64.
9045         * README: Update listing for ia64-*-linux-gnu.
9046
9047 2014-02-14  Tomas Dohnalek  <tdohnale@redhat.com>
9048             Joseph Myers  <joseph@codesourcery.com>
9049
9050         * Makeconfig (test-name): New variable.
9051         (evaluate-test): Likewise.
9052         * Makerules (do-test-clean): Remove .test-result files.
9053         (common-mostlyclean): Likewise.
9054         * Rules ($(objpfx)%.out): Use $(evaluate-test) in both rules.
9055         * scripts/evaluate-test.sh: New file.
9056
9057 2014-02-14  Joseph Myers  <joseph@codesourcery.com>
9058
9059         * libio/Makefile ($(objpfx)tst-fopenloc.check): Split into
9060         separate $(objpfx)tst-fopenloc-cmp.out and
9061         $(objpfx)tst-fopenloc-mem.out targets.
9062         (tests): Update dependencies.
9063         * posix/Makefile (tests variable): Add tst-rxspencer-no-utf8.
9064         (generated): Change tst-rxspencer-mem and tst-rxspencer.mtrace to
9065         tst-rxspencer-no-utf8-mem and tst-rxspencer-no-utf8.mtrace.
9066         (tst-rxspencer-no-utf8-ARGS): New variable.
9067         (tst-rxspencer-no-utf8-ENV): Likewise.
9068         (tests target): Depend on $(objpfx)tst-rxspencer-no-utf8-mem
9069         instead of $(objpfx)tst-rxspencer-mem.
9070         ($(objpfx)tst-rxspencer-mem): Change target to
9071         $(objpfx)tst-rxspencer-no-utf8-mem.  Depend on
9072         $(objpfx)tst-rxspencer-no-utf8.out instead of running test program.
9073         * posix/tst-rxspencer-no-utf8.c: New file.
9074
9075         * elf/Makefile ($(objpfx)order.out): Remove rule.
9076         [$(run-built-tests) = yes] (tests): Depend on
9077         $(objpfx)order-cmp.out.
9078         ($(objpfx)order-cmp.out): New rule.
9079         [$(run-built-tests) = yes] (tests): Depend on
9080         $(objpfx)tst-array1-cmp.out, $(objpfx)tst-array1-static-cmp.out,
9081         $(objpfx)tst-array2-cmp.out, $(objpfx)tst-array3-cmp.out,
9082         $(objpfx)tst-array4-cmp.out, $(objpfx)tst-array5-cmp.out and
9083         $(objpfx)tst-array5-static-cmp.out.
9084         ($(objpfx)tst-array1.out): Remove rule.
9085         ($(objpfx)tst-array1-cmp.out): New rule.
9086         ($(objpfx)tst-array1-static.out): Remove rule.
9087         ($(objpfx)tst-array1-static-cmp.out): New rule.
9088         ($(objpfx)tst-array2.out): Remove rule.
9089         ($(objpfx)tst-array2-cmp.out): New rule.
9090         ($(objpfx)tst-array3.out): Remove rule.
9091         ($(objpfx)tst-array3-cmp.out): New rule.
9092         ($(objpfx)tst-array4.out): Remove rule.
9093         ($(objpfx)tst-array4-cmp.out): New rule.
9094         ($(objpfx)tst-array5.out): Remove rule.
9095         ($(objpfx)tst-array5-cmp.out): New rule.
9096         ($(objpfx)tst-array5-static.out): Remove rule.
9097         ($(objpfx)tst-array5-static-cmp.out): New rule.
9098         [$(run-built-tests) = yes] (tests): Depend on
9099         $(objpfx)order2-cmp.out.
9100         ($(objpfx)order2.out): Remove rule.
9101         ($(objpfx)order2-cmp.out): New rule.
9102         ($(objpfx)tst-initorder.out): Remove rule.
9103         [$(run-built-tests) = yes] (tests): Depend on
9104         $(objpfx)tst-initorder-cmp.out.
9105         ($(objpfx)tst-initorder-cmp.out): New rule.
9106         ($(objpfx)tst-initorder2.out): Remove rule.
9107         [$(run-built-tests) = yes] (tests): Depend on
9108         $(objpfx)tst-initorder2-cmp.out.
9109         ($(objpfx)tst-initorder2-cmp.out): New rule.
9110         [$(run-built-tests) = yes] (tests): Depend on
9111         $(objpfx)tst-unused-dep-cmp.out.
9112         ($(objpfx)tst-unused-dep-cmp.out): Do not run cmp.
9113         ($(objpfx)tst-unused-dep-cmp.out): New rule.
9114         * stdio-common/Makefile [$(run-built-tests) = yes] (tests): Depend
9115         on $(objpfx)tst-setvbuf1-cmp.out.
9116         ($(objpfx)tst-setvbuf1.out): Do not run cmp.
9117         ($(objpfx)tst-setvbuf1-cmp.out): New rule.
9118         * string/Makefile [$(run-built-tests) = yes] (tests): Depend
9119         $(objpfx)tst-svc-cmp.out instead of $(objpfx)tst-svc.out.
9120         ($(objpfx)tst-svc.out): Remove rule.
9121         ($(objpfx)tst-svc-cmp.out): New rule.
9122
9123 2014-02-13  Joseph Myers  <joseph@codesourcery.com>
9124
9125         * bits/mman.h [__USE_MISC]: Remove redundant conditionals.
9126         * ctype/ctype.h [__USE_MISC]: Likewise.
9127         * dirent/dirent.h [__USE_MISC]: Likewise.
9128         * grp/grp.h [__USE_MISC]: Likewise.
9129         * io/fcntl.h [__USE_MISC]: Likewise.
9130         * io/sys/stat.h [__USE_MISC]: Likewise.
9131         * libio/stdio.h [__USE_MISC]: Likewise.
9132         * posix/unistd.h [__USE_MISC]: Likewise.
9133         * pwd/pwd.h [__USE_MISC]: Likewise.
9134         * stdlib.h [__USE_MISC]: Likewise.
9135         * string/bits/string2.h [__USE_MISC]: Likewise.
9136         * string/string.h [__USE_MISC]: Likewise.
9137         * time/time.h [__USE_MISC]: Likewise.
9138
9139 2014-02-13  Andreas Schwab  <schwab@suse.de>
9140
9141         [BZ #16574]
9142         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname4_r): Free the
9143         second answer buffer if it was separately allocated.
9144
9145 2014-02-12  Joseph Myers  <joseph@codesourcery.com>
9146
9147         * sysdeps/mips/math-tests.h: Include <features.h>.
9148         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
9149         (ROUNDING_TESTS_long_double): Do not define.
9150         [!__mips_soft_float && _MIPS_SIM != _ABIO32 && __GNUC_PREREQ (4, 9)]
9151         (EXCEPTION_TESTS_long_double): Likewise.
9152         * sysdeps/mips/mips64/libm-test-ulps: Update.
9153
9154         * include/features.h (__USE_BSD): Remove macro definitions.
9155         (__USE_SVID): Likewise.
9156         (_BSD_SOURCE): Likewise.
9157         (_SVID_SOURCE): Likewise.
9158         [!defined _BSD_SOURCE && !defined _SVID_SOURCE]: Remove condition
9159         from definition of _DEFAULT_SOURCE.
9160         [_BSD_SOURCE || _SVID_SOURCE]: Change condition to
9161         [_DEFAULT_SOURCE].
9162         * bits/fcntl.h [__USE_BSD]: Change condition to [__USE_MISC].
9163         * bits/mman.h [__USE_BSD]: Likewise.
9164         * bits/termios.h [__USE_BSD]: Likewise.
9165         * bits/waitstatus.h [__USE_BSD]: Likewise.
9166         * ctype/ctype.h [__USE_SVID]: Likewise.
9167         * dirent/dirent.h [__USE_BSD]: Likewise.
9168         * grp/grp.h [__USE_SVID]: Likewise.
9169         [__USE_BSD]: Likewise.
9170         * inet/netinet/igmp.h [__USE_BSD]: Likewise.
9171         * io/fcntl.h [__USE_BSD]: Likewise.
9172         * io/ftw.h [__USE_BSD]: Likewise.
9173         * io/sys/stat.h [__USE_BSD]: Likewise.
9174         * libio/bits/stdio-ldbl.h [__USE_BSD]: Likewise.
9175         * libio/bits/stdio2.h [__USE_BSD]: Likewise.
9176         * libio/stdio.h [__USE_SVID]: Likewise.
9177         [__USE_BSD]: Likewise.
9178         * math/math.h [__USE_SVID]: Likewise.
9179         [__USE_BSD]: Likewise.
9180         * misc/bits/syslog-ldbl.h [__USE_BSD]: Likewise.
9181         * misc/bits/syslog.h [__USE_BSD]: Likewise.
9182         * misc/search.h [__USE_SVID]: Likewise.
9183         * misc/sys/mman.h [__USE_BSD]: Likewise.
9184         * misc/sys/syslog.h [__USE_BSD]: Likewise.
9185         * misc/sys/uio.h [__USE_BSD]: Likewise.
9186         * posix/bits/unistd.h [__USE_BSD]: Likewise.
9187         * posix/glob.h [__USE_BSD]: Likewise.
9188         * posix/regex.h [__USE_BSD]: Likewise.
9189         * posix/sys/types.h [__USE_BSD]: Likewise.
9190         [__USE_SVID]: Likewise.
9191         * posix/sys/utsname.h [__USE_SVID]: Likewise.
9192         * posix/sys/wait.h [__USE_BSD]: Likewise.
9193         [__USE_SVID]: Likewise.
9194         * posix/unistd.h [__USE_BSD]: Likewise.
9195         [__USE_SVID]: Likewise.
9196         * pwd/pwd.h [__USE_SVID]: Likewise.
9197         * resolv/netdb.h [__USE_BSD]: Likewise.
9198         * setjmp/setjmp.h [__USE_BSD]: Likewise.
9199         * signal/signal.h [__USE_BSD]: Likewise.
9200         [__USE_SVID]: Likewise.
9201         * socket/sys/socket.h [__USE_BSD]: Likewise.
9202         * stdlib/fmtmsg.h [__USE_SVID]: Likewise.
9203         * stdlib/stdlib.h [__USE_BSD]: Likewise.
9204         [__USE_SVID]: Likewise.
9205         * string/bits/string2.h [__USE_BSD]: Likewise.
9206         [__USE_SVID]: Likewise.
9207         * string/bits/string3.h [__USE_BSD]: Likewise.
9208         * string/endian.h [__USE_BSD]: Likewise.
9209         * string/string.h [__USE_SVID]: Likewise.
9210         [__USE_BSD]: Likewise.
9211         * string/strings.h [__USE_BSD]: Likewise.
9212         * sysdeps/generic/netinet/ip.h [__USE_BSD]: Likewise.
9213         * sysdeps/gnu/netinet/ip_icmp.h [__USE_BSD]: Likewise.
9214         * sysdeps/mach/hurd/bits/fcntl.h [__USE_BSD]: Likewise.
9215         * sysdeps/mach/hurd/bits/stat.h [__USE_BSD]: Likewise.
9216         * sysdeps/unix/sysv/linux/alpha/bits/mman.h [__USE_BSD]: Likewise.
9217         * sysdeps/unix/sysv/linux/alpha/bits/termios.h [__USE_BSD]:
9218         Likewise.
9219         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_BSD]:
9220         Likewise.
9221         * sysdeps/unix/sysv/linux/bits/mman-linux.h [__USE_BSD]: Likewise.
9222         * sysdeps/unix/sysv/linux/bits/sys_errlist.h [__USE_BSD]:
9223         Likewise.
9224         * sysdeps/unix/sysv/linux/bits/termios.h [__USE_BSD]: Likewise.
9225         * sysdeps/unix/sysv/linux/mips/bits/termios.h [__USE_BSD]:
9226         Likewise.
9227         * sysdeps/unix/sysv/linux/netinet/if_ether.h [__USE_BSD]:
9228         Likewise.
9229         * sysdeps/unix/sysv/linux/netinet/if_fddi.h [__USE_BSD]: Likewise.
9230         * sysdeps/unix/sysv/linux/netinet/if_tr.h [__USE_BSD]: Likewise.
9231         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h [__USE_BSD]:
9232         Likewise.
9233         * sysdeps/unix/sysv/linux/sparc/bits/termios.h [__USE_BSD]:
9234         Likewise.
9235         * sysdeps/x86/bits/string.h [__USE_BSD]: Likewise.
9236         * sysvipc/sys/ipc.h [__USE_SVID]: Likewise.
9237         * termios/termios.h [__USE_BSD]: Likewise.
9238         * time/sys/time.h [__USE_BSD]: Likewise.
9239         * time/time.h [__USE_BSD]: Likewise.
9240         [__USE_SVID]: Likewise.
9241
9242         * Makefile (subdir_targets): Remove subdir_lint.out.
9243
9244         * stdio-common/Makefile (do-tst-unbputc): Remove target.
9245         (do-tst-printf): Likewise.
9246         (tests): Depend directly on $(objpfx)tst-unbputc.out and
9247         $(objpfx)tst-printf.out.
9248
9249         * io/ftwtest-sh (testout): Change to $tmp/ftwtest-tmp.out.
9250
9251         * Makerules (check-abi-%): Change target to
9252         $(objpfx)check-abi-%.out.
9253         (check-abi target): Update dependencies.
9254         (check-abi-pattern variable): Redirect output of diff to $@.
9255         (check-abi variable): Likewise.
9256         * elf/Makefile (check-abi): Update dependencies.
9257
9258         * soft-fp/op-common.h (_FP_DECL): Mark exponent as possibly
9259         unused.
9260         (_FP_PACK_SEMIRAW): Determine tininess based on rounding shifted
9261         value if _FP_TININESS_AFTER_ROUNDING and unrounded value is in
9262         subnormal range.
9263         (_FP_PACK_CANONICAL): Determine tininess based on rounding to
9264         normal precision if _FP_TININESS_AFTER_ROUNDING and unrounded
9265         value has largest subnormal exponent.
9266         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS]
9267         (_FP_TININESS_AFTER_ROUNDING): Undefine and redefine to 0.
9268         * sysdeps/aarch64/soft-fp/sfp-machine.h
9269         (_FP_TININESS_AFTER_ROUNDING): New macro.
9270         * sysdeps/alpha/soft-fp/sfp-machine.h
9271         (_FP_TININESS_AFTER_ROUNDING): Likewise.
9272         * sysdeps/arm/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
9273         Likewise.
9274         * sysdeps/mips/mips64/soft-fp/sfp-machine.h
9275         (_FP_TININESS_AFTER_ROUNDING): Likewise.
9276         * sysdeps/mips/soft-fp/sfp-machine.h
9277         (_FP_TININESS_AFTER_ROUNDING): Likewise.
9278         * sysdeps/powerpc/soft-fp/sfp-machine.h
9279         (_FP_TININESS_AFTER_ROUNDING): Likewise.
9280         * sysdeps/sh/soft-fp/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
9281         Likewise.
9282         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
9283         (_FP_TININESS_AFTER_ROUNDING): Likewise.
9284         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
9285         (_FP_TININESS_AFTER_ROUNDING): Likewise.
9286         * sysdeps/tile/sfp-machine.h (_FP_TININESS_AFTER_ROUNDING):
9287         Likewise.
9288
9289 2014-02-12  Dylan Alex Simon  <dylan@dylex.net>
9290
9291         [BZ #16545]
9292         * sysdeps/x86_64/fpu/libm-test-ulps: Update on AMD family 21h
9293         model 1.
9294
9295 2014-02-12  Richard Henderson  <rth@redhat.com>
9296
9297         * sysdeps/alpha: Move directory from ports/sysdeps/alpha.
9298         * sysdeps/unix/alpha: Move directory from ports/sysdeps/unix/alpha.
9299         * sysdeps/unix/sysv/linux/alpha: Move directory from
9300         ports/sysdeps/unix/sysv/linux/alpha.
9301         * README: Update listing for alpha-*-linux-gnu.
9302
9303 2014-02-11  Joseph Myers  <joseph@codesourcery.com>
9304
9305         * include/features.h: Update comment documenting feature test
9306         macros.
9307         [_BSD_SOURCE || _SVID_SOURCE]: Give #warning.  Define
9308         _DEFAULT_SOURCE.
9309         * manual/creature.texi (_BSD_SOURCE): Remove documentation.
9310         (_SVID_SOURCE): Likewise.
9311         (_DEFAULT_SOURCE): Update description of default features.
9312         (Feature Test Macros): Don't mention _SVID_SOURCE in conjunction
9313         with _GNU_SOURCE.
9314         * manual/filesys.texi (__ftw_func_t): Do not refer to _BSD_SOURCE.
9315         (S_ISVTX): Likewise.
9316         * manual/math.texi (Mathematical Constants): Likewise.
9317         * manual/signal.texi (Interrupted Primitives): Likewise.
9318         * manual/startup.texi (putenv): Do not refer to _SVID_SOURCE.
9319         * math/test-matherr.c (_SVID_SOURCE): Do not define.
9320         * sysvipc/sys/ipc.h [__USE_SVID && !__USE_XOPEN && __GNUC__ >= 2]:
9321         Don't refer to _SVID_SOURCE in warning text.
9322
9323         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9324
9325         * elf/dl-lookup.c (ELF_MACHINE_SYM_NO_MATCH): Define if not
9326         already defined.
9327         (do_lookup_x): Use ELF_MACHINE_SYM_NO_MATCH.
9328         * sysdeps/mips/dl-lookup.c: Remove.
9329         * sysdeps/mips/dl-machine.h (ELF_MACHINE_SYM_NO_MATCH): New macro.
9330
9331 2014-02-11  Stefan Liebler  <stli@linux.vnet.ibm.com>
9332
9333         [BZ #16447]
9334         * math/auto-libm-test-in: Add testcase for expl.
9335         * math/auto-libm-test-out: Regenerate.
9336         * sysdeps/ieee754/ldbl-128/e_expl.c (__ieee754_expl): Fix
9337         calculation of unsafe.
9338         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for added testcase.
9339
9340 2014-02-11  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9341
9342         * sysdeps/aarch64: Move directory from ports/sysdeps/aarch64.
9343         * sysdeps/unix/sysv/linux/aarch64: Move directory from
9344         ports/sysdeps/unix/sysv/linux/aarch64.
9345         * README: Update listing for aarch64*-*-linux-gnu.
9346
9347 2014-02-11  Will Newton  <will.newton@linaro.org>
9348
9349         * manual/probes.texi (Mathematical Function Probes): Use
9350         "triggered" instead of "hit".
9351
9352         * manual/probes.texi (Internal Probes): Add documentation
9353         of setjmp, longjmp and longjmp_target probes.
9354
9355         * include/stap-probe.h: Add comment about probe argument
9356         format.
9357
9358         * malloc/mtrace.c (attribute_hidden): Remove unused macro
9359         definition.  (tr_where, tr_freehook, tr_mallochook,
9360         tr_reallochook, tr_memalignhook): Use ANSI protoype.
9361
9362 2014-02-11  David S. Miller  <davem@davemloft.net>
9363
9364         * stdio-common/tst-sscanf.c (main): Use 'long' for 'dummy' when
9365         processing int_tests.
9366
9367 2014-02-10  Joseph Myers  <joseph@codesourcery.com>
9368
9369         * sysdeps/mips: Move directory from ports/sysdeps/mips.
9370         * sysdeps/unix/mips: Move directory from ports/sysdeps/unix/mips.
9371         * sysdeps/unix/sysv/linux/mips: Move directory from
9372         ports/sysdeps/unix/sysv/linux/mips.
9373         * README: Update listing for mips-*-linux-gnu and
9374         mips64-*-linux-gnu.
9375
9376 2014-02-10  Andreas Schwab  <schwab@linux-m68k.org>
9377
9378         * sysdeps/m68k: Move directory from ports/sysdeps/m68k.
9379         * sysdeps/unix/sysv/linux/m68k: Move directory from
9380         ports/sysdeps/unix/sysv/linux/m68k.
9381         * README: Update listing for m68k-*-linux-gnu.
9382
9383 2014-02-10  Chris Metcalf  <cmetcalf@tilera.com>
9384
9385         * sysdeps/tile: Move directory from ports/sysdeps/tile.
9386         * sysdeps/unix/sysv/linux/generic: Move directory from
9387         ports/sysdeps/unix/sysv/linux/generic.
9388         * sysdeps/unix/sysv/linux/tile: Move directory from
9389         ports/sysdeps/unix/sysv/linux/tile.
9390         * README: Update listing for tile*-*-linux-gnu.
9391
9392 2014-02-10  Ondřej Bílka  <neleai@seznam.cz>
9393
9394         * assert/assert.c (__assert_fail_base): Use glibc_likely instead
9395         __builtin_expect.
9396         * benchtests/bench-memmem.c (simple_memmem): Likewise.
9397         * catgets/open_catalog.c (__open_catalog): Likewise.
9398         * csu/libc-start.c (LIBC_START_MAIN): Likewise.
9399         * debug/confstr_chk.c: Likewise.
9400         * debug/fread_chk.c (__fread_chk): Likewise.
9401         * debug/fread_u_chk.c (__fread_unlocked_chk): Likewise.
9402         * debug/getgroups_chk.c: Likewise.
9403         * debug/mbsnrtowcs_chk.c: Likewise.
9404         * debug/mbsrtowcs_chk.c: Likewise.
9405         * debug/mbstowcs_chk.c: Likewise.
9406         * debug/memcpy_chk.c: Likewise.
9407         * debug/memmove_chk.c: Likewise.
9408         * debug/mempcpy_chk.c: Likewise.
9409         * debug/memset_chk.c: Likewise.
9410         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
9411         * debug/strcat_chk.c (__strcat_chk): Likewise.
9412         * debug/strcpy_chk.c (__strcpy_chk): Likewise.
9413         * debug/strncat_chk.c (__strncat_chk): Likewise.
9414         * debug/vsnprintf_chk.c (___vsnprintf_chk): Likewise.
9415         * debug/vswprintf_chk.c (__vswprintf_chk): Likewise.
9416         * debug/wcpcpy_chk.c (__wcpcpy_chk): Likewise.
9417         * debug/wcpncpy_chk.c: Likewise.
9418         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
9419         * debug/wcscpy_chk.c (__wcscpy_chk): Likewise.
9420         * debug/wcsncat_chk.c (__wcsncat_chk): Likewise.
9421         * debug/wcsncpy_chk.c: Likewise.
9422         * debug/wcsnrtombs_chk.c: Likewise.
9423         * debug/wcsrtombs_chk.c: Likewise.
9424         * debug/wcstombs_chk.c: Likewise.
9425         * debug/wmemcpy_chk.c: Likewise.
9426         * debug/wmemmove_chk.c: Likewise.
9427         * debug/wmempcpy_chk.c: Likewise.
9428         * debug/wmemset_chk.c: Likewise.
9429         * dirent/scandirat.c (SCANDIRAT): Likewise.
9430         * dlfcn/dladdr1.c (dladdr1): Likewise.
9431         * dlfcn/dladdr.c (dladdr): Likewise.
9432         * dlfcn/dlclose.c (dlclose_doit): Likewise.
9433         * dlfcn/dlerror.c (__dlerror): Likewise.
9434         * dlfcn/dlinfo.c (dlinfo_doit): Likewise.
9435         * dlfcn/dlmopen.c (dlmopen_doit): Likewise.
9436         * dlfcn/dlopen.c (dlopen_doit): Likewise.
9437         * dlfcn/dlopenold.c (__dlopen_nocheck): Likewise.
9438         * dlfcn/dlsym.c (dlsym_doit): Likewise.
9439         * dlfcn/dlvsym.c (dlvsym_doit): Likewise.
9440         * elf/dl-cache.c (_dl_load_cache_lookup): Likewise.
9441         * elf/dl-close.c (remove_slotinfo, _dl_close_worker, _dl_close):
9442         Likewise.
9443         * elf/dl-conflict.c: Likewise.
9444         * elf/dl-deps.c (_dl_build_local_scope, _dl_map_object_deps): Likewise.
9445         * elf/dl-dst.h: Likewise.
9446         * elf/dl-fini.c (_dl_sort_fini, _dl_fini): Likewise.
9447         * elf/dl-fptr.c (_dl_make_fptr): Likewise.
9448         * elf/dl-hwcaps.c (_dl_important_hwcaps): Likewise.
9449         * elf/dl-init.c (call_init, _dl_init): Likewise.
9450         * elf/dl-libc.c (__libc_dlopen_mode, __libc_dlsym): Likewise.
9451         * elf/dl-load.c (_dl_dst_substitute, fillin_rpath, _dl_init_paths)
9452         (_dl_map_object_from_fd, open_verify, open_path, _dl_map_object):
9453         Likewise.
9454         * elf/dl-lookup.c (do_lookup_x, add_dependency, _dl_lookup_symbol_x):
9455         Likewise.
9456         * elf/dl-minimal.c (__libc_memalign): Likewise.
9457         * elf/dl-open.c (add_to_global, dl_open_worker, _dl_open): Likewise.
9458         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
9459         * elf/dl-runtime.c (_dl_fixup, _dl_profile_fixup): Likewise.
9460         * elf/dl-sym.c (do_sym): Likewise.
9461         * elf/dl-tls.c (tls_get_addr_tail, update_get_addr)
9462         (__tls_get_addr, _dl_tls_get_addr_soft): Likewise.
9463         * elf/dl-version.c (match_symbol, _dl_check_map_versions): Likewise.
9464         * elf/dl-writev.h (_dl_writev): Likewise.
9465         * elf/ldconfig.c (search_dir): Likewise.
9466         * elf/rtld.c (_dl_start_final, _dl_start, init_tls, do_preload)
9467         (dl_main): Likewise.
9468         * elf/setup-vdso.h (setup_vdso): Likewise.
9469         * grp/compat-initgroups.c (compat_call): Likewise.
9470         * grp/fgetgrent.c (fgetgrent): Likewise.
9471         * grp/initgroups.c (getgrouplist, initgroups): Likewise.
9472         * grp/putgrent.c (putgrent): Likewise.
9473         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
9474         Likewise.
9475         * hurd/hurdinit.c: Likewise.
9476         * iconvdata/8bit-gap.c (struct): Likewise.
9477         * iconvdata/ansi_x3.110.c : Likewise.
9478         * iconvdata/big5.c : Likewise.
9479         * iconvdata/big5hkscs.c : Likewise.
9480         * iconvdata/cp1255.c: Likewise.
9481         * iconvdata/cp1258.c : Likewise.
9482         * iconvdata/cp932.c : Likewise.
9483         * iconvdata/euc-cn.c: Likewise.
9484         * iconvdata/euc-jisx0213.c : Likewise.
9485         * iconvdata/euc-jp.c: Likewise.
9486         * iconvdata/euc-jp-ms.c : Likewise.
9487         * iconvdata/euc-kr.c (euckr_from_ucs4): Likewise.
9488         * iconvdata/gb18030.c : Likewise.
9489         * iconvdata/gbbig5.c (const): Likewise.
9490         * iconvdata/gbgbk.c: Likewise.
9491         * iconvdata/gbk.c : Likewise.
9492         * iconvdata/ibm1364.c : Likewise.
9493         * iconvdata/ibm930.c : Likewise.
9494         * iconvdata/ibm932.c: Likewise.
9495         * iconvdata/ibm933.c : Likewise.
9496         * iconvdata/ibm935.c : Likewise.
9497         * iconvdata/ibm937.c : Likewise.
9498         * iconvdata/ibm939.c : Likewise.
9499         * iconvdata/ibm943.c: Likewise.
9500         * iconvdata/iso_11548-1.c: Likewise.
9501         * iconvdata/iso-2022-cn.c : Likewise.
9502         * iconvdata/iso-2022-cn-ext.c : Likewise.
9503         * iconvdata/iso-2022-jp-3.c: Likewise.
9504         * iconvdata/iso-2022-jp.c (gconv_end): Likewise.
9505         * iconvdata/iso-2022-kr.c : Likewise.
9506         * iconvdata/iso646.c (gconv_end): Likewise.
9507         * iconvdata/iso_6937-2.c : Likewise.
9508         * iconvdata/iso_6937.c : Likewise.
9509         * iconvdata/iso8859-1.c: Likewise.
9510         * iconvdata/johab.c (johab_sym_hanja_to_ucs): Likewise.
9511         * iconvdata/shift_jisx0213.c : Likewise.
9512         * iconvdata/sjis.c : Likewise.
9513         * iconvdata/t.61.c : Likewise.
9514         * iconvdata/tcvn5712-1.c : Likewise.
9515         * iconvdata/tscii.c: Likewise.
9516         * iconvdata/uhc.c : Likewise.
9517         * iconvdata/unicode.c (gconv_end): Likewise.
9518         * iconvdata/utf-16.c (gconv_end): Likewise.
9519         * iconvdata/utf-32.c (gconv_end): Likewise.
9520         * iconvdata/utf-7.c (base64): Likewise.
9521         * iconv/gconv_cache.c (__gconv_load_cache): Likewise.
9522         * iconv/gconv_close.c (__gconv_close): Likewise.
9523         * iconv/gconv_open.c (__gconv_open): Likewise.
9524         * iconv/gconv_simple.c (internal_ucs4_loop_single)
9525         (ucs4_internal_loop, ucs4_internal_loop_unaligned)
9526         (ucs4_internal_loop_single, internal_ucs4le_loop_single)
9527         (ucs4le_internal_loop, ucs4le_internal_loop_unaligned)
9528         (ucs4le_internal_loop_single): Likewise.
9529         * iconv/iconv.c (iconv): Likewise.
9530         * iconv/iconv_close.c: Likewise.
9531         * iconv/loop.c (SINGLE): Likewise.
9532         * iconv/skeleton.c (FUNCTION_NAME): Likewise.
9533         * include/atomic.h: Likewise.
9534         * inet/inet6_option.c (option_alloc): Likewise.
9535         * intl/bindtextdom.c (set_binding_values): Likewise.
9536         * intl/dcigettext.c (DCIGETTEXT, _nl_find_msg): Likewise.
9537         * intl/loadmsgcat.c (_nl_load_domain): Likewise.
9538         * intl/localealias.c (read_alias_file): Likewise.
9539         * libio/filedoalloc.c (_IO_file_doallocate): Likewise.
9540         * libio/fileops.c (_IO_file_open, _IO_file_underflow_mmap)
9541         (_IO_new_file_overflow, _IO_file_xsgetn_mmap): Likewise.
9542         * libio/fmemopen.c (fmemopen): Likewise.
9543         * libio/iofgets.c (_IO_fgets): Likewise.
9544         * libio/iofgets_u.c (fgets_unlocked): Likewise.
9545         * libio/iofgetws.c (fgetws): Likewise.
9546         * libio/iofgetws_u.c (fgetws_unlocked): Likewise.
9547         * libio/iogetdelim.c (_IO_getdelim): Likewise.
9548         * libio/wfileops.c (_IO_wfile_underflow, _IO_wfile_underflow_mmap)
9549         (adjust_wide_data, _IO_wfile_seekoff): Likewise.
9550         * locale/findlocale.c (_nl_find_locale): Likewise.
9551         * locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
9552         * locale/loadlocale.c (_nl_intern_locale_data, _nl_load_locale):
9553         Likewise.
9554         * locale/setlocale.c (setlocale): Likewise.
9555         * login/programs/pt_chown.c (main): Likewise.
9556         * malloc/arena.c (ptmalloc_init, shrink_heap, arena_get2): Likewise.
9557         * malloc/malloc.c (_int_malloc, _int_free): Likewise.
9558         * malloc/memusage.c (update_data, malloc, realloc, calloc, free)
9559         (mmap, mmap64, mremap, munmap): Likewise.
9560         * math/e_exp2l.c: Likewise.
9561         * math/e_scalb.c (invalid_fn, __ieee754_scalb): Likewise.
9562         * math/e_scalbf.c (invalid_fn, __ieee754_scalbf): Likewise.
9563         * math/e_scalbl.c (invalid_fn, __ieee754_scalbl): Likewise.
9564         * math/s_catan.c (__catan): Likewise.
9565         * math/s_catanf.c (__catanf): Likewise.
9566         * math/s_catanh.c (__catanh): Likewise.
9567         * math/s_catanhf.c (__catanhf): Likewise.
9568         * math/s_catanhl.c (__catanhl): Likewise.
9569         * math/s_catanl.c (__catanl): Likewise.
9570         * math/s_ccosh.c (__ccosh): Likewise.
9571         * math/s_ccoshf.c (__ccoshf): Likewise.
9572         * math/s_ccoshl.c (__ccoshl): Likewise.
9573         * math/s_cexp.c (__cexp): Likewise.
9574         * math/s_cexpf.c (__cexpf): Likewise.
9575         * math/s_cexpl.c (__cexpl): Likewise.
9576         * math/s_clog10.c (__clog10): Likewise.
9577         * math/s_clog10f.c (__clog10f): Likewise.
9578         * math/s_clog10l.c (__clog10l): Likewise.
9579         * math/s_clog.c (__clog): Likewise.
9580         * math/s_clogf.c (__clogf): Likewise.
9581         * math/s_clogl.c (__clogl): Likewise.
9582         * math/s_csin.c (__csin): Likewise.
9583         * math/s_csinf.c (__csinf): Likewise.
9584         * math/s_csinh.c (__csinh): Likewise.
9585         * math/s_csinhf.c (__csinhf): Likewise.
9586         * math/s_csinhl.c (__csinhl): Likewise.
9587         * math/s_csinl.c (__csinl): Likewise.
9588         * math/s_csqrt.c (__csqrt): Likewise.
9589         * math/s_csqrtf.c (__csqrtf): Likewise.
9590         * math/s_csqrtl.c (__csqrtl): Likewise.
9591         * math/s_ctan.c (__ctan): Likewise.
9592         * math/s_ctanf.c (__ctanf): Likewise.
9593         * math/s_ctanh.c (__ctanh): Likewise.
9594         * math/s_ctanhf.c (__ctanhf): Likewise.
9595         * math/s_ctanhl.c (__ctanhl): Likewise.
9596         * math/s_ctanl.c (__ctanl): Likewise.
9597         * math/w_pow.c: Likewise.
9598         * math/w_powf.c: Likewise.
9599         * math/w_powl.c: Likewise.
9600         * math/w_scalb.c (sysv_scalb): Likewise.
9601         * math/w_scalbf.c (sysv_scalbf): Likewise.
9602         * math/w_scalbl.c (sysv_scalbl): Likewise.
9603         * misc/error.c (error_tail): Likewise.
9604         * misc/pselect.c (__pselect): Likewise.
9605         * nis/nis_callback.c (__nis_create_callback): Likewise.
9606         * nis/nis_call.c (__nisfind_server): Likewise.
9607         * nis/nis_creategroup.c (nis_creategroup): Likewise.
9608         * nis/nis_domain_of_r.c (nis_domain_of_r): Likewise.
9609         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Likewise.
9610         * nis/nis_getservlist.c (nis_getservlist): Likewise.
9611         * nis/nis_lookup.c (nis_lookup): Likewise.
9612         * nis/nis_subr.c (nis_leaf_of_r, nis_getnames): Likewise.
9613         * nis/nis_table.c (__create_ib_request, nis_list, nis_add_entry)
9614         (nis_modify_entry, nis_first_entry, nis_next_entry): Likewise.
9615         * nis/nis_xdr.c (xdr_endpoint): Likewise.
9616         * nis/nss_compat/compat-grp.c (getgrent_next_file)
9617         (internal_getgrnam_r, internal_getgrgid_r): Likewise.
9618         * nis/nss_compat/compat-initgroups.c (add_group)
9619         (internal_getgrent_r): Likewise.
9620         * nis/nss_compat/compat-pwd.c (getpwent_next_file)
9621         (internal_getpwnam_r, internal_getpwuid_r): Likewise.
9622         * nis/nss_compat/compat-spwd.c (getspent_next_file)
9623         (internal_getspnam_r): Likewise.
9624         * nis/nss_nis/nis-alias.c (internal_nis_getaliasent_r)
9625         (_nss_nis_getaliasbyname_r): Likewise.
9626         * nis/nss_nis/nis-ethers.c (_nss_nis_gethostton_r)
9627         (_nss_nis_getntohost_r): Likewise.
9628         * nis/nss_nis/nis-grp.c (internal_nis_setgrent)
9629         (internal_nis_getgrent_r, _nss_nis_getgrnam_r)
9630         (_nss_nis_getgrgid_r): Likewise.
9631         * nis/nss_nis/nis-hosts.c (_nss_nis_sethostent)
9632         (internal_nis_gethostent_r, internal_gethostbyname2_r)
9633         (_nss_nis_gethostbyname_r, _nss_nis_gethostbyaddr_r)
9634         (_nss_nis_gethostbyname4_r): Likewise.
9635         * nis/nss_nis/nis-initgroups.c (internal_getgrent_r)
9636         (initgroups_netid): Likewise.
9637         * nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Likewise.
9638         * nis/nss_nis/nis-network.c (internal_nis_getnetent_r)
9639         (_nss_nis_getnetbyname_r, _nss_nis_getnetbyaddr_r): Likewise.
9640         * nis/nss_nis/nis-proto.c (_nss_nis_getprotobyname_r)
9641         (_nss_nis_getprotobynumber_r): Likewise.
9642         * nis/nss_nis/nis-publickey.c (_nss_nis_getpublickey)
9643         (_nss_nis_getsecretkey): Likewise.
9644         * nis/nss_nis/nis-pwd.c (_nis_saveit, internal_nis_setpwent)
9645         (internal_nis_getpwent_r, _nss_nis_getpwnam_r)
9646         (_nss_nis_getpwuid_r): Likewise.
9647         * nis/nss_nis/nis-rpc.c (internal_nis_getrpcent_r)
9648         (_nss_nis_getrpcbyname_r, _nss_nis_getrpcbynumber_r): Likewise.
9649         * nis/nss_nis/nis-service.c (dosearch, internal_nis_getservent_r)
9650         (_nss_nis_getservbyname_r, _nss_nis_getservbyport_r): Likewise.
9651         * nis/nss_nis/nis-spwd.c (_nss_nis_setspent)
9652         (internal_nis_getspent_r, _nss_nis_getspnam_r): Likewise.
9653         * nis/nss_nisplus/nisplus-alias.c (_nss_nisplus_getaliasbyname_r):
9654         Likewise.
9655         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_gethostton_r)
9656         (_nss_nisplus_getntohost_r): Likewise.
9657         * nis/nss_nisplus/nisplus-grp.c (internal_nisplus_getgrent_r)
9658         (_nss_nisplus_getgrnam_r, _nss_nisplus_getgrgid_r): Likewise.
9659         * nis/nss_nisplus/nisplus-hosts.c (internal_gethostbyname2_r)
9660         (_nss_nisplus_gethostbyaddr_r, _nss_nisplus_gethostbyname4_r):
9661         Likewise.
9662         * nis/nss_nisplus/nisplus-initgroups.c
9663         (_nss_nisplus_initgroups_dyn): Likewise.
9664         * nis/nss_nisplus/nisplus-network.c (_nss_nisplus_getnetbyname_r)
9665         (_nss_nisplus_getnetbyaddr_r): Likewise.
9666         * nis/nss_nisplus/nisplus-proto.c (_nss_nisplus_getprotobyname_r)
9667         (_nss_nisplus_getprotobynumber_r): Likewise.
9668         * nis/nss_nisplus/nisplus-pwd.c (internal_nisplus_getpwent_r)
9669         (_nss_nisplus_getpwnam_r, _nss_nisplus_getpwuid_r): Likewise.
9670         * nis/nss_nisplus/nisplus-rpc.c (_nss_nisplus_getrpcbyname_r):
9671         Likewise.
9672         * nis/nss_nisplus/nisplus-service.c
9673         (internal_nisplus_getservent_r, _nss_nisplus_getservbyname_r)
9674         (_nss_nisplus_getservbyport_r): Likewise.
9675         * nis/nss_nisplus/nisplus-spwd.c (internal_nisplus_getspent_r)
9676         (_nss_nisplus_getspnam_r): Likewise.
9677         * nis/ypclnt.c (__yp_bind, yp_match, yp_all, yp_maplist):
9678         Likewise.
9679         * nscd/aicache.c (addhstaiX): Likewise.
9680         * nscd/cache.c (cache_search, prune_cache): Likewise.
9681         * nscd/connections.c (register_traced_file, send_ro_fd)
9682         (handle_request, nscd_run_prune, nscd_run_worker, fd_ready)
9683         (main_loop_epoll): Likewise.
9684         * nscd/grpcache.c (addgrbyX): Likewise.
9685         * nscd/hstcache.c (addhstbyX): Likewise.
9686         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9687         * nscd/mem.c (gc, mempool_alloc): Likewise.
9688         * nscd/netgroupcache.c (do_notfound, addgetnetgrentX)
9689         (addinnetgrX): Likewise.
9690         * nscd/nscd-client.h (__nscd_acquire_maplock)
9691         (__nscd_drop_map_ref): Likewise.
9692         * nscd/nscd_getai.c (__nscd_getai): Likewise.
9693         * nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
9694         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp, nscd_gethst_r):
9695         Likewise.
9696         * nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
9697         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
9698         * nscd/nscd_helper.c (__readvall, open_socket, __nscd_get_mapping)
9699         (__nscd_get_map_ref): Likewise.
9700         * nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
9701         * nscd/nscd_netgroup.c (__nscd_setnetgrent, __nscd_innetgr):
9702         Likewise.
9703         * nscd/pwdcache.c (addpwbyX): Likewise.
9704         * nscd/selinux.c (preserve_capabilities): Likewise.
9705         * nscd/servicescache.c (addservbyX): Likewise.
9706         * nss/nss_files/files-XXX.c (internal_getent): Likewise.
9707         * posix/fnmatch.c (fnmatch): Likewise.
9708         * posix/getopt.c (_getopt_internal_r): Likewise.
9709         * posix/glob.c (glob, glob_in_dir): Likewise.
9710         * posix/wordexp.c (exec_comm_child): Likewise.
9711         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyaddr2_r)
9712         (getanswer_r, gaih_getanswer_slice): Likewise.
9713         * resolv/nss_dns/dns-network.c (getanswer_r): Likewise.
9714         * resolv/res_init.c: Likewise.
9715         * resolv/res_mkquery.c (res_nmkquery): Likewise.
9716         * resolv/res_query.c (__libc_res_nquery): Likewise.
9717         * resolv/res_send.c (__libc_res_nsend, send_vc, reopen, send_dg):
9718         Likewise.
9719         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Likewise.
9720         * stdio-common/perror.c (perror): Likewise.
9721         * stdio-common/printf_fp.c (___printf_fp): Likewise.
9722         * stdio-common/tmpnam.c (tmpnam): Likewise.
9723         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
9724         * stdlib/cxa_finalize.c (__cxa_finalize): Likewise.
9725         * stdlib/cxa_thread_atexit_impl.c (__cxa_thread_atexit_impl):
9726         Likewise.
9727         * stdlib/drand48-iter.c (__drand48_iterate): Likewise.
9728         * stdlib/putenv.c (putenv): Likewise.
9729         * stdlib/setenv.c (__add_to_environ): Likewise.
9730         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
9731         * stdlib/strtol_l.c (INTERNAL): Likewise.
9732         * string/memmem.c (memmem): Likewise.
9733         * string/strerror.c (strerror): Likewise.
9734         * string/strnlen.c (__strnlen): Likewise.
9735         * string/test-memmem.c (simple_memmem): Likewise.
9736         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Likewise.
9737         * sunrpc/pm_getport.c (__get_socket): Likewise.
9738         * sysdeps/gnu/unwind-resume.c (init, _Unwind_Resume): Likewise.
9739         * sysdeps/i386/dl-irel.h (elf_irel): Likewise.
9740         * sysdeps/i386/dl-machine.h (elf_machine_runtime_setup)
9741         (elf_machine_rel, elf_machine_lazy_rel, elf_machine_lazy_rela):
9742         Likewise.
9743         * sysdeps/ieee754/dbl-64/e_atanh.c (__ieee754_atanh): Likewise.
9744         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Likewise.
9745         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Likewise.
9746         * sysdeps/ieee754/dbl-64/e_gamma_r.c (__ieee754_gamma_r): Likewise.
9747         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Likewise.
9748         * sysdeps/ieee754/dbl-64/e_j1.c (__ieee754_j1, __ieee754_y1):
9749         Likewise.
9750         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_jn, __ieee754_yn):
9751         Likewise.
9752         * sysdeps/ieee754/dbl-64/e_log10.c (__ieee754_log10): Likewise.
9753         * sysdeps/ieee754/dbl-64/e_log2.c (__ieee754_log2): Likewise.
9754         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
9755         * sysdeps/ieee754/dbl-64/e_sinh.c (__ieee754_sinh): Likewise.
9756         * sysdeps/ieee754/dbl-64/s_asinh.c (__asinh): Likewise.
9757         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Likewise.
9758         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Likewise.
9759         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Likewise.
9760         * sysdeps/ieee754/dbl-64/s_modf.c (__modf): Likewise.
9761         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): Likewise.
9762         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
9763         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c (__ieee754_acosh):
9764         Likewise.
9765         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c (__ieee754_log10):
9766         Likewise.
9767         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c (__ieee754_log2):
9768         Likewise.
9769         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c (__frexp): Likewise.
9770         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
9771         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c (__remquo): Likewise.
9772         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c (__round): Likewise.
9773         * sysdeps/ieee754/flt-32/e_atanhf.c (__ieee754_atanhf): Likewise.
9774         * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Likewise.
9775         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
9776         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Likewise.
9777         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_nearbyint): Likewise.
9778         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Likewise.
9779         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise.
9780         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9781         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
9782         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c (__lroundl): Likewise.
9783         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
9784         * sysdeps/ieee754/ldbl-96/e_gammal_r.c (__ieee754_gammal_r):
9785         Likewise.
9786         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l, __ieee754_y0l):
9787         Likewise.
9788         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l, __ieee754_y1l):
9789         Likewise.
9790         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_jnl, __ieee754_ynl):
9791         Likewise.
9792         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
9793         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
9794         * sysdeps/posix/clock_getres.c (hp_timing_getres, realtime_getres):
9795         Likewise.
9796         * sysdeps/posix/fdopendir.c (__fdopendir): Likewise.
9797         * sysdeps/posix/getaddrinfo.c (gaih_inet, getaddrinfo): Likewise.
9798         * sysdeps/posix/opendir.c (__opendirat): Likewise.
9799         * sysdeps/posix/sleep.c: Likewise.
9800         * sysdeps/posix/tempname.c: Likewise.
9801         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_irela): Likewise.
9802         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
9803         Likewise.
9804         * sysdeps/powerpc/powerpc32/dl-machine.h
9805         (elf_machine_runtime_setup, elf_machine_rela): Likewise.
9806         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
9807         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
9808         * sysdeps/pthread/aio_notify.c (__aio_notify_only): Likewise.
9809         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait, aio_suspend):
9810         Likewise.
9811         * sysdeps/s390/dl-irel.h (elf_irela): Likewise.
9812         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_runtime_setup)
9813         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
9814         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_runtime_setup)
9815         (elf_machine_rela, elf_machine_lazy_rel): Likewise.
9816         * sysdeps/s390/s390-64/utf16-utf32-z9.c (gconv_end): Likewise.
9817         * sysdeps/s390/s390-64/utf8-utf16-z9.c (gconv_end): Likewise.
9818         * sysdeps/s390/s390-64/utf8-utf32-z9.c (gconv_end): Likewise.
9819         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
9820         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Likewise.
9821         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela)
9822         (elf_machine_lazy_rel): Likewise.
9823         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
9824         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela)
9825         (elf_machine_lazy_rel): Likewise.
9826         * sysdeps/sparc/sparc64/dl-plt.h (sparc64_fixup_plt): Likewise.
9827         * sysdeps/unix/clock_gettime.c (hp_timing_gettime): Likewise.
9828         * sysdeps/unix/clock_settime.c (hp_timing_settime): Likewise.
9829         * sysdeps/unix/grantpt.c (grantpt): Likewise.
9830         * sysdeps/unix/sysv/linux/accept4.c (accept4): Likewise.
9831         * sysdeps/unix/sysv/linux/adjtime.c (ADJTIME): Likewise.
9832         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
9833         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9834         Likewise.
9835         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Likewise.
9836         * sysdeps/unix/sysv/linux/fchmodat.c (fchmodat): Likewise.
9837         * sysdeps/unix/sysv/linux/fchownat.c (fchownat): Likewise.
9838         * sysdeps/unix/sysv/linux/futimesat.c (futimesat): Likewise.
9839         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
9840         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
9841         * sysdeps/unix/sysv/linux/i386/fallocate64.c (fallocate64): Likewise.
9842         * sysdeps/unix/sysv/linux/i386/fallocate.c (fallocate): Likewise.
9843         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Likewise.
9844         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
9845         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
9846         Likewise.
9847         * sysdeps/unix/sysv/linux/i386/posix_fallocate64.c
9848         (__posix_fallocate64_l64): Likewise.
9849         * sysdeps/unix/sysv/linux/i386/posix_fallocate.c
9850         (posix_fallocate): Likewise.
9851         * sysdeps/unix/sysv/linux/i386/scandir64.c (__old_scandir64):
9852         Likewise.
9853         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
9854         * sysdeps/unix/sysv/linux/ifaddrs.c (__netlink_request)
9855         (getifaddrs_internal): Likewise.
9856         * sysdeps/unix/sysv/linux/linkat.c (linkat): Likewise.
9857         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Likewise.
9858         * sysdeps/unix/sysv/linux/mq_unlink.c (mq_unlink): Likewise.
9859         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Likewise.
9860         * sysdeps/unix/sysv/linux/posix_fallocate64.c
9861         (__posix_fallocate64_l64): Likewise.
9862         * sysdeps/unix/sysv/linux/posix_fallocate.c (posix_fallocate):
9863         Likewise.
9864         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat): Likewise.
9865         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c
9866         (__get_clockfreq): Likewise.
9867         * sysdeps/unix/sysv/linux/readlinkat.c (readlinkat): Likewise.
9868         * sysdeps/unix/sysv/linux/recvmmsg.c (recvmmsg): Likewise.
9869         * sysdeps/unix/sysv/linux/renameat.c (renameat): Likewise.
9870         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
9871         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
9872         * sysdeps/unix/sysv/linux/sched_setaffinity.c: Likewise.
9873         * sysdeps/unix/sysv/linux/sendmmsg.c (__sendmmsg): Likewise.
9874         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs, shm_open):
9875         Likewise.
9876         * sysdeps/unix/sysv/linux/sleep.c (__sleep): Likewise.
9877         * sysdeps/unix/sysv/linux/symlinkat.c (symlinkat): Likewise.
9878         * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise.
9879         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Likewise.
9880         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
9881         * sysdeps/unix/sysv/linux/unlinkat.c (unlinkat): Likewise.
9882         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c (__fxstatat):
9883         Likewise.
9884         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
9885         (posix_fallocate): Likewise.
9886         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
9887         * sysdeps/unix/sysv/linux/xmknodat.c (__xmknodat): Likewise.
9888         * sysdeps/x86_64/dl-irel.h (elf_irela): Likewise.
9889         * sysdeps/x86_64/dl-machine.h (elf_machine_runtime_setup)
9890         (elf_machine_rela, elf_machine_rela_relative)
9891         (elf_machine_lazy_rel): Likewise.
9892         * time/asctime.c (asctime_internal): Likewise.
9893         * time/tzfile.c (__tzfile_read, __tzfile_compute): Likewise.
9894         * time/tzset.c (__tzset_parse_tz): Likewise.
9895         * wcsmbs/mbrtoc16.c (mbrtoc16): Likewise.
9896         * wcsmbs/mbrtowc.c (__mbrtowc): Likewise.
9897         * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Likewise.
9898         * wcsmbs/wcsmbsload.h: Likewise.
9899
9900         [BZ #15894]
9901         * stdlib/setenv.c (__add_to_environ): Remove duplicate code.
9902
9903         * malloc/arena.c (grow_heap, get_free_list, reused_arena)
9904         (arena_get2): Remove THREAD_STATS conditionals.
9905         * malloc/malloc.c (__malloc_assert, __libc_realloc, _int_free)
9906         (__malloc_stats, int): Likewise.
9907
9908 2014-02-08  Mike Frysinger  <vapier@gentoo.org>
9909
9910         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs): Compare
9911         f.f_type to RAMFS_MAGIC too.  Compare mp->mnt_type to shm too.
9912
9913         * manual/setjmp.texi: Fix typos/grammar errors.
9914
9915         * debug/tst-backtrace4.c (handle_signal): Add NUM_FUNCTIONS to output.
9916         Only return early when n is <= 0.  Delete unused return statement.
9917
9918         * debug/Makefile (CFLAGS-tst-longjmp_chk3.c): Define.
9919         (CPPFLAGS-tst-longjmp_chk3.c): Likewise.
9920         * debug/tst-longjmp_chk3.c: New file.
9921
9922         * benchtests/bench-strcpy_chk.c: Move test-skeleton.c to top.
9923         (test_main): Replace code with set_fortify_handler call.
9924         * debug/test-strcpy_chk.c: Likewise.
9925         * debug/tst-chk1.c: Likewise.
9926         * debug/tst-longjmp_chk.c: Likewise.
9927         * test-skeleton.c: Include fcntl.h & paths.h
9928         (set_fortify_handler): Define.
9929
9930         * debug/tst-longjmp_chk.c: Add header comment and include
9931         ../test-skeleton.c.
9932         (do_test): Mark static.
9933         (TEST_FUNCTION): Define.
9934
9935         * sysdeps/unix/sysv/linux/bits/in.h (IP_NODEFRAG): Define.
9936         (IP_PMTUDISC_INTERFACE): Likewise.
9937         (IP_MULTICAST_IF): Likewise.
9938         (IP_MULTICAST_TTL): Likewise.
9939         (IP_MULTICAST_LOOP): Likewise.
9940         (IP_ADD_MEMBERSHIP): Likewise.
9941         (IP_DROP_MEMBERSHIP): Likewise.
9942         (IP_UNBLOCK_SOURCE): Likewise.
9943         (IP_BLOCK_SOURCE): Likewise.
9944         (IP_ADD_SOURCE_MEMBERSHIP): Likewise.
9945         (IP_DROP_SOURCE_MEMBERSHIP): Likewise.
9946         (IP_MSFILTER): Likewise.
9947         (MCAST_JOIN_GROUP): Likewise.
9948         (MCAST_BLOCK_SOURCE): Likewise.
9949         (MCAST_UNBLOCK_SOURCE): Likewise.
9950         (MCAST_LEAVE_GROUP): Likewise.
9951         (MCAST_JOIN_SOURCE_GROUP): Likewise.
9952         (MCAST_LEAVE_SOURCE_GROUP): Likewise.
9953         (MCAST_MSFILTER): Likewise.
9954         (IP_MULTICAST_ALL): Likewise.
9955         (IP_UNICAST_IF): Likewise.
9956
9957         * timezone/Makefile: Delete $(have-ksh) check.
9958         ($(objpfx)tzselect): Change $(KSH) to $(BASH).
9959         * timezone/tzselect.ksh: Add +x mode bits.
9960
9961         * sysdeps/unix/sysv/linux/linux_fsinfo.h (AFS_SUPER_MAGIC): Define.
9962         (ANON_INODE_FS_MAGIC): Likewise.
9963         (BDEVFS_MAGIC): Likewise.
9964         (BINFMTFS_MAGIC): Likewise.
9965         (BTRFS_TEST_MAGIC): Likewise.
9966         (CRAMFS_MAGIC_WEND): Likewise.
9967         (DEBUGFS_MAGIC): Likewise.
9968         (ECRYPTFS_SUPER_MAGIC): Likewise.
9969         (EXT3_SUPER_MAGIC): Likewise.
9970         (EXT4_SUPER_MAGIC): Likewise.
9971         (FUTEXFS_SUPER_MAGIC): Likewise.
9972         (HOSTFS_SUPER_MAGIC): Likewise.
9973         (HUGETLBFS_MAGIC): Likewise.
9974         (MINIX3_SUPER_MAGIC): Likewise.
9975         (MTD_INODE_FS_MAGIC): Likewise.
9976         (NILFS_SUPER_MAGIC): Likewise.
9977         (OPENPROM_SUPER_MAGIC): Likewise.
9978         (PIPEFS_MAGIC): Likewise.
9979         (PSTOREFS_MAGIC): Likewise.
9980         (QNX6_SUPER_MAGIC): Likewise.
9981         (RAMFS_MAGIC): Likewise.
9982         (REISERFS_SUPER_MAGIC_STRING): Likewise.
9983         (REISER2FS_SUPER_MAGIC_STRING): Likewise.
9984         (REISER2FS_JR_SUPER_MAGIC_STRING): Likewise.
9985         (SECURITYFS_MAGIC): Likewise.
9986         (SELINUX_MAGIC): Likewise.
9987         (SMACK_MAGIC): Likewise.
9988         (SOCKFS_MAGIC): Likewise.
9989         (SQUASHFS_MAGIC): Likewise.
9990         (STACK_END_MAGIC): Likewise.
9991         (TMPFS_MAGIC): Likewise.
9992         (USBDEVICE_SUPER_MAGIC): Likewise.
9993         (V9FS_MAGIC): Likewise.
9994         (XENFS_SUPER_MAGIC): Likewise.
9995         (CRAMFS_MAGIC): Fix typo in comment.
9996         (EXT2_SUPER_MAGIC): Update comment.
9997         (USBDEVFS_SUPER_MAGIC): Fix sorting order by moving further down.
9998
9999 2014-02-08  Joseph Myers  <joseph@codesourcery.com>
10000
10001         * sysdeps/arm: Move directory from ports/sysdeps/arm.
10002         * sysdeps/unix/arm: Move directory from ports/sysdeps/unix/arm.
10003         * sysdeps/unix/sysv/linux/arm: Move directory from
10004         ports/sysdeps/unix/sysv/linux/arm.
10005         * README: Update listing for arm-*-linux-gnueabi.
10006
10007         * README: Remove mention of am33.
10008
10009 2014-02-07  Roland McGrath  <roland@hack.frob.com>
10010
10011         * bits/sigset.h (__sigemptyset): Use a statement expression rather
10012         than the comma operator, to avoid "rhs of comma has no effect"
10013         compiler warnings.
10014         (__sigfillset, __sigandset, __sigorset): Likewise.
10015         * include/signal.h (__sigemptyset): Likewise.
10016         * sysdeps/generic/malloc-machine.h (mutex_lock): Likewise.
10017
10018 2014-02-07  Allan McRae  <allan@archlinux.org>
10019
10020         * version.h (RELEASE): Set to "development".
10021         (VERSION): Set to "2.19.90"
10022         * NEWS: Add 2.20 section.
10023
10024 2014-02-06  Carlos O'Donell  <carlos@redhat.com>
10025
10026         [BZ #16529]
10027         * inet/netinet/in.h: Remove comma after IPPROTO_MH.
10028
10029 2014-02-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10030
10031         * manual/contrib.texi: Update entry for Carlos O'Donell,
10032         Joseph Myers, Roland McGrath, Alexandre Oliva and Ryan Arnold.
10033
10034 2014-02-05  Carlos O'Donell  <carlos@rehdat.com>
10035
10036         * sysdeps/unix/sysv/linux/kernel-features.h: Fix comment.
10037
10038         * sysdeps/unix/sysv/linux/kernel-features.h
10039         [__LINUX_KERNEL_VERSION >= 0x020621]
10040         (__ASSUME_PROC_PID_TASK_COMM): Define.
10041
10042 2014-02-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
10043
10044         [BZ #16398]
10045         * libio/wfileops.c (_IO_wfile_seekoff): Break out form
10046         conversion when destination buffer does not have enough space.
10047         * libio/tst-ftell-partial-wide.c: New test case.
10048         * libio/Makefile (tests): Add tst-ftell-partial-wide.
10049
10050         * manual/contrib.texi: Update entry for Ondrej Bilka, Will
10051         Newton and Alexandre Oliva.  Add entries for Steve Ellcey, Chris
10052         Leonard and Allan McRae.
10053
10054 2014-02-04  David S. Miller  <davem@davemloft.net>
10055
10056         * sysdeps/sparc/fpu/libm-test-ulps: Update for some 64-bit differences from
10057         32-bit.
10058
10059 2014-02-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10060
10061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld-le.abilist:
10062         New file
10063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale-le.abilist:
10064         New file
10065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl-le.abilist:
10066         New file.
10067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc-le.abilist:
10068         New file.
10069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt-le.abilist:
10070         New file.
10071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl-le.abilist:
10072         New file.
10073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm-le.abilist:
10074         New file.
10075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl-le.abilist:
10076         New file.
10077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread-le.abilist:
10078         New file.
10079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv-le.abilist:
10080         New file.
10081         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt-le.abilist:
10082         New file.
10083         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db-le.abilist:
10084         New file.
10085         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil-le.abilist:
10086         New file.
10087
10088 2014-02-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10089
10090         * nptl/shlib-versions: Change powerpc*le start to 2.17.
10091         * shlib-versions: Likewise.
10092
10093 2014-02-04  Roland McGrath  <roland@hack.frob.com>
10094             Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10095
10096         * sysdeps/powerpc/Makefile [$(config-machine) ends with 'le']
10097         (abilist-pattern): New variable, set to %-le.abilist.
10098
10099         * Makerules (abilist-pattern): New variable.
10100         (vpath): Use $(abilist-pattern) in place of %.abilist.
10101         (check-abi-% pattern rule): Likewise.
10102         (check-abi, update-abi): Likewise.
10103
10104 2014-02-04  Eric Wong  <normalperson@yhbt.net>
10105
10106         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10107
10108 2014-02-03  Carlos O'Donell  <carlos@redhat.com>
10109
10110         * manual/startup.texi: Add next, previous, and top entries for
10111         the `Program Arguments' and `Environment Variables' nodes.
10112
10113 2014-02-03  Alexandre Oliva <aoliva@redhat.com>
10114
10115         * manual/macros.texi: Add comments before MTASC-safety macros.
10116
10117         * manual/users.texi: Document MTASC-safety properties.
10118
10119         * manual/threads.texi (pthread_key_create, pthread_key_delete)
10120         (pthread_getspecific, pthread_setspecific): Format with
10121         @deftypefun, and add @safety note.
10122         * manual/signal.texi: Move comments that analyze the above
10123         functions to their home place.
10124
10125 2014-02-03  Allan McRae  <allan@archlinux.org>
10126
10127         * po/sl.po: Update Slovenian translation from translation project.
10128
10129 2014-02-02  Alexandre Oliva <aoliva@redhat.com>
10130
10131         * manual/time.texi (timegm): Add missing blank after @c.
10132         Reported by Joseph Myers <joseph@codesourcery.com>.
10133
10134 2014-02-01  Alexandre Oliva <aoliva@redhat.com>
10135
10136         * manual/check-safety.sh: New.
10137         * manual/Makefile ($(objpfx)stamp-summary): Run it.
10138
10139         * manual/terminal.texi: Document MTASC-safety properties.
10140
10141         * manual/filesys.texi: Document MTASC-safety properties.
10142
10143         * manual/errno.texi: Document MTASC-safety properties.
10144
10145         * manual/intro.texi: Document safety identifiers and
10146         conditionals.
10147
10148         * manual/string.texi (wcstok): Fix prototype.
10149         (wcstok, strtok, strtok_r): Adjust reentrancy remarks.
10150
10151         * manual/time.texi: Document MTASC-safety properties.
10152
10153         * manual/string.texi: Document MTASC-safety properties.
10154
10155         * manual/threads.texi: Document MTASC-safety properties.
10156
10157         * manual/stdio.texi: Document MTASC-safety properties.
10158
10159         * manual/syslog.texi: Document MTASC-safety properties.
10160
10161         * manual/sysinfo.texi: Document MTASC-safety properties.
10162
10163         * manual/startup.texi: Document MTASC-safety properties.
10164
10165         * manual/socket.texi: Document MTASC-safety properties.
10166
10167         * manual/signal.texi: Document MTASC-safety properties.
10168
10169 2014-01-31  Alexandre Oliva <aoliva@redhat.com>
10170
10171         * manual/setjmp.texi: Document MTASC-safety properties.
10172
10173         * manual/search.texi: Document MTASC-safety properties.
10174
10175         * manual/resource.texi: Document MTASC-safety properties.
10176
10177         * manual/process.texi: Document MTASC-safety properties.
10178
10179         * manual/platform.texi: Document MTASC-safety properties.
10180
10181         * manual/pipe.texi: Document MTASC-safety properties.
10182
10183         * manual/pattern.texi: Document MTASC-safety properties.
10184
10185         * manual/message.texi: Document MTASC-safety properties.
10186
10187         [BZ #12751]
10188         * manual/memory.texi: Document MTASC-safety properties.
10189
10190         * manual/math.texi: Document MTASC-safety properties.
10191
10192         * manual/locale.texi: Document MTASC-safety properties.
10193
10194         * manual/llio.texi: Document MTASC-safety properties.
10195
10196         * manual/libdl.texi: New.
10197
10198         * manual/lang.texi: Document MTASC-safety properties.
10199
10200         * manual/job.texi: Document MTASC-safety properties.
10201
10202         * manual/getopt.texi: Document MTASC-safety properties.
10203
10204         * manual/ctype.texi: Document MTASC-safety properties.
10205
10206 2014-01-31  Maciej W. Rozycki  <macro@codesourcery.com>
10207
10208         [BZ #16046]
10209         * csu/libc-tls.c (static_map): Remove variable.
10210         (__libc_setup_tls): Use main executable's link map for TLS data.
10211         * elf/dl-close.c (_dl_close_worker) [!SHARED]: Remove special
10212         casing for LM_ID_BASE and GL(dl_nns).
10213         * elf/dl-iteratephdr.c [!SHARED] (dl_iterate_phdr): Remove
10214         function.  Alias dl_iterate_phdr to __dl_iterate_phdr.
10215         * elf/dl-load.c (_dl_map_object) [!SHARED]: Remove special
10216         casing for GL(dl_ns)[LM_ID_BASE]._ns_loaded.
10217         * elf/dl-support.c (_dl_main_map): Also initialize l_flags_1
10218         member.
10219         (_dl_non_dynamic_init): Also initialize _dl_main_map's l_phdr and
10220         l_phnum members.
10221
10222 2014-01-30  Alexandre Oliva <aoliva@redhat.com>
10223
10224         * manual/debug.texi: Document MTASC-safety properties.
10225
10226 2014-01-29  H.J. Lu  <hongjiu.lu@intel.com>
10227
10228         [BZ #16510]
10229         * sysdeps/x86/fpu/bits/mathinline.h: Check __SSE2_MATH__ instead
10230         of __x86_64__ when disabling x87 inline functions.
10231
10232 2014-01-29  Alexandre Oliva <aoliva@redhat.com>
10233
10234         * manual/charset.texi: Document MTASC-safety properties.
10235
10236         * manual/crypt.texi: Document MTASC-safety properties.
10237
10238         * manual/conf.texi: Document MTASC-safety properties.
10239
10240         * manual/arith.texi: Document MTASC-safety properties.
10241
10242         * manual/argp.texi: Document MTASC-safety properties.
10243
10244         * manual/macros.texi: Introduce macros to document multi
10245         thread, asynchronous signal and asynchronous cancellation
10246         safety properties.
10247         * manual/intro.texi: Introduce the properties themselves.
10248
10249 2014-01-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10250
10251         * sysdeps/sh/sh4/Makefile: New file.
10252
10253 2014-01-27  Andreas Schwab  <schwab@linux-m68k.org>
10254
10255         * math/gen-libm-test.pl ($srcdir): New variable.
10256         ($auto_input): Use it.
10257
10258 2014-01-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
10259
10260         [BZ #16506]
10261         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Avoid
10262         access beyond array bounds when parsing netgroups file.
10263
10264         * nscd/netgroupcache.c (addgetnetgrentX): Compute offset from
10265         the old buffer before realloc.
10266
10267 2014-01-27  Allan McRae  <allan@archlinux.org>
10268
10269         * po/fr.po: Update French translation from translation project.
10270
10271 2014-01-26  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10272
10273         * sysdeps/sh/libm-test-ulps: Regenerate.
10274
10275 2014-01-24  David S. Miller  <davem@davemloft.net>
10276
10277         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate.
10278
10279 2014-01-25  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10280
10281         * sysdeps/sh/sh4/fpu/libm-test-ulps: Move to ...
10282         * sysdeps/sh/libm-test-ulps: ... here and regenerated.
10283
10284 2013-01-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
10285
10286         [BZ #16474]
10287         * nscd/netgroupcache.c (addgetnetgrentX): Adjust triplet
10288         string pointers after reallocation.
10289
10290 2014-01-24  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10291
10292         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: Use __SH4__ and
10293         __SH4A__ instead of __SH_FPU_ANY__.
10294
10295 2014-01-23  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10296
10297         * sysdeps/sh/fpu_control.h: New file.
10298         * sysdeps/sh/sh4/fpu/fpu_control.h: Remove.
10299         * sysdeps/unix/sysv/linux/sh/sys/ucontext.h: New file.
10300         * sysdeps/unix/sysv/linux/sh/sh3/sys/ucontext.h: Remove.
10301         * sysdeps/unix/sysv/linux/sh/sh3/sys: Remove directory.
10302         * sysdeps/unix/sysv/linux/sh/sh4/sys/ucontext.h: Remove.
10303         * sysdeps/unix/sysv/linux/sh/sh4/sys: Remove directory.
10304         * sysdeps/sh/sys/ucontext.h: Remove.
10305         * sysdeps/sh/sys: Remove directory.
10306
10307 2014-01-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10308
10309         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Merge into
10310         s390/sys/ucontext.h.
10311         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Likewise.
10312         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: New file.
10313
10314 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
10315
10316         [BZ #15605]
10317         * sysdeps/x86_64/x32/symbol-hacks.h: Include generic symbol-hacks.h.
10318
10319 2014-01-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10320
10321         [BZ#16431]
10322         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
10323         Adjust the vDSO correctly for internal calls.
10324         * sysdeps/unix/sysv/linux/powerpc/time.c (time): Likewise.
10325
10326 2014-01-20  Allan McRae  <allan@archlinux.org>
10327
10328         * po/ca.po: Update Catalan translation from translation project.
10329
10330 2014-01-16  Mike Frysinger  <vapier@gentoo.org>
10331
10332         * sysdeps/s390/sotruss-lib.c: New file.
10333
10334 2014-01-16  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10335
10336         [BZ#16430]
10337         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c
10338         (__GI___gettimeofday): Alias for a different internal symbol to avoid
10339         local calls issues by not having a PLT stub required for IFUNC calls.
10340         * sysdeps/unix/sysv/linux/powerpc/time.c (__GI_time): Likewise.
10341
10342 2014-01-16 Joseph Myers  <joseph@codesourcery.com>
10343
10344         * math/test-fpucw-ieee.c: Use <> in #include of test-fpucw.c.
10345         * math/test-fpucw-static.c: Likewise.
10346
10347 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10348
10349         [BZ #16453]
10350         * nscd/netgroupcache.c (addgetnetgrentX): Don't use alloca.
10351
10352 2014-01-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10353
10354         * sysdeps/powerpc/sotruss-lib.c: New file: sotruss-lib.so
10355         implementation for powerpc.
10356
10357 2014-01-15  Ondřej Bílka  <neleai@seznam.cz>
10358
10359         [BZ #14782]
10360         * sysdeps/posix/system.c (__libc_system): Do not enable
10361         asynchronous cancellation.
10362
10363 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10364
10365         [BZ #16427]
10366         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Invoke the non-IEEE
10367         handling only for numbers special also in the IEEE case.
10368
10369 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10370
10371         * sysdeps/s390/fpu/libm-test-ulps: Regenerate.
10372
10373 2014-01-11  Allan McRae  <allan@archlinux.org>
10374
10375         * po/bg.po: Update Bulgarian translation from translation project.
10376
10377         * po/de.po: Update German translation from translation project.
10378
10379 2014-01-10  Roland McGrath  <roland@hack.frob.com>
10380
10381         * sysdeps/generic/gcc-compat.h: New file.
10382
10383 2014-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
10384
10385         * benchtests/asin-inputs: Correct slow inputs.
10386         * benchtests/acos-inputs: Likewise.
10387
10388 2014-01-10  Allan McRae  <allan@archlinux.org>
10389
10390         * po:sv.po: Update Swedish translation from translation project.
10391
10392         * po/vi.po: Update Vietnamese translation from translation project.
10393
10394         * po/eo.po: Update Esperanto translation from translation project.
10395
10396         * po/cs.po: Update Czech translation from translation project.
10397
10398         * po/nl.po: Update Dutch translation from translation project.
10399
10400         * po/pl.po: Update Polish translation from translation project.
10401
10402         * po/ru.po: Update Russian translation from translation project.
10403
10404         * po/uk.po: Update Ukrainian translation from translation project.
10405
10406 2014-01-08  Brooks Moses  <bmoses@google.com>
10407
10408         * elf/dl-load.c: Fix comment typo.
10409
10410 2014-01-08  Carlos O'Donell  <carlos@redhat.com>
10411
10412         * po/header.pot: Rename to...
10413         * po/pot.header: ... this.
10414         * po/Makefile: Use pot.header.
10415
10416 2014-01-08  Yuriy Kaminskiy  <yumkam@gmail.com>
10417             Maxim Kuvyrkov  <maxim@kugelworks.com>
10418
10419         [BZ #16394]
10420         * sysdeps/i386/i686/memmove.S (memmove): Compare distance between
10421         SRC and DEST against LEN.
10422
10423 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10424
10425         [BZ #16414]
10426         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Remove wrong
10427         implementation.
10428         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Remove bogus comment.
10429
10430 2014-01-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10431
10432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10433
10434 2014-01-08  Joseph Myers  <joseph@codesourcery.com>
10435
10436         [BZ #16408]
10437         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Use __expl
10438         for large positive arguments.
10439
10440 2014-01-07  Joseph Myers  <joseph@codesourcery.com>
10441
10442         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
10443
10444         * math/auto-libm-test-in: Mark various tests with
10445         xfail-rounding:ldbl-128ibm.
10446         * math/auto-libm-test-out: Regenerated.
10447
10448         [BZ #16407]
10449         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl):
10450         Increase overflow threshold.
10451
10452 2014-01-07  Ondřej Bílka  <neleai@seznam.cz>
10453
10454         [BZ #14286]
10455         * stdio-common/vfprintf.c: Check for integer overflow.
10456
10457 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10458
10459         * sysdeps/s390/dl-tls.h: sysdeps/s390/dl-tls.h: Remove casts for
10460         the first argument and return value of __tls_get_addr_internal.
10461
10462 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10463
10464         * sysdeps/s390/s390-32/dl-machine.h: Gate the definition of refsym
10465         also with !RTLD_BOOTSTRAP to get rid of unused variable warning.
10466
10467 2014-01-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10468
10469         * sysdeps/s390/Makefile: Build rtld-global-offsets.sym.
10470         * sysdeps/s390/rtld-global-offsets.sym: New file.
10471         * sysdeps/unix/sysv/linux/s390/Versions: Add getcontext as new
10472         GLIBC_2.19 symbol.
10473         * sysdeps/unix/sysv/linux/s390/getcontext.S: New file.
10474         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Rename to ...
10475         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext-common.S:
10476         ... this.
10477         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Rename to ...
10478         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext-common.S:
10479         ... this.
10480         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
10481         Regenerate.
10482         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
10483         Regenerate.
10484         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Restore upper
10485         halfs of GPRs for high_gprs contexts.
10486         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Save and
10487         restore upper halfs of GPRs for high_gprs contexts.  Copy uc_flags
10488         field.
10489         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Copy
10490         uc_flags field.
10491         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Split into 32 and
10492         64 bit versions:
10493         * sysdeps/unix/sysv/linux/s390/s390-32/sys/ucontext.h: Add field
10494         for high GPRs (uc_high_gprs) and for future extensions
10495         (__reserved).
10496         * sysdeps/unix/sysv/linux/s390/s390-64/sys/ucontext.h: Add field
10497         for future extensions (__reserved).
10498         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Split into 32 and
10499         64 bit versions:
10500         * sysdeps/unix/sysv/linux/s390/s390-32/ucontext_i.sym: Add
10501         SC_HIGHGPRS offset definition.
10502         * sysdeps/unix/sysv/linux/s390/s390-64/ucontext_i.sym: New file.
10503         * sysdeps/unix/sysv/linux/s390/rtld-getcontext.S: New file.
10504
10505         * Versions.def: Add GLIBC_2.19 for libpthread.
10506         * nptl/sysdeps/unix/sysv/linux/s390/Versions: Add longjmp and
10507         siglongjmp for libpthread with GLIBC_2.19 symver.
10508         * nptl/sysdeps/unix/sysv/linux/s390/pt-longjmp.c: New file.
10509         * sysdeps/s390/Makefile: Build v1-longjmp.c and v1-sigjmp.c.
10510         * sysdeps/s390/Versions: New GLIBC_2.19 and GLIBC_PRIVATE symbols.
10511         * sysdeps/s390/__longjmp.c: New file.
10512         * sysdeps/s390/bits/setjmp.h: Add new fields to __s390_jmp_buf.
10513         * sysdeps/s390/longjmp.c: New file.
10514         * sysdeps/s390/setjmp.S: New file.
10515         * sysdeps/s390/sigjmp.S: New file.
10516         * sysdeps/s390/v1-longjmp.c: New file.
10517         * sysdeps/s390/v1-setjmp.h: New file.
10518         * sysdeps/s390/v1-sigjmp.c: New file.
10519         * sysdeps/unix/sysv/linux/s390/Makefile: Build __longjmp_chk.
10520         * sysdeps/unix/sysv/linux/s390/Versions: Add __longjmp_chk with
10521         GLIBC_2.19 version.
10522         * sysdeps/unix/sysv/linux/s390/longjmp_chk.c: New file.
10523         * sysdeps/unix/sysv/linux/s390/s390-32/____longjmp_chk.c: Provide
10524         versioned symbols for ____longjmp_chk.
10525         * sysdeps/unix/sysv/linux/s390/s390-64/____longjmp_chk.c:
10526         Likewise.
10527         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
10528         Regenerate.
10529         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10530         Regenerate.
10531         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
10532         Regenerate.
10533         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10534         Regenerate.
10535         * sysdeps/unix/sysv/linux/s390/v1-longjmp_chk.c: New file.
10536         * sysdeps/s390/s390-32/__longjmp.c: Rename to ...
10537         * sysdeps/s390/s390-32/__longjmp-common.c: ... this.
10538         * sysdeps/s390/s390-32/setjmp.S: Rename and adjust to ...
10539         * sysdeps/s390/s390-32/setjmp-common.S: ... this.
10540         * sysdeps/s390/s390-64/__longjmp.c: Rename to ...
10541         * sysdeps/s390/s390-64/__longjmp-common.c: ... this.
10542         * sysdeps/s390/s390-64/setjmp.S: Rename and adjust to ...
10543         * sysdeps/s390/s390-64/setjmp-common.S: ... this.
10544         * sysdeps/s390/rtld-__longjmp.c: New file.
10545         * sysdeps/s390/rtld-setjmp.S: New file.
10546
10547 2014-01-06  Joseph Myers  <joseph@codesourcery.com>
10548
10549         [BZ #16400]
10550         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10551         Return -__logl (x) for small positive arguments without evaluating
10552         a polynomial.
10553
10554 2014-01-06  Mike Frysinger  <vapier@gentoo.org>
10555
10556         * sysdeps/unix/sysv/linux/sys/ptrace.h (ptrace_peeksiginfo_args):
10557         Rename to ...
10558         (__ptrace_peeksiginfo_args): ... this.
10559         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
10560         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
10561         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
10562
10563 2014-01-06  Allan McRae  <allan@archlinux.org>
10564
10565         * inet/netinet/in.h: Fix typo in comment.
10566
10567 2014-01-05  Andreas Jaeger  <aj@suse.de>
10568
10569         * sysdeps/i386/fpu/libm-test-ulps: Update.
10570
10571 2014-01-05  Allan McRae  <allan@archlinux.org>
10572
10573         * po/libc.pot: Regenerated.
10574
10575         * malloc/memusagestat.c: Fix gettext call formatting.
10576
10577 2014-01-04  Sami Kerola  <kerolasa@iki.fi>
10578
10579         * nscd/nscd.c: Improve usage() output.
10580
10581 2014-01-04  Mike Frysinger  <vapier@gentoo.org>
10582
10583         * config.h.in: Add HAVE_LINUX_FANOTIFY_H template.
10584         * sysdeps/unix/sysv/linux/configure: Regenerated.
10585         * sysdeps/unix/sysv/linux/configure.ac: Call AC_DEFINE.
10586         * sysdeps/unix/sysv/linux/tst-fanotify.c: Include config.h.
10587
10588 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
10589
10590         [BZ #16390]
10591         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
10592         (CFLAGS-e_atan2l.c): Use -fno-builtin-fabsl.
10593
10594 2014-01-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10595
10596         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: Remove
10597         extra tokens at end of #undef directive.
10598         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: Likewise.
10599         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: Likewise.
10600         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c: Likewise.
10601
10602 2014-01-03  Joseph Myers  <joseph@codesourcery.com>
10603
10604         * sysdeps/powerpc/nofpu/libm-test-ulps: Regenerated.
10605
10606         * math/auto-libm-test-in: Mark various tests with
10607         xfail-rounding:ldbl-128ibm.
10608         * math/auto-libm-test-out: Regenerated.
10609
10610 2014-01-02  Joseph Myers  <joseph@codesourcery.com>
10611
10612         [BZ #16386]
10613         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Adjust
10614         numbers with subnormal high part when calculating exponent.
10615
10616         [BZ #16385]
10617         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Use fabsl not
10618         fabs.
10619
10620         [BZ #16384]
10621         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (ln2): Initialize with
10622         M_LN2l.
10623         (__ieee754_acoshl): Use __log1pl not __log1p.
10624
10625 2013-01-02  Ondřej Bílka  <neleai@seznam.cz>
10626
10627         * malloc/arena.c (malloc_atfork, free_atfork, ptmalloc_lock_all)
10628         (ptmalloc_unlock_all, ptmalloc_unlock_all2, next_env_entry)
10629         (__failing_morecore, ptmalloc_init, dump_heap, new_heap)
10630         (grow_heap, heap_trim, _int_new_arena, get_free_list)
10631         (reused_arena, arena_get2): Convert to GNU style.
10632         * malloc/hooks.c (memalign_hook_ini, __malloc_check_init)
10633         (mem2mem_check, mem2chunk_check, top_check, realloc_check)
10634         (memalign_check, __malloc_set_state): Likewise.
10635         * malloc/mallocbug.c (main): Likewise.
10636         * malloc/malloc.c (__malloc_assert, malloc_init_state)
10637         (free_perturb, do_check_malloced_chunk, do_check_malloc_state)
10638         (sysmalloc, systrim, mremap_chunk, __libc_malloc, __libc_free)
10639         (__libc_realloc, _mid_memalign, _int_malloc, malloc_consolidate)
10640         (_int_realloc, _int_memalign, mtrim, musable, __libc_mallopt)
10641         (__posix_memalign, malloc_info): Likewise.
10642         * malloc/malloc.h: Likewise.
10643         * malloc/mcheck.c (checkhdr, unlink_blk, link_blk, freehook)
10644         (mallochook, memalignhook, reallochook, mabort): Likewise.
10645         * malloc/mcheck.h: Likewise.
10646         * malloc/memusage.c (update_data, me, malloc, realloc, calloc)
10647         (free, mmap, mmap64, mremap, munmap, dest): Likewise.
10648         * malloc/memusagestat.c (main, parse_opt, more_help): Likewise.
10649         * malloc/morecore.c (__default_morecore): Likewise.
10650         * malloc/mtrace.c (tr_break, lock_and_info, mtrace): Likewise.
10651         * malloc/obstack.c (_obstack_begin, _obstack_newchunk)
10652         (_obstack_allocated_p, obstack_free, _obstack_memory_used)
10653         (print_and_abort): Likewise.
10654         * malloc/obstack.h: Likewise.
10655         * malloc/set-freeres.c (__libc_freeres): Likewise.
10656         * malloc/tst-mallocstate.c (main): Likewise.
10657         * malloc/tst-mtrace.c (main): Likewise.
10658         * malloc/tst-realloc.c (do_test): Likewise.
10659
10660 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
10661
10662         [BZ #16366]
10663         * nscd/netgroupcache.c (do_notfound): New function.
10664         (addgetnetgrentX): Use it.
10665
10666         [BZ # 16365]
10667         * nscd/netgroupcache.c (addgetnetgrentX): Break if status is
10668         NSS_STATUS_NOTFOUND.
10669
10670 2014-01-01  Joseph Myers  <joseph@codesourcery.com>
10671
10672         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
10673         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10674
10675 2014-01-01  Allan McRae  <allan@archlinux.org>
10676
10677         * scripts/update-copyrights: Update configure input file suffix.
10678
10679         * NEWS: Update copyright year.
10680         * catgets/gencat.c: Likewise.
10681         * csu/version.c: Likewise.
10682         * debug/catchsegv.sh: Likewise.
10683         * debug/pcprofiledump.c: Likewise.
10684         * debug/xtrace.sh: Likewise.
10685         * elf/ldconfig.c: Likewise.
10686         * elf/ldd.bash.in: Likewise.
10687         * elf/pldd.c: Likewise.
10688         * elf/sotruss.ksh: Likewise.
10689         * elf/sprof.c: Likewise.
10690         * iconv/iconv_prog.c: Likewise.
10691         * iconv/iconvconfig.c: Likewise.
10692         * locale/programs/locale.c: Likewise.
10693         * locale/programs/localedef.c: Likewise.
10694         * login/programs/pt_chown.c: Likewise.
10695         * malloc/memusage.sh: Likewise.
10696         * malloc/memusagestat.c: Likewise.
10697         * malloc/mtrace.pl: Likewise.
10698         * manual/libc.texinfo: Likewise.
10699         * nscd/nscd.c: Likewise.
10700         * nss/getent.c: Likewise.
10701         * nss/makedb.c: Likewise.
10702         * posix/getconf.c: Likewise.
10703         * scripts/test-installation.pl: Likewise.
10704
10705         * All files with FSF copyright notices: Update copyright dates
10706         using scripts/update-copyrights.
10707         * intl/plural.c: Regenerated.
10708         * locale/programs/charmap-kw.h: Likewise.
10709         * locale/programs/locfile-kw.h: Likewise.
10710
10711 2013-12-31  Mike Frysinger  <vapier@gentoo.org>
10712
10713         * sysdeps/unix/sysv/linux/configure: Regenerated.
10714         * sysdeps/unix/sysv/linux/configure.ac: Call AC_CHECK_HEADER on
10715         the linux/fanotify.h header.
10716         * sysdeps/unix/sysv/linux/tst-fanotify.c: Check if
10717         HAVE_LINUX_FANOTIFY_H is defined.
10718
10719 2013-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
10720
10721         * benchtests/cos-inputs: New inputs.
10722         * benchtests/sin-inputs: Likewise.
10723
10724         * benchtests/atan-inputs: New inputs. Fix name of multiple
10725         precision fallback inputs.
10726
10727         * benchtests/atanh-inputs: New inputs.
10728         * benchtests/tanh-inputs: Likewise.
10729
10730         * benchtests/acosh-inputs: New inputs.
10731         * benchtests/asinh-inputs: Likewise.
10732
10733         * benchtests/cosh-inputs: New inputs.
10734         * benchtests/sinh-inputs: Likewise.
10735
10736         * benchtests/acos-inputs: Add more inputs.
10737         * benchtests/asin-inputs: Likewise.
10738
10739 2013-12-30  Ville Skytta  <ville.skytta@iki.fi>
10740
10741         [BZ #16375]
10742         * manual/arith.texi: Fix spelling.
10743         * manual/charset.texi: Likewise.
10744         * manual/errno.texi: Likewise.
10745         * manual/filesys.texi: Likewise.
10746         * manual/lang.texi: Likewise.
10747         * manual/llio.texi: Likewise.
10748         * manual/locale.texi: Likewise.
10749         * manual/message.texi: Likewise.
10750         * manual/resource.texi: Likewise.
10751         * manual/search.texi: Likewise.
10752         * manual/setjmp.texi: Likewise.
10753         * manual/stdio.texi: Likewise.
10754         * manual/string.texi: Likewise.
10755         * manual/sysinfo.texi: Likewise.
10756         * manual/time.texi: Likewise.
10757
10758 2013-12-27  Carlos O'Donell  <carlos@redhat.com>
10759
10760         * po/sl.po: New file.
10761
10762 2013-12-27  Mike Frysinger  <vapier@gentoo.org>
10763
10764         * .gitignore: Add core/.gdbinit/.gdb_history.
10765
10766 2013-12-27  Allan McRae  <allan@archlinux.org>
10767
10768         [BZ #16369]
10769         * sysdeps/ieee754/dbl-64/s_sin.c (csloww): Fix variable name.
10770         Reported by Il'ya Malakhov <ilmalakhov@yandex.ru>
10771
10772 2013-12-24  Brooks Moses  <bmoses@google.com>
10773
10774         * string/string.h (__CORRECT_ISO_CPP_STRING_H_PROTO): Define for
10775         all compilers that claim C++98 compliance, not just GCC.
10776         * string/strings.h (__CORRECT_ISO_CPP_STRINGS_H_PROTO):
10777         Likewise.
10778
10779 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
10780
10781         * NEWS: Restore accidentally deleted bug-fix entries.
10782
10783 2013-12-24  Maxim Kuvyrkov  <maxim@kugelworks.com>
10784             Ondřej Bílka  <neleai@seznam.cz>
10785
10786         [BZ #15073]
10787         * malloc/malloc.c (_int_free): Perform sanity check only if we
10788         have_lock.
10789
10790 2013-12-23  Ondřej Bílka  <neleai@seznam.cz>
10791
10792         [BZ #12986]
10793         * manual/stdio.texi (String Input Conversions): Clarify that character
10794         classes are not supported.
10795
10796 2013-12-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10797
10798         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10799
10800 2013-12-22  Joseph Myers  <joseph@codesourcery.com>
10801
10802         [BZ #16337]
10803         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c (__ieee754_lgammal_r):
10804         Calculate results for small negative arguments directly rather
10805         than using reflection formula with special underflow handling.
10806
10807         * sysdeps/mach/hurd/Implies: Change unix/bsd/bsd4.4 to unix/bsd.
10808         * sysdeps/unix/bsd/syscalls.list (chflags): Add entry from
10809         sysdeps/unix/bsd/bsd4.4/syscalls.list.
10810         (fchflags): Likewise.
10811         (revoke): Likewise.
10812         (setlogin): Likewise.
10813         (sigaltstack): Likewise.
10814         (wait4): Likewise.
10815         (sigblock): Remove.
10816         (sigsetmask): Likewise.
10817         (wait3): Likewise.
10818         (waitpid): Likewise.
10819         * sysdeps/unix/bsd/bsd4.4/syscalls.list: Remove file.
10820         * sysdeps/unix/sysv/linux/wait3.c: Update directory of included
10821         file.
10822         * sysdeps/unix/bsd/bsd4.4/Makefile: Move to ...
10823         * sysdeps/unix/bsd/Makefile: ... here.
10824         * sysdeps/unix/bsd/bsd4.4/Versions: Move to ...
10825         * sysdeps/unix/bsd/Versions: ... here.
10826         * sysdeps/unix/bsd/bsd4.4/bits/sockaddr.h: Move to ...
10827         * sysdeps/unix/bsd/bits/sockaddr.h: ... here.
10828         * sysdeps/unix/bsd/bsd4.4/cmsg_nxthdr.c: Move to ...
10829         * sysdeps/unix/bsd/cmsg_nxthdr.c: ... here.
10830         * sysdeps/unix/bsd/bsd4.4/sigblock.c: Move to ...
10831         * sysdeps/unix/bsd/sigblock.c: ... here.
10832         * sysdeps/unix/bsd/bsd4.4/sigsetmask.c: Move to ...
10833         * sysdeps/unix/bsd/sigsetmask.c: ... here.
10834         * sysdeps/unix/bsd/bsd4.4/sigvec.c: Move to ...
10835         * sysdeps/unix/bsd/sigvec.c: ... here.
10836         * sysdeps/unix/bsd/bsd4.4/tcdrain.c: Move to ...
10837         * sysdeps/unix/bsd/tcdrain.c: ... here.
10838         * sysdeps/unix/bsd/bsd4.4/tcgetattr.c: Move to ...
10839         * sysdeps/unix/bsd/tcgetattr.c: ... here.
10840         * sysdeps/unix/bsd/bsd4.4/tcsetattr.c: Move to ...
10841         * sysdeps/unix/bsd/tcsetattr.c: ... here.
10842         * sysdeps/unix/bsd/bsd4.4/wait.c: Move to ...
10843         * sysdeps/unix/bsd/wait.c: ... here.
10844         * sysdeps/unix/bsd/bsd4.4/wait3.c: Move to ...
10845         * sysdeps/unix/bsd/wait3.c: ... here.
10846         * sysdeps/unix/bsd/bsd4.4/waitpid.c: Move to ...
10847         * sysdeps/unix/bsd/waitpid.c: ... here.
10848
10849 2013-12-21  Joseph Myers  <joseph@codesourcery.com>
10850
10851         [BZ #16356]
10852         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Also set
10853         round-to-nearest for [!USE_AS_EXPM1L].
10854         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Likewise.
10855         * math/auto-libm-test-in: Do not expect cosh tests to fail.  Add
10856         more tests of exp and exp10.  Expect some exp10 tests to miss
10857         exceptions or fail in directed rounding modes.
10858         * math/auto-libm-test-out: Regenerated.
10859         * math/libm-test.inc (exp10_tonearest_test_data): New array.
10860         (exp10_test_tonearest): New function.
10861         (exp10_towardzero_test_data): New array.
10862         (exp10_test_towardzero): New function.
10863         (exp10_downward_test_data): New array.
10864         (exp10_test_downward): New function.
10865         (exp10_upward_test_data): New array.
10866         (exp10_test_upward): New function.
10867         (main): Call the new functions.
10868         * sysdeps/i386/fpu/libm-test-ulps: Update.
10869         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10870
10871 2013-12-20  Joseph Myers  <joseph@codesourcery.com>
10872
10873         * math/auto-libm-test-in: Add more tests of acos, acosh, asin,
10874         asinh, atan, atan2, atanh, cbrt, cos and cosh.
10875         * math/auto-libm-test-out: Regenerated.
10876         * math/libm-test.inc (acosh_test_data): Add more tests.
10877         (atanh_test_data): Likewise.
10878         (ceil_test_data): Likewise.
10879         (copysign_test_data): Likewise.
10880         * sysdeps/i386/fpu/libm-test-ulps: Update.
10881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10882
10883         * timezone/checktab.awk: Update from tzcode 2013i.
10884         * timezone/private.h: Likewise.
10885         * timezone/scheck.c: Likewise.
10886         * timezone/tzfile.h: Likewise.
10887         * timezone/tzselect.ksh: Likewise.
10888         * timezone/zdump.c: Likewise.
10889         * timezone/zic.c: Likewise.
10890
10891         * math/auto-libm-test-in: Add tests of cpow.
10892         * math/auto-libm-test-out: Regenerated.
10893         * math/libm-test.inc (cpow_test_data): Use AUTO_TESTS_cc_c.
10894         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10895         mpc_cc_c.
10896         (func_calc_desc): Add mpc_cc_c union field.
10897         (test_functions): Add cpow.
10898         (special_fill_2pi): New function.
10899         (special_real_inputs): Add 2pi.
10900         (calc_generic_results): Handle mpc_cc_c.
10901         * sysdeps/i386/fpu/libm-test-ulps: Update.
10902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10903
10904         * math/auto-libm-test-in: Add tests of ccos, ccosh, cexp, clog,
10905         csqrt, ctan and ctanh.
10906         * math/auto-libm-test-out: Regenerated.
10907         * math/libm-test.inc (TEST_COND_x86_64): New macro.
10908         (TEST_COND_x86): Likewise.
10909         (ccos_test_data): Use AUTO_TESTS_c_c.
10910         (ccosh_test_data): Likewise.
10911         (cexp_test_data): Likewise.
10912         (clog_test_data): Likewise.
10913         (csqrt_test_data): Likewise.
10914         (ctan_test_data): Likewise.
10915         (ctan_tonearest_test_data): Likewise.
10916         (ctan_towardzero_test_data): Likewise.
10917         (ctan_downward_test_data): Likewise.
10918         (ctan_upward_test_data): Likewise.
10919         (ctanh_test_data): Likewise.
10920         (ctanh_tonearest_test_data): Likewise.
10921         (ctanh_towardzero_test_data): Likewise.
10922         (ctanh_downward_test_data): Likewise.
10923         (ctanh_upward_test_data): Likewise.
10924         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10925         mpc_c_c.
10926         (func_calc_desc): Add mpc_c_c union field.
10927         (FUNC_mpc_c_c): New macro.
10928         (test_functions): Add cacos, cacosh, casin, casinh, catan, catanh,
10929         ccos, ccosh, cexp, clog, clog10, csin, csinh, csqrt, ctan and
10930         ctanh.
10931         (special_fill_min_subnorm_p120): New function.
10932         (special_real_inputs): Add min_subnorm_p120.
10933         (calc_generic_results): Handle mpc_c_c.
10934         * sysdeps/i386/fpu/libm-test-ulps: Update.
10935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10936
10937 2013-12-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
10938
10939         * sysdeps/ieee754/dbl-64/s_sin.c (do_cos, do_cos_slow, do_sin)
10940         (do_sin_slow): New functions.
10941         (__sin, __cos, slow1, slow2, sloww1, sloww2, bsloww1, bsloww2)
10942         (cslow2, csloww1, csloww2): Use the new functions.
10943
10944         * sysdeps/ieee754/dbl-64/s_sin.c (sloww1): Add new argument M.
10945         Use M to change sign of result instead of X.  Assume X is
10946         positive.
10947         (csloww1): Likewise.
10948         (__sin): Adjust.
10949         (__cos): Adjust.
10950
10951         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): Remove
10952         arguments A and DA.
10953         (__sin): Adjust.
10954         (__cos): Likewise.
10955
10956         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use DA directly.
10957         (__cos): Likewise.
10958         (sloww1): Don't adjust sign of DX.
10959         (csloww1): Likewise.
10960         (sloww2): Use X directly and don't adjust sign of DX.
10961         (csloww2): Likewise.
10962
10963 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
10964
10965         * math/auto-libm-test-in: Add tests of cabs and carg.
10966         * math/auto-libm-test-out: Regenerated.
10967         * math/libm-test.inc (cabs_test_data): Use AUTO_TESTS_c_f.
10968         (carg_test_data): Likewise.
10969         * math/gen-auto-libm-tests.c (func_calc_method): Add value
10970         mpc_c_f.
10971         (func_calc_desc): Add mpc_c_f union field.
10972         (test_functions): Add cabs and carg.
10973         (calc_generic_results): Handle mpc_c_f.
10974
10975         * sysdeps/powerpc/powerpc32/libgcc-compat.S
10976         [_SOFT_FLOAT || __NO_FPRS__] (__fixdfdi_v_glibc20): Do not define
10977         as a macro and a compat symbol.
10978         [_SOFT_FLOAT || __NO_FPRS__] (__fixsfdi_v_glibc20): Likewise.
10979         [_SOFT_FLOAT || __NO_FPRS__] (__fixunsdfdi_v_glibc20): Likewise.
10980         [_SOFT_FLOAT || __NO_FPRS__] (__fixunssfdi_v_glibc20): Likewise.
10981         [_SOFT_FLOAT || __NO_FPRS__] (__floatdidf_v_glibc20): Likewise.
10982         [_SOFT_FLOAT || __NO_FPRS__] (__floaddisf_v_glibc20): Likewise.
10983         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixdfdi): Do
10984         not use .hidden.
10985         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixsfdi):
10986         Likewise.
10987         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunsdfdi):
10988         Likewise.
10989         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__fixunssfdi):
10990         Likewise.
10991         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddidf):
10992         Likewise.
10993         [HAVE_DOT_HIDDEN && (_SOFT_FLOAT || __NO_FPRS__)] (__floaddisf):
10994         Likewise.
10995         * sysdeps/powerpc/nofpu/Versions (libc): Remove __fixdfdi,
10996         __fixsfdi, __fixunsdfdi, __fixunssfdi, __floatdidf and __floatdisf
10997         from GLIBC_2.3.2.
10998
10999 2013-12-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11000
11001         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11002
11003 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
11004
11005         * manual/texinfo.tex: Update to version 2013-11-26.10 with
11006         trailing whitespace removed.
11007         * scripts/config.guess: Update to version 2013-11-29.
11008         * scripts/config.sub: Update to version 2013-10-01.
11009
11010         * math/auto-libm-test-in: Add tests of sincos.
11011         * math/auto-libm-test-out: Regenerated.
11012         * math/libm-test.inc (sincos_test_data): Use AUTO_TESTS_fFF_11.
11013         * math/gen-auto-libm-tests.c (func_calc_method): Add value
11014         mpfr_f_11.
11015         (func_calc_desc): Add mpfr_f_11 union field.
11016         (test_functions): Add sincos.
11017         (calc_generic_results): Handle mpfr_f_11.
11018         * sysdeps/i386/fpu/libm-test-ulps: Update.
11019         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11020
11021 2013-12-19  Andreas Schwab  <schwab@suse.de>
11022
11023         * sysdeps/powerpc/powerpc64/power7/memchr.S: Fix argument of
11024         CALL_MCOUNT.
11025         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
11026         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S
11027         [USE_IN_EXTENDED_LOCALE_MODEL]: Likewise.
11028
11029 2013-12-19  Joseph Myers  <joseph@codesourcery.com>
11030
11031         * math/gen-libm-test.pl (%beautify): Remove M_* constants.
11032         * sysdeps/i386/fpu/libm-test-ulps: Update.
11033         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11034
11035         [BZ #16293]
11036         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]: Set
11037         round-to-nearest mode when using frndint.
11038         * sysdeps/i386/fpu/s_expm1.S (__expm1): Likewise.
11039         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
11040         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL) [USE_AS_EXPM1L]:
11041         Likewise.
11042         * math/auto-libm-test-in: Add more tests of expm1.  Do not expect
11043         sinh test to fail.
11044         * math/auto-libm-test-out: Regenerated.
11045         * math/libm-test.inc (TEST_COND_x86_64): Remove macro.
11046         (TEST_COND_x86): Likewise.
11047         (expm1_tonearest_test_data): New array.
11048         (expm1_test_tonearest): New function.
11049         (expm1_towardzero_test_data): New array.
11050         (expm1_test_towardzero): New function.
11051         (expm1_downward_test_data): New array.
11052         (expm1_test_downward): New function.
11053         (expm1_upward_test_data): New array.
11054         (expm1_test_upward): New function.
11055         (main): Run the new test functions.
11056         * sysdeps/i386/fpu/libm-test-ulps: Update.
11057         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11058
11059         * include/features.h: Update comment documenting feature test
11060         macros.  Mention _DEFAULT_SOURCE in comment.
11061         [_GNU_SOURCE] (_DEFAULT_SOURCE): Undefine and redefine.
11062         [_DEFAULT_SOURCE]: Undefine and redefine _DEFAULT_SOURCE,
11063         _BSD_SOURCE and _SVID_SOURCE.
11064         [!__STRICT_ANSI__ && !_ISOC99_SOURCE && !_POSIX_SOURCE &&
11065         !_POSIX_C_SOURCE && !_XOPEN_SOURCE && !_BSD_SOURCE &&
11066         !_SVID_SOURCE]: Likewise.
11067         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
11068         (__USE_POSIX_IMPLICITLY): Define.
11069         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
11070         (_POSIX_SOURCE): Undefine and redefine.
11071         [_DEFAULT_SOURCE && !_POSIX_SOURCE && !_POSIX_C_SOURCE]
11072         (_POSIX_C_SOURCE): Likewise.
11073         * manual/creature.texi (_DEFAULT_SOURCE): Document.
11074         (Feature Test Macros): Update documentation of default features.
11075
11076 2013-12-19  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
11077
11078         * benchtests/Makefile: Add bench-strtok.
11079         * benchtests/bench-strtok.c: New file: strtok benchtest.
11080
11081 2013-12-19  Allan McRae  <allan@archlinux.org>
11082
11083         * manual/install.texi: Suppress menu for plain text output.
11084         * INSTALL: Regenerated.
11085
11086 2013-12-18  Brooks Moses  <bmoses@google.com>
11087
11088         [BZ #15846]
11089         * misc/getauxval.c: Include errno.h.
11090         (__getauxval): Set errno to ENOENT if the requested type is not
11091         found.
11092         * misc/sys/auxv.h (getauxval): Document that it may set errno;
11093         don't declare with __attribute_const__.
11094         * elf/tst-auxv.c: Add tests for errno and type-not-found case.
11095         * manual/startup.texi: Document that getauxval sets errno.
11096
11097 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
11098
11099         * math/auto-libm-test-in: Add tests of jn and yn.
11100         * math/auto-libm-test-out: Regenerated.
11101         * math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
11102         (yn_test_data): Likewise.
11103         * math/gen-auto-libm-tests.c (func_calc_method): Add value
11104         mpfr_if_f.
11105         (func_calc_desc): Add mpfr_if_f union field.
11106         (FUNC_mpfr_if_f): New macro.
11107         (test_functions): Add jn and yn.
11108         (calc_generic_results): Assert type of second input for
11109         mpfr_ff_f.  Handle mpfr_if_f.
11110         (output_for_one_input_case): Disable all checking for arguments
11111         fitting floating-point types in case of an integer argument.
11112         * sysdeps/i386/fpu/libm-test-ulps: Update.
11113         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11114
11115         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
11116         Don't expect fegetround reference in libm.so.
11117
11118 2013-12-17  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11119
11120         * sysdeps/ieee754/dbl-64/Makefile (CFLAGS-e_sqrt.c): Add
11121         $(config-cflags-nofma).
11122
11123 2013-12-18  Joseph Myers  <joseph@codesourcery.com>
11124
11125         * math/auto-libm-test-in: Mark some hypot tests no-test-inline.
11126         * math/auto-libm-test-out: Regenerated.
11127
11128         [BZ #16338]
11129         * sysdeps/ieee754/ldbl-128/e_logl.c (__ieee754_logl): Use __frexpl
11130         to determine exponent and adjust argument to have exponent of -1.
11131         * math/auto-libm-test-in: Add more tests of log, log10, log1p and
11132         log2.
11133         * math/auto-libm-test-out: Regenerated.
11134         * sysdeps/i386/fpu/libm-test-ulps: Update.
11135         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11136
11137 2013-12-18  Ondřej Bílka  <neleai@seznam.cz>
11138
11139         * manual/probes.texi: Remove cases when per-thread arenas are
11140         disabled.
11141
11142 2013-12-18  Andreas Schwab  <schwab@suse.de>
11143
11144         * sysdeps/i386/i686/multiarch/strstr.c: Remove.
11145         * sysdeps/i386/i686/multiarch/strstr-c.c: Remove.
11146         * sysdeps/i386/i686/multiarch/strcasestr.c: Remove.
11147         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: Remove.
11148         * sysdeps/i386/i686/multiarch/Makefile: Update.
11149         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: Update.
11150
11151 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
11152
11153         * sysdeps/unix/bsd/bsd4.4/bits/errno.h: Remove file.
11154         * sysdeps/unix/bsd/bsd4.4/bits/ioctls.h: Likewise.
11155
11156 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
11157
11158         [BZ #15968]
11159         Support TZ transition times < 00:00:00.
11160         This is needed for version-3 tz-format files; it supports time
11161         stamps past 2037 for America/Godthab (the only entry in the tz
11162         database for which this change is relevant).
11163         * manual/time.texi (TZ Variable): Document transition times
11164         from -167:59:59 through -00:00:01.
11165         * time/tzset.c (tz_rule): Time of day is now signed.
11166         (__tzset_parse_tz): Parse negative time of day.
11167
11168         Document TZ transition times >= 25:00:00.
11169         * manual/time.texi (TZ Variable): Document transition times from
11170         25:00:00 through 167:59:59.  These are already supported, and this
11171         support will help with version-3 tz-format files.
11172
11173         * manual/time.texi (TZ Variable): Modernize North America example
11174         to reflect current (i.e., 2007-and-later) daylight saving rules.
11175
11176         * manual/time.texi (TZ Variable): POSIX.1 hour can be 24.
11177
11178 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
11179
11180         * sysdeps/unix/bsd/bits/posix_opt.h: Remove file.
11181         * sysdeps/unix/bsd/bits/stat.h: Likewise.
11182         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/environments.h: Likewise.
11183         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
11184         * sysdeps/unix/bsd/bsd4.4/freebsd/sys/sysmacros.h: Likewise.
11185         * sysdeps/unix/bsd/bsdstat.h: Likewise.
11186         * sysdeps/unix/bsd/clock.c: Likewise.
11187         * sysdeps/unix/bsd/i386/vfork.S: Likewise.
11188         * sysdeps/unix/bsd/i386/wait3.S: Likewise.
11189         * sysdeps/unix/bsd/init-posix.c: Likewise.
11190         * sysdeps/unix/bsd/poll.c: Likewise.
11191         * sysdeps/unix/bsd/ptsname.c: Likewise.
11192         * sysdeps/unix/bsd/seekdir.c: Likewise.
11193         * sysdeps/unix/bsd/setegid.c: Likewise.
11194         * sysdeps/unix/bsd/seteuid.c: Likewise.
11195         * sysdeps/unix/bsd/setgid.c: Likewise.
11196         * sysdeps/unix/bsd/setrgid.c: Likewise.
11197         * sysdeps/unix/bsd/setruid.c: Likewise.
11198         * sysdeps/unix/bsd/setsid.c: Likewise.
11199         * sysdeps/unix/bsd/setuid.c: Likewise.
11200         * sysdeps/unix/bsd/sigaction.c: Likewise.
11201         * sysdeps/unix/bsd/sigprocmask.c: Likewise.
11202         * sysdeps/unix/bsd/sigsuspend.c: Likewise.
11203         * sysdeps/unix/bsd/sys/reboot.h: Likewise.
11204         * sysdeps/unix/bsd/telldir.c: Likewise.
11205         * sysdeps/unix/bsd/times.c: Likewise.
11206         * sysdeps/unix/bsd/usleep.c: Likewise.
11207
11208         * misc/Makefile (install-lib): Remove libbsd-compat.a.
11209         ($(objpfx)libbsd-compat.a): Remove rule.
11210
11211         * include/features.h (__FAVOR_BSD): Do not define.
11212         * manual/creature.texi (_BSD_SOURCE): Do not document as enabling
11213         features conflicting with POSIX.
11214         (_GNU_SOURCE): Do not mention interaction with _BSD_SOURCE.
11215         (_BSD_SOURCE): Remove description of not being a subset of other
11216         feature test macros.
11217         * manual/job.texi (getpgrp): Do not document BSD version.
11218         (getpgid): Do not document by reference to BSD getpgrp.
11219         * posix/unistd.h [__FAVOR_BSD]: Remove conditional code.
11220         * setjmp/setjmp.h [__FAVOR_BSD]: Likewise.
11221         * signal/signal.h [__FAVOR_BSD]: Likewise.
11222         * sysdeps/gnu/netinet/tcp.h (struct tcphdr): Use anonymous unions
11223         instead of making contents conditional on [__FAVOR_BSD].
11224         * sysdeps/gnu/netinet/udp.h (struct udphdr): Likewise.
11225
11226 2013-12-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11227
11228         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11229
11230 2013-12-17  Joseph Myers  <joseph@codesourcery.com>
11231
11232         [BZ #16314]
11233         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Adjust up
11234         values below 2**-450, not 2**-500.
11235         * math/auto-libm-test-in: Don't allow spurious underflow from
11236         hypot.
11237         * math/auto-libm-test-out: Regenerated.
11238
11239         [BZ #16316]
11240         [BZ #16330]
11241         * sysdeps/ieee754/dbl-64/e_hypot.c (__ieee754_hypot): Update
11242         values of ha and hb and sort them after adjusting subnormal
11243         arguments.
11244         * sysdeps/ieee754/ldbl-128/e_hypotl.c (__ieee754_hypotl):
11245         Likewise.
11246         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Update
11247         values of ea and eb and sort them after adjusting subnormal
11248         arguments.
11249         * math/auto-libm-test-in: Do not expect some hypot tests of
11250         subnormals to fail.  Add more hypot tests.
11251         * math/auto-libm-test-out: Regenerated.
11252
11253 2013-12-16  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11254
11255         [BZ #13304]
11256         * sysdeps/sh/s_fma.c: New file.
11257         * sysdeps/sh/s_fmaf.c: New file.
11258         * sysdeps/sh/soft-fp/sfp-machine.h: New file.  Based on arm
11259         version.
11260         * sysdeps/sh/Implies: Add sh/soft-fp.
11261
11262 2013-12-16  Roland McGrath  <roland@hack.frob.com>
11263
11264         * elf/dl-error.c (struct catch): Add new member `errcode'.  Add a
11265         level of indirection to members `objname', `errstring', `malloced'.
11266         (_dl_signal_error): Store through pointers in *LCATCH rather modifying
11267         *LCATCH itself.  Set *LCATCH->errcode to ERRCODE rather than passing
11268         it as the __longjmp argument (just pass 1 instead).
11269         (_dl_catch_error): Initialize C with argument pointers and address of
11270         volatile local ERRCODE rather than copying values out of C at return.
11271
11272 2013-12-16  Joseph Myers  <joseph@codesourcery.com>
11273
11274         * math/auto-libm-test-in: Add tests of atan2, hypot and pow.
11275         * math/auto-libm-test-out: Regenerated.
11276         * math/libm-test.inc (atan2_test_data): Use AUTO_TESTS_ff_f.
11277         (hypot_test_data): Likewise.
11278         (pow_test_data): Likewise.
11279         (pow_tonearest_test_data): Likewise.
11280         * math/gen-auto-libm-tests.c (func_calc_method): Add value
11281         mpfr_ff_f.
11282         (func_calc_desc): Add mpfr_ff_f union field.
11283         (FUNC_mpfr_ff_f): New macro.
11284         (test_functions): Add atan2, hypot and pow.
11285         (special_fill_min): New function.
11286         (special_fill_minus_min): Likewise.
11287         (special_fill_min_subnorm): Likewise.
11288         (special_fill_minus_min_subnorm): Likewise.
11289         (special_real_inputs): Add min, -min, min_subnorm and
11290         -min_subnorm.
11291         (calc_generic_results): Handle mpfr_ff_f.
11292         * sysdeps/i386/fpu/libm-test-ulps: Update.
11293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11294
11295 2013-12-16  Will Newton  <will.newton@linaro.org>
11296
11297         * manual/memory.texi (Malloc Examples): Mention aligned_alloc.
11298         (Aligned Memory Blocks): Add documentation for aligned_alloc
11299         and suggest it as an alternative to posix_memalign.
11300         (Hooks for Malloc): Document __memalign_hook is also called
11301         for aligned_alloc.  (Summary of Malloc): Add summary for
11302         aligned alloc.  Document __memalign_hook is also called
11303         for aligned_alloc.
11304
11305 2013-12-16  Will Newton  <will.newton@linaro.org>
11306
11307         * manual/memory.texi (Malloc Examples): Clarify default
11308         alignment documentation.  Suggest posix_memalign rather
11309         than memalign or valloc.
11310         (Aligned Memory Blocks): Remove suggestion to use memalign
11311         or valloc.  Remove obsolete comment about BSD.
11312         Document memalign errno values and mark the function obsolete.
11313         Document posix_memalign returned error codes.  Mark valloc
11314         as obsolete.  (Hooks for Malloc): __memalign_hook is also
11315         called for posix_memalign and valloc.
11316         (Summary of Malloc): Add posix_memalign to function summary.
11317         __memalign_hook is also called for posix_memalign and valloc.
11318
11319 2013-12-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11320
11321         * sysdeps/ieee754/dbl-64/s_sin.c (TAYLOR_SINCOS): Rename to
11322         TAYLOR_SIN.
11323         (__sin): Adjust.
11324         (__cos): Likewise.
11325         (sloww): Use mynumber union.  Expand ternary operator into
11326         if-else statements.
11327         (cslow): use mynumber union.
11328
11329 2013-12-16  Allan McRae  <allan@archlinux.org>
11330
11331         * configure.ac: Set AUTOCONF when maintainer-mode is not used.
11332         * configure: Regenerated.
11333
11334         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update file name.
11335
11336         [BZ #14120]
11337         * configure.ac: Added --enable-maintainer-mode. Check for
11338         autoconf when enabled.
11339         * configure: Regenerated.
11340
11341         * nscd/nscd.service: New file.
11342         * nscd/nscd.tmpfiles: New file.
11343
11344 2013-12-14  Ondřej Bílka  <neleai@seznam.cz>
11345
11346         [BZ #12100]
11347         * sysdeps/x86_64/multiarch/strstr-sse2-unaligned.S: New file
11348         * sysdeps/x86_64/multiarch/strstr-c.c: Moved to ...
11349         * sysdeps/x86_64/multiarch/strstr.c: ... here.
11350         (strstr): Add __strstr_sse2_unaligned ifunc.
11351         * sysdeps/x86_64/multiarch/strcasestr-c.c: Moved to ...
11352         * sysdeps/x86_64/multiarch/strcasestr.c ... here.
11353         (strcasestr): Remove __strcasestr_sse42 ifunc.
11354         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Remove.
11355         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
11356         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
11357
11358 2013-12-14  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11359
11360         * sysdeps/sh/sh4/fpu/bits/fenv.h: Move to ...
11361         * sysdeps/sh/bits/fenv.h: ... here.
11362         * sysdeps/sh/sh4/fpu/bits: Remove directory.
11363
11364 2013-12-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11365
11366         * NEWS: Mention ppc64 STT_GNU_IFUNC support.
11367
11368         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add hypot and
11369         hypotf multiarch implementations.
11370         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-power7.c: New file.
11371         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot-ppc64.c: New file.
11372         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypot.c: New file:
11373         multiarch hypot for PPC64.
11374         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-power7.c: New file.
11375         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf-ppc64.c: New file.
11376         * sysdeps/powerpc/powerpc64/fpu/multiarch/e_hypotf.c : New file:
11377         multiarch hypotf for PPC64.
11378
11379         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add modf and
11380         modff multiarch implementations.
11381         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-power5+.c: New file.
11382         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf-ppc64.c: New file.
11383         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modf.c: New file:
11384         multiarch modf for PPC64.
11385         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-power5+.c: New file.
11386         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff-ppc64.c: New file.
11387         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_modff.c : New file:
11388         multiarch modff for PPC64.
11389
11390         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add logb, logbf,
11391         and logl multiarch implementations.
11392         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-power7.c: New file.
11393         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb-ppc64.c: New file.
11394         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logb.c: New file:
11395         multiarch logb for PPC64.
11396         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-power7.c: New file.
11397         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf-ppc64.c: New file.
11398         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbf.c: New file:
11399         multiarch logb for PPC64.
11400         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-power7.c: New file.
11401         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl-ppc64.c: New file.
11402         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_logbl.c: New file:
11403         multiarch logb for PPC64.
11404
11405         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isinf and
11406         isinff multiarch implementation.
11407         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-power7.S: New
11408         file.
11409         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf-ppc64.S: New file.
11410         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinf.c: New file:
11411         multiarch isinf for PPC64.
11412         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff-ppc64.c: New
11413         file.
11414         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isinff.c: New file:
11415         multiarch isinff for PPC64.
11416
11417         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add finite and
11418         finitef multiarch implementation.
11419         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-power7.S: New
11420         file.
11421         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite-ppc64.S: New file.
11422         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finite.c: New file:
11423         multiarch finite for PPC64.
11424         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef-ppc64.c: New
11425         file.
11426         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_finitef.c: New file:
11427         multiarch finitef for PPC64.
11428
11429         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llrint and
11430         lrint multiarch implementation.
11431         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-power6x.S: New
11432         file.
11433         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint-ppc64.S: New file.
11434         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llrint.c: New file:
11435         multiarch llrint for PPC64.
11436         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lrint.c: New file:
11437         multiarch lrint for PPC64.
11438
11439         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add copysign/
11440         copysignf multiarch implementation.
11441         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-power6.S: New
11442         file.
11443         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign-ppc64.S: New
11444         file.
11445         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysign.c: New file:
11446         multiarch copysign for PPC64.
11447         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_copysignf.c: New file:
11448         multiarch copysignf for PPC64.
11449
11450         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add trunc/truncf
11451         multiarch implementation.
11452         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-power5+.S: New
11453         file.
11454         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc-ppc64.S: New
11455         file.
11456         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-power5+.S: New
11457         file.
11458         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf-ppc64.S: New
11459         file.
11460         multiarch llround for PPC64.
11461         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_trunc.c: New file:
11462         multiarch trunc for PPC64.
11463         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_truncf.c: New file:
11464         multiarch truncf for PPC64.
11465
11466         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add round/roundf
11467         multiarch implementation.
11468         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-power5+.S: New
11469         file.
11470         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round-ppc64.S: New
11471         file.
11472         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-power5+.S: New
11473         file.
11474         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf-ppc64.S: New
11475         file.
11476         multiarch llround for PPC64.
11477         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_round.c: New file:
11478         multiarch round for PPC64.
11479         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_roundf.c: New file:
11480         multiarch roundf for PPC64.
11481
11482         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add floor/floorf
11483         multiarch implementation.
11484         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-power5+.S: New
11485         file.
11486         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor-ppc64.S: New
11487         file.
11488         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-power5+.S: New
11489         file.
11490         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf-ppc64.S: New
11491         file.
11492         multiarch llround for PPC64.
11493         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floor.c: New file:
11494         multiarch floor for PPC64.
11495         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_floorf.c: New file:
11496         multiarch floorf for PPC64.
11497
11498         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add ceil/ceilf
11499         multiarch implementation.
11500         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-power5+.S: New
11501         file.
11502         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil-ppc64.S: New
11503         file.
11504         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-power5+.S: New
11505         file.
11506         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf-ppc64.S: New
11507         file.
11508         multiarch llround for PPC64.
11509         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceil.c: New file:
11510         multiarch ceil for PPC64.
11511         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_ceilf.c: New file:
11512         multiarch ceilf for PPC64.
11513
11514         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add llround
11515         multiarch implementation.
11516         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power5+.S: New
11517         file.
11518         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-power6x.S: New
11519         file.
11520         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround-ppc64.S: New
11521         file.
11522         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_llround.c: New file:
11523         multiarch llround for PPC64.
11524         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_lround.c: New file:
11525         multiarch lround for PPC64.
11526
11527         * sysdeps/powerpc/powerpc64/fpu/multiarch/Makefile: Add isnan
11528         multiarch implementation.
11529         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power5.S: New file.
11530         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6.S: New file.
11531         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power6x.S: New
11532         file.
11533         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-power7.S: New file.
11534         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan-ppc64.S: New file.
11535         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnan.c: New file:
11536         multiarch isnan for PPC64.
11537         * sysdeps/powerpc/powerpc64/fpu/multiarch/s_isnanf.c: New file:
11538         multiarch isnanf for PPC64.
11539
11540         * sysdeps/powerpc/powerpc64/power5+/fpu/multiarch/Implies: New file.
11541         * sysdeps/powerpc/powerpc64/power5/fpu/multiarch/Implies: New file.
11542         * sysdeps/powerpc/powerpc64/power6/fpu/multiarch/Implies: New file.
11543         * sysdeps/powerpc/powerpc64/power6x/fpu/multiarch/Implies: New file.
11544         * sysdeps/powerpc/powerpc64/power7/fpu/multiarch/Implies: New file
11545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/Implies: Remove.
11546
11547         * sysdeps/powerpc/fpu/w_sqrt.c: Remove file
11548         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11549         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11550         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11551
11552         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add stpcpy
11553         multiarch implementations.
11554         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11555         (__libc_ifunc_impl_list): Likewise.
11556         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-power7.c: New file.
11557         * sysdeps/powerpc/powerpc64/multiarch/stpcpy-ppc64.c: New file.
11558         * sysdeps/powerpc/powerpc64/multiarch/stpcpy.c : New file:
11559         multiarch stpcpy for PPC64.
11560
11561         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcpy
11562         multiarch implementations.
11563         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11564         (__libc_ifunc_impl_list): Likewise.
11565         * sysdeps/powerpc/powerpc64/multiarch/strcpy-power7.c: New file.
11566         * sysdeps/powerpc/powerpc64/multiarch/strcpy-ppc64.c: New file.
11567         * sysdeps/powerpc/powerpc64/multiarch/strcpy.c : New file:
11568         multiarch strcpy for PPC64.
11569
11570         * string/wordcopy.c (_wordcopy_fwd_aligned): Add define to
11571         redefine function name.
11572         (_wordcopy_fwd_dest_aligned): Likewise.
11573         (_wordcopy_bwd_aligned): Likewise.
11574         (_wordcopy_bwd_dest_aligned): Likewise.
11575         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wordcopy
11576         multiarch implementations.
11577         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11578         (__libc_ifunc_impl_list): Likewise.
11579         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power6.c: New file.
11580         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-power7.c: New file.
11581         * sysdeps/powerpc/powerpc64/multiarch/wordcopy-ppc64.c: New file.
11582         * sysdeps/powerpc/powerpc64/multiarch/wordcopy.c : New file:
11583         multiarch wcscpy for PPC64.
11584
11585         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcscpy
11586         multiarch implementations.
11587         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11588         (__libc_ifunc_impl_list): Likewise.
11589         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power6.c: New file.
11590         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-power7.c: New file.
11591         * sysdeps/powerpc/powerpc64/multiarch/wcscpy-ppc64.c: New file.
11592         * sysdeps/powerpc/powerpc64/multiarch/wcscpy.c : New file:
11593         multiarch wcscpy for PPC64.
11594
11595         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcsrchr
11596         multiarch implementations.
11597         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11598         (__libc_ifunc_impl_list): Likewise.
11599         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power6.c: New file.
11600         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-power7.c: New file.
11601         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr-ppc64.c: New file.
11602         * sysdeps/powerpc/powerpc64/multiarch/wcsrchr.c : New file:
11603         multiarch wcsrchr for PPC64.
11604
11605         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add wcschr
11606         multiarch implementations.
11607         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11608         (__libc_ifunc_impl_list): Likewise.
11609         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power6.c: New file.
11610         * sysdeps/powerpc/powerpc64/multiarch/wcschr-power7.c: New file.
11611         * sysdeps/powerpc/powerpc64/multiarch/wcschr-ppc64.c: New file.
11612         * sysdeps/powerpc/powerpc64/multiarch/wcschr.c : New file:
11613         multiarch wcschr for PPC64.
11614
11615         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchrnul
11616         multiarch implementations.
11617         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11618         (__libc_ifunc_impl_list): Likewise.
11619         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-power7.S: New file.
11620         * sysdeps/powerpc/powerpc64/multiarch/strchrnul-ppc64.c: New file.
11621         * sysdeps/powerpc/powerpc64/multiarch/strchrnul.c: New file:
11622         multiarch strchrnul for PPC64.
11623
11624         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strchr multiarch
11625         implementations.
11626         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11627         (__libc_ifunc_impl_list): Likewise.
11628         * sysdeps/powerpc/powerpc64/multiarch/rtld-strchr.S: New file.
11629         * sysdeps/powerpc/powerpc64/multiarch/strchr-power7.S: New file.
11630         * sysdeps/powerpc/powerpc64/multiarch/strchr-ppc64.S: New file.
11631         * sysdeps/powerpc/powerpc64/multiarch/strchr.c: New file: multiarch
11632         strchr for PPC64.
11633
11634         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncmp multiarch
11635         implementations.
11636         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11637         (__libc_ifunc_impl_list): Likewise.
11638         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power4.S: New file.
11639         * sysdeps/powerpc/powerpc64/multiarch/strncmp-power7.S: New file.
11640         * sysdeps/powerpc/powerpc64/multiarch/strncmp-ppc64.S: New file.
11641         * sysdeps/powerpc/powerpc64/multiarch/strncmp.c: New file: multiarch
11642         strncmp for PPC64.
11643
11644         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strncasecmp
11645         multiarch implementations.
11646         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11647         (__libc_ifunc_impl_list): Likewise.
11648         * sysdeps/powerpc/powerpc64/multiarch/strncase-power7.c: New file.
11649         * sysdeps/powerpc/powerpc64/multiarch/strncase.c: New file: multiarch
11650         strncasecmp for PPC64.
11651         * sysdeps/powerpc/powerpc64/multiarch/strncase_l-power7.c: New file.
11652         * sysdeps/powerpc/powerpc64/multiarch/strncase_l.c: New file:
11653         multiarch strncasecmp_l for PPC64.
11654
11655         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strcasecmp
11656         multiarch implementations.
11657         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:
11658         (__libc_ifunc_impl_list): Likewise.
11659         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp-power7.S: New file.
11660         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp.c: New file:
11661         multiarch strcasecmp for PPC64.
11662         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l-power7.S: New
11663         file.
11664         * sysdeps/powerpc/powerpc64/multiarch/strcasecmp_l.c: new file:
11665         multiarch strcasecmp_l for PPC64.
11666
11667         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strnlen multiarch
11668         implementations.
11669         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11670         (__libc_ifunc_impl_list): Likewise.
11671         * sysdeps/powerpc/powerpc64/multiarch/strnlen-power7.S: New file.
11672         * sysdeps/powerpc/powerpc64/multiarch/strnlen-ppc64.c: New file.
11673         * sysdeps/powerpc/powerpc64/multiarch/strnlen.c: New file: multiarch
11674         strnlen for PPC64.
11675
11676         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add strlen multiarch
11677         implementations.
11678         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11679         (__libc_ifunc_impl_list): Likewise.
11680         * sysdeps/powerpc/powerpc64/multiarch/strlen-power7.S: New file.
11681         * sysdeps/powerpc/powerpc64/multiarch/strlen-ppc64.S: New file.
11682         * sysdeps/powerpc/powerpc64/multiarch/strlen.c: New file: multiarch
11683         strlen for PPC64.
11684
11685         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add rawmemch multiarch
11686         implementations.
11687         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11688         (__libc_ifunc_impl_list): Likewise.
11689         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-power7.S: New file.
11690         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr-ppc64.c: New file.
11691         * sysdeps/powerpc/powerpc64/multiarch/rawmemchr.c: New file: multiarch
11692         rawmemrchr for PPC64.
11693
11694         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memrchr multiarch
11695         implementation.
11696         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11697         (__libc_ifunc_impl_list): Likewise.
11698         * sysdeps/powerpc/powerpc64/multiarch/memrchr-power7.S: New file.
11699         * sysdeps/powerpc/powerpc64/multiarch/memrchr-ppc64.c: New file.
11700         * sysdeps/powerpc/powerpc64/multiarch/memrchr.c: New file: multiarch
11701         memrchr for PPC64.
11702
11703         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memchr multiarch
11704         implementation.
11705         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11706         (__libc_ifunc_impl_list): Likewise.
11707         * sysdeps/powerpc/powerpc64/multiarch/memchr-power7.S: New file.
11708         * sysdeps/powerpc/powerpc64/multiarch/memchr-ppc64.c: New file.
11709         * sysdeps/powerpc/powerpc64/multiarch/memchr.c: New file: multiarch
11710         memchr for PPC64.
11711
11712         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add mempcpy multiarch
11713         implementation.
11714         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11715         (__libc_ifunc_impl_list): Likewise.
11716         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-power7.S: New file.
11717         * sysdeps/powerpc/powerpc64/multiarch/mempcpy-ppc64.c: New file.
11718         * sysdeps/powerpc/powerpc64/multiarch/mempcpy.c: New file: multiarch
11719         mempcpy for PPC64.
11720
11721         * sysdeps/powerpc/powerpc64/memset.S (NO_BZERO_IMPL): Add macro to
11722         avoid cretion of __bzero symbol.
11723         * sysdeps/powerpc/powerpc64/power4/memset.S (NO_BZERO_IMPL):
11724         Likewise.
11725         * sysdeps/powerpc/powerpc64/power6/memset.S (NO_BZERO_IMPL):
11726         Likewise.
11727         * sysdeps/powerpc/powerpc64/power7/memset.S (NO_BZERO_IMPL):
11728         Likewise.
11729         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memset/bzero
11730         multiarch implementations.
11731         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11732         (__libc_ifunc_impl_list): Likewise.
11733         * sysdeps/powerpc/powerpc64/multiarch/bzero-power4.S: New file.
11734         * sysdeps/powerpc/powerpc64/multiarch/bzero-power6.S: New file.
11735         * sysdeps/powerpc/powerpc64/multiarch/bzero-power7.S: New file.
11736         * sysdeps/powerpc/powerpc64/multiarch/bzero.c: New file: multiarch
11737         bzero for PPC32.
11738         * sysdeps/powerpc/powerpc64/multiarch/memset-power4.S: New file.
11739         * sysdeps/powerpc/powerpc64/multiarch/memset-power6.S: New file.
11740         * sysdeps/powerpc/powerpc64/multiarch/memset-power7.S: New file.
11741         * sysdeps/powerpc/powerpc64/multiarch/memset-ppc64.S: New file.
11742         * sysdeps/powerpc/powerpc64/multiarch/memset.c: New file: multiarch
11743         memset for PPC64.
11744         * sysdeps/powerpc/powerpc64/multiarch/rtld-memset.c: New file.
11745
11746         * string/memcmp.c (memcmp): Using macro to redefine symbol name.
11747         * sysdeps/powerpc/powerpc64/multiarch/Makefile: Add memcpy multiarch
11748         implementations.
11749         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c
11750         (__libc_ifunc_impl_list): Likewise.
11751         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power4.S: New file.
11752         * sysdeps/powerpc/powerpc64/multiarch/memcmp-power7.S: New file.
11753         * sysdeps/powerpc/powerpc64/multiarch/memcmp-ppc64.c: New file.
11754         * sysdeps/powerpc/powerpc64/multiarch/memcmp.c: New file: multiarch
11755         memcmp for PPC64.
11756
11757         * sysdeps/powerpc/powerpc64/multiarch/Makefile: New file to support
11758         multiarch for POWER/PPC64.
11759         * sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c: Likewise.
11760         * sysdeps/powerpc/powerpc64/multiarch/init-arch.h: Likewise.
11761         * sysdeps/powerpc/powerpc64/multiarch/memcpy-a2.S: New file.
11762         * sysdeps/powerpc/powerpc64/multiarch/memcpy-cell.S: New file.
11763         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power4.S: New file.
11764         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power6.S: New file.
11765         * sysdeps/powerpc/powerpc64/multiarch/memcpy-power7.S: New file.
11766         * sysdeps/powerpc/powerpc64/multiarch/memcpy-ppc64.S: New file.
11767         * sysdeps/powerpc/powerpc64/multiarch/memcpy.c: New file: multiarch
11768         memcpy for PPC64.
11769
11770         * sysdeps/powerpc/powerpc64/power4/fpu/Implies: New file.
11771         * sysdeps/powerpc/powerpc64/power4/fpu/multiarch/Implies: New File.
11772         * sysdeps/powerpc/powerpc64/power4/multiarch/Implies: New File.
11773         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: New File.
11774         * sysdeps/powerpc/powerpc64/power5+/multiarch/Implies: New File.
11775         * sysdeps/powerpc/powerpc64/power5/Implies: New File.
11776         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: New File.
11777         * sysdeps/powerpc/powerpc64/power5/multiarch/Implies: New File.
11778         * sysdeps/powerpc/powerpc64/power6/fpu/Implies: New File.
11779         * sysdeps/powerpc/powerpc64/power6/multiarch/Implies: New File.
11780         * sysdeps/powerpc/powerpc64/power7/fpu/Implies: New File.
11781         * sysdeps/powerpc/powerpc64/power7/multiarch/Implies: New File.
11782         * sysdeps/powerpc/powerpc64/power8/fpu/Implies: New File.
11783         * sysdeps/powerpc/powerpc64/power8/fpu/multiarch/Implies: New File.
11784         * sysdeps/powerpc/powerpc64/power8/multiarch/Implies: New File.
11785         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: Remove.
11786         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/Implies: Remove.
11787         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: Remove.
11788         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: Remove.
11789         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: Remove.
11790         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: Remove.
11791         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Remove.
11792
11793 2013-12-12  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11794
11795         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Use $$ver.
11796
11797 2013-12-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
11798
11799         * benchtests/Makefile (bench): Add exp2 and log2.
11800         (LDLIBS-bench-exp2): Add -lm.
11801         (LDLIBS-bench-log2): Likewise.
11802         * benchtests/exp2-inputs: New inputs file.
11803         * benchtests/log2-inputs: New inputs file.
11804         * benchtests/log-inputs: Add new inputs.
11805         * benchtests/tan-inputs: Likewise.
11806
11807 2013-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
11808
11809         * sysdeps/ieee754/dbl-64/s_sin.c (t22): Consolidate const
11810         definition...
11811         (slow1, slow2, sloww1, sloww2, bsloww1, bsloww2, cslow2, csloww1)
11812         (csloww2): ... from here.
11813
11814         * sysdeps/ieee754/dbl-64/usncs.h: Define constants as double
11815         instead of structures.
11816         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): Adjust.
11817         (POLYNOMIAL): Likewise.
11818         (TAYLOR_SLOW): Likewise.
11819         (__sin): Likewise.
11820         (__cos): Likewise.
11821         (slow1): Likewise.
11822         (slow2): Likewise.
11823         (sloww): Likewise.
11824         (sloww1); Likewise.
11825         (sloww2): Likewise.
11826         (bsloww1): Likewise.
11827         (bsloww2): Likewise.
11828         (cslow2): Likewise.
11829         (csloww): Likewise.
11830         (csloww1): Likewise.
11831         (csloww2): Likewise.
11832
11833 2013-12-10  Ondřej Bílka  <neleai@seznam.cz>
11834
11835         * malloc/malloc.c (MALLOC_COPY, MALLOC_ZERO): Delete.
11836         (__malloc_assert, __libc_realloc, __libc_calloc, _int_realloc):
11837         Expand MALLOC_COPY and MALLOC_ZERO to memcpy and memset.
11838         * malloc/hooks.c (realloc_check): Likewise.
11839
11840         * malloc/Makefile (CPPFLAGS-malloc.c): Remove -DPER_THREAD flag.
11841         * malloc/arena.c: Remove PER_THREAD conditional.
11842         [!PER_THREAD]: Remove code.
11843         (ptmalloc_unlock_all2): Likewise.
11844         (ptmalloc_init): Likewise.
11845         (_int_new_arena): Likewise.
11846         (arena_get2): Likewise.
11847         * malloc/hooks.c (__malloc_get_state): Likewise.
11848         (__malloc_set_state): Likewise.
11849         * malloc/malloc.c: Likewise.
11850         (struct malloc_state): Likewise.
11851         (struct malloc_par): Likewise.
11852         (__libc_realloc): Likewise.
11853         (__libc_mallopt): Likewise.
11854
11855 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11856
11857         * Versions.def (libm): Add GLIBC_2.3 and GLIBC_2.19.
11858
11859 2013-12-09  Ondřej Bílka  <neleai@seznam.cz>
11860
11861         * malloc/malloc.c (alloc_perturb, free_perturb): Convert from
11862         macro to a function.  Check for zero perturb_byte.
11863         (_int_malloc, _int_free): Remove zero perturb_byte checks.
11864
11865         * malloc/malloc.c: (force_reg): Remove.
11866         (__malloc_assert, __libc_malloc, __libc_free, __libc_realloc)
11867         (_mid_memalign, __libc_calloc, sysmalloc, systrim): Replace
11868         force_reg by atomic_forced_read.
11869         * malloc/arena.c (ptmalloc_init): Likewise.
11870         * malloc/hooks.c (top_check): Likewise.
11871
11872 2013-12-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11873
11874         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11875
11876 2013-12-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
11877
11878         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
11879
11880 2013-12-08  Joseph Myers  <joseph@codesourcery.com>
11881
11882         * math/auto-libm-test-in: Add tests of lgamma.
11883         * math/auto-libm-test-out: Regenerated.
11884         * math/libm-test.inc (M_LOG_SQRT_PIl): Remove macro.
11885         (M_LOG_2_SQRT_PIl): Likewise.
11886         (lgamma_test_data): Use AUTO_TESTS_f_f1.
11887         * math/gen-auto-libm-tests.c (func_calc_method): Add value
11888         mpfr_f_f1.
11889         (func_calc_desc): Add mpfr_f_f1 union field.
11890         (ARGS1): New macro.
11891         (ARGS2): Likewise.
11892         (ARGS3): Likewise.
11893         (ARGS4): Likewise.
11894         (RET1): Likewise.
11895         (RET2): Likewise.
11896         (CALC): Likewise.
11897         (FUNC): Likewise.
11898         (FUNC_mpfr_f_f): Use new macros FUNC, ARGS1, RET1 and CALC.
11899         (test_functions): Add lgamma.
11900         (calc_generic_results): Handle mpfr_f_f1.
11901         * sysdeps/i386/fpu/libm-test-ulps: Update.
11902         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11903
11904 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11905
11906         * sysdeps/powerpc/powerpc64/power7/add_n.S: New file: optimized
11907         __mpn_add_n for PowerPC64/POWER7.
11908         * sysdeps/powerpc/powerpc64/power7/sub_n.S: New file: optimized
11909         __mpn_sub_n for PowerPC64/POWER7.
11910
11911         * sysdeps/powerpc/powerpc64/addmul_1.S: New file: optimized
11912         __mpn_addmul_1 for PowerPC64.
11913         * sysdeps/powerpc/powerpc64/submul_1.S: New file: optimized
11914         __mpn_submul_1 for PowerPC64.
11915         * sysdeps/powerpc/powerpc64/lshift.S: New file: optimized __mpn_lshift
11916         for PowerPC64.
11917         * sysdeps/powerpc/powerpc64/mul_1.S: New file: optimized __mpn_mul_1
11918         for PowerPC64.
11919
11920 2013-12-06  Fernando J. V. da Silva  <fernandojvdasilva@gmail.com>
11921
11922         [BZ #15089]
11923         * malloc/malloc.c: Exit systrim() if pad is bigger than heap top size.
11924
11925 2013-12-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11926
11927         * NEWS: Mention ppc32/power4+ STT_GNU_IFUNC support.
11928
11929         * sysdeps/powerpc/powerpc32/power5+/fpu/multiarch/Implies: New file:
11930         add multiarch folders.
11931         * sysdeps/powerpc/powerpc32/power5+/multiarch/Implies: Likewise.
11932         * sysdeps/powerpc/powerpc32/power5/fpu/multiarch/Implies: Likewise.
11933         * sysdeps/powerpc/powerpc32/power5/multiarch/Implies: Likewise.
11934         * sysdeps/powerpc/powerpc32/power6/fpu/multiarch/Implies: Likewise.
11935         * sysdeps/powerpc/powerpc32/power6/multiarch/Implies: Likewise.
11936         * sysdeps/powerpc/powerpc32/power6x/fpu/multiarch/Implies: Likewise.
11937         * sysdeps/powerpc/powerpc32/power6x/multiarch/Implies: Likewise.
11938         * sysdeps/powerpc/powerpc32/power7/fpu/multiarch/Implies: Likewise.
11939         * sysdeps/powerpc/powerpc32/power7/multiarch/Implies: Likewise.
11940         * sysdeps/powerpc/powerpc32/power8/fpu/multiarch/Implies: Likewise.
11941         * sysdeps/powerpc/powerpc32/power8/multiarch/Implies: Likewise.
11942         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/Implies: Remove.
11943         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: Remove.
11944         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: Remove.
11945         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: Remove.
11946         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: Remove.
11947         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Remove.
11948
11949         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
11950         __ieee754_hypot and __ieee754_hypotf multiarch implementations.
11951         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-power7.c:
11952         New file.
11953         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot-ppc32.c:
11954         New file.
11955         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypot.c: New file:
11956         multiarch __ieee754_hypot for PowerPC32.
11957         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-power7.c:
11958         New file.
11959         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf-ppc32.c:
11960         New file.
11961         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/e_hypotf.c: New file:
11962         multiarch __ieee754_hypotf for PowerPC32.
11963
11964         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Define
11965         long_double_symbol only if __logbl is defined.
11966         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Moved to ...
11967         * sysdeps/powerpc/power7/fpu/s_logb.c: ... here.
11968         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: Move to ...
11969         * sysdeps/powerpc/power7/fpu/s_logbf.c: ... here.
11970         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: Move to ...
11971         * sysdeps/powerpc/power7/fpu/s_logbl.c: ... here.
11972         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: Adjust to use new
11973         path for implementation.
11974         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: Likewise.
11975         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: Likewise.
11976         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add logbf,
11977         logb, and logbl multiarch implementations for PowerPC32.
11978         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-power7.c: New
11979         file.
11980         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb-ppc32.c: New
11981         file.
11982         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logb.c: New file:
11983         multiarch logb for PowerPC32.
11984         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-power7.c: New
11985         file.
11986         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf-ppc32.c: New
11987         file.
11988         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbf.c: New file:
11989         multiarch logbf for PowerPC32.
11990         * sysdeps/powerpc/power4/fpu/multiarch/s_logbl-power7.c: New file.
11991         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl-ppc32.c: New
11992         file.
11993         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_logbl.c: New file:
11994         multiarch logbl implementation for PowerPC32.
11995
11996         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add modf
11997         and modff multiarch implementations.
11998         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-power5+.c:
11999         New file.
12000         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf-ppc32.c:
12001         New file.
12002         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modf.c: New file:
12003         multiarch modf for PowerPC32.
12004         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-power5+.c:
12005         New file.
12006         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff-ppc32.c:
12007         New file.
12008         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_modff.c: New file:
12009         multiarch modff for PowerPC32.
12010
12011         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lrint
12012         and lrintf multiarch implementations.
12013         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-power6x.S:
12014         New file.
12015         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint-ppc32.S:
12016         New file.
12017         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrint.c: New file:
12018         multiarch lrint for PowerPC32.
12019         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lrintf.c: New
12020         file: multiarch lrintf for PowerPC32.
12021
12022         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add lround
12023         and lroundf multiarch implementations.
12024         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power5+.S:
12025         New file.
12026         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-power6.S:
12027         New file.
12028         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround-ppc32.S:
12029         New file.
12030         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lround.c: New file:
12031         multiarch lround for PowerPC32.
12032         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_lroundf.c: New
12033         file: multiarch lroundf for PowerPC32.
12034
12035         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add
12036         copysign and copysignf multiarch implementations.
12037         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-power6.S:
12038         New file.
12039         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign-ppc32.S:
12040         New file.
12041         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysign.c: New
12042         file: multiarch copysign for PowerPC32.
12043         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_copysignf.c: New
12044         file: multiarch copysignf for PowerPC32.
12045
12046         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add trunc
12047         and truncf multiarch implementations.
12048         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-power5+.S:
12049         New file.
12050         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc-ppc32.S: New
12051         file.
12052         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_trunc.c: New file:
12053         multiarch trunc for PowerPC32.
12054         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-power5+.S:
12055         New file.
12056         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf-ppc32.S:
12057         New file.
12058         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_truncf.c: New file:
12059         multiarch truncf for PowerPC32.
12060
12061         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add round
12062         and roundf multiarch implementations.
12063         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-power5+.S:
12064         New file.
12065         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round-ppc32.S: New
12066         file.
12067         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_round.c: New file:
12068         multiarch round for PowerPC32.
12069         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-power5+.S:
12070         New file.
12071         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf-ppc32.S:
12072         New file.
12073         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_roundf.c: New file:
12074         multiarch roundf for PowerPC32.
12075
12076         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add floor
12077         and floorf multiarch implementations.
12078         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-power5+.S:
12079         New file.
12080         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor-ppc32.S: New
12081         file.
12082         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floor.c: New file:
12083         multiarch floor for PowerPC32.
12084         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-power5+.S:
12085         New file.
12086         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf-ppc32.S:
12087         New file.
12088         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_floorf.c: New file:
12089         multiarch floorf for PowerPC32.
12090
12091         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add ceil
12092         and ceilf multiarch implementations.
12093         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-power5+.S:
12094         New file.
12095         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil-ppc32.S: New
12096         file.
12097         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceil.c: New file:
12098         multiarch ceil for PowerPC32.
12099         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-power5+.S:
12100         New file.
12101         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf-ppc32.S: New
12102         file.
12103         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_ceilf.c: New file:
12104         multiarch ceilf for PowerPC32.
12105
12106         * sysdeps/ieee754/dbl-64/s_finite.c (__finite): Redefine it if FINITE
12107         is defined.
12108         * sysdeps/ieee754/flt-32/s_finitef.c (__finitef): Redefine it if
12109         FINITEF is defined.
12110         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add finite
12111         and finitef multiarch implementations.
12112         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-power7.S:
12113         New file.
12114         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite-ppc32.c: New
12115         file.
12116         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finite.c: New file:
12117         multiarch finite for PowerPC32.
12118         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef-ppc32.c:
12119         New file.
12120         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_finitef.c: New
12121         file: multiarch finitef for PowerPC32.
12122
12123         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isinf
12124         and isinff multiarch implementations.
12125         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-power7.S: New
12126         file.
12127         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf-ppc32.c: New
12128         file.
12129         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinf.c: New file:
12130         multiarch isinf for PowerPC32.
12131         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff-ppc32.c:
12132         New file.
12133         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isinff.c: New file:
12134         multiarch isinff for PowerPC32.
12135
12136         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S (__isnan): Only implement
12137         alias when __isnan is defined.
12138         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add isnan
12139         and isnanf multiarch implementations.
12140         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power5.S: New
12141         file.
12142         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power6.S: New
12143         file.
12144         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-power7.S: New
12145         file.
12146         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan-ppc32.S: New
12147         file.
12148         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnan.c: New file:
12149         multiarch isnan for PowerPC32.
12150         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power6.S:
12151         New file.
12152         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf-power7.S:
12153         New file.
12154         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_isnanf.c: New file:
12155         multiarch isnanf for PowerPC32.
12156
12157         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add sqrt
12158         and sqrtf multiarch implementations.
12159         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-power5.S: New
12160         file.
12161         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt-ppc32.S: New
12162         file.
12163         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrt.c: New file:
12164         multiarch sqrt for PowerPC32.
12165         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-power5.S: New
12166         file.
12167         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf-ppc32.S: New
12168         file.
12169         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/w_sqrtf.c: New file:
12170         multiarch sqrtf for PowerPC32.
12171
12172         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: Add llround
12173         and llroundf multiarch implementations.
12174         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power5+.S:
12175         New file.
12176         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-power6.S:
12177         New file.
12178         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround-ppc32.S:
12179         New file.
12180         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llround.c: New
12181         file: multiarch llround for PowerPC32.
12182         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llroundf.c: New
12183         file: multiarch llroundf for PowerPC32.
12184
12185         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/Makefile: New file:
12186         multiarch PowerPC32 fpu implementations.
12187         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-power6.S:
12188         New file.
12189         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint-ppc32.S:
12190         New file.
12191         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrint.c: New file:
12192         multiarch llrint for PowerPC32.
12193         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-power6.S:
12194         New file.
12195         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf-ppc32.S:
12196         New file.
12197         * sysdeps/powerpc/powerpc32/power4/fpu/multiarch/s_llrintf.c: New
12198         file.
12199
12200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/Implies: Remove.
12201
12202         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power6.c: New
12203         file.
12204         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-power7.c: New
12205         file.
12206         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy-ppc32.c: New
12207         file.
12208         * sysdeps/powerpc/powerpc32/power4/multiarch/wordcopy.c: New file:
12209         multiarch wordcopy for PPC32.
12210         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
12211         wordcopy objects.
12212         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12213         (__libc_ifunc_impl_list): Likewise.
12214         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Move ...
12215         * sysdeps/powerpc/power4/wordcopy.c: ... to here.
12216         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Move ...
12217         * sysdeps/powerpc/power6/wordcopy.c: ... to here.
12218         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Remove uneeded file.
12219         * sysdeps/powerpc/powerpc64/power4/wordcopy.c: Likewise.
12220
12221         * wcsmbs/wcscpy.c (wcscpy): Using macro to redefine symbol name
12222         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power6.c: New
12223         file.
12224         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-power7.c: New
12225         file.
12226         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy-ppc32.c: New
12227         file.
12228         * sysdeps/powerpc/powerpc32/power4/multiarch/wcscpy.c: New file:
12229         multiarch wcscpy for PPC32.
12230         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcscpy
12231         multiarch objects.
12232         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12233         (__libc_ifunc_impl_list): Likewise.
12234         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
12235         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
12236         * sysdeps/powerpc/powerpc64/power6/wcscpy.c: Adjust to use
12237         sysdeps/powerpc/power6/wcscpy.c.
12238
12239         * wcsmbs/wcsrchr.c (wcsrchr): Using macro to redefine symbol name
12240         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power6.c: New
12241         file.
12242         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-power7.c: New
12243         file.
12244         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr-ppc32.c: New
12245         file.
12246         * sysdeps/powerpc/powerpc32/power4/multiarch/wcsrchr.c: New file:
12247         multiarch wcsrchr for PPC32.
12248         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
12249         multiarch objects.
12250         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12251         (__libc_ifunc_impl_list): Likewise.
12252         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c: Move ...
12253         * sysdeps/powerpc/power6/wcsrchr.c: ... to here.
12254         * sysdeps/powerpc/powerpc64/power6/wcsrchr.c: Adjust to use
12255         sysdeps/powerpc/power6/wcsrchr.c.
12256
12257         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power6.c: New
12258         file.
12259         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-power7.c: New
12260         file.
12261         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr-ppc32.c: New file.
12262         * sysdeps/powerpc/powerpc32/power4/multiarch/wcschr.c: New file:
12263         multiarch wcschr for PPc32.
12264         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added wcschr
12265         multiarch objects.
12266         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12267         (__libc_ifunc_impl_list): Likewise.
12268         * sysdeps/powerpc/powerpc32/power6/wcschr.c: Move ...
12269         * sysdeps/powerpc/power6/wcschr.c: ... to here.
12270         * sysdeps/powerpc/powerpc64/power6/wcschr.c: Adjust to use
12271         sysdeps/powerpc/power6/wcschr.c.
12272
12273         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strchr.S: New file.
12274         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-power7.S: New
12275         file.
12276         * sysdeps/powerpc/powerpc32/power4/multiarch/strchr-ppc32.S: New file.
12277         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/strchr.c: New
12278         file: multiarch strchr for PPC32.
12279         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchr
12280         multiarch objects.
12281         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12282         (__libc_ifunc_impl_list): Likewise.
12283
12284         * string/strchrnul.c (__strchrnul): Using macro to redefine symbol
12285         name.
12286         * sysdeps/powerpc/powerpc32/power4//multiarch/strchrnul-power7.S: New
12287         file.
12288         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul-ppc32.c: New
12289         file.
12290         * sysdeps/powerpc/powerpc32/power4/multiarch/strchrnul.c: New file:
12291         multiarch strchrnul for PPC32.
12292         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strchrnul
12293         multiarch objects.
12294         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12295         (__libc_ifunc_impl_list): Likewise.
12296
12297         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase-power7.c: New
12298         file.
12299         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase.c: New file:
12300         multiarch strncasecmp for PPC32.
12301         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l-power7.c: New
12302         file.
12303         * sysdeps/powerpc/powerpc32/power4/multiarch/strncase_l.c: New file:
12304         multiarch strncasecmp_l for PPC32.
12305         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added
12306         strncasecmp multiarch objects.
12307         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12308         (__libc_ifunc_impl_list): Likewise.
12309
12310         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp-power7.S: New
12311         file.
12312         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp.c: New file:
12313         multiarch strncasecmp for PPC32.
12314         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l-power7.S:
12315         New file.
12316         * sysdeps/powerpc/powerpc32/power4/multiarch/strcasecmp_l.c: New file:
12317         multiarch strcasecmp_l for PPC32.
12318         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strcasecmp
12319         multiarch objects.
12320         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12321         (__libc_ifunc_impl_list): Likewise.
12322
12323         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-power7.S: New
12324         file.
12325         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp-ppc32.S: New
12326         file.
12327         * sysdeps/powerpc/powerpc32/power4/multiarch/strncmp.c: New file:
12328         multiarch strncmp for PPC32.
12329         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strncmp
12330         multiarch objects.
12331         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12332         (__libc_ifunc_impl_list): Likewise.
12333
12334         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-strnlen.c: New file.
12335         * sysdeps/powerpc/powerpc32//power4/multiarch/strnlen-power7.S: New
12336         file.
12337         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen-ppc32.c: New file.
12338         * sysdeps/powerpc/powerpc32/power4/multiarch/strnlen.c: New file.
12339         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strnlen
12340         multiarch objects.
12341         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12342         (__libc_ifunc_impl_list): Likewise.
12343
12344         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-power7.S: New
12345         file.
12346         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen-ppc32.S: New
12347         file.
12348         * sysdeps/powerpc/powerpc32/power4/multiarch/strlen.c: New file.
12349         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added strlen
12350         multiarch objects.
12351         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12352         (__libc_ifunc_impl_list): Likewise.
12353
12354         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-power7.S: New
12355         file.
12356         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr-ppc32.c: New
12357         file.
12358         * sysdeps/powerpc/powerpc32/power4/multiarch/rawmemchr.c: New file:
12359         multiarch rawmemchr for PPC32.
12360         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added rawmemchr
12361         multiarch objects.
12362         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12363         (__libc_ifunc_impl_list): Likewise.
12364
12365         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-power7.S: New
12366         file.
12367         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr-ppc32.c: New
12368         file.
12369         * sysdeps/powerpc/powerpc32/power4/multiarch/memrchr.c: New
12370         file: memrchr multiarch for PPC32.
12371         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Added memrchr
12372         multiarch objects.
12373         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list
12374         (__libc_ifunc_impl_list): Likewise.
12375
12376         * string/memchr.c (__memchr): Using macro to redefine symbol name.
12377         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-power7.S: New
12378         file.
12379         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c: New File.
12380         * sysdeps/powerpc/powerpc32/power4/multiarch/memchr.c: New file:
12381         multiarch memchr for PPC32.
12382         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memchr
12383         multiarch objects.
12384         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
12385         (__libc_ifunc_impl_list): Likewise.
12386
12387         * string/mempcpy.c (__mempcpy): Using macro to redefine symbol name.
12388         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-power7.S: New
12389         file.
12390         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy-ppc32.c: New
12391         file.
12392         * sysdeps/powerpc/powerpc32/power4/multiarch/mempcpy.c: New
12393         file: multiarch mempcpy for PPC32.
12394         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add mempcpy
12395         multiarch objects.
12396         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
12397         (__libc_ifunc_impl_list): Likewise.
12398
12399         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power6.S: New file.
12400         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-power7.S: New file.
12401         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero-ppc32.S: New file.
12402         * sysdeps/powerpc/powerpc32/power4/multiarch/bzero.c: New file:
12403         multiarch bzero for PPC32.
12404         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power6.S: New
12405         file.
12406         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-power7.S: New
12407         file.
12408         * sysdeps/powerpc/powerpc32/power4/multiarch/memset-ppc32.S: New file.
12409         * sysdeps/powerpc/powerpc/powerpc32/power4/multiarch/memset.c: New
12410         file: multiarch memset for PPC32.
12411         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memset.S: New file.
12412         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add bzero and
12413         memset multiarch objects.
12414         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
12415         (__libc_ifunc_impl_list): Likewise.
12416
12417         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-power7.S: New
12418         file.
12419         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp-ppc32.S: New file.
12420         * sysdeps/powerpc/powerpc32/power4/multiarch/memcmp.c: multiarch
12421         memcmp for PPC32.
12422         * sysdeps/powerpc/powerpc32/power4/multiarch/rtld-memcmp.S: New file.
12423         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcmp
12424         multiarch objects.
12425         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
12426         (__libc_ifunc_impl_list): Likewise.
12427
12428         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-a2.S: New file.
12429         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-cell.S: New file.
12430         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power6.S: New
12431         file.
12432         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-power7.S: New
12433         file.
12434         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy-ppc32.S: New
12435         file.
12436         * sysdeps/powerpc/powerpc32/power4/multiarch/memcpy.c: New file:
12437         multiarch memcpy for PPC32.
12438         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: Add memcpy
12439         multiarch objects.
12440         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c
12441         (__libc_ifunc_impl_list): Likewise.
12442
12443         * sysdeps/powerpc/powerpc32/power4/multiarch/Makefile: New file to
12444         support multiarch for POWER/PPC32.
12445         * sysdeps/powerpc/powerpc32/power4/multiarch/ifunc-impl-list.c:
12446         Likewise.
12447         * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
12448         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: Remove
12449         Implies file to make multiarch folder appers before the fpu and
12450         default folder for power4 configuration.
12451
12452 2013-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12453
12454         * scripts/bench.pl: Append volatile keyword to type.
12455
12456 2013-12-05  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
12457
12458         * sysdeps/sh/sotruss-lib.c: New file.
12459         * sysdeps/unix/sysv/linux/sh/nptl/c++-types.data: New file.
12460
12461 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12462
12463         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12464
12465 2013-12-05  Joseph Myers  <joseph@codesourcery.com>
12466
12467         [BZ #6810]
12468         * math/w_tgamma.c: Include <errno.h>.
12469         (__tgamma): Use __glibc_unlikely.  Set errno on underflow to 0.
12470         * math/w_tgammaf.c: Include <errno.h>.
12471         (__tgammaf): Use __glibc_unlikely.  Set errno on underflow to 0.
12472         * math/w_tgammal.c: Include <errno.h>.
12473         (__tgammal): Use __glibc_unlikely.  Set errno on underflow to 0.
12474         * math/auto-libm-test-in: Do not allow missing errno on tgamma
12475         underflow.  Add more tgamma tests.
12476         * math/auto-libm-test-out: Regenerated.
12477         * sysdeps/i386/fpu/libm-test-ulps: Update.
12478         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12479
12480         * math/auto-libm-test-in: Add tests of log, log10, log1p, log2,
12481         sin, sinh, tan, tanh, tgamma, y0 and y1.
12482         * math/auto-libm-test-out: Regenerated.
12483         * math/libm-test.inc (TEST_COND_x86_64): New macro.
12484         (TEST_COND_x86): Likewise.
12485         (M_E2l): Remove macro.
12486         (M_E3l): Likewise.
12487         (M_2_SQRT_PIl): Likewise.
12488         (M_SQRT_PIl): Likewise.
12489         (M_1_DIV_El): Likewise.
12490         (log_test_data): Use AUTO_TESTS_f_f.
12491         (log10_test_data): Likewise.
12492         (log1p_test_data): Likewise.
12493         (log2_test_data): Likewise.
12494         (sin_test_data): Likewise.
12495         (sin_tonearest_test_data): Likewise.
12496         (sin_towardzero_test_data): Likewise.
12497         (sin_downward_test_data): Likewise.
12498         (sin_upward_test_data): Likewise.
12499         (sinh_test_data): Likewise.
12500         (sinh_tonearest_test_data): Likewise.
12501         (sinh_towardzero_test_data): Likewise.
12502         (sinh_downward_test_data): Likewise.
12503         (sinh_upward_test_data): Likewise.
12504         (tan_test_data): Likewise.
12505         (tan_tonearest_test_data): Likewise.
12506         (tan_towardzero_test_data): Likewise.
12507         (tan_downward_test_data): Likewise.
12508         (tan_upward_test_data): Likewise.
12509         (tanh_test_data): Likewise.
12510         (tgamma_test_data): Likewise.
12511         (y0_test_data): Likewise.
12512         (y1_test_data): Likewise.
12513         * math/gen-auto-libm-tests.c (special_fill_pi_4): New function.
12514         (special_real_inputs): Add pi/4.
12515         * sysdeps/i386/fpu/libm-test-ulps: Update.
12516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12517
12518 2013-12-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12519
12520         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Add "longjmp" and
12521         "longjmp_target" static probes.
12522         (__longjmp): Rename to __longjmp_symbol.
12523         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12524         * sysdeps/powerpc/powerpc32/__longjmp.S: Define __longjmp_symbol based
12525         on which longjmp to generate.
12526         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
12527         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Add "setjmp" static
12528         probe.
12529         (__sigsetjmp): Rename to __sigsetjmp_symbol.
12530         (__sigjmp_save): Rename to __sigjmp_save_symbol.
12531         * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
12532         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Define __sigsetjmp_symbol
12533         and __sigjmp_save_symbol based on which sigsetjmp to generated.
12534         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise
12535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Define
12536         __longjmp_symbol based on which __longjmp to generate.
12537         * sysdeps/powerpc/powerpc64/setjmp-common.S: Add "setjmp" static
12538         probe.
12539         (setjmp): Rename to setjmp_symbol.
12540         (__sigsetjmp): Rename to __sigsetjmp_symbol.
12541         (_setjmp): Rename to _setjmp_symbol.
12542         (__sigsetjmp): Rename to __sigsetjmp_symbol.
12543         * sysdeps/powerpc/powerpc64/setjmp.S: Define setjmp_symbol,
12544         _setjmp_symbol, __sigsetjmp_symbol, and __sigjmp_save_symbol based on
12545         which setjmp to generate.
12546         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Add "longjmp" and
12547         "longjmp_target" static probes.
12548
12549 2013-12-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
12550
12551         * benchtests/README: Add note about output arguments.
12552         * benchtests/bench-sincos.c: Remove file.
12553         * benchtests/sincos-inputs: New file.
12554         * scripts/bench.pl: Identify output arguments and define
12555         static variables for them.
12556
12557         * debug/stpncpy_chk.c (__stpncpy_chk): Remove unused variables.
12558
12559         [BZ #15941]
12560         * Makefile (INSTALL): Add install-plain.texi as the primary
12561         dependency.
12562         * manual/install-plain.texi: New file.
12563         * manual/install.texi: Include node directive only for
12564         non-plaintext output.
12565
12566 2013-12-04  Joseph Myers  <joseph@codesourcery.com>
12567
12568         * stdlib/longlong.h: Update from GCC.
12569
12570         [BZ #6807]
12571         [BZ #15901]
12572         * math/w_j0.c (y0): Raise FE_DIVBYZERO on zero argument.
12573         * math/w_j0f.c (y0f): Likewise.
12574         * math/w_j0l.c (__y0l): Likewise.
12575         * math/w_j1.c (y1): Likewise.
12576         * math/w_j1f.c (y1f): Likewise.
12577         * math/w_j1l.c (__y1l): Likewise
12578         * math/w_jn.c (yn): Likewise.
12579         * math/w_jnf.c (ynf): Likewise.
12580         * sysdeps/ieee754/k_standard.c (__kernel_standard): Use ERANGE for
12581         Bessel function pole errors in _POSIX_ mode.  Use NAN as return
12582         value for Bessel function domain errors outside _SVID_ mode.
12583         Adjust sign of return value for yn (negative integer, 0).
12584         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Use division
12585         by zero in return for negative x and set sign appropriately for
12586         negative n.
12587         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Likewise.
12588         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
12589         * math/libm-test.inc (y0_test_data): Add more tests and adjust
12590         expectations in error cases.
12591         (y1_test_data): Likewise.
12592         (yn_test_data): Likewise.
12593         * sysdeps/i386/fpu/libm-test-ulps: Update.
12594         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12595
12596 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12597
12598         * sysdeps/unix/sysv/linux/powerpc/Makefile (abi-variants): Rename
12599         "64" to "64-v1".  Add "64-v2".
12600         (abi-64-options): Rename to ...
12601         (abi-64-v1-options): ... this.   Redefine _CALL_ELF.
12602         (abi-64-condition): Rename to ...
12603         (abi-64-v1-condition): ... this.  Add _CALL_ELF check.,
12604         (abi-64-ld-soname): Rename to ...
12605         (abi-64-v1-ld-soname): ... this.
12606         (abi-64-v2-options): Define.
12607         (abi-64-v2-condition): Likewise.
12608         (abi-64-v2-ld-soname): Likewise.
12609         * sysdeps/unix/sysv/linux/powerpc/ldconfig.h
12610         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add "/lib64/ld64.so.2".
12611         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: Delete file.
12612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure.ac: New file.
12613         * sysdeps/unix/sysv/linux/powerpc/powerpc64/configure: Generate.
12614
12615 2013-11-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12616             Alan Modra  <amodra@gmail.com>
12617
12618         * sysdeps/powerpc/bits/link.h (La_ppc64v2_regs, La_ppc64v2_retval):
12619         New versions for use with the ELFv2 ABI.
12620         (la_ppc64v2_gnu_pltenter, la_ppc64v2_gnu_pltexit): Add prototypes.
12621         * sysdeps/powerpc/lsdodefs.h (struct La_ppc64v2_regs): Add forward
12622         declaration.
12623         (struct La_ppc64v2_retval): Likewise.
12624         (ARCH_PLTENTER_MEMBERS): Add ppc64v2_gnu_pltenter.
12625         (ARCH_PLTEXIT_MEMBERS): Add ppc64v2_gnu_pltexit.
12626         * sysdeps/powerpc/powerpc64/dl-machine.h (ARCH_LA_PLTENTER): Define
12627         to ppc64v2_gnu_pltenter if _CALL_ELF == 2.
12628         (ARCH_LA_PLTEXIT): Define to ppc64v2_gnu_pltexit if _CALL_ELF == 2.
12629         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
12630         Do not save or restore CR.
12631         (FRAME_SIZE, VR_RTN): Provide updated values for _CALL_ELF == 2.
12632         (_dl_profile_resolve): Do no save or restore CR.  Support extended
12633         return values for ELFv2 ABI.  Fix location of FPR return registers.
12634         * sysdeps/powerpc/powerpc64/tst-audit.h (pltenter, pltexit): Provide
12635         updated values for _CALL_ELF == 2.
12636         (La_regs, La_retval, int_retval): Likewise.
12637
12638 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12639
12640         * sysdeps/powerpc/powerpc64/sysdep.h (FRAME_MIN_SIZE): Define.
12641         (FRAME_MIN_SIZE_PARM): Likewise.
12642         (FRAME_BACKCHAIN): Likewise.
12643         (FRAME_CR_SAVE): Likewise.
12644         (FRAME_LR_SAVE): Likewise.
12645         (FRAME_TOC_SAVE): Likewise.
12646         (FRAME_PARM_SAVE): Likewise.
12647         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE,
12648         FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE,
12649         FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
12650         (call_mcount_parm_offset): New macro.
12651         (SAVE_ARG, REST_ARG, CFI_SAVE_ARG): Use it.
12652         (PROF): Use symbolic stack frame offsets.
12653         (TAIL_CALL_SYSCALL_ERROR): Likewise.
12654         * sysdeps/powerpc/powerpc64/dl-trampoline.S (FRAME_SIZE, INT_PARMS):
12655         Redefine in terms of FRAME_MIN_SIZE.
12656         (_dl_runtime_resolve): Use symbolic stack frame offsets.
12657         (_dl_profile_resolve): Likewise.  Update comment.
12658         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Use
12659         symbols stack frame offsets.
12660         (__sigsetjmp): Likewise.
12661         * sysdeps/powerpc/powerpc64/__longjmp-common.S (__longjmp): Likewise.
12662         * sysdeps/powerpc/powerpc64/ppc-mcount.S (_mcount): Likewise.
12663         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Likewise.
12664         * sysdeps/powerpc/powerpc64/crtn.S (_init, _fini): Likewise.
12665
12666         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ucontext_i.sym
12667         (FRAME_BACKCHAIN): Remove.
12668         (FRAME_CR_SAVE): Likewise.
12669         (FRAME_LR_SAVE): Likewise.
12670         (FRAME_COMPILER_DW): Likewise.
12671         (FRAME_LINKER_DW): Likewise.
12672         (FRAME_TOC_SAVE): Likewise.
12673         (FRAME_PARM_SAVE): Likewise.
12674         (FRAME_PARM1_SAVE, FRAME_PARM2_SAVE, FRAME_PARM3_SAVE)
12675         (FRAME_PARM4_SAVE, FRAME_PARM5_SAVE, FRAME_PARM6_SAVE)
12676         (FRAME_PARM7_SAVE, FRAME_PARM8_SAVE, FRAME_PARM9_SAVE): Likewise.
12677         * sysdeps/unix/sysv/linux/powerpc/powerpc64/____longjmp_chk.S
12678         (CHECK_SP): Use symbolic stack frame offsets.
12679         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Use "red
12680         zone" instead of caller's parameter save area for temp storage.
12681         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
12682         Likewise.  Also, use symbolic stack frame offsets.
12683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (FRAMESIZE,
12684         stackblock): Redefine for _CALL_ELF == 2 to save parameters into
12685         our own stack frame instead of the caller's.
12686         (__socket): Use symbolic stack frame offsets.
12687
12688 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12689             Alan Modra  <amodra@gmail.com>
12690
12691         * elf/elf.h (DT_PPC64_OPT, PPC64_OPT_TLS, PPC64_OPT_MULTI_TOC):
12692         Define.
12693         (STO_PPC64_LOCAL_BIT, STO_PPC64_LOCAL_MASK)
12694         (PPC64_LOCAL_ENTRY_OFFSET): Define.
12695         * sysdeps/powerpc/powerpc64/dl-machine.h (ppc64_local_entry_offset):
12696         New function.
12697         (elf_machine_fixup_plt): Call it.
12698         (elf_machine_plt_conflict): Likewise.  Add map, sym_map, and
12699         reloc arguments.
12700         (elf_machine_rela): Update call to elf_machine_plt_conflict.
12701         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
12702         (_dl_profile_resolve) [_CALL_ELF == 2]: Restore caller's TOC into
12703         r2 before calling target.
12704
12705 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12706             Alan Modra  <amodra@gmail.com>
12707
12708         * sysdeps/powerpc/powerpc64/sysdep.h [_CALL_ELF == 2]
12709         (PPC64_LOAD_FUNCPTR, DOT_LABEL, BODY_LABEL, ENTRY_2, END_2): New
12710         versions of macros to support ELFv2 ABI.
12711         (LOCALENTRY): New macro.
12712         (ENTRY, EALIGN): Use it.
12713         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use LOCALENTRY.
12714         * sysdeps/powerpc/powerpc64/setjmp-common.S (__GI__setjmp): Do not
12715         fall through into ENTRY entry point.
12716         * libc/sysdeps/powerpc/powerpc64/dl-machine.h (Elf64_FuncDesc):
12717         Only define if _CALL_ELF != 2.
12718
12719         (elf_machine_matches_host): Verify ABI version matches.
12720         (RTLD_START): Use LOCALENTRY.
12721         (elf_machine_type_class): Use SHN_UNDEF PLT handling for ELFv2 ABI.
12722         (PLT_INITIAL_ENTRY_WORDS): New version for _CALL_ELF != 2.
12723         (PLT_ENTRY_WORDS): New macro.
12724         (GLINK_INITIAL_ENTRY_WORDS, GLINK_ENTRY_WORDS): Likewise.
12725         (elf_machine_runtime_setup): Support ELFv2 ABI.
12726         (elf_machine_fixup_plt): Likewise.
12727         (elf_machine_plt_conflict): Likewise.
12728         (resolve_ifunc): Likewise.
12729         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_irela): Likewise.
12730         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
12731         Likewise.
12732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/ldsodefs.h
12733         (DL_ADDR_SYM_MATCH): Only define if _CALL_ELF != 2.
12734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12735         (makecontext): Support ELFv2 ABI.
12736         * elf/elf.h (EF_PPC64_ABI): Define.
12737
12738 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12739
12740         * sysdeps/powerpc/powerpc64/sysdep.h
12741         (PPC64_LOAD_FUNCPTR) [ASSEMBLER]: New assembler macro.
12742         (ENTRY_1) [ASSEMBLER]: Do not switch to .text section here ...
12743         (ENTRY) [ASSEMBLER]: ... but instead here ...
12744         (EALIGN) [ASSEMBLER]: ... and here.
12745         (PPC64_LOAD_FUNCPTR) [!ASSEMBLER]: New macro.
12746         (ENTRY_1) [!ASSEMBLER]: New macro; set up .opd entry.
12747         (ENTRY_2) [!ASSEMBLER]: Use it.
12748         * sysdeps/powerpc/powerpc64/dl-machine.h (RTLD_START): Update for
12749         ENTRY_2 changes.  Use PPC64_LOAD_FUNCPTR.
12750         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve)
12751         (_dl_profile_resolve): Use PPC64_LOAD_FUNCPTR.
12752         * sysdeps/powerpc/powerpc64/crti.S (_init, _fini): Use ENTRY_2.
12753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (clone):
12754         Use PPC64_LOAD_FUNCPTR.
12755
12756         * sysdeps/powerpc/tls.h (tcbhead_t): Add __private_ss field.
12757
12758 2013-12-04  Alan Modra  <amodra@gmail.com>
12759
12760         * elf/elf.h (R_PPC64_TLSGD, R_PPC64_TLSLD, R_PPC64_TOCSAVE): Define.
12761         (R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA): Likewise.
12762         (R_PPC64_TPREL16_HIGH, R_PPC64_TPREL16_HIGHA): Likewise.
12763         (R_PPC64_DTPREL16_HIGH, R_PPC64_DTPREL16_HIGHA): Likewise.
12764
12765         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Add
12766         overflow checking for R_PPC64_ADDR16_HI, R_PPC64_ADDR16_HA,
12767         R_PPC64_TPREL16_HI, and R_PPC64_TPREL16_HA.
12768         Support new R_PPC64_ADDR16_HIGH, R_PPC64_ADDR16_HIGHA,
12769         R_PPC64_TPREL16_HIGH, and R_PPC64_TPREL16_HIGHA relocations.
12770         Fix overflow checking for R_PPC64_ADDR30 and R_PPC64_ADDR32.
12771
12772 2013-12-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12773
12774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
12775         (__makecontext): Fix incorrect CFI when backtracing out of
12776         context created via makecontext.
12777         * sysdeps/unix/sysv/linux/powerpc/powerpc64/secontext.S
12778         (__setcontext): Fix incorrect CFI during switch to new context.
12779         (__novec_setcontext): Likewise.
12780
12781 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
12782
12783         [BZ #4772]
12784         * time/strptime_l.c (__strptime_internal): Allow modifiers
12785         in strptime.
12786         * time/tst-strptime.c (day_tests): Add testcase.
12787
12788 2013-12-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
12789
12790         * scripts/bench.pl: Skip over blank lines.
12791
12792 2013-12-04  Paul Eggert  <eggert@cs.ucla.edu>
12793
12794         [BZ #926]
12795         * manual/time.texi (Calendar Time): Clarify what timezone functions
12796         use.
12797
12798 2013-12-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12799
12800         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12801
12802 2013-12-04  Ondřej Bílka  <neleai@seznam.cz>
12803
12804         * debug/memcpy_chk.c (__memcpy_chk): Use call instead of custom
12805         implementation.
12806         * debug/memmove_chk.c (MEMMOVE_CHK): Likewise.
12807         * debug/mempcpy_chk.c (__mempcpy_chk): Likewise.
12808         * debug/memset_chk.c (__memset_chk): Likewise.
12809         * debug/stpncpy_chk.c (__stpncpy_chk): Likewise.
12810         * debug/strncpy_chk.c: Likewise.
12811
12812 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
12813
12814         [BZ #15268]
12815         [BZ #15425]
12816         * sysdeps/ieee754/dbl-64/e_exp.c: Include <float.h>.
12817         (__ieee754_exp): For possibly underflowing results, check size of
12818         result and force underflow exception if required.
12819         * math/auto-libm-test-in: Add more tests of exp.
12820         * math/auto-libm-test-out: Regenerated.
12821         * sysdeps/i386/fpu/libm-test-ulps: Update.
12822         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12823
12824         [BZ #16283]
12825         * math/w_exp2.c (__exp2): Handle a zero result as underflow.
12826         * math/w_exp2f.c (__exp2f): Likewise.
12827         * math/w_exp2l.c (__exp2l): Likewise.
12828         * math/auto-libm-test-in: Do not allow missing errno on exp2
12829         underflow.
12830         * math/auto-libm-test-out: Regenerated.
12831
12832 2013-12-03  Ondřej Bílka  <neleai@seznam.cz>
12833
12834         [BZ #16274]
12835         * sysdeps/unix/sysv/linux/shm_open.c (shm_open): Correctly
12836         handle filename validation.
12837         * rt/tst-shm.c (do_test): Do not skip a test when shm_open fails.
12838         (do_open): Delete.
12839
12840 2013-12-03  Joseph Myers  <joseph@codesourcery.com>
12841
12842         [BZ #6786]
12843         * sysdeps/ieee754/dbl-64/s_erf.c: Include <errno.h> and <float.h>.
12844         (__erfc): Set errno to ERANGE when returning 0 or tiny * tiny.
12845         * sysdeps/ieee754/flt-32/s_erff.c: Include <errno.h> and
12846         <float.h>.
12847         (__erfcf): Set errno to ERANGE when returning 0 or tiny * tiny.
12848         * sysdeps/ieee754/ldbl-128/s_erfl.c: Include <errno.h>.
12849         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12850         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Include <errno.h>.
12851         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12852         * sysdeps/ieee754/ldbl-96/s_erfl.c: Include <errno.h>.
12853         (__erfcl): Set errno to ERANGE when returning 0 or tiny * tiny.
12854         * math/auto-libm-test-in: Don't allow missing errno from erfc.
12855         Add more erfc tests.
12856         * math/auto-libm-test-out: Regenerated.
12857         * sysdeps/i386/fpu/libm-test-ulps: Update.
12858         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12859
12860         * math/auto-libm-test-in: Add tests of erf, erfc, exp, exp10,
12861         exp2, expm1, j0 and j1.
12862         * math/auto-libm-test-out: Regenerated.
12863         * math/libm-test.inc (erf_test_data): Use AUTO_TESTS_f_f.
12864         (erfc_test_data): Likewise.
12865         (exp_test_data): Likewise.
12866         (exp_tonearest_test_data): Likewise.
12867         (exp_towardzero_test_data): Likewise.
12868         (exp_downward_test_data): Likewise.
12869         (exp_upward_test_data): Likewise.
12870         (exp10_test_data): Likewise.
12871         (exp2_test_data): Likewise.
12872         (expm1_test_data): Likewise.
12873         (j0_test_data): Likewise.
12874         (j1_test_data): Likewise.
12875         * math/gen-auto-libm-tests.c: Mention "xfail-rounding" in comment.
12876         (input_flag_type): Add flag_xfail_rounding.
12877         (input_flags): Add xfail-rounding.
12878         (adjust_real): Assert mpfr_number_p not mpfr_regular_p.
12879         (output_for_one_input_case): Handle flag_xfail_rounding.
12880         * sysdeps/i386/fpu/libm-test-ulps: Update.
12881         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12882
12883 2013-12-03  Aurelien Jarno  <aurelien@aurel32.net>
12884
12885         [BZ #16289]
12886         * locale/loadarchive.c (_nl_load_locale_from_archive): Avoid
12887         division by 0.
12888
12889 2013-12-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
12890
12891         [BZ #16195]
12892         * include/stap-probe.h [!USE_STAP_PROBE && !__ASSEMBLER__]
12893         (LIBC_PROBE): Change definition to call STAP_PROBE* macros.
12894         (STAP_PROBE0): New macro.
12895         (STAP_PROBE1): Likewise.
12896         (STAP_PROBE2): Likewise.
12897         (STAP_PROBE3): Likewise.
12898         (STAP_PROBE4): Likewise.
12899
12900 2013-12-02  Ondřej Bílka  <neleai@seznam.cz>
12901
12902         * manual/llio.texi (Memory-mapped I/O): Add shm_open and shm_close.
12903
12904 2013-12-02  Steve Ellcey  <sellcey@mips.com>
12905
12906         * benchtests/Makefile (bench): Add sqrt.
12907         (LDLIBS-bench-sqrt): New.
12908         * benchtests/sqrt-input: New.
12909
12910 2013-12-02  Pavel Simerda  <psimerda@redhat.com>
12911
12912         * sysdeps/posix/getaddrinfo.c (GAIH_OKIFUNSPEC): Remove macro.
12913         (GAIH_EAI): Likewise.
12914         (gaih_inet_serv): Don't use GAIH_OKIFUNSPEC.
12915         (gaih_inet): Likewise.
12916         (getaddrinfo): Don't use GAIH_EAI.
12917
12918         * sysdeps/posix/getaddrinfo.c (UNIX_PATH_MAX): Remove macro.
12919         (struct gaih): Remove definition.
12920
12921 2013-12-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
12922
12923         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname4_r):
12924         Use HERRNOP directly.
12925
12926 2013-12-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12927
12928         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12929
12930 2013-11-30  Joseph Myers  <joseph@codesourcery.com>
12931
12932         * math/gen-auto-libm-tests.c (test_functions): Add more
12933         single-argument functions.
12934         (special_fill_pi_2): New function.
12935         (special_fill_minus_pi_2): Likewise.
12936         (special_fill_pi_6): Likewise.
12937         (special_fill_minus_pi_6): Likewise.
12938         (special_fill_pi_3): Likewise.
12939         (special_fill_2pi_3): Likewise.
12940         (special_fill_e): Likewise.
12941         (special_fill_1_e): Likewise.
12942         (special_fill_e_minus_1): Likewise.
12943         (special_real_inputs): Add more special inputs.
12944         (output_for_one_input_case): Do not require ERANGE on underflow to
12945         zero if round-to-nearest result does not underflow to zero, unless
12946         exact results required.
12947         * math/auto-libm-test-in: Add tests of acos, acosh, asin, asinh,
12948         atan, atanh, cbrt, cos and cosh.
12949         * math/auto-libm-test-out: Regenerated.
12950         * math/libm-test.inc (acos_test_data): Use AUTO_TESTS_f_f.
12951         (acos_tonearest_test_data): Likewise.
12952         (acos_towardzero_test_data): Likewise.
12953         (acos_downward_test_data): Likewise.
12954         (acos_upward_test_data): Likewise.
12955         (acosh_test_data): Likewise.
12956         (asin_test_data): Likewise.
12957         (asin_tonearest_test_data): Likewise.
12958         (asin_towardzero_test_data): Likewise.
12959         (asin_upward_test_data): Likewise.
12960         (asinh_test_data): Likewise.
12961         (atan_test_data): Likewise.
12962         (atanh_test_data): Likewise.
12963         (cbrt_test_data): Likewise.
12964         (cos_test_data): Likewise.
12965         (cos_tonearest_test_data): Likewise.
12966         (cos_towardzero_test_data): Likewise.
12967         (cos_downward_test_data): Likewise.
12968         (cos_upward_test_data): Likewise.
12969         (cosh_test_data): Likewise.
12970         (cosh_tonearest_test_data): Likewise.
12971         (cosh_towardzero_test_data): Likewise.
12972         (cosh_downward_test_data): Likewise.
12973         (cosh_upward_test_data): Likewise.
12974         * sysdeps/i386/fpu/libm-test-ulps: Update.
12975         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12976
12977 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
12978
12979         [BZ #6787]
12980         * math/w_exp10.c (__exp10): Handle a zero result as underflow.
12981         * math/w_exp10f.c (__exp10f): Likewise.
12982         * math/w_exp10l.c (__exp10l): Likewise.
12983         * math/libm-test.inc (exp10_test_data): Add more tests and expect
12984         errno settings in existing tests.
12985
12986         [BZ #14032]
12987         * sysdeps/i386/fpu/e_sqrt.S (__ieee754_sqrt): Do fsqrt with
12988         precision control set to double precision.
12989         * sysdeps/i386/fpu/w_sqrt.c: New file.
12990         * math/auto-libm-test-in: Add more tests.
12991         * math/auto-libm-test-out: Update.
12992
12993         * math/libm-test.inc (sqrt_tonearest_test_data): New variable.
12994         (sqrt_test_tonearest): New function.
12995         (sqrt_towardzero_test_data): New variable.
12996         (sqrt_test_towardzero): New function.
12997         (sqrt_downward_test_data): New variable.
12998         (sqrt_test_downward): New function.
12999         (sqrt_upward_test_data): New variable.
13000         (sqrt_test_upward): New function.
13001         (main): Call the new functions.
13002
13003         * math/gen-auto-libm-tests.c: New file.
13004         * math/auto-libm-test-in: Likewise.
13005         * math/auto-libm-test-out: New generated file.
13006         * math/gen-libm-test.pl ($auto_input, %auto_tests): New global
13007         variables.
13008         (%beautify): Add generated representations of zero.
13009         (top level): Set $auto_input and call parse_auto_input.
13010         (beautify): Remove trailing "f" from hex float constants.
13011         (parse_args): Handle XFAIL_TEST.
13012         (convert_condition): New function.
13013         (or_value): Likewise.
13014         (or_cond_value): Likewise.
13015         (generate_testfile): Handle AUTO_TESTS_* lines.
13016         (parse_auto_input): New function.
13017         * math/libm-test.inc (XFAIL_TEST): New macro.
13018         (ERRNO_UNCHANGED): Update value.
13019         (ERRNO_EDOM): Likewise.
13020         (ERRNO_ERANGE): Likewise.
13021         (IGNORE_RESULT): Likewise.
13022         (TEST_COND_flt_32): New macro.
13023         (TEST_COND_dbl_64): Likewise.
13024         (TEST_COND_ldbl_96_intel): Likewise.
13025         (TEST_COND_ldbl_96_m68k): Likewise.
13026         (TEST_COND_ldbl_128): Likewise.
13027         (TEST_COND_ldbl_128ibm): Likewise.
13028         (TEST_COND_long32): Likewise.
13029         (TEST_COND_long64): Likewise.
13030         (TEST_COND_before_rounding): Likewise.
13031         (TEST_COND_after_rounding): Likewise.
13032         (enable_test): Handle XFAIL_TEST flag.
13033         (sqrt_test_data): Use AUTO_TESTS_f_f for tests of finite inputs
13034         with finite results.
13035         * math/Makefile ($(objpfx)libm-test.stmp): Depend on
13036         auto-libm-test-out.
13037
13038 2013-11-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
13039             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13040
13041         [BZ #16214]
13042         * sysdeps/s390/dl-tls.h (__TLS_GET_ADDR): Invoke
13043         __tls_get_addr_internal instead of __tls_get_offset in order to
13044         avoid GOT pointer dependency.  Make rtld export
13045         __tls_get_addr_internal@@GLIBC_PRIVATE while still hiding
13046         __tls_get_addr since we are a __tls_get_offset platform.
13047         * sysdeps/s390/s390-64/tls-macros.h (TLS_IE PIC): Don't rely on
13048         GOT pointer being set up before.
13049         * sysdeps/s390/s390-32/tls-macros.h (TLS_IE PIC): Likewise.
13050
13051 2013-11-28  Joseph Myers  <joseph@codesourcery.com>
13052
13053         * manual/math.texi (Errors in Math Functions): Document accuracy
13054         goals.
13055
13056         [BZ #15004]
13057         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Remove file.
13058         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: Likewise.
13059         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
13060         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
13061         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
13062         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
13063         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
13064         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
13065         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
13066         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
13067         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
13068         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
13069         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
13070         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
13071         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
13072         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
13073
13074         * sysdeps/powerpc/nofpu/atomic-feclearexcept.c: New file.
13075         * sysdeps/powerpc/nofpu/atomic-feholdexcept.c: Likewise.
13076         * sysdeps/powerpc/nofpu/atomic-feupdateenv.c: Likewise.
13077         * sysdeps/powerpc/nofpu/flt-rounds.c: Likewise.
13078         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feclearexcept.c:
13079         Likewise.
13080         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feholdexcept.c:
13081         Likewise.
13082         * sysdeps/powerpc/powerpc32/e500/nofpu/atomic-feupdateenv.c:
13083         Likewise.
13084         * sysdeps/powerpc/powerpc32/e500/nofpu/flt-rounds.c: Likewise.
13085         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = soft-fp]
13086         (sysdep_routines): Add atomic-feholdexcept, atomic-feclearexcept,
13087         atomic-feupdateenv and flt-rounds.
13088         * sysdeps/powerpc/nofpu/Versions (libc): Add
13089         __atomic_feholdexcept, __atomic_feclearexcept,
13090         __atomic_feupdateenv and __flt_rounds to GLIBC_2.19.
13091         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h
13092         (__feraiseexcept_soft): Declare and use libc_hidden_proto here.
13093         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c
13094         (__feraiseexcept_soft): Don't declare and use libc_hidden_proto
13095         here.
13096         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/libc.abilist:
13097         Update.
13098
13099         * manual/arith.texi (FP Exceptions): Document that exceptions may
13100         not be raised when matherr is used.
13101         (Math Error Reporting): Document overflow in directed rounding
13102         modes.  Document that errno may not be set when finite values are
13103         returned on overflow.  Document intent to set errno on underflow
13104         only for underflow to zero.
13105
13106         [BZ #16271]
13107         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Set
13108         round-to-nearest then adjust result for other rounding modes.
13109         * include/fenv.h (fegetround): Use libm_hidden_proto.
13110         * math/fegetround.c (fegetround): Use libm_hidden_def.
13111         * sysdeps/i386/fpu/fegetround.c (fegetround): Likewise.
13112         * sysdeps/powerpc/fpu/fegetround.c (fegetround): Likewise.
13113         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
13114         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c (fegetround):
13115         Likewise.
13116         * sysdeps/s390/fpu/fegetround.c (fegetround): Likewise.
13117         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
13118         * sysdeps/sparc/fpu/fegetround.c (fegetround): Likewise.
13119         * sysdeps/x86_64/fpu/fegetround.c (fegetround): Likewise.
13120
13121 2013-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13122
13123         [BZ #16077]
13124         * nss/Versions (libnss_files): Add
13125         _nss_files_gethostbyname3_r.
13126         * nss/nss_files/files-hosts.c (_nss_files_gethostbyname3_r):
13127         New function.
13128         (HOST_DB_LOOKUP): Remove macro.
13129         (_nss_files_gethostbyname_r): Implement function without the
13130         HOST_DB_LOOKUP macro.
13131         (_nss_files_gethostbyname2_r): Likewise.
13132
13133 2013-11-28  Ondřej Bílka  <neleai@seznam.cz>
13134
13135         * malloc/malloc.c (__libc_calloc): Make memset a tail call.
13136
13137 2013-11-26  Uros Bizjak  <ubizjak@gmail.com>
13138
13139         * soft-fp/op-4.h (_FP_FRAC_ASSEMBLE_4): Check rsize against
13140         _FP_W_TYPE_SIZE to avoid "left shift count >= width of type"
13141         warning.
13142
13143 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13144
13145         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
13146         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
13147         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
13148         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
13149         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
13150         __fe_nomask_env_priv and attribute_hidden.
13151         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
13152         (libc_feupdateenv_test_ppc): Likewise.
13153         (libc_feresetround_ppc): Likewise.
13154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
13155         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
13156         compat_symbol macro.
13157         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
13158         (__fe_nomask_env): Likewise.
13159         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
13160
13161 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
13162
13163         * string/Makefile: Remove ifunc tests.
13164         * string/test-string.h: Define TEST_IFUNC.
13165         * string/test-bcopy-ifunc.c: Remove.
13166         * string/test-bzero-ifunc.c: Likewise.
13167         * string/test-memccpy-ifunc.c: Likewise.
13168         * string/test-memchr-ifunc.c: Likewise.
13169         * string/test-memcmp-ifunc.c: Likewise.
13170         * string/test-memcpy-ifunc.c: Likewise.
13171         * string/test-memmem-ifunc.c: Likewise.
13172         * string/test-memmove-ifunc.c: Likewise.
13173         * string/test-mempcpy-ifunc.c: Likewise.
13174         * string/test-memrchr-ifunc.c: Likewise.
13175         * string/test-memset-ifunc.c: Likewise.
13176         * string/test-rawmemchr-ifunc.c: Likewise.
13177         * string/test-stpcpy-ifunc.c: Likewise.
13178         * string/test-stpncpy-ifunc.c: Likewise.
13179         * string/test-strcasecmp-ifunc.c: Likewise.
13180         * string/test-strcasestr-ifunc.c: Likewise.
13181         * string/test-strcat-ifunc.c: Likewise.
13182         * string/test-strchr-ifunc.c: Likewise.
13183         * string/test-strchrnul-ifunc.c: Likewise.
13184         * string/test-strcmp-ifunc.c: Likewise.
13185         * string/test-strcpy-ifunc.c: Likewise.
13186         * string/test-strcspn-ifunc.c: Likewise.
13187         * string/test-strlen-ifunc.c: Likewise.
13188         * string/test-strncasecmp-ifunc.c: Likewise.
13189         * string/test-strncat-ifunc.c: Likewise.
13190         * string/test-strncmp-ifunc.c: Likewise.
13191         * string/test-strncpy-ifunc.c: Likewise.
13192         * string/test-strnlen-ifunc.c: Likewise.
13193         * string/test-strpbrk-ifunc.c: Likewise.
13194         * string/test-strrchr-ifunc.c: Likewise.
13195         * string/test-strspn-ifunc.c: Likewise.
13196         * string/test-strstr-ifunc.c: Likewise.
13197
13198 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
13199
13200         * benchtests/Makefile: Remove ifunc tests.
13201         * benchtests/bench-string.h: Define TEST_IFUNC.
13202         * benchtests/bench-bcopy-ifunc.c: Remove.
13203         * benchtests/bench-bzero-ifunc.c: Likewise.
13204         * benchtests/bench-memccpy-ifunc.c: Likewise.
13205         * benchtests/bench-memchr-ifunc.c: Likewise.
13206         * benchtests/bench-memcmp-ifunc.c: Likewise.
13207         * benchtests/bench-memcpy-ifunc.c: Likewise.
13208         * benchtests/bench-memmem-ifunc.c: Likewise.
13209         * benchtests/bench-memmove-ifunc.c: Likewise.
13210         * benchtests/bench-mempcpy-ifunc.c: Likewise.
13211         * benchtests/bench-memrchr-ifunc.c: Likewise.
13212         * benchtests/bench-memset-ifunc.c: Likewise.
13213         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
13214         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
13215         * benchtests/bench-stpcpy-ifunc.c: Likewise.
13216         * benchtests/bench-stpncpy-ifunc.c: Likewise.
13217         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
13218         * benchtests/bench-strcasestr-ifunc.c: Likewise.
13219         * benchtests/bench-strcat-ifunc.c: Likewise.
13220         * benchtests/bench-strchr-ifunc.c: Likewise.
13221         * benchtests/bench-strchrnul-ifunc.c: Likewise.
13222         * benchtests/bench-strcmp-ifunc.c: Likewise.
13223         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
13224         * benchtests/bench-strcpy-ifunc.c: Likewise.
13225         * benchtests/bench-strcspn-ifunc.c: Likewise.
13226         * benchtests/bench-strlen-ifunc.c: Likewise.
13227         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
13228         * benchtests/bench-strncat-ifunc.c: Likewise.
13229         * benchtests/bench-strncmp-ifunc.c: Likewise.
13230         * benchtests/bench-strncpy-ifunc.c: Likewise.
13231         * benchtests/bench-strnlen-ifunc.c: Likewise.
13232         * benchtests/bench-strpbrk-ifunc.c: Likewise.
13233         * benchtests/bench-strrchr-ifunc.c: Likewise.
13234         * benchtests/bench-strsep-ifunc.c: Likewise.
13235         * benchtests/bench-strspn-ifunc.c: Likewise.
13236         * benchtests/bench-strstr-ifunc.c: Likewise.
13237
13238 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
13239
13240         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
13241
13242 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
13243
13244         * resolv/netdb.h: Use __glibc_reserved instead __unused.
13245         * rt/aio.h: Likewise.
13246         * sysdeps/gnu/bits/utmp.h: Likewise.
13247         * sysdeps/gnu/bits/utmpx.h: Likewise.
13248         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
13249         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
13250         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
13251         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
13252         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
13253         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
13254         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
13255         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
13256         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
13257         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
13258         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
13259         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
13260         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
13261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
13262         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
13263         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
13264         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
13265         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
13266         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
13267         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
13268         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
13269         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
13270         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
13271         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
13272         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
13273         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13274         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
13275         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
13276         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
13277         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
13278         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
13279         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
13280         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
13281         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
13282         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
13283         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
13284         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
13285         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
13286         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
13287         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
13288         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
13289         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
13290
13291 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
13292
13293         [BZ #16245]
13294         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
13295         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
13296
13297 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
13298
13299         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
13300         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
13301         Likewise.
13302
13303 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13304
13305         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
13306         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
13307         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
13308         (__fesetround): Remove define.
13309         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
13310         rounding and exceptions handling.
13311         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
13312         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
13313         (__fe_nomask_env): Likewise.
13314         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
13315         __fegetround instead of fegetround.
13316         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
13317         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
13318
13319 2013-11-21  Roland McGrath  <roland@hack.frob.com>
13320
13321         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
13322         it's there.
13323
13324         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
13325
13326 2013-11-21  Meador Inge  <meadori@codesourcery.com>
13327
13328         [BZ #11157]
13329         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
13330         (encrypt_r): Likewise.
13331         * malloc/obstack.h (obstack_free): Likewise.
13332         * posix/unistd.h (encrypt): Likewise.
13333
13334 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
13335
13336         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
13337         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
13338         DL_CALL_DT_FINI() that call the functions directly.
13339         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
13340         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
13341         * elf/dl-fini.c: Likewise.
13342
13343 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
13344
13345         * malloc/hooks.c (memalign_check): Add alignment rounding.
13346         * malloc/malloc.c (_mid_memalign): New function.
13347         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
13348         Implement by calling _mid_memalign.
13349         * manual/probes.texi (Memory Allocation Probes): Remove
13350         memory_valloc_retry and memory_pvalloc_retry.
13351
13352 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
13353
13354         * locale/programs/locarchive.c (open_archive): Add const
13355         qualifier to ARCHIVEFNAME and copy default fname to
13356         DEFAULT_FNAME.
13357
13358         [BZ #15601]
13359         * libio/tst-widetext.input: Rename Oriya to Odia.
13360         * locale/iso-639.def: Likewise.
13361
13362         * manual/probes.texi (Mathematical Function Probes): Add
13363         documentation for sin, cos, asin and acos probes.
13364         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
13365         (__sin32): Add slowasin probe.
13366         (__cos32): Add slowacos probe.
13367         (__mpsin): Add slowsin probe.
13368         (__mpcos): Add slowcos probe.
13369
13370 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
13371
13372         [BZ #15483]
13373         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
13374         thread-local __sim_exceptions_thread and global
13375         __sim_exceptions_global.
13376         (__sim_disabled_exceptions): Change to thread-local
13377         __sim_disabled_exceptions_thread and global
13378         __sim_disabled_exceptions_global.
13379         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
13380         and global __sim_round_mode_global.
13381         (__simulate_exceptions): Use thread-local floating-point state and
13382         set global state from it as needed.
13383         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
13384         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
13385         __sim_round_mode_thread.
13386         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
13387         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
13388         and global __sim_exceptions_global.
13389         (__sim_disabled_exceptions): Change to thread-local
13390         __sim_disabled_exceptions_thread and global
13391         __sim_disabled_exceptions_global.
13392         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
13393         and global __sim_round_mode_global.
13394         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
13395         (SIM_SET_GLOBAL): Likewise.
13396         * sysdeps/powerpc/soft-fp/sfp-machine.h
13397         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
13398         __sim_round_mode_thread.
13399         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
13400         __sim_disabled_exceptions_thread.
13401         (__sim_exceptions): Change to __sim_exceptions_thread.
13402         (__sim_disabled_exceptions): Change to
13403         __sim_disabled_exceptions_thread.
13404         (__sim_round_mode): Change to __sim_round_mode_thread.
13405         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
13406         thread-local floating-point state and set global state from it as
13407         needed.
13408         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
13409         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
13410         (__sim_disabled_exceptions): Remove extern declaration.
13411         (feenableexcept): Use thread-local floating-point state and set
13412         global state from it as needed.
13413         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
13414         extern declaration.
13415         (__sim_disabled_exceptions): Likewise.
13416         (__sim_round_mode): Likewise.
13417         (__fegetenv): Use thread-local floating-point state.
13418         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
13419         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
13420         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
13421         floating-point state and set global state from it as needed.
13422         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
13423         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
13424         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
13425         Likewise.
13426         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
13427         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
13428         Likewise.
13429         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
13430         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
13431         Use __sim_round_mode_thread.
13432         * math/test-fenv-tls.c: New file.
13433         * math/Makefile (tests): Add test-fenv-tls.
13434         ($(objpfx)test-fenv-tls): Depend on
13435         $(common-objpfx)nptl/libpthread.so.
13436
13437 2013-11-19  Andreas Schwab  <schwab@suse.de>
13438
13439         * locale/programs/locale.c (show_info): Decode wordarray elements.
13440         * locale/categories.def (LC_MONETARY): Add element for
13441         _NL_MONETARY_CRNCYSTR.
13442         * locale/C-monetary.c (conversion_rate): New variable.
13443         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
13444         element.
13445
13446 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
13447
13448         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
13449         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
13450
13451 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
13452
13453         * elf/Makefile (tst-auxv): New test.
13454         * elf/tst-auxv.c: New
13455         * elf/rtld.c (dl_main): Adjust AT_EXECFN
13456
13457 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
13458
13459         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
13460         (hidden_proto): Caller changed.
13461         (hidden_tls_proto): New macro.
13462         (libc_hidden_tls_proto): Likewise.
13463         (rtld_hidden_tls_proto): Likewise.
13464         (libm_hidden_tls_proto): Likewise.
13465         (libresolv_hidden_tls_proto): Likewise.
13466         (librt_hidden_tls_proto): Likewise.
13467         (libdl_hidden_tls_proto): Likewise.
13468         (libnss_files_hidden_tls_proto): Likewise.
13469         (libnsl_hidden_tls_proto): Likewise.
13470         (libnss_nisplus_hidden_tls_proto): Likewise.
13471         (libutil_hidden_tls_proto): Likewise.
13472
13473 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
13474
13475         [BZ #10253]
13476         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
13477         (decompose_rpath): Defer expansion to fillin_rpath.
13478         (_dl_init_paths): Pass linkmap to fillin_rpath.
13479
13480 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
13481
13482         * benchtests/Makefile: Add strsep.
13483         * benchtests/bench-strsep.c: New file: strsep benchtest.
13484         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
13485
13486 2013-11-18  Andreas Schwab  <schwab@suse.de>
13487
13488         * locale/programs/locale.c (show_info) [case byte]: Check for
13489         '\377' instead of '\177'.
13490         * locale/C-monetary.c (not_available): Always use "\377".
13491         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
13492         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
13493         detect unavailable sign_posn locale elements.
13494         * locale/localeconv.c (__localeconv): For grouping and
13495         mon_grouping handle "\177" and "\377" like no grouping.
13496         (INT_ELEM): New macro.  Use it to set all numeric members.
13497         * locale/programs/ld-monetary.c (monetary_read)
13498         <tok_mon_grouping>: Normalize single -1 to the empty string.
13499         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
13500         Likewise.
13501
13502 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
13503
13504         [BZ #16055]
13505         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
13506         when we match (nil).
13507         * stdio-common/tst-sscanf.c (struct test): Add testcase.
13508
13509 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
13510
13511         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
13512         (NO_TEST_INLINE): Update value.
13513         (ERRNO_UNCHANGED): Likewise.
13514         (ERRNO_EDOM): Likewise.
13515         (ERRNO_ERANGE): Likewise.
13516         (IGNORE_RESULT): Likewise.
13517         (check_float_internal): Check signs of NaN results if
13518         TEST_NAN_SIGN used.
13519         (check_complex): Pass TEST_NAN_SIGN flag through to second
13520         check_float_internal call.
13521         (copysign_test_data): Add tests with quiet NaNs as second
13522         argument.  Use TEST_NAN_SIGN.
13523         (fabs_test_data): Add test of negative quiet NaN argument.  Use
13524         TEST_NAN_SIGN.
13525         (signbit_test_data): Add tests of quiet NaN argument.
13526         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
13527
13528         * math/gen-libm-test.pl (show_exceptions): Take extra argument
13529         $ignore_result.
13530         (parse_args): Handle function results specified as IGNORE.
13531         * math/libm-test.inc (IGNORE_RESULT): New macro.
13532         (check_float_internal): Do not check numerical result if flag
13533         IGNORE_RESULT set.
13534         (check_complex): Pass through IGNORE_RESULT to second
13535         check_float_internal call.
13536         (check_int): Do not check numerical result if flag IGNORE_RESULT
13537         set.
13538         (check_long): Likewise.
13539         (check_bool): Likewise.
13540         (check_longlong): Likewise.
13541         (lrint_test_data): Add tests of infinite and NaN arguments.
13542         (lrint_tonearest_test_data): Likewise.
13543         (lrint_towardzero_test_data): Likewise.
13544         (lrint_downward_test_data): Likewise.
13545         (lrint_upward_test_data): Likewise.
13546         (llrint_test_data): Likewise.
13547         (llrint_tonearest_test_data): Likewise.
13548         (llrint_towardzero_test_data): Likewise.
13549         (llrint_downward_test_data): Likewise.
13550         (llrint_upward_test_data): Likewise.
13551         (lround_test_data): Likewise.
13552         (llround_test_data): Likewise.
13553
13554         * math/libm-test.inc (NO_TEST_INLINE): New macro.
13555         (ERRNO_UNCHANGED): Update value.
13556         (ERRNO_EDOM): Likewise.
13557         (ERRNO_ERANGE): Likewise.
13558         (NO_TEST_INLINE_FLOAT): New macro.
13559         (NO_TEST_INLINE_DOUBLE): Likewise.
13560         (enable_test): New function.
13561         (RUN_TEST_f_f): Check enable_test before running test.
13562         (RUN_TEST_2_f): Likewise.
13563         (RUN_TEST_fff_f): Likewise.
13564         (RUN_TEST_c_f): Likewise.
13565         (RUN_TEST_f_f1): Likewise.
13566         (RUN_TEST_fF_f1): Likewise.
13567         (RUN_TEST_fI_f1): Likewise.
13568         (RUN_TEST_ffI_f1): Likewise.
13569         (RUN_TEST_c_c): Likewise.
13570         (RUN_TEST_cc_c): Likewise.
13571         (RUN_TEST_f_i): Likewise.
13572         (RUN_TEST_f_i_tg): Likewise.
13573         (RUN_TEST_ff_i_tg): Likewise.
13574         (RUN_TEST_f_b): Likewise.
13575         (RUN_TEST_f_b_tg): Likewise.
13576         (RUN_TEST_f_l): Likewise.
13577         (RUN_TEST_f_L): Likewise.
13578         (RUN_TEST_fFF_11): Likewise.
13579         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
13580         conditionals.
13581         (cosh_test_data): Likewise.
13582         (exp_test_data): Likewise.
13583         (expm1_test_data): Likewise.
13584         (hypot_test_data): Likewise.
13585         (pow_test_data): Likewise.
13586         (sinh_test_data): Likewise.
13587         (tanh_test_data): Likewise.
13588         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
13589         flags argument.
13590
13591         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
13592         tests with quiet NaN input and output.
13593         (acosh_test_data): Likewise.
13594         (asin_test_data): Likewise.
13595         (asinh_test_data): Likewise.
13596         (atan_test_data): Likewise.
13597         (atanh_test_data): Likewise.
13598         (atan2_test_data): Likewise.
13599         (cbrt_test_data): Likewise.
13600         (cos_test_data): Likewise.
13601         (cosh_test_data): Likewise.
13602         (erf_test_data): Likewise.
13603         (erfc_test_data): Likewise.
13604         (exp_test_data): Likewise.
13605         (exp10_test_data): Likewise.
13606         (exp2_test_data): Likewise.
13607         (expm1_test_data): Likewise.
13608         (hypot_test_data): Likewise.
13609         (j0_test_data): Likewise.
13610         (j1_test_data): Likewise.
13611         (jn_test_data): Likewise.
13612         (lgamma_test_data): Likewise.
13613         (log_test_data): Likewise.
13614         (log10_test_data): Likewise.
13615         (log1p_test_data): Likewise.
13616         (log2_test_data): Likewise.
13617         (pow_test_data): Likewise.
13618         (scalb_test_data): Likewise.
13619         (sin_test_data): Likewise.
13620         (sincos_test_data): Likewise.
13621         (sinh_test_data): Likewise.
13622         (tan_test_data): Likewise.
13623         (tanh_test_data): Likewise.
13624         (tgamma_test_data): Likewise.
13625         (y0_test_data): Likewise.
13626         (y1_test_data): Likewise.
13627         (yn_test_data): Likewise.
13628
13629         [BZ #16167]
13630         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
13631         argument being NaN and avoid computations with second argument in
13632         that case.
13633         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
13634         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
13635         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
13636
13637 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
13638
13639         * locale/iso-639.def: Add Chitwani Tharu (the).
13640
13641 2013-11-14  Andreas Schwab  <schwab@suse.de>
13642
13643         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
13644         word instead of empty string.
13645
13646 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13647
13648         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
13649         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
13650         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
13651         (__fe_nomask_env): Likewise.
13652
13653 2013-11-13  Steve Ellcey  <sellcey@mips.com>
13654
13655         * benchtests/bench-timing.h: Include time.h.
13656
13657 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
13658
13659         [BZ #15997]
13660         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
13661         to 3.4.0 for x32.
13662         * sysdeps/unix/sysv/linux/configure: Regenerated.
13663
13664 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
13665
13666         [BZ #16151]
13667         * stdlib/strtod_l.c (round_and_return): Do not consider
13668         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
13669         exponent one less than half the least subnormal exponent.
13670         * stdlib/test-strtod-round-data: Add more tests.
13671         * stdlib/tst-strtod-round.c (tests): Regenerated.
13672
13673 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13674
13675         [BZ #14143]
13676         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
13677         (__fe_mask_env): Likewise.
13678         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
13679         libm_hidden_proto and add function prototype.
13680         (__fe_mask_env): Add function prototype.
13681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
13682         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
13683         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
13684         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
13685         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
13686         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
13687
13688 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13689
13690         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
13691         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
13692
13693 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13694
13695         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
13696         of htab_find_slot().
13697
13698 2013-11-11  David S. Miller  <davem@davemloft.net>
13699
13700         [BZ #16150]
13701         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
13702         symbol in the non-vis3 case in static builds.
13703         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
13704         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
13705         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
13706         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
13707
13708 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
13709
13710         [BZ #387]
13711         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
13712         it is empty.
13713
13714 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13715
13716         * benchtests/Makefile: Add bench-strtod.
13717         * benchtests/bench-strtod.c: New file: strtod benchtest
13718
13719 2013-11-11  Andreas Schwab  <schwab@suse.de>
13720
13721         [BZ #16153]
13722         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
13723         terminating NUL in key length.
13724
13725 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13726
13727         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
13728         Add artificial ODP entry for vDSO symbol for PPC64.
13729         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
13730         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
13731
13732 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
13733
13734         [BZ #15374]
13735         * nss/getent.c (services_keys): Recognize services starting with digit.
13736
13737 2013-11-06  David S. Miller  <davem@davemloft.net>
13738
13739         [BZ #15985]
13740         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
13741         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
13742
13743 2013-11-06  Will Newton  <will.newton@linaro.org>
13744
13745         * manual/memory.texi (Malloc Examples): Remove register
13746         keyword from examples.
13747
13748 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
13749
13750         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
13751
13752 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
13753
13754         [BZ #6981]
13755         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
13756         depending on [__GCC_IEC_559 > 0].
13757         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
13758         depending on [__GCC_IEC_559_COMPLEX > 0].
13759
13760 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
13761
13762         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
13763         to iso-639.def.
13764
13765 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
13766
13767         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
13768
13769 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
13770
13771         [BZ #16112]
13772         * malloc/malloc (malloc_info): Do not handle first bin as
13773         special case.
13774
13775 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
13776
13777         * locale/iso-639.def: Add Central Nahuatl (nhn).
13778
13779 2013-11-01  Bruno Haible  <bruno@clisp.org>
13780
13781         [BZ #7003]
13782         * manual/math.texi (BSD Random): Specify range upper bound as
13783         in POSIX.
13784
13785 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
13786
13787         * locale/iso-639.def: Add Meadow Mari (mhr).
13788
13789 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
13790
13791         [BZ #14752], [BZ #15763]
13792         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
13793         Validate name.
13794         * rt/tst_shm.c: Add test for escaping directory.
13795
13796 2013-10-31  Andreas Schwab  <schwab@suse.de>
13797
13798         [BZ #15917]
13799         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
13800         followed by 'x' as part of digit sequence.
13801         * stdio-common/tst-sscanf.c (double_tests2): New tests.
13802
13803 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
13804
13805         [BZ #16037]
13806         * configure.ac: allow GNU Make 4.0 and greater.
13807         * configure: Regenerated.
13808
13809 2013-10-30  Will Newton  <will.newton@linaro.org>
13810
13811         [BZ #16038]
13812         * malloc/hooks.c (memalign_check): Limit alignment to the
13813         maximum representable power of two.
13814         * malloc/malloc.c (__libc_memalign): Likewise.
13815         * malloc/tst-memalign.c (do_test): Add test for very
13816         large alignment values.
13817         * malloc/tst-posix_memalign.c (do_test): Likewise.
13818
13819 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
13820
13821         [BZ #11087]
13822         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
13823         (munmap_chunk): Likewise.
13824         (mremap_chunk): Likewise.
13825
13826 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
13827
13828         [BZ #15799]
13829         * stdlib/div.c (div): Remove obsolete code.
13830         * stdlib/ldiv.c (ldiv): Likewise.
13831         * stdlib/lldiv.c (lldiv): Likewise.
13832
13833 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
13834
13835         [BZ #16071]
13836         * nss/nss_files/files-XXX.c (get_contents_ret): New
13837         enumerator.
13838         (get_contents): New function.
13839         (internal_getent): Use it.  Expand size of LINEBUFLEN.
13840
13841 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
13842
13843         * configure.in: Moved to ...
13844         * configure.ac: ... here. Change reference to configure.in
13845         to configure.ac.
13846         * sysdeps/arm/preconfigure.ac: ... here.
13847         configure.in to configure.ac.
13848         * sysdeps/gnu/configure.in: Moved to ...
13849         * sysdeps/gnu/configure.ac: ... here.
13850         * sysdeps/i386/configure.in: Moved to ...
13851         * sysdeps/i386/configure.ac: ... here.
13852         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
13853         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
13854         * sysdeps/mach/configure.in: Moved to ...
13855         * sysdeps/mach/configure.ac: ... here.
13856         * sysdeps/mach/hurd/configure.in: Moved to ...
13857         * sysdeps/mach/hurd/configure.ac: ... here.
13858         * sysdeps/powerpc/configure.in: Moved to ...
13859         * sysdeps/powerpc/configure.ac: ... here.
13860         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
13861         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
13862         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
13863         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
13864         * sysdeps/s390/s390-32/configure.in: Moved to ...
13865         * sysdeps/s390/s390-32/configure.ac: ... here.
13866         * sysdeps/s390/s390-64/configure.in: Moved to ...
13867         * sysdeps/s390/s390-64/configure.ac: ... here.
13868         * sysdeps/sh/configure.in: Moved to ...
13869         * sysdeps/sh/configure.ac: ... here.
13870         * sysdeps/sparc/configure.in: Moved to ...
13871         * sysdeps/sparc/configure.ac: ... here.
13872         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
13873         * sysdeps/unix/sysv/linux/configure.ac: ... here.
13874         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
13875         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
13876         * sysdeps/x86_64/configure.in: Moved to ...
13877         * sysdeps/x86_64/configure.ac: ... here.
13878         * sysdeps/x86_64/preconfigure.in: Moved to ...
13879         * sysdeps/x86_64/preconfigure.ac: ... here.
13880         * aclocal.m4: Change reference to configure.in to configure.ac.
13881         * config.h.in: Likewise.
13882         * manual/install.texi: Likewise.
13883         * manual/maint.texi: Likewise.
13884         * Makefile: Likewise.
13885         * malloc/Makefile: Likewise.
13886         * nscd/Makefile: Likewise.
13887         * Makeconfig: Change reference to configure.in and
13888         preconfigure.in to configure.ac and preconfigure.ac
13889         respectively.
13890         * INSTALL: Regenerated.
13891         * configure: Likewise.
13892         * sysdeps/gnu/configure: Likewise.
13893         * sysdeps/i386/configure: Likewise.
13894         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
13895         * sysdeps/mach/configure: Likewise.
13896         * sysdeps/mach/hurd/configure: Likewise.
13897         * sysdeps/powerpc/configure: Likewise.
13898         * sysdeps/powerpc/powerpc32/configure: Likewise.
13899         * sysdeps/powerpc/powerpc64/configure: Likewise.
13900         * sysdeps/s390/s390-32/configure: Likewise.
13901         * sysdeps/s390/s390-64/configure: Likewise.
13902         * sysdeps/sh/configure: Likewise.
13903         * sysdeps/sparc/configure: Likewise.
13904         * sysdeps/unix/sysv/linux/configure: Likewise.
13905         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
13906         * sysdeps/x86_64/configure: Likewise.
13907         * sysdeps/x86_64/preconfigure: Likewise.
13908
13909 2013-10-29  Andreas Schwab  <schwab@suse.de>
13910
13911         * stdio-common/Makefile (tst-swscanf-ENV): Define.
13912
13913 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13914
13915         * benchtests/pow-inputs: Add new inputs.
13916
13917         * benchtests/exp-inputs: Add new inputs.
13918
13919         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
13920         conditional check for return value.
13921         (__cos32): Likewise.
13922
13923 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13924
13925         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
13926         to provide a boost for large inputs with word alignment.
13927         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
13928         implementation based on optimized PPC64 strcpy.
13929         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
13930         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
13931         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
13932         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
13933
13934 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13935
13936         [BZ #2801]
13937         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
13938
13939 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13940
13941         [BZ #14876]
13942         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
13943         * time/tst-strptime.c (day_tests): Add testcase.
13944
13945 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
13946
13947         [BZ #14029]
13948         * manual/pattern.texi: Acknowledge that fnmatch can fail.
13949
13950 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
13951
13952         [BZ #16074]
13953         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
13954         MAP_FAILED on error.
13955
13956 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13957
13958         [BZ #16072]
13959         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
13960         heap for large requests.
13961
13962 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
13963
13964         [BZ #9954]
13965         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
13966         result if the result has no associated interface.
13967         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
13968         interface for all 127.X.Y.Z addresses.
13969
13970 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
13971
13972         * locale/iso-639.def: Add Ligurian (lij)
13973
13974 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
13975
13976         [BZ #15825]
13977         * sunrpc/rpc_main.c: Document rpcgen -5.
13978
13979 2013-10-19  Michael Stahl  <mstahl@redhat.com>
13980
13981         * elf/rtld.c (do_preload): Print the reason why preloading failed.
13982
13983 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
13984
13985         [BZ #10278]
13986         * posix/glob.c: Match only directories when trailing slash is present.
13987         * posix/tst-gnuglob.c (my_opendir): Do not open files.
13988         (main): Add testcase.
13989
13990 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
13991
13992         [BZ #15670]
13993         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
13994
13995 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
13996
13997         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
13998         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
13999         AUTH_DES and cindex for FIPS 140-2.
14000         (DES Encryption): Add cindex FIPS 46-3.
14001
14002         * locale/locarchive.h (struct locarhandle): Add fname.
14003         * locale/programs/localedef.c (main): Pass ARGV[remaining]
14004         if an optional argument was specified to --list-archive,
14005         otherwise NULL.
14006         * locale/programs/locarchive.c (show_archive_content): Take new
14007         argument fname and pass it via ah.fname to open_archive.
14008         * locale/programs/localedef.h: Update decl.
14009         (open_archive): If AH->fname is non-null, open that file
14010         rather than the default file name, and don't ignore ENOENT.
14011         (create_archive): Set AH.fname to NULL.
14012         (delete_locales_from_archive): Likewise.
14013         (add_locales_to_archive): Likewise.
14014         * locale/programs/locfile.c (write_all_categories): Likewise.
14015
14016 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
14017             Aldy Hernandez  <aldyh@redhat.com>
14018
14019         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
14020         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
14021         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
14022         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
14023         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
14024         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
14025         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
14026         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
14027         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
14028         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
14029         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
14030         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
14031         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
14032         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
14033         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
14034         Likewise.
14035         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
14036         Likewise.
14037         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
14038         Likewise.
14039         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
14040         Likewise.
14041         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
14042         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
14043         Likewise.
14044         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
14045         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
14046         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
14047         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
14048         Likewise.
14049         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
14050         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
14051         * sysdeps/powerpc/preconfigure: Likewise.
14052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
14053         Likewise.
14054         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
14055         Replace contents of file by #include of <fenv_libc.h>.
14056         * sysdeps/powerpc/soft-fp/sfp-machine.h
14057         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
14058         and <sys/prctl.h>.
14059         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
14060         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
14061         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
14062         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
14063         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
14064         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
14065         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
14066         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
14067         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
14068         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
14069         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
14070         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
14071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
14072         Allow copysignl PLT reference to be missing.
14073
14074 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
14075             Joseph Myers  <joseph@codesourcery.com
14076
14077         [BZ #15948]
14078         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
14079         single character.
14080         (add_to_tablewc): Assert sequence of wide characters is nonempty.
14081
14082 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
14083
14084         * elf/tst-tls-dlinfo.c: Don't include tls.h.
14085         * elf/tst-tls1.c: Likewise.
14086         * elf/tst-tls10.h: Likewise.
14087         * elf/tst-tls14.c: Likewise.
14088         * elf/tst-tls2.c: Likewise.
14089         * elf/tst-tls3.c: Likewise.
14090         * elf/tst-tls4.c: Likewise.
14091         * elf/tst-tls5.c: Likewise.
14092         * elf/tst-tls6.c: Likewise.
14093         * elf/tst-tls7.c: Likewise.
14094         * elf/tst-tls8.c: Likewise.
14095         * elf/tst-tls9.c: Likewise.
14096         * elf/tst-tlsmod1.c: Likewise.
14097         * elf/tst-tlsmod13.c: Likewise.
14098         * elf/tst-tlsmod13a.c: Likewise.
14099         * elf/tst-tlsmod14a.c: Likewise.
14100         * elf/tst-tlsmod16a.c: Likewise.
14101         * elf/tst-tlsmod16b.c: Likewise.
14102         * elf/tst-tlsmod2.c: Likewise.
14103         * elf/tst-tlsmod3.c: Likewise.
14104         * elf/tst-tlsmod4.c: Likewise.
14105         * elf/tst-tlsmod5.c: Likewise.
14106         * elf/tst-tlsmod6.c: Likewise.
14107
14108 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
14109
14110         [BZ #12486]
14111         * malloc/malloc.c: remove checks for statistics.
14112
14113 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
14114
14115         [BZ #15277]
14116         * inet/inet_net.c (inet_network): Detect additional invalid strings.
14117         * inet/tst-network.c: Add testcase.
14118
14119 2013-10-17  Andreas Schwab  <schwab@suse.de>
14120
14121         [BZ #15218]
14122         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
14123         to determine canonical name.
14124
14125 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
14126
14127         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
14128         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
14129         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
14130         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14131         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14132         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14133         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14134         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14135         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14136         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14137         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
14138         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14139         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14140         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14141         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14142         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14143         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14144         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14145         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
14146         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14147         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14148         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14149         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
14150         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
14151         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
14152         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
14153         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
14154         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
14155         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
14156         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
14157         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14158         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
14159         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
14160         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
14161         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
14162         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
14163         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
14164         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
14165         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
14166         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
14167         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
14168         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
14169         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
14170         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
14171         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
14172         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
14173         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
14174         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
14175         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
14176         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
14177         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
14178         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
14179         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
14180         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
14181         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14182         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
14183         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
14184         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
14185
14186 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
14187
14188         [BZ #16041]
14189         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
14190         make result into a quiet NaN.
14191
14192 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
14193
14194         * soft-fp/adddf3.c: Fix horizontal whitespace.
14195         * soft-fp/addsf3.c: Likewise.
14196         * soft-fp/addtf3.c: Likewise.
14197         * soft-fp/divdf3.c: Likewise.
14198         * soft-fp/divsf3.c: Likewise.
14199         * soft-fp/divtf3.c: Likewise.
14200         * soft-fp/double.h: Likewise.
14201         * soft-fp/eqdf2.c: Likewise.
14202         * soft-fp/eqsf2.c: Likewise.
14203         * soft-fp/eqtf2.c: Likewise.
14204         * soft-fp/extenddftf2.c: Likewise.
14205         * soft-fp/extended.h: Likewise.
14206         * soft-fp/extendsfdf2.c: Likewise.
14207         * soft-fp/extendsftf2.c: Likewise.
14208         * soft-fp/extendxftf2.c: Likewise.
14209         * soft-fp/fixdfdi.c: Likewise.
14210         * soft-fp/fixdfsi.c: Likewise.
14211         * soft-fp/fixdfti.c: Likewise.
14212         * soft-fp/fixsfdi.c: Likewise.
14213         * soft-fp/fixsfsi.c: Likewise.
14214         * soft-fp/fixsfti.c: Likewise.
14215         * soft-fp/fixtfdi.c: Likewise.
14216         * soft-fp/fixtfsi.c: Likewise.
14217         * soft-fp/fixtfti.c: Likewise.
14218         * soft-fp/fixunsdfdi.c: Likewise.
14219         * soft-fp/fixunsdfsi.c: Likewise.
14220         * soft-fp/fixunsdfti.c: Likewise.
14221         * soft-fp/fixunssfdi.c: Likewise.
14222         * soft-fp/fixunssfsi.c: Likewise.
14223         * soft-fp/fixunssfti.c: Likewise.
14224         * soft-fp/fixunstfdi.c: Likewise.
14225         * soft-fp/fixunstfsi.c: Likewise.
14226         * soft-fp/fixunstfti.c: Likewise.
14227         * soft-fp/floatdidf.c: Likewise.
14228         * soft-fp/floatdisf.c: Likewise.
14229         * soft-fp/floatditf.c: Likewise.
14230         * soft-fp/floatsidf.c: Likewise.
14231         * soft-fp/floatsisf.c: Likewise.
14232         * soft-fp/floatsitf.c: Likewise.
14233         * soft-fp/floattidf.c: Likewise.
14234         * soft-fp/floattisf.c: Likewise.
14235         * soft-fp/floattitf.c: Likewise.
14236         * soft-fp/floatundidf.c: Likewise.
14237         * soft-fp/floatundisf.c: Likewise.
14238         * soft-fp/floatunditf.c: Likewise.
14239         * soft-fp/floatunsidf.c: Likewise.
14240         * soft-fp/floatunsisf.c: Likewise.
14241         * soft-fp/floatunsitf.c: Likewise.
14242         * soft-fp/floatuntidf.c: Likewise.
14243         * soft-fp/floatuntisf.c: Likewise.
14244         * soft-fp/floatuntitf.c: Likewise.
14245         * soft-fp/fmadf4.c: Likewise.
14246         * soft-fp/fmasf4.c: Likewise.
14247         * soft-fp/fmatf4.c: Likewise.
14248         * soft-fp/gedf2.c: Likewise.
14249         * soft-fp/gesf2.c: Likewise.
14250         * soft-fp/getf2.c: Likewise.
14251         * soft-fp/ledf2.c: Likewise.
14252         * soft-fp/lesf2.c: Likewise.
14253         * soft-fp/letf2.c: Likewise.
14254         * soft-fp/muldf3.c: Likewise.
14255         * soft-fp/mulsf3.c: Likewise.
14256         * soft-fp/multf3.c: Likewise.
14257         * soft-fp/negdf2.c: Likewise.
14258         * soft-fp/negsf2.c: Likewise.
14259         * soft-fp/negtf2.c: Likewise.
14260         * soft-fp/op-1.h: Likewise.
14261         * soft-fp/op-2.h: Likewise.
14262         * soft-fp/op-4.h: Likewise.
14263         * soft-fp/op-8.h: Likewise.
14264         * soft-fp/op-common.h: Likewise.
14265         * soft-fp/quad.h: Likewise.
14266         * soft-fp/single.h: Likewise.
14267         * soft-fp/soft-fp.h: Likewise.
14268         * soft-fp/sqrtdf2.c: Likewise.
14269         * soft-fp/sqrtsf2.c: Likewise.
14270         * soft-fp/sqrttf2.c: Likewise.
14271         * soft-fp/subdf3.c: Likewise.
14272         * soft-fp/subsf3.c: Likewise.
14273         * soft-fp/subtf3.c: Likewise.
14274         * soft-fp/truncdfsf2.c: Likewise.
14275         * soft-fp/trunctfdf2.c: Likewise.
14276         * soft-fp/trunctfsf2.c: Likewise.
14277         * soft-fp/trunctfxf2.c: Likewise.
14278         * soft-fp/unorddf2.c: Likewise.
14279         * soft-fp/unordsf2.c: Likewise.
14280         * soft-fp/unordtf2.c: Likewise.
14281
14282 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
14283
14284         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
14285         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
14286
14287 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
14288
14289         * elf/dl-libc.c: Clear initfini list after freeing.
14290
14291 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
14292
14293         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
14294         * soft-fp/addsf3.c: Likewise.
14295         * soft-fp/addtf3.c: Likewise.
14296         * soft-fp/divdf3.c: Likewise.
14297         * soft-fp/divsf3.c: Likewise.
14298         * soft-fp/divtf3.c: Likewise.
14299         * soft-fp/double.h: Likewise.
14300         * soft-fp/eqdf2.c: Likewise.
14301         * soft-fp/eqsf2.c: Likewise.
14302         * soft-fp/eqtf2.c: Likewise.
14303         * soft-fp/extenddftf2.c: Likewise.
14304         * soft-fp/extended.h: Likewise.
14305         * soft-fp/extendsfdf2.c: Likewise.
14306         * soft-fp/extendsftf2.c: Likewise.
14307         * soft-fp/extendxftf2.c: Likewise.
14308         * soft-fp/fixdfdi.c: Likewise.
14309         * soft-fp/fixdfsi.c: Likewise.
14310         * soft-fp/fixdfti.c: Likewise.
14311         * soft-fp/fixsfdi.c: Likewise.
14312         * soft-fp/fixsfsi.c: Likewise.
14313         * soft-fp/fixsfti.c: Likewise.
14314         * soft-fp/fixtfdi.c: Likewise.
14315         * soft-fp/fixtfsi.c: Likewise.
14316         * soft-fp/fixtfti.c: Likewise.
14317         * soft-fp/fixunsdfdi.c: Likewise.
14318         * soft-fp/fixunsdfsi.c: Likewise.
14319         * soft-fp/fixunsdfti.c: Likewise.
14320         * soft-fp/fixunssfdi.c: Likewise.
14321         * soft-fp/fixunssfsi.c: Likewise.
14322         * soft-fp/fixunssfti.c: Likewise.
14323         * soft-fp/fixunstfdi.c: Likewise.
14324         * soft-fp/fixunstfsi.c: Likewise.
14325         * soft-fp/fixunstfti.c: Likewise.
14326         * soft-fp/floatdidf.c: Likewise.
14327         * soft-fp/floatdisf.c: Likewise.
14328         * soft-fp/floatditf.c: Likewise.
14329         * soft-fp/floatsidf.c: Likewise.
14330         * soft-fp/floatsisf.c: Likewise.
14331         * soft-fp/floatsitf.c: Likewise.
14332         * soft-fp/floattidf.c: Likewise.
14333         * soft-fp/floattisf.c: Likewise.
14334         * soft-fp/floattitf.c: Likewise.
14335         * soft-fp/floatundidf.c: Likewise.
14336         * soft-fp/floatundisf.c: Likewise.
14337         * soft-fp/floatunsidf.c: Likewise.
14338         * soft-fp/floatunsisf.c: Likewise.
14339         * soft-fp/floatuntidf.c: Likewise.
14340         * soft-fp/floatuntisf.c: Likewise.
14341         * soft-fp/floatuntitf.c: Likewise.
14342         * soft-fp/fmadf4.c: Likewise.
14343         * soft-fp/fmasf4.c: Likewise.
14344         * soft-fp/fmatf4.c: Likewise.
14345         * soft-fp/gedf2.c: Likewise.
14346         * soft-fp/gesf2.c: Likewise.
14347         * soft-fp/getf2.c: Likewise.
14348         * soft-fp/ledf2.c: Likewise.
14349         * soft-fp/lesf2.c: Likewise.
14350         * soft-fp/letf2.c: Likewise.
14351         * soft-fp/muldf3.c: Likewise.
14352         * soft-fp/mulsf3.c: Likewise.
14353         * soft-fp/multf3.c: Likewise.
14354         * soft-fp/negdf2.c: Likewise.
14355         * soft-fp/negsf2.c: Likewise.
14356         * soft-fp/negtf2.c: Likewise.
14357         * soft-fp/op-1.h: Likewise.
14358         * soft-fp/op-2.h: Likewise.
14359         * soft-fp/op-4.h: Likewise.
14360         * soft-fp/op-8.h: Likewise.
14361         * soft-fp/op-common.h: Likewise.
14362         * soft-fp/quad.h: Likewise.
14363         * soft-fp/single.h: Likewise.
14364         * soft-fp/soft-fp.h: Likewise.
14365         * soft-fp/sqrtdf2.c: Likewise.
14366         * soft-fp/sqrtsf2.c: Likewise.
14367         * soft-fp/sqrttf2.c: Likewise.
14368         * soft-fp/subdf3.c: Likewise.
14369         * soft-fp/subsf3.c: Likewise.
14370         * soft-fp/subtf3.c: Likewise.
14371         * soft-fp/truncdfsf2.c: Likewise.
14372         * soft-fp/trunctfdf2.c: Likewise.
14373         * soft-fp/trunctfsf2.c: Likewise.
14374         * soft-fp/trunctfxf2.c: Likewise.
14375         * soft-fp/unorddf2.c: Likewise.
14376         * soft-fp/unordsf2.c: Likewise.
14377         * soft-fp/unordtf2.c: Likewise.
14378
14379 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
14380
14381         [BZ #15672]
14382         * misc/error.c (error_tail): Fix possible buffer overflow.
14383
14384 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
14385
14386         [BZ #13028]
14387         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
14388         address.
14389
14390 2013-10-14  P. J. McDermott  <pj@pehjota.net>
14391
14392         [BZ #832]
14393         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
14394         testing pipefail option.
14395
14396 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
14397
14398         * soft-fp/double.h: Indent preprocessor directives inside #if.
14399         * soft-fp/extended.h: Likewise.
14400         * soft-fp/op-2.h: Likewise.
14401         * soft-fp/op-4.h: Likewise.
14402         * soft-fp/op-common.h: Likewise.
14403         * soft-fp/quad.h: Likewise.
14404         * soft-fp/single.h: Likewise.
14405         * soft-fp/soft-fp.h: Likewise.
14406
14407 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
14408
14409         * iconv/iconv_prog.c: Fix typos.
14410         * stdio-common/psiginfo-data.h: Likewise.
14411
14412 2013-10-12   Reuben Thomas <rrt@sc3d.org>
14413
14414         [BZ #15764]
14415         * locale/setlocale.c: Fix typo.
14416
14417 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
14418
14419         [BZ #16036]
14420         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
14421         signaling NaN arguments.
14422         * soft-fp/unordsf2.c (__unordsf2): Likewise.
14423         * soft-fp/unordtf2.c (__unordtf2): Likewise.
14424
14425         [BZ #14910]
14426         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
14427         unordered operands.
14428         * soft-fp/gesf2.c (__gesf2): Likewise.
14429         * soft-fp/getf2.c (__getf2): Likewise.
14430         * soft-fp/ledf2.c (__ledf2): Likewise.
14431         * soft-fp/lesf2.c (__lesf2): Likewise.
14432         * soft-fp/letf2.c (__letf2): Likewise.
14433
14434         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
14435         * soft-fp/eqsf2.c (__eqsf2): Likewise.
14436         * soft-fp/eqtf2.c (__eqtf2): Likewise.
14437         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
14438         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
14439         * soft-fp/fixdfti.c (__fixdfti): Likewise.
14440         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
14441         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
14442         * soft-fp/fixsfti.c (__fixsfti): Likewise.
14443         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
14444         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
14445         * soft-fp/fixtfti.c (__fixtfti): Likewise.
14446         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
14447         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
14448         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
14449         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
14450         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
14451         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
14452         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
14453         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
14454         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
14455         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
14456         * soft-fp/floatdisf.c (__floatdisf): Likewise.
14457         * soft-fp/floatsisf.c (__floatsisf): Likewise.
14458         * soft-fp/floattidf.c (__floattidf): Likewise.
14459         * soft-fp/floattisf.c (__floattisf): Likewise.
14460         * soft-fp/floattitf.c (__floattitf): Likewise.
14461         * soft-fp/floatundidf.c (__floatundidf): Likewise.
14462         * soft-fp/floatundisf.c (__floatundisf): Likewise.
14463         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
14464         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
14465         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
14466         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
14467         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
14468         * soft-fp/gesf2.c (__gesf2): Likewise.
14469         * soft-fp/getf2.c (__getf2): Likewise.
14470         * soft-fp/ledf2.c (__ledf2): Likewise.
14471         * soft-fp/lesf2.c (__lesf2): Likewise.
14472         * soft-fp/letf2.c (__letf2): Likewise.
14473
14474         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
14475         Undefine and redefine.
14476         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
14477         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
14478         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
14479         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
14480         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
14481         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
14482         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
14483         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
14484         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
14485         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
14486         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
14487         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
14488         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
14489         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
14490         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
14491
14492         [BZ #16032]
14493         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
14494         without decrementing exponent if mantissa >= that for the
14495         denominator, not >.
14496         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
14497         denominator, not >.  Decrement exponent in < case instead of
14498         incrementing in >= case.
14499         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
14500         without decrementing exponent if mantissa >= that for the
14501         denominator, not >.
14502
14503         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
14504         computing saturated result for unsigned overflow.
14505
14506 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
14507             Jeff Law  <law@redhat.com>
14508
14509         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
14510         (atan2Mp): Add systemtap probe marker.
14511         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
14512         (__ieee754_log): Add systemtap probe marker.
14513         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
14514         (atanMp): Add systemtap probe marker.
14515         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
14516         (tanMp): Add systemtap probe marker.
14517         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
14518         (__slowexp): Add systemtap probe marker.
14519         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
14520         (__slowpow): Add systemtap probe marker.
14521         * manual/probes.texi: Document probes.
14522
14523 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
14524
14525         [BZ #15362]
14526         * libio/fileops.c (_IO_new_file_write): Return count of bytes
14527         written.
14528         (_IO_new_file_xsputn): Don't return EOF if nothing has been
14529         written.
14530         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
14531         written to buffer but not flushed.
14532         * libio/iofwrite_u.c:  Likewise.
14533         * libio/iopadn.c:  Return bytes returned even if EOF was
14534         encountered.
14535         * libio/iowpadn.c:  Likewise.
14536         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
14537         if _IO_padn does not write the whole buffer.
14538         [!COMPILE_WPRINTF] (PAD): Likewise.
14539
14540 2013-10-10  David S. Miller  <davem@davemloft.net>
14541
14542         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
14543         directory block.
14544
14545 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
14546
14547         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
14548         instead of FSF address.
14549         * soft-fp/fixdfti.c: Likewise.
14550         * soft-fp/fixsfti.c: Likewise.
14551         * soft-fp/fixtfti.c: Likewise.
14552         * soft-fp/fixunsdfti.c: Likewise.
14553         * soft-fp/fixunssfti.c: Likewise.
14554         * soft-fp/fixunstfti.c: Likewise.
14555         * soft-fp/floattidf.c: Likewise.
14556         * soft-fp/floattisf.c: Likewise.
14557         * soft-fp/floattitf.c: Likewise.
14558         * soft-fp/floatuntidf.c: Likewise.
14559         * soft-fp/floatuntisf.c: Likewise.
14560         * soft-fp/floatuntitf.c: Likewise.
14561         * soft-fp/trunctfxf2.c: Likewise.
14562
14563         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
14564         * soft-fp/fixdfti.c: Likewise.
14565         * soft-fp/fixsfti.c: Likewise.
14566         * soft-fp/fixtfti.c: Likewise.
14567         * soft-fp/fixunsdfti.c: Likewise.
14568         * soft-fp/fixunssfti.c: Likewise.
14569         * soft-fp/fixunstfti.c: Likewise.
14570         * soft-fp/floattidf.c: Likewise.
14571         * soft-fp/floattisf.c: Likewise.
14572         * soft-fp/floattitf.c: Likewise.
14573         * soft-fp/floatuntidf.c: Likewise.
14574         * soft-fp/floatuntisf.c: Likewise.
14575         * soft-fp/floatuntitf.c: Likewise.
14576         * soft-fp/trunctfxf2.c: Likewise.
14577
14578 2013-10-10  David S. Miller  <davem@davemloft.net>
14579
14580         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14581
14582 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
14583
14584         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
14585         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
14586         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
14587         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
14588         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
14589         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
14590         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
14591
14592         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
14593         for NaNs before doing comparisons on argument.
14594         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
14595         Likewise.
14596
14597 2013-10-10  Will Newton  <will.newton@linaro.org>
14598
14599         * malloc/hooks.c (memalign_check): Ensure the value of bytes
14600         passed to _int_memalign does not overflow.
14601
14602 2013-10-10  Torvald Riegel  <triegel@redhat.com>
14603
14604         * scripts/bench.pl: Add include-sources directive.
14605         * benchtests/README: Update documentation.
14606
14607 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
14608
14609         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
14610         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
14611         instead of FP_INIT_ROUNDMODE.
14612         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
14613         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
14614
14615         [BZ #16034]
14616         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
14617         copy class of input value.
14618         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
14619         not handle exceptions.
14620         * soft-fp/negsf2.c (__negsf2): Likewise.
14621         * soft-fp/negtf2.c (__negtf2): Likewise.
14622         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
14623
14624 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
14625
14626         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
14627         semicolon.  From Linux kernel.
14628
14629 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
14630
14631         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
14632
14633 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
14634
14635         [BZ #156]
14636         * manual/socket.texi: Added statement about buffer
14637         for gethostbyname2_r.
14638
14639 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
14640
14641         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
14642         Use .p2align directive instead, throughout.
14643         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
14644         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
14645         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
14646         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14647         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14648         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
14649         * sysdeps/x86_64/strchr.S: Likewise.
14650         * sysdeps/x86_64/strrchr.S: Likewise.
14651
14652 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
14653
14654         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
14655
14656         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
14657
14658         * sysdeps/generic/math_private.h (__mpsin1): Remove
14659         declaration.
14660         (__mpcos1): Likewise.
14661         (__mpsin): New argument __range_reduce.
14662         (__mpcos): Likewise.
14663         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
14664         (slow): Use __mpsin and __mpcos.
14665         (slow1): Likewise.
14666         (slow2): Likewise.
14667         (sloww): Likewise.
14668         (sloww1): Likewise.
14669         (sloww2): Likewise.
14670         (bsloww): Likewise.
14671         (bsloww1): Likewise.
14672         (bsloww2): Likewise.
14673         (cslow2): Likewise.
14674         (csloww): Likewise.
14675         (csloww1): Likewise.
14676         (csloww2): Likewise.
14677         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
14678         range_reduce.  Merge in __mpsin1.
14679         (__mpcos): Likewise.
14680         (__mpsin1): Remove.
14681         (__mpcos1): Likewise.
14682
14683 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
14684
14685         * locale/loadlocale.c (_nl_intern_locale_data): Use
14686         LOCFILE_ALIGNED_P.
14687         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
14688         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
14689         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
14690         obstack data is appropriately aligned.
14691         (obstack_int32_grow_fast): Likewise.
14692         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
14693         * locale/programs/locfile.c (add_locale_uint32): Likewise.
14694         (add_locale_uint32_array): Likewise.
14695
14696 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
14697
14698         * benchtests/Makefile: Remove ARGLIST and RET variables.
14699         ($(objpfx)bench-%.c): Pass only function name to the script.
14700         * benchtests/README: Update documentation.
14701         * benchtests/acos-inputs: Add new directives.
14702         * benchtests/acosh-inputs: Likewise.
14703         * benchtests/asin-inputs: Likewise.
14704         * benchtests/asinh-inputs: Likewise.
14705         * benchtests/atan-inputs: Likewise.
14706         * benchtests/atanh-inputs: Likewise.
14707         * benchtests/cos-inputs: Likewise.
14708         * benchtests/cosh-inputs: Likewise.
14709         * benchtests/exp-inputs: Likewise.
14710         * benchtests/log-inputs: Likewise.
14711         * benchtests/pow-inputs: Likewise.
14712         * benchtests/rint-inputs: Likewise.
14713         * benchtests/sin-inputs: Likewise.
14714         * benchtests/sinh-inputs: Likewise.
14715         * benchtests/tan-inputs: Likewise.
14716         * benchtests/tanh-inputs: Likewise.
14717         * scripts/bench.pl: Add support for new directives.
14718
14719 2013-10-07  Alan Modra  <amodra@gmail.com>
14720
14721         * README: Fix careless merge.
14722
14723 2013-10-05  Alan Modra  <amodra@gmail.com>
14724
14725         * NEWS: Mention powerpc64le support and bugs fixed.
14726         * README: Both big-endian and little-endian powerpc64 supported.
14727
14728 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14729
14730         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook)
14731         (_hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
14732         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
14733         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
14734
14735 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
14736
14737         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
14738         match prototype.
14739
14740 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
14741
14742         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
14743         Move -mhard-float appending from
14744         ports/sysdeps/powerpc/powerpc32/Makefile.
14745         [$(with-fp) = yes] (ASFLAGS): Likewise.
14746         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
14747         * sysdeps/powerpc/nofpu: Move directory from
14748         ports/sysdeps/powerpc/nofpu.
14749         * sysdeps/powerpc/soft-fp: Move directory from
14750         ports/sysdeps/powerpc/soft-fp.
14751         * sysdeps/powerpc/powerpc32/405: Move directory from
14752         ports/sysdeps/powerpc/powerpc32/405.
14753         * sysdeps/powerpc/powerpc32/440: Move directory from
14754         ports/sysdeps/powerpc/powerpc32/440.
14755         * sysdeps/powerpc/powerpc32/464: Move directory from
14756         ports/sysdeps/powerpc/powerpc32/464.
14757         * sysdeps/powerpc/powerpc32/476: Move directory from
14758         ports/sysdeps/powerpc/powerpc32/476.
14759         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
14760         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
14761         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
14762         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
14763         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
14764         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
14765         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
14766         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
14767         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
14768         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
14769         * README: Update for powerpc-*-linux-gnu software floating point
14770         support in libc.
14771
14772         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
14773         case to powerpc/powerpc32*.
14774         * sysdeps/unix/sysv/linux/configure: Regenerated.
14775
14776         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
14777         (_FPU_MASK_OM): Define as 0x04.
14778         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
14779         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
14780         0x00c10080.
14781         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
14782         0x0000003c.
14783         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
14784
14785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
14786         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
14787         getcontext_e500.
14788         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
14789         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
14790         setcontext_e500.
14791         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
14792         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
14793         and setcontext_e500.
14794
14795 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
14796
14797         * locale/iso-3166.def: Update iso-1366.def and related occurrences
14798
14799 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
14800
14801         * manual/threads.texi (Default Thread Attributes): Fix typo.
14802
14803 2013-10-04  Will Newton  <will.newton@linaro.org>
14804
14805         * malloc/Makefile: Add tst-memalign.
14806         * malloc/tst-memalign.c: New file.
14807
14808         * malloc/tst-posix_memalign.c: Add comments.
14809         (do_test): Add comments and call free on all potentially
14810         allocated pointers. Add space after cast.
14811
14812         * malloc/tst-pvalloc.c: Add comments.
14813         (do_test): Add comments and call free on all potentially
14814         allocated pointers. Remove duplicate check for NULL pointer.
14815         Add space after cast.
14816
14817         * malloc/tst-valloc.c: Add comments.
14818         (do_test): Add comments and call free on all potentially
14819         allocated pointers. Remove duplicate check for NULL pointer.
14820         Add space after cast.
14821
14822 2013-10-04  Alan Modra  <amodra@gmail.com>
14823
14824         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14825         Use stdint types in rather than __attribute__((mode())).
14826         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
14827
14828 2013-10-04  Alan Modra  <amodra@gmail.com>
14829
14830         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
14831         Correct handling of unaligned relocs for little-endian.
14832         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
14833
14834 2013-10-04  Alan Modra  <amodra@gmail.com>
14835
14836         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
14837         * configure: Regenerate.
14838         * nptl/shlib-versions: Powerpc*le starts at 2.18.
14839         * shlib-versions: Likewise.
14840
14841 2013-10-04  Alan Modra  <amodra@gmail.com>
14842
14843         * string/tester.c (test_memrchr): Increment reported test cycle.
14844
14845 2013-10-04  Alan Modra  <amodra@gmail.com>
14846
14847         * string/test-memcpy.c (do_one_test): When reporting errors, print
14848         string address and don't overrun end of string.
14849
14850 2013-10-04  Alan Modra  <amodra@gmail.com>
14851
14852         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
14853         insrdi.  Make better use of reg selection to speed exit slightly.
14854         Schedule entry path a little better.  Remove useless "are we done"
14855         checks on entry to main loop.  Handle wrapping around zero address.
14856         Correct main loop count.  Handle single left-over word from main
14857         loop inline rather than by using loop_small.  Remove extra word
14858         case in loop_small caused by wrong loop count.  Add little-endian
14859         support.
14860         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
14861         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
14862         cache hint.
14863         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
14864         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
14865         support.  Avoid rlwimi.
14866         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
14867
14868 2013-10-04  Alan Modra  <amodra@gmail.com>
14869
14870         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
14871         insrdi.  Formatting.
14872         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
14873         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
14874         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
14875         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
14876         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
14877         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
14878
14879 2013-10-04  Alan Modra  <amodra@gmail.com>
14880
14881         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
14882         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
14883         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
14884         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
14885         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
14886         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
14887         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
14888         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14889         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
14890         use of regs.  Use power7 mtocrf.  Tidy function tails.
14891
14892 2013-10-04  Alan Modra  <amodra@gmail.com>
14893
14894         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
14895         Formatting.  Consistently use rXXX register defines or rN defines.
14896         Use early exit labels that avoid restoring unused non-volatile regs.
14897         Make cr field use more consistent with rWORDn compares.  Rename
14898         regs used as shift registers for unaligned loop, using rN defines
14899         for short lifetime/multiple use regs.
14900         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
14901         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
14902         addi 1,1,64 to pop stack frame.  Simplify return value code.
14903         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
14904
14905 2013-10-04  Alan Modra  <amodra@gmail.com>
14906
14907         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
14908         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
14909         rather than rlwimi.
14910         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
14911         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
14912         little-endian support.  Correct typos.
14913         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
14914         rather than rlwimi.
14915         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
14916         in loop and entry code to keep "and." results.
14917         (strchr): Add little-endian support.  Comment.  Move cntlzd
14918         earlier in tail.
14919         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
14920
14921 2013-10-04  Alan Modra  <amodra@gmail.com>
14922
14923         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
14924         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
14925         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
14926         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
14927
14928 2013-10-04  Alan Modra  <amodra@gmail.com>
14929
14930         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
14931         (rTMP): Define as r11.
14932         (strcmp): Add little-endian support.  Optimise tail.
14933         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
14934         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
14935         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
14936         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14937         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
14938         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14939         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14940
14941 2013-10-04  Alan Modra  <amodra@gmail.com>
14942
14943         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
14944         little-endian support.  Remove unnecessary "are we done" tests.
14945         Handle "s" wrapping around zero and extremely large "size".
14946         Correct main loop count.  Handle single left-over word from main
14947         loop inline rather than by using small_loop.  Correct comments.
14948         Delete "zero" tail, use "end_max" instead.
14949         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
14950
14951 2013-10-04  Alan Modra  <amodra@gmail.com>
14952
14953         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
14954         support.  Don't branch over align.
14955         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
14956         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
14957         support.  Rearrange tmp reg use to suit.  Comment.
14958         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
14959
14960 2013-10-04  Alan Modra  <amodra@gmail.com>
14961
14962         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
14963
14964 2013-10-04  Alan Modra  <amodra@gmail.com>
14965
14966         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
14967         conditional form of branch and link when obtaining pc.
14968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
14969
14970 2013-10-04  Alan Modra  <amodra@gmail.com>
14971
14972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
14973         HIWORD/LOWORD.
14974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
14975         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
14976
14977 2013-10-04  Alan Modra  <amodra@gmail.com>
14978
14979         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
14980         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
14981         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
14982         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
14983         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
14984         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
14985         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
14986         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
14987         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
14988         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
14989
14990 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
14991             Alistair Popple <alistair@ozlabs.au.ibm.com>
14992             Alan Modra <amodra@gmail.com>
14993
14994         [BZ #15723]
14995         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
14996         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
14997         _dl_hwcap access for little-endian.
14998         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
14999         destroy vmx regs when saving unaligned.
15000         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
15001         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
15002         destroy vmx regs when saving unaligned.
15003
15004 2013-10-04  Alan Modra  <amodra@gmail.com>
15005
15006         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
15007         Don't use a union to pack hi/low value.
15008
15009 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
15010
15011         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
15012         for little-endian.
15013         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
15014         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
15015         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
15016         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
15017         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
15018
15019 2013-10-04  Alan Modra  <amodra@gmail.com>
15020
15021         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
15022         constants to usual value for .cst8 section, and remove redundant
15023         high address load.
15024         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
15025         constant for 0x1p52.  Load little-endian words of double from
15026         correct stack offsets.
15027
15028 2013-10-04  Alan Modra  <amodra@gmail.com>
15029
15030         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
15031         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
15032         words of double from correct stack offsets.
15033         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
15034         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
15035         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
15036         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
15037         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
15038         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
15039         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
15040         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
15041         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
15042         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
15043         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
15044         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
15045         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
15046         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
15047         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
15048         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
15049         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
15050
15051 2013-10-04  Alan Modra  <amodra@gmail.com>
15052
15053         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
15054         64-bit int/double union.
15055         (_FPU_SETCW): Likewise.
15056         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
15057         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
15058
15059 2013-10-04  Alan Modra  <amodra@gmail.com>
15060
15061         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
15062         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
15063
15064 2013-10-04  Alan Modra  <amodra@gmail.com>
15065
15066         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
15067         use vector int constants.
15068         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
15069
15070 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
15071
15072         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
15073         array with long long.
15074         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
15075         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
15076         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
15077         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
15078         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
15079         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
15080         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
15081         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
15082         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
15083         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
15084         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
15085         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
15086         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
15087
15088 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
15089
15090         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
15091         (__signbit): Likewise.  Correct for little-endian.
15092         (__signbitl): Call __signbit.
15093         (lrint): Correct for little-endian.
15094         (lrintf): Call lrint.
15095
15096 2013-10-04  Alan Modra  <amodra@gmail.com>
15097
15098         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
15099         union 32-bit int array member with 64-bit int array.
15100         (t515, tm256): Double rather than long double.
15101         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
15102
15103 2013-10-04  Alan Modra  <amodra@gmail.com>
15104
15105         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
15106         Delete.
15107         (IEEE854_LONG_DOUBLE_BIAS): Delete.
15108         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
15109         version of math_ldbl.h.
15110
15111 2013-10-04  Alan Modra  <amodra@gmail.com>
15112
15113         [BZ #15734], [BZ #15735]
15114         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
15115         all uses of ieee875 long double macros and unions.  Simplify test
15116         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
15117         ldbl_extract_mantissa value for ix,iy exponents.  Properly
15118         normalize after ldbl_extract_mantissa, and don't add hidden bit
15119         already handled.  Don't treat low word of ieee854 mantissa like
15120         low word of IBM long double and mask off bit when testing for
15121         zero.
15122         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
15123         all uses of ieee875 long double macros and unions.  Simplify tests
15124         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
15125         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
15126         two1022, instead use their values.  Recognise that tests for large
15127         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
15128         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
15129         Rewrite all uses of ieee875 long double macros and unions.  Simplify
15130         test for 0.0L and nan.  Correct negation.
15131         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
15132         ieee875 long double macros and unions.  Correct output for large
15133         magnitude x.  Correct absolute value calculation.
15134         (__erfcl): Likewise.
15135         * math/libm-test.inc: Add tests for errors discovered in IBM long
15136         double versions of fmodl, remainderl, erfl and erfcl.
15137
15138 2013-10-04  Alan Modra  <amodra@gmail.com>
15139
15140         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
15141         all uses of ieee854 long double macros and unions.  Simplify tests
15142         for long doubles that are fully specified by the high double.
15143         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
15144         Likewise.
15145         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
15146         Remove dead code too.
15147         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
15148         (__ieee754_ynl): Likewise.
15149         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
15150         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
15151         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
15152         Remove dead code too.
15153         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
15154         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
15155         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
15156         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
15157         Simplify.
15158         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
15159         Simplify.
15160         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
15161         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
15162         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
15163         Comment on variable precision.
15164         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
15165         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
15166         Likewise.
15167         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
15168         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
15169         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
15170         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
15171         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
15172
15173 2013-10-04  Alan Modra  <amodra@gmail.com>
15174
15175         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
15176         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
15177         all uses of ieee854 long double macros and unions.
15178         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
15179         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
15180         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
15181         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
15182         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
15183         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
15184         Likewise.
15185         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
15186         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
15187         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
15188         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
15189         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
15190         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
15191         Simplify sign and nan test too.
15192         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
15193         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
15194         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
15195         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
15196         Likewise.
15197         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
15198         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
15199         Likewise.
15200         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
15201         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
15202         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
15203         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
15204         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
15205         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
15206
15207 2013-10-04  Alan Modra  <amodra@gmail.com>
15208
15209         * stdio-common/printf_size.c (__printf_size): Don't use
15210         union ieee854_long_double in fpnum union.
15211         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
15212         signbit macro to retrieve sign from long double.
15213         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
15214         retrieve sign from long double.
15215         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
15216         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
15217         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
15218         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
15219         * math/test-misc.c (main): Don't use union ieee854_long_double.
15220
15221 2013-10-04  Alan Modra  <amodra@gmail.com>
15222
15223         [BZ #15680]
15224         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
15225         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
15226         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
15227         calculation.  Remove unnecessary test for denormal exponent.
15228         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
15229         Correct handling of denormals.  Avoid undefined shift behaviour.
15230         Correct normalisation of low mantissa when low double is denormal.
15231         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
15232         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
15233         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
15234         Correct normalisation of low mantissa.  Test for overflow of high
15235         mantissa and normalise.
15236         (ldbl_nearbyint): Use more readable constant for two52.
15237         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
15238         (__mpn_construct_long_double): Fix test for overflow of high
15239         mantissa and correct normalisation.  Avoid undefined shift.
15240
15241 2013-10-04  Alan Modra  <amodra@gmail.com>
15242
15243         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
15244         (union ibm_extended_long_double): Define as an array of ieee754_double.
15245         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
15246         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
15247         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
15248         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
15249         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
15250         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
15251         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
15252         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
15253         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
15254         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
15255         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
15256
15257 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
15258
15259         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
15260         page size instead of calling getpagesize.
15261
15262         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
15263         (LOCFILE_ALIGN_MASK): Likewise.
15264         (LOCFILE_ALIGN_UP): Likewise.
15265         (LOCFILE_ALIGNED_P): Likewise.
15266         * locale/programs/ld-collate.c (collate_output): Use the new
15267         macros instead of __alignof__ (int32_t).
15268         * locale/weight.h (findidx): Likewise.
15269
15270 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
15271
15272         [BZ #431]
15273         * manual/string.texi: Fix strncat and wcsncat.
15274
15275 2013-10-03  Brooks Moses  <bmoses@google.com>
15276
15277         [BZ #15915]
15278         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
15279         * Makerules: ...here, and adjust associated comments.
15280
15281 2013-10-02  Will Newton  <will.newton@linaro.org>
15282
15283         * malloc/Makefile: Add tst-pvalloc.
15284         * malloc/tst-pvalloc.c: New file.
15285
15286 2013-10-02  Will Newton  <will.newton@linaro.org>
15287
15288         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
15289         improve test coverage.
15290
15291 2013-10-02  Will Newton  <will.newton@linaro.org>
15292
15293         * malloc/Makefile: Add tst-posix_memalign.
15294         * malloc/tst-posix_memalign.c: New file.
15295
15296 2013-10-01  Eric Blake  <eblake@redhat.com>
15297
15298         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
15299         Use __THROWNL rather than __THROW on static functions.
15300
15301 2013-09-30  Petr Machata  <pmachata@redhat.com>
15302
15303         * elf/elf.h (R_AARCH64_ABS16): New macro.
15304         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
15305         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
15306         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
15307         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
15308         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
15309         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
15310         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
15311         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
15312         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
15313         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
15314         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
15315         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
15316         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
15317         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
15318         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
15319         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
15320         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
15321         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
15322         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
15323         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
15324         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
15325         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
15326         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
15327         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
15328         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
15329         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
15330         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
15331         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
15332         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
15333         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
15334         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
15335         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
15336         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
15337         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
15338         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
15339         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
15340         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
15341         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
15342         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
15343         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
15344         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
15345         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
15346         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
15347         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
15348         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
15349         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
15350         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
15351         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
15352         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
15353         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
15354         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
15355         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
15356         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
15357         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
15358         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
15359         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
15360         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
15361         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
15362         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
15363         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
15364         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
15365         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
15366         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
15367         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
15368         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
15369         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
15370         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
15371         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
15372         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
15373         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
15374         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
15375         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
15376         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
15377         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
15378         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
15379         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
15380         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
15381         (R_AARCH64_TLSDESC_LDR): Likewise.
15382         (R_AARCH64_TLSDESC_ADD): Likewise.
15383         (R_AARCH64_TLSDESC_CALL): Likewise.
15384
15385 2013-09-30  Andreas Schwab  <schwab@suse.de>
15386
15387         [BZ #15048]
15388         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
15389         the nss database lookup.
15390         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15391         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
15392
15393 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
15394
15395         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
15396
15397 2013-09-28  P. J. McDermott  <pj@pehjota.net>
15398
15399         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
15400         ${Bash-specific parameter/pattern/string} parameter expansion.
15401         * sysdeps/unix/make-syscalls.sh: Likewise.
15402
15403 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15404
15405         * sysdeps/sh/stackguard-macros.h: New file.
15406
15407 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
15408
15409         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
15410         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
15411         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
15412         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
15413         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15414         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
15415
15416 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15417
15418         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
15419         Fix thread ID register.
15420
15421 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
15422
15423         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
15424         [POSIX || UNIX98]: Require rather than permitting all symbols from
15425         <time.h>.
15426         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
15427         element of struct sched_param.
15428         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
15429         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
15430         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
15431         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
15432         constant.
15433
15434 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
15435
15436         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
15437         argument calculation.
15438
15439 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
15440
15441         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
15442         Expect macro.
15443         [POSIX] (pthread_attr_t): Do not require type.
15444         [POSIX] (pthread_cond_t): Likewise.
15445         [POSIX] (pthread_condattr_t): Likewise.
15446         [POSIX] (pthread_key_t): Likewise.
15447         [POSIX] (pthread_mutex_t): Likewise.
15448         [POSIX] (pthread_mutexattr_t): Likewise.
15449         [POSIX] (pthread_once_t): Likewise.
15450         [POSIX] (pthread_t): Likewise.
15451         [POSIX-based standards] (pthread_atfork): Expect function.
15452
15453 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
15454             Richard Sandiford  <richard@codesourcery.com>
15455
15456         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
15457         (swap_endianness_p): New extern variable.
15458         (set_big_endian): New inline function.
15459         (maybe_swap_uint32): Likewise.
15460         (maybe_swap_uint32_array): Likewise.
15461         (maybe_swap_uint32_obstack): Likewise.
15462         * locale/programs/locfile.c: Include <stdbool.h>.
15463         (swap_endianness_p): New variable.
15464         (add_locale_uint32): Call maybe_swap_uint32.
15465         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
15466         (write_locale_data): Call maybe_swap_uint32_array.
15467         * locale/programs/ld-collate.c (obstack_int32_grow): Call
15468         maybe_swap_uint32.
15469         (obstack_int32_grow_fast): Likewise.
15470         (output_weightwc): Call maybe_swap_uint32_obstack.
15471         (collate_output): Likewise.
15472         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
15473         (OPT_LITTLE_ENDIAN): Likewise.
15474         (options): Add --little-endian and --big-endian options.
15475         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
15476         * locale/programs/locarchive.c: Include "locfile.h".
15477         (GET): New macro.
15478         (SET): Likewise.
15479         (INC): Likewise.
15480         (create_archive): Use the new macros to access fields of
15481         structures directly mapped from or written to locale archives.
15482         (oldlocrecentcmp): Likewise.
15483         (enlarge_archive): Likewise.
15484         (insert_name): Likewise.
15485         (add_alias): Likewise.
15486         (add_locale): Likewise.
15487         (delete_locales_from_archive): Likewise.
15488         (show_archive_content): Likewise.
15489         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
15490         locale data.
15491
15492 2013-09-24  Roland McGrath  <roland@hack.frob.com>
15493
15494         * manual/freemanuals.texi: Updated from (newly) canonical copy at
15495         http://www.gnu.org/doc/freemanuals.texi.
15496         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
15497
15498 2013-09-24  Will Newton  <will.newton@linaro.org>
15499
15500         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
15501         macro.
15502
15503 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
15504
15505         * locale/hashval.h (compute_hashval): Interpret bytes of key as
15506         unsigned char.
15507
15508 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
15509
15510         * manual/threads.texi (POSIX Threads): Fix a typo.
15511
15512 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
15513
15514         [BZ #14547]
15515         * string/tst-strcoll-overflow.c: New test case.
15516         * string/Makefile (xtests): Add tst-strcoll-overflow.
15517         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
15518         cache if string sizes may cause integer overflow.
15519
15520         [BZ #14547]
15521         * string/strcoll_l.c (coll_seq): New members rule, idx,
15522         save_idx and back_us.
15523         (get_next_seq_nocache): New function.
15524         (do_compare_nocache): New function.
15525         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
15526         when malloc fails.
15527
15528 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
15529
15530         [BZ #15754]
15531         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
15532         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
15533         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
15534
15535         [BZ #15754]
15536         * elf/Makefile (tests): Add tst-ptrguard1.
15537         (tests-static): Add tst-ptrguard1-static.
15538         (tst-ptrguard1-ARGS): Define.
15539         (tst-ptrguard1-static-ARGS): Define.
15540         * elf/tst-ptrguard1.c: New file.
15541         * elf/tst-ptrguard1-static.c: New file.
15542         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
15543         * sysdeps/i386/stackguard-macros.h: Likewise.
15544         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
15545         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
15546         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
15547         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
15548         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
15549         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
15550
15551 2013-09-23  Hector Marco  <hecmargi@upv.es>
15552             Ismael Ripoll  <iripoll@disca.upv.es>
15553             Carlos O'Donell  <carlos@redhat.com>
15554
15555         [BZ #15754]
15556         * sysdeps/generic/stackguard-macros.h: Define
15557         __pointer_chk_guard_local and POINTER_CHK_GUARD.
15558         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
15559         Define __pointer_chk_guard_local.
15560         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
15561         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
15562
15563 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
15564
15565         [BZ #15859]
15566         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
15567
15568 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
15569
15570         * include/string.h (__ffs): Declare as hidden.
15571         * string/ffs.c (__ffs): Define as hidden.
15572         * sysdeps/i386/ffs.c (__ffs): Likewise.
15573         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
15574         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
15575         * sysdeps/s390/ffs.c (__ffs): Likewise.
15576         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
15577
15578 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
15579
15580         * NEWS: Mention malloc probes.
15581
15582         * malloc/arena.c (new_heap): New memory_heap_new probe.
15583         (grow_heap): New memory_heap_more probe.
15584         (shrink_heap): New memory_heap_less probe.
15585         (heap_trim): New memory_heap_free probe.
15586         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
15587         (systrim): New memory_sbrk_less probe.
15588         * manual/probes.texi: Document them.
15589
15590         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
15591         * manual/probes.texi: Document it.
15592
15593         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
15594         (__libc_realloc): Add memory_realloc_retry probe.
15595         (__libc_memalign): Add memory_memalign_retry probe.
15596         (__libc_valloc): Add memory_valloc_retry probe.
15597         (__libc_pvalloc): Add memory_pvalloc_retry probe.
15598         (__libc_calloc): Add memory_calloc_retry probe.
15599         * manual/probes.texi: Document them.
15600
15601         * malloc/arena.c (get_free_list): Add probe
15602         memory_arena_reuse_free_list.
15603         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
15604         and memory_arena_reuse.
15605         (arena_get2) [!PER_THREAD]: Likewise.
15606         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
15607         memory_arena_reuse_realloc.
15608         * manual/probes.texi: Document them.
15609
15610         * malloc/malloc.c (__libc_free): Add
15611         memory_mallopt_free_dyn_thresholds probe.
15612         (__libc_mallopt): Add multiple memory_mallopt probes.
15613         * manual/probes.texi: Document them.
15614
15615         * malloc/malloc.c: Include stap-probe.h.
15616         (__libc_mallopt): Add memory_mallopt probe.
15617         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
15618         * manual/probes.texi: New.
15619         * manual/Makefile (chapters): Add probes.
15620         * manual/threads.texi: Set next node.
15621
15622 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
15623
15624         [BZ #15963, #13985]
15625         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
15626         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
15627         Add `Chinese' to `nan' entry name.
15628
15629 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
15630
15631         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
15632         (POLYNOMIAL): Likewise.
15633         (TAYLOR_SINCOS): Likewise.
15634         (TAYLOR_SLOW): Likewise.
15635         (__sin): Use TAYLOR_SINCOS.
15636         (__cos): Likewise.
15637         (slow): Use TAYLOR_SLOW.
15638         (sloww): Likewise.
15639         (bsloww): Likewise.
15640         (csloww): Likewise.
15641
15642 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15643
15644         * stdlib/strtod_l.c: Fix buffer overrun.
15645
15646 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
15647
15648         * benchtests/Makefile (bench): Add sincos.
15649         * benchtests/bench-sincos.c: New file.
15650
15651         * math/libm-test.inc (cos_test_data): New test inputs.
15652         (sin_test_data): Likewise.
15653
15654         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
15655         macro.
15656         (__sin): Use it.
15657         (__cos): Likewise.
15658         (slow1): Likewise.
15659         (slow2): Likewise.
15660         (sloww1): Likewise.
15661         (sloww2): Likewise.
15662         (bsloww1): Likewise.
15663         (bsloww2): Likewise.
15664         (cslow2): Likewise.
15665         (csloww1): Likewise.
15666         (csloww2): Likewise.
15667
15668         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
15669         function.
15670         (__sin): Use it.
15671         (__cos): Likewise.
15672
15673         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
15674         gotos.
15675         (__cos): Likewise.
15676
15677 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
15678
15679         * config.h.in (HAVE_MIPS_NAN2008): New macro.
15680         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
15681         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
15682         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
15683         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
15684         * elf/cache.c (print_entry): Handle the new cache flags.
15685
15686 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
15687             Aldy Hernandez  <aldyh@redhat.com>
15688
15689         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
15690         Change condition to [_SOFT_FLOAT].
15691         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
15692         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
15693         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
15694         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
15695         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
15696         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
15697         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
15698         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
15699         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
15700         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
15701         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
15702         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
15703         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
15704         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
15705         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
15706         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
15707         declaration.
15708
15709 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
15710
15711         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
15712         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
15713         (__longjmp): Use LOAD_GP to load saved GPRs.
15714         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
15715         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
15716         (__sigsetjmp): Use SAVE_GP to save GPRs.
15717
15718         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
15719         Do not append -msoft-float.
15720         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
15721
15722 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
15723
15724         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
15725
15726 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
15727
15728         [BZ #15966]
15729         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
15730         (_FPU_GETCW): Use initial "__" on variable and field names but not
15731         on macro parameter name.
15732         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
15733         parentheses around reference to macro parameter.
15734
15735 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
15736
15737         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
15738         prototype.
15739         (ctype_startup): Use uint32_t in cast and sizeof for
15740         ctype->charnames.
15741
15742 2013-09-11  Jia Liu  <proljc@gmail.com>
15743
15744         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
15745         __daddr_t_defined.
15746         [__FreeBSD__]: Likewise.
15747
15748 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
15749
15750         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
15751         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
15752         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
15753         (strchr): Remove __strchr_sse42 ifunc selection.
15754         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
15755         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
15756
15757 2013-09-11  Will Newton  <will.newton@linaro.org>
15758
15759         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
15760         parameter to RES. Remove hardcoded 1000 value.
15761         * benchtests/bench-skeleton.c (main): Pass RES parameter
15762         to TIMING_INIT and multiply result by 1000.
15763
15764 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15765
15766         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15767
15768 2013-09-11  Andreas Schwab  <schwab@suse.de>
15769
15770         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
15771         if not defined.
15772         (O_TMPFILE) [__USE_GNU]: Define.
15773         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
15774         Define.
15775
15776 2013-09-11  Will Newton  <will.newton@linaro.org>
15777
15778         [BZ #15857]
15779         * malloc/malloc.c (__libc_memalign): Check the value of bytes
15780         does not overflow.
15781
15782 2013-09-11  Will Newton  <will.newton@linaro.org>
15783
15784         [BZ #15856]
15785         * malloc/malloc.c (__libc_valloc): Check the value of bytes
15786         does not overflow.
15787
15788 2013-09-11  Will Newton  <will.newton@linaro.org>
15789
15790         [BZ #15855]
15791         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
15792         does not overflow.
15793
15794 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
15795
15796         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
15797         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
15798         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
15799         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
15800         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
15801
15802 2013-09-10  Allan McRae  <allan@archlinux.org>
15803
15804         [BZ #15748]
15805         * manual/arith.texi (Parsing of Floats): Clarify
15806         cross-reference.
15807
15808         [BZ #15849]
15809         * manual/install.texi (Running make install): Mention
15810         --enable-pt-chown.
15811         * INSTALL: Regenerated.
15812
15813 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
15814
15815         * csu/init-first.c (_init): Remove the !SHARED condition around
15816         FPU control word initialization.
15817         * elf/dl-support.c (_dl_fpu_control): New variable.
15818         (_dl_aux_init) <AT_FPUCW>: Initialize it.
15819         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
15820         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
15821         * math/test-fpucw-static.c: New file.
15822         * math/test-fpucw-ieee.c: New file.
15823         * math/test-fpucw-ieee-static.c: New file.
15824         * math/Makefile (tests): Add `test-fpucw-ieee' and
15825         `$(tests-static)'.
15826         (tests-static): New variable.
15827         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
15828         dependency to...
15829         [($(build-shared),yes)]
15830         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
15831         ... this.
15832         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
15833         New dependency.
15834
15835 2013-09-09  Allan McRae  <allan@archlinux.org>
15836
15837         [BZ #15939]
15838         * manual/string.texi (Collation Functions): Fix typo in
15839         strcoll example.
15840         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
15841
15842         [BZ #15893]
15843         * stdlib/isomac.c (get_null_defines): Fix memory leak.
15844
15845         [BZ #15892]
15846         * libio/memstream.c (open_memstream): Fix memory leak.
15847         * libio/wmemstream.c (open_wmemstream): Likewise.
15848
15849         [BZ #15895]
15850         * nscd/netgroupcache.c: Fix nesting of ifdefs.
15851
15852 2013-09-09  Will Newton  <will.newton@linaro.org>
15853
15854         * malloc/Makefile: Add tst-realloc to tests.
15855         * malloc/tst-realloc.c: New file.
15856
15857 2013-09-09  Allan McRae  <allan@archlinux.org>
15858
15859         [BZ #15844]
15860         * COPYING: Update from GNU website to fix FSF address.
15861         * COPYING.LIB: Likewise.
15862
15863 2013-09-06  David S. Miller  <davem@davemloft.net>
15864
15865         * po/zh_TW.po: Update Chinese (traditional) translation from
15866         translation project.
15867
15868 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
15869             Joseph Myers  <joseph@codesourcery.com>
15870
15871         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
15872         "localeinfo.h".
15873         (obstack_chunk_alloc): New macro.
15874         (obstack_chunk_free): Likewise.
15875         (record_offset): New function.
15876         (init_locale_data): Likewise.
15877         (align_locale_data): Likewise.
15878         (add_locale_empty): Likewise.
15879         (add_locale_raw_data): Likewise.
15880         (add_locale_raw_obstack): Likewise.
15881         (add_locale_string): Likewise.
15882         (add_locale_wstring): Likewise.
15883         (add_locale_uint32): Likewise.
15884         (add_locale_uint32_array): Likewise.
15885         (add_locale_char): Likewise.
15886         (start_locale_structure): Likewise.
15887         (end_locale_structure): Likewise.
15888         (start_locale_prelude): Likewise.
15889         (end_locale_prelude): Likewise.
15890         (write_locale_data): Take locale_file structure rather than an
15891         iovec.
15892         * locale/programs/locfile.h: Include "obstack.h".
15893         (struct locale_file): Change to store locale file contents instead
15894         of header.
15895         (init_locale_data): New prototype.
15896         (align_locale_data): Likewise.
15897         (add_locale_empty): Likewise.
15898         (add_locale_raw_data): Likewise.
15899         (add_locale_raw_obstack): Likewise.
15900         (add_locale_string): Likewise.
15901         (add_locale_wstring): Likewise.
15902         (add_locale_uint32): Likewise.
15903         (add_locale_uint32_array): Likewise.
15904         (add_locale_char): Likewise.
15905         (start_locale_structure): Likewise.
15906         (end_locale_structure): Likewise.
15907         (start_locale_prelude): Likewise.
15908         (end_locale_prelude): Likewise.
15909         (write_locale_data): Update prototype.
15910         * locale/programs/3level.h (struct TABLE): Remove result field.
15911         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
15912         Use new locale_file interface.
15913         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
15914         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
15915         * locale/programs/ld-address.c (address_output): Use new
15916         locale_file interface.
15917         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
15918         NO_ADD_LOCALE.
15919         (collate_finish): Don't call collseq_table_finalize.
15920         (collate_output): Use new locale_file interface.
15921         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
15922         in file.
15923         (NO_FINALIZE): Change to NO_ADD_LOCALE.
15924         (TABLE): Move defines earlier in file.
15925         (ELEMENT): Likewise.
15926         (DEFAULT): Likewise.
15927         (wctrans_table_add): Move macro and inline function earlier in
15928         file.
15929         (struct wctype_table): Move type earlier in file.
15930         (add_locale_wctype_table): New static prototype.
15931         (struct locale_ctype_t): Use logical types instead of struct iovec
15932         pointers for members.
15933         (ctype_output): Use new locale_file interface.
15934         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
15935         new locale_file interface.
15936         (allocate_arrays): Update for use of new locale_file interface.
15937         * locale/programs/ld-identification.c (identification_output): Use
15938         new locale_file interface.
15939         * locale/programs/ld-measurement.c (measurement_output): Likewise.
15940         * locale/programs/ld-messages.c (messages_output): Likewise.
15941         * locale/programs/ld-monetary.c (monetary_output): Likewise.
15942         * locale/programs/ld-name.c (name_output): Likewise.
15943         * locale/programs/ld-numeric.c (numeric_output): Likewise.
15944         * locale/programs/ld-paper.c (paper_output): Likewise.
15945         * locale/programs/ld-telephone.c (telephone_output): Likewise.
15946         * locale/programs/ld-time.c (time_output): Likewise.
15947
15948 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15949
15950         * benchtests/Makefile: Add memrchr benchmark.
15951         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
15952         benchmark as memrchr.
15953         * benchtests/bench-memrchr-ifunc.c: New file.
15954         * benchtests/bench-memrchr.c: New file.
15955
15956 2013-09-06   Will Newton  <will.newton@linaro.org>
15957
15958         * benchtests/Makefile (string-bench): Add memcpy.
15959
15960 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
15961             Cong Wang  <amwang@redhat.com>
15962
15963         [BZ #15850]
15964         * sysdeps/unix/sysv/linux/bits/in.h
15965         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
15966         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
15967         before __USE_KERNEL_IPV6_DEFS uses.
15968         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
15969         IPPROTO_BEETPH.
15970         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
15971         sockaddr_in6, or ipv6_mreq.
15972
15973 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15974
15975         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
15976         memory access for final bytes in some large inputs.
15977         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
15978
15979 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15980
15981         * string/test-memrchr.c: New file.
15982         * string/test-memrchr-ifunc.c: New file.
15983         * string/Makefile: Add new memrchr testcase.
15984
15985 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
15986
15987         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
15988         fanotify_init returns EPERM.
15989
15990 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
15991
15992         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
15993         errors.
15994         (top level): Treat second token from macro or constant entries for
15995         allowed headers as allowed.
15996         * include/complex.h: Condition internal declarations on
15997         [!_ISOMAC].
15998         * include/fenv.h: Condition include of <stdbool.h> and internal
15999         declarations on [!_ISOMAC].
16000
16001 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
16002
16003         [BZ #15923]
16004         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
16005
16006 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
16007
16008         * configure.in (--enable-versioning): Remove configure option.
16009         (libc_cv_asm_symver_directive): Remove configure test.
16010         (libc_cv_ld_version_script_option): Likewise.
16011         (VERSIONING): Remove variable and AC_SUBST.
16012         (DO_VERSIONING): Remove AC_DEFINE.
16013         * configure: Regenerated.
16014         * config.h.in (DO_VERSIONING): Remove macro.
16015         * Makerules [$(versioning) = yes]: Change conditionals to
16016         [$(build-shared) = yes].
16017         * config.make.in (versioning): Remove variable.
16018         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
16019         [$(build-shared) = yes].
16020         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
16021         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
16022         * elf/Makefile [$(versioning) = yes]: Change conditionals to
16023         [$(build-shared) = yes].
16024         * extra-lib.mk [$(versioning) = yes]: Likewise.
16025         * hurd/Makefile [$(versioning) = yes]: Likewise.
16026         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
16027         [SHARED].
16028         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
16029         [SHARED].
16030         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
16031         [SHARED && !NO_HIDDEN].
16032         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
16033         [SHARED].
16034         [SHARED && DO_VERSIONING]: Likewise..
16035         * libio/Makefile [$(versioning) = yes]: Change conditionals to
16036         [$(build-shared) = yes].
16037         * manual/install.texi (--disable-versioning): Remove
16038         documentation.
16039         * INSTALL: Regenerated.
16040         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
16041         to [SHARED].
16042         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
16043         [$(build-shared) = yes].
16044         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
16045         * sysdeps/i386/i686/multiarch/strstr-c.c
16046         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
16047         [SHARED && !NO_HIDDEN].
16048         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
16049         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
16050         * sysdeps/powerpc/powerpc32/dl-machine.c
16051         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
16052         * sysdeps/powerpc/powerpc32/sysdep.h
16053         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
16054         to [SHARED && PIC && !NO_HIDDEN].
16055         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
16056         conditional to [SHARED].
16057
16058 2013-09-04   Will Newton  <will.newton@linaro.org>
16059
16060         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
16061         * benchtests/bench-string.h: Include bench-timing.h instead
16062         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
16063         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
16064         call to HP_TIMING_DIFF_INIT.
16065         * benchtests/bench-memccpy.c: Use bench-timing.h macros
16066         instead of hp-timing.h macros.
16067         * benchtests/bench-memchr.c: Likewise.
16068         * benchtests/bench-memcmp.c: Likewise.
16069         * benchtests/bench-memcpy.c: Likewise.
16070         * benchtests/bench-memmem.c: Likewise.
16071         * benchtests/bench-memmove.c: Likewise.
16072         * benchtests/bench-memset.c: Likewise.
16073         * benchtests/bench-rawmemchr.c: Likewise.
16074         * benchtests/bench-strcasecmp.c: Likewise.
16075         * benchtests/bench-strcasestr.c: Likewise.
16076         * benchtests/bench-strcat.c: Likewise.
16077         * benchtests/bench-strchr.c: Likewise.
16078         * benchtests/bench-strcmp.c: Likewise.
16079         * benchtests/bench-strcpy.c: Likewise.
16080         * benchtests/bench-strcpy_chk.c: Likewise.
16081         * benchtests/bench-strlen.c: Likewise.
16082         * benchtests/bench-strncasecmp.c: Likewise.
16083         * benchtests/bench-strncat.c: Likewise.
16084         * benchtests/bench-strncmp.c: Likewise.
16085         * benchtests/bench-strncpy.c: Likewise.
16086         * benchtests/bench-strnlen.c: Likewise.
16087         * benchtests/bench-strpbrk.c: Likewise.
16088         * benchtests/bench-strrchr.c: Likewise.
16089         * benchtests/bench-strspn.c: Likewise.
16090         * benchtests/bench-strstr.c: Likewise.
16091
16092 2013-09-04  Will Newton  <will.newton@linaro.org>
16093
16094         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
16095
16096 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
16097
16098         [BZ #15427]
16099         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
16100         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
16101         * math/libm-test.inc (lgamma_test_data): Add more tests.
16102         * sysdeps/i386/fpu/libm-test-ulps: Update.
16103         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16104
16105 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
16106
16107         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
16108         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
16109         Add ifunc.
16110         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
16111         Add strcmp-sse2-unaligned
16112         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
16113
16114 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
16115
16116         * Versions.def (libc): Add GLIBC_2.19.
16117
16118 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
16119
16120         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
16121         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
16122
16123 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
16124
16125         [BZ #14155]
16126         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
16127         intermediate calculations in recurrence.
16128         (__ieee754_ynf): Likewise.
16129         * math/libm-test.inc (jn_test_data): Do not allow spurious
16130         underflow exception.  Add more tests.
16131         (yn_test_data): Add more tests.
16132         * sysdeps/i386/fpu/libm-test-ulps: Update.
16133         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16134
16135 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
16136
16137         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
16138
16139 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
16140
16141         * csu/init-first.c: Fix then/than typos.
16142         * locale/programs/ld-collate.c: Likewise.
16143         * locale/programs/linereader.h: Likewise.
16144         * manual/charset.texi: Likewise.
16145         * manual/filesys.texi: Likewise.
16146         * manual/stdio.texi: Likewise.
16147         * manual/string.texi: Likewise.
16148         * stdlib/fmtmsg.c: Likewise.
16149         * sysdeps/i386/stpncpy.S: Likewise.
16150         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
16151         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
16152         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
16153         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
16154
16155 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
16156
16157         * elf/dl-open.c: Fix typos.
16158         * iconvdata/gbbig5.c: Likewise.
16159         * iconvdata/iso-2022-jp.c: Likewise.
16160         * iconv/gconv_int.h: Likewise.
16161         * iconv/loop.c: Likewise.
16162         * nis/rpcsvc/nis.h: Likewise.
16163         * resolv/ns_name.c: Likewise.
16164         * stdio-common/vfscanf.c: Likewise.
16165         * streams/stropts.h: Likewise.
16166         * sunrpc/rpc_thread.c: Likewise.
16167         * sysdeps/i386/strpbrk.S: Likewise.
16168         * sysdeps/ieee754/k_standard.c: Likewise.
16169         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
16170         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
16171         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
16172         * sysdeps/mach/hurd/profil.c: Likewise.
16173         * sysdeps/s390/dl-procinfo.h: Likewise.
16174         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
16175         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
16176         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
16177         * sysdeps/x86_64/dl-trampoline.S: Likewise.
16178         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
16179
16180 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
16181
16182         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
16183         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
16184
16185 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
16186
16187         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
16188         aix specific files.
16189         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
16190         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
16191         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
16192         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
16193         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
16194         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
16195         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
16196         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
16197
16198 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
16199             Roland McGrath  <roland@hack.frob.com>
16200
16201         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
16202         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
16203
16204 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16205
16206         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
16207         __executable_start symbol instead of _start.
16208
16209 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
16210
16211         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
16212         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
16213         Move macros to...
16214         * sysdeps/gnu/ldsodefs.h: ... this new file.
16215
16216         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
16217         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
16218         instead of ELFOSABI_LINUX.
16219
16220         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
16221         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
16222         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
16223         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
16224         Likewise.
16225         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
16226         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
16227         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
16228         Likewise.
16229         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
16230         (ibm_extended_long_double): Add ieee_nan member.
16231         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
16232         (do_test): New function.
16233
16234         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
16235         TEST_TRUNC.
16236         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
16237         functions, renamed from truncdfsf_test, trunctfsf_test,
16238         trunctfdf_test.
16239         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
16240         functions.
16241         (do_test): Run all these.
16242
16243 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
16244
16245         * argp/argp-help.c: Fix typos.
16246         * argp/argp-parse.c: Likewise.
16247         * debug/backtracesyms.c: Likewise.
16248         * elf/elf.h: Likewise.
16249         * malloc/malloc.c: Likewise.
16250         * nis/nis_print.c: Likewise.
16251         * resolv/res_comp.c: Likewise.
16252         * stdlib/stdlib.h: Likewise.
16253         * sunrpc/clnt_tcp.c: Likewise.
16254         * sunrpc/clnt_udp.c: Likewise.
16255         * sunrpc/clnt_unix.c: Likewise.
16256         * sysdeps/unix/bsd/ptsname.c: Likewise.
16257         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
16258         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
16259         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
16260         Likewise.
16261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
16262         Likewise.
16263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
16264         Likewise.
16265         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
16266
16267 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
16268
16269         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
16270         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
16271
16272 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
16273
16274         [BZ #15897]
16275         * dlfcn/Makefile (tests): Add bug-dl-leaf.
16276         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
16277         ($(objpfx)bug-dl-leaf): New rule.
16278         ($(objpfx)bug-dl-leaf.so): Likewise.
16279         ($(objpfx)bug-dl-leaf.out): Likewise.
16280         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
16281         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
16282         * dlfcn/bug-dl-leaf.c: New test.
16283         * dlfcn/bug-dl-leaf-lib.c: Likewise.
16284         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
16285         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
16286         (dlclose): Likewise.
16287         (dlmopen): Likewise.
16288
16289 2013-08-27  Roland McGrath  <roland@hack.frob.com>
16290
16291         * include/netdb.h [!_ISOMAC]:
16292         Don't include <tls.h>.
16293         (h_errno, __libc_h_errno): Move declaration and macros out of
16294         [_LIBC_REENTRANT].
16295
16296         * include/resolv.h [_RESOLV_H_]:
16297         Don't include <tls.h>.
16298         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
16299         * resolv/res_libc.c: Don't include <tls.h>.
16300         (_res): Use __attribute__ ((nocommon)) in place of
16301         __attribute__ ((section (".bss"))).
16302
16303         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
16304         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
16305
16306         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
16307
16308         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
16309         only under [SIOCGIFCONF && SIOCGIFNETMASK].
16310
16311         * resolv/res_mkquery.c: Include <sys/time.h>.
16312
16313         * inet/ifreq.c: Moved to ...
16314         * sysdeps/unix/ifreq.c: ... here.
16315         * inet/ifreq.c: New file, true stub version.
16316
16317         * socket/sa_len.c: New file.
16318         * socket/Makefile (aux): Add it.
16319         * sysdeps/unix/sysv/linux/Makefile
16320         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
16321         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
16322         and #include <socket/sa_len.c>.
16323         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
16324         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
16325
16326         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
16327         * bits/socket.h: ... here.
16328
16329         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
16330         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
16331         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
16332
16333 2013-08-27  Andreas Schwab  <schwab@suse.de>
16334
16335         [BZ #15736]
16336         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
16337         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
16338         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
16339         * string/test-strcasecmp.c (test_main): Run tests in several
16340         locales.
16341         * string/test-strncasecmp.c (test_main): Likewise.
16342
16343         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
16344         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
16345         to __strcasecmp_nonascii and __strncasecmp_nonascii.
16346         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
16347         (__strncasecmp_ssse3) [PIC]: Likewise.
16348
16349 2013-08-26  Roland McGrath  <roland@hack.frob.com>
16350
16351         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
16352
16353         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
16354         instead of explicitly declaring xdecrypt.
16355         * nis/nss_nis/nis-publickey.c: Likewise.
16356
16357 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16358
16359         [BZ #15890]
16360         * nscd/aicache.c: Include res_hconf.h.
16361         (addhstaiX): Initialize res_hconf.
16362
16363 2013-08-26  Andreas Schwab  <schwab@suse.de>
16364
16365         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
16366         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
16367
16368 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16369
16370         * nscd/aicache.c (addhstaiX): Fix indentation.
16371
16372 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
16373
16374         * configure.ac: Quote $build_pt_chown test.
16375         * configure: Regenerated.
16376
16377 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
16378
16379         [BZ #15532]
16380         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
16381         * math/s_cexpf.c (__cexpf): Likewise.
16382         * math/s_cexpl.c (__cexpl): Likewise.
16383         * math/libm-test.inc (cexp_test_data): Correct expected return
16384         value for NaN + i0.  Add another test.
16385
16386 2013-08-22  David S. Miller  <davem@davemloft.net>
16387
16388         * po/ca.po: Update Catalan translation from translation project.
16389         * po/uk.po: Add Ukrainian translations from translation project.
16390
16391 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
16392
16393         [BZ #15797]
16394         * math/s_fdim.c (__fdim): Check for infinite arguments if result
16395         is infinite, not alongside NaN test.
16396         * math/s_fdimf.c (__fdimf): Likewise.
16397         * math/s_fdiml.c (__fdiml): Likewise.
16398         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
16399         errno is unchanged.
16400
16401 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
16402
16403         * argp/argp-help.c: Fix typos.
16404         * crypt/speeds.c: Likewise.
16405         * csu/check_fds.c: Likewise.
16406         * elf/dl-load.c: Likewise.
16407         * elf/dl-open.c: Likewise.
16408         * elf/reldep3.c: Likewise.
16409         * elf/reldep.c: Likewise.
16410         * elf/sprof.c: Likewise.
16411         * iconv/iconv_charmap.c: Likewise.
16412         * iconv/skeleton.c: Likewise.
16413         * iconv/strtab.c: Likewise.
16414         * io/lockf64.c: Likewise.
16415         * libio/libioP.h: Likewise.
16416         * resolv/gai_notify.c: Likewise.
16417         * resolv/ns_name.c: Likewise.
16418         * resolv/ns_samedomain.c: Likewise.
16419         * resolv/res_send.c: Likewise.
16420         * stdlib/random.c: Likewise.
16421         * sunrpc/rpc/xdr.h: Likewise.
16422         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
16423         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
16424         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
16425         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
16426         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
16427         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
16428         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
16429         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
16430         * sysdeps/mach/hurd/check_fds.c: Likewise.
16431         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
16432         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
16433         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
16434         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
16435         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
16436         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
16437         * sysdeps/pthread/aio_notify.c: Likewise.
16438         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
16439         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
16440         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
16441         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
16442         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
16443
16444 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16445
16446         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
16447         version if bit_Slow_SSE4_2 is set.
16448         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
16449         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
16450
16451 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16452
16453         [BZ #15867]
16454         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
16455         trampoline stack frame information.
16456         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
16457         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
16458         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
16459         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
16460         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
16461         * sysdeps/unix/sysv/linux/powerpc/init-first.c
16462         (_libc_vdso_platform_setup): Initialize the signal trampolines.
16463         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
16464         sa_flags value.
16465         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
16466         interrupting a syscall and set with option SA_SIGINFO.
16467
16468 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
16469
16470         [BZ #15531]
16471         * math/s_cproj.c (__cproj): Only return an infinity if one part of
16472         argument is infinite.
16473         * math/s_cprojf.c (__cprojf): Likewise.
16474         * math/s_cprojl.c (__cprojl): Likewise.
16475         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
16476         * math/libm-test.inc (cproj_test_data): Add more tests.
16477
16478         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
16479
16480         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
16481         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
16482         size.  Use __ffs to determine corresponding shift.
16483
16484 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
16485             Roland McGrath  <roland@hack.frob.com>
16486
16487         * Makefile (INSTALL): Remove trailing blank lines from output of
16488         makeinfo.
16489
16490 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16491
16492         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
16493         Align 32 bit compat elf_greg to 8 bytes.
16494
16495 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
16496
16497         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
16498
16499 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
16500
16501         * string/strcoll_l.c (coll_seq): New structure.
16502         (get_next_seq_cached): New function.
16503         (get_next_seq): New function.
16504         (do_compare): New function.
16505         (STRCOLL): Use GNU style definition.  Simplify implementation
16506         by using get_next_seq, get_next_seq_cached and do_compare.
16507
16508 2013-08-16  Florian Weimer  <fweimer@redhat.com>
16509
16510         [BZ #14699]
16511         CVE-2013-4237
16512         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
16513         member.
16514         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
16515         member.
16516         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
16517         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
16518         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
16519         conditional.
16520         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
16521         GETDENTS_64BIT_ALIGNED.
16522         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
16523         * manual/filesys.texi (Reading/Closing Directory): Document
16524         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
16525         strongly.
16526         * manual/conf.texi (Limits for Files): Add portability note to
16527         NAME_MAX, PATH_MAX.
16528         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
16529
16530 2013-08-13  Andreas Schwab  <schwab@suse.de>
16531
16532         [BZ #15749]
16533         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
16534         of fabs.
16535         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
16536         LDBL_MAX_EXP >= 16384]: Add tests for it.
16537
16538 2013-08-12  David S. Miller  <davem@davemloft.net>
16539
16540         * version.h (RELEASE): Set to "development".
16541         (VERSION): Set to "2.18.90".
16542         * NEWS: Add 2.19 section.
16543
16544 2013-08-03  David S. Miller  <davem@davemloft.net>
16545
16546         * po/ko.po: Update Korean translation from translation project.
16547
16548 2013-08-01  David S. Miller  <davem@davemloft.net>
16549
16550         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
16551         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
16552         Bilka.
16553
16554 2013-07-30  David S. Miller  <davem@davemloft.net>
16555
16556         * po/fr.po: Update French translation from translation project.
16557
16558 2013-07-28  David S. Miller  <davem@davemloft.net>
16559
16560         * po/cs.po: Update Czech translation from translation project.
16561
16562         * po/sv.po: Update Swedish translation from translation project.
16563
16564 2013-07-27  David S. Miller  <davem@davemloft.net>
16565
16566         * po/eo.po: Update Esperanto translation from translation project.
16567
16568         * po/vi.po: Update Vietnamese translation from translation project.
16569
16570         * po/de.po: Update German translation from translation project.
16571
16572 2013-07-26  David S. Miller  <davem@davemloft.net>
16573
16574         * po/bg.po: Update Bulgarian translation from translation project.
16575
16576         * po/nl.po: Update Dutch translation from translation project.
16577         * po/pl.po: Update Polish translation from translation project.
16578         * po/ru.po: Update Russian translation from translation project.
16579
16580 2013-07-24  David S. Miller  <davem@davemloft.net>
16581
16582         * po/libc.pot: Update.
16583
16584 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16585
16586         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
16587         variable page size.
16588         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
16589         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
16590         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
16591
16592 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16593
16594         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
16595
16596 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
16597             Andreas Schwab  <schwab@suse.de>
16598             Roland McGrath  <roland@hack.frob.com>
16599             Joseph Myers  <joseph@codesourcery.com>
16600             Carlos O'Donell  <carlos@redhat.com>
16601
16602         [BZ #15755]
16603         * config.h.in: Define HAVE_PT_CHOWN.
16604         * config.make.in (build-pt-chown): New variable.
16605         * configure.in (--enable-pt_chown): New configure option.
16606         * configure: Regenerate.
16607         * login/Makefile: Include Makeconfig.  Build pt_chown only if
16608         build-pt-chown is enabled.
16609         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
16610         pt_chown to fix pty ownership.
16611         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
16612         CLOSE_ALL_FDS.
16613         * manual/install.texi (Configuring and compiling): Mention
16614         --enable-pt_chown. Add @findex for grantpt.
16615         * INSTALL: Regenerate.
16616
16617 2013-07-20  David S. Miller  <davem@davemloft.net>
16618
16619         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
16620         difference between 32-bit and 64-bit.
16621
16622 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
16623
16624         [BZ #15711]
16625         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
16626         Avoid system header dependency with -ffreestanding.
16627         ($(objpfx)bits/syscall%d): Likewise.
16628
16629 2013-07-13  David S. Miller  <davem@davemloft.net>
16630
16631         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
16632         underflows from atanl/atan2l due to bug 15319.
16633         (casinh_test_data): Likewise.
16634
16635 2013-07-07  David S. Miller  <davem@davemloft.net>
16636
16637         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
16638
16639 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
16640
16641         * sysdeps/i386/fpu/libm-test-ulps: Update.
16642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16643
16644 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
16645
16646         * configure.in (--enable-lock-elision): Fix message text.
16647         * INSTALL: Regenerate.
16648         * configure: Regenerate.
16649
16650 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16651
16652         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16653
16654 2013-07-03  Andreas Jaeger  <aj@suse.de>
16655
16656         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
16657         define.
16658         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
16659         (ptrace_peeksiginfo_args): Add.
16660         (__ptrace_peeksiginfo_flags): Add.
16661         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
16662         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
16663         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
16664
16665 2013-07-03  Allan McRae  <allan@archlinux.org>
16666
16667         * sysdeps/i386/fpu/libm-test-ulps: Update.
16668
16669 2013-07-02  David S. Miller  <davem@davemloft.net>
16670
16671         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16672
16673 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
16674
16675         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16676
16677 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
16678
16679         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
16680         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16681
16682 2013-07-02  Andi Kleen <ak@linux.intel.com>
16683
16684         * config.h.in (ENABLE_LOCK_ELISION): Add.
16685         * configure.in (--enable-lock-elision): Add option.
16686         * manual/install.texi: Document --enable lock elision.
16687         * configure: Regenerate
16688         * INSTALL: Regenerate.
16689
16690 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
16691
16692         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
16693         SSE4.2 strcasecmp for libc.a.
16694         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
16695
16696 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
16697
16698         [BZ #13304]
16699         * soft-fp/op-common.h (_FP_FMA): New macro.
16700         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
16701         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
16702         (_FP_MUL_MEAT_1_imm): ... here.
16703         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
16704         (_FP_MUL_MEAT_1_wide): ... here.
16705         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
16706         (_FP_MUL_MEAT_1_hard): ... here.
16707         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
16708         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
16709         (_FP_MUL_MEAT_2_wide): ... here.
16710         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
16711         (_FP_MUL_MEAT_2_wide_3mul): ... here.
16712         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
16713         (_FP_MUL_MEAT_2_gmp): ... here.
16714         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
16715         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
16716         (_FP_MUL_MEAT_4_wide): ... here.
16717         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
16718         (_FP_MUL_MEAT_4_gmp): ... here.
16719         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
16720         (_FP_WFRACBITS_DW_S): Likewise.
16721         (_FP_WFRACXBITS_DW_S): Likewise.
16722         (_FP_HIGHBIT_DW_S): Likewise.
16723         (FP_FMA_S): Likewise.
16724         (_FP_FRAC_HIGH_DW_S): Likewise.
16725         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
16726         (_FP_WFRACBITS_DW_D): Likewise.
16727         (_FP_WFRACXBITS_DW_D): Likewise.
16728         (_FP_HIGHBIT_DW_D): Likewise.
16729         (FP_FMA_D): Likewise.
16730         (_FP_FRAC_HIGH_DW_D): Likewise.
16731         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
16732         (_FP_WFRACBITS_DW_E): Likewise.
16733         (_FP_WFRACXBITS_DW_E): Likewise.
16734         (_FP_HIGHBIT_DW_E): Likewise.
16735         (FP_FMA_E): Likewise.
16736         (_FP_FRAC_HIGH_DW_E): Likewise.
16737         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
16738         (_FP_WFRACBITS_DW_Q): Likewise.
16739         (_FP_WFRACXBITS_DW_Q): Likewise.
16740         (_FP_HIGHBIT_DW_Q): Likewise.
16741         (FP_FMA_Q): Likewise.
16742         (_FP_FRAC_HIGH_DW_Q): Likewise.
16743         * soft-fp/fmasf4.c: New file.
16744         * soft-fp/fmadf4.c: Likewise.
16745         * soft-fp/fmatf4.c: Likewise.
16746
16747 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16748
16749         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
16750         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
16751         Silvermont.
16752         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
16753         macro.
16754         (index_Slow_SSE4_2): Likewise.
16755         (index_Prefer_PMINUB_for_stringop): Likewise.
16756         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
16757         bit_Slow_SSE4_2 is set.
16758         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
16759         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
16760
16761 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16762
16763         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
16764         rtld_global._dl_hwcap2.
16765         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
16766         POWER8.
16767         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
16768         POWER8 feature descriptions defined in _dl_hwcap2.
16769         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
16770         string handling for POWER8 feature bits.
16771         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
16772         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
16773         _dl_powerpc_cap_flags.
16774         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
16775         * sysdeps/powerpc/rtld-global-offsets.sym
16776         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
16777         _dl_hwcap2 in the rtld_global_ro structure.
16778
16779 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16780
16781         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
16782         hardware capabilities in support of AT_HWCAP2.
16783         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
16784         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
16785         GLRO(dl_hwcap2).
16786         (_dl_show_auxv): Add support for calling _dl_procinfo to display
16787         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
16788         explicitly the unknown a_type display mechanism is used.
16789         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
16790         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
16791         struct member.
16792         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
16793         to macro prototype for AT_HWCAP2 support.
16794         * sysdeps/i386/dl-procinfo.h: Likewise.
16795         * sysdeps/s390/dl-procinfo.h: Likewise.
16796         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
16797         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
16798         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
16799         return -1 for unknown a_type display fallback.
16800         * sysdeps/sparc/dl-procinfo.h: Likewise.
16801         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
16802         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
16803
16804 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
16805
16806         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
16807         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
16808
16809 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
16810
16811         [BZ #12492]
16812         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
16813         mprotect making __stack_prot writable.
16814
16815 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
16816             Joseph Myers  <joseph@codesourcery.com>
16817
16818         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
16819         as being properly aligned.
16820
16821 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
16822
16823         * dlfcn/modstatic5.c: New file.
16824         * dlfcn/tststatic5.c: New file.
16825         * dlfcn/Makefile (tests): Add tststatic5.
16826         (tests-static): Likewise.
16827         (modules-names): Add modstatic5.
16828         (tststatic5-ENV): New variable.
16829         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
16830
16831         [BZ #15022]
16832         * elf/dl-support.c (_dl_main_map): New variable.
16833         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
16834         (_dl_nns, _dl_load_adds): Set to 1.
16835         (_dl_initial_searchlist): Refer to _dl_main_map.
16836         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
16837         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
16838         call to _dl_get_origin.
16839         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
16840         around call_map.
16841         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
16842         * dlfcn/modstatic3.c: New file.
16843         * dlfcn/tststatic3.c: New file.
16844         * dlfcn/tststatic4.c: New file.
16845         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
16846         (tests-static): Likewise.
16847         (modules-names): Add modstatic3.
16848         (tststatic3-ENV, tststatic4-ENV): New variables.
16849         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
16850         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
16851
16852 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
16853
16854         * configure.in (CC): Require GCC version 4.4 or later.
16855         * configure: Regenerated.
16856         * manual/install.texi (Tools for Compilation): Update GCC version
16857         requirement.
16858         * INSTALL: Regenerated.
16859
16860 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
16861
16862         [BZ #15674]
16863         * string/test-memcmp.c (check2): New.
16864         (main): Call check2.
16865
16866         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
16867
16868 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
16869
16870         [BZ #15022]
16871         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
16872         over to...
16873         (dl_open_worker) [!SHARED]: ... here.
16874
16875 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16876
16877         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
16878
16879 2013-06-25  Richard Henderson  <rth@redhat.com>
16880
16881         * locale/programs/locarchive.c: Include <libc-internal.h>
16882
16883 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
16884
16885         * manual/texinfo.tex: Update to version 2013-06-21.17, with
16886         trailing whitespace removed.
16887
16888 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
16889
16890         [BZ #10283]
16891         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
16892         * locale/programs/locarchive.c: Include libc-mmap.h.
16893         (prepare_address_space): Take two new outputs (the mmap base and len).
16894         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
16895         values.
16896         (create_archive): Declare new mmap base and len values for
16897         prepare_address_space, and store the result in ah.
16898         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
16899         (enlarge_archive): If ah->mmap_base is not NULL, use that and
16900         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
16901         Declare new mmap base and len values for
16902         prepare_address_space, and store the result in new_ah.
16903         (open_archive): Declare new mmap base and len values for
16904         prepare_address_space, and store the result in ah.
16905         (close_archive): If ah->mmap_base is not NULL, use that and
16906         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
16907         * sysdeps/generic/libc-mmap.h: New file.
16908
16909 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
16910
16911         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
16912         (ALIGN_UP): Likewise.
16913         (PTR_ALIGN_DOWN): Likewise.
16914         (PTR_ALIGN_UP): Likewise.
16915
16916 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
16917
16918         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
16919         entry mapped to PPC_PLATFORM_POWER8.
16920         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
16921         POWER8.
16922         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
16923         (_dl_string_platform): Add case for exporting platform position for
16924         POWER8.
16925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
16926         search path to sysdeps/powerpc/powerpc32/power8 directory.
16927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
16928         search path to sysdeps/powerpc/powerpc64/power8 directory.
16929         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
16930         power7 directories.
16931         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
16932         power7 directories.
16933
16934 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
16935
16936         * INSTALL: Regenerate.
16937
16938         * nscd/connections.c (nscd_init): Fix comment.
16939
16940 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
16941
16942         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
16943
16944         [BZ #15667]
16945         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
16946         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
16947
16948 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
16949
16950         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
16951         DL_DST_REQ_STATIC.
16952         (DL_DST_REQ_STATIC): Remove macro.
16953
16954 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
16955
16956         [BZ #7006]
16957         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
16958         with a shift of 0 bits.
16959
16960 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
16961
16962         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
16963         $(tststatic-ENV).
16964
16965 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16966
16967         [BZ #15655]
16968         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
16969
16970 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16971
16972         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
16973         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
16974         accepts -fno-tree-loop-distribute-patterns.
16975         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
16976         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
16977         recursive call.
16978         * string/memset.c (memset): Likewise.
16979         * string/test-memmove.c (simple_memmove): Disable loop transformation
16980         to library calls.
16981         * string/test-memset.c (simple_memset): Likewise.
16982         * benchtests/bench-memmove.c (simple_memmove): Likewise.
16983         * benchtests/bench-memset.c (simple_memset): Likewise.
16984         * configure: Regenerated.
16985
16986 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
16987
16988         * math/test-misc.c (main): Ignore fesetround failure when failures
16989         of subsequent rounding tests would be ignored.
16990
16991         [BZ #15654]
16992         * math/fedisblxcpt.c (fedisableexcept): Return 0.
16993         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
16994         * math/fegetenv.c (__fegetenv): Return 0.
16995         * math/fegetexcept.c (fegetexcept): Return 0.
16996         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
16997         FE_TONEAREST.
16998         * math/feholdexcpt.c (feholdexcept): Return 0.
16999         * math/fesetenv.c (__fesetenv): Return 0.
17000         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
17001         argument FE_TONEAREST.
17002         * math/feupdateenv.c (__feupdateenv): Return 0.
17003         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
17004
17005 2013-06-18  Roland McGrath  <roland@hack.frob.com>
17006
17007         * elf/rtld-Rules (rtld-compile-command.S): New variable.
17008         (rtld-compile-command.s, rtld-compile-command.c): New variables.
17009         ($(objpfx)rtld-%.os rules): Use them.
17010
17011 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17012
17013         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
17014         fields.
17015
17016 2013-06-17  Roland McGrath  <roland@hack.frob.com>
17017
17018         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
17019         length of target pattern, then descending length of dependency pattern.
17020         * configure.in (AWK): Require gawk 3.1.2 or newer.
17021         * manual/install.texi (Tools for Compilation): Say that we do.
17022         * configure: Regenerated.
17023
17024         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
17025         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
17026         * scripts/sysd-rules.awk: ... this new script.
17027         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
17028         than a glob-style pattern.
17029
17030 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
17031
17032         * math/test-misc.c (main): Do not treat incorrectly rounded
17033         conversions as failure unless ROUNDING_TESTS passes.
17034
17035 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
17036
17037         [BZ #15631]
17038         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
17039         restore exception state around main square root computation, then
17040         check for inexactness explicitly.
17041
17042         * math/libm-test.inc (fma_test_data): Add another test.
17043
17044 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
17045
17046         * manual/threads.texi (Non-POSIX Extensions): New document
17047         node.  Document pthread_getattr_default_np and
17048         pthread_setattr_default_np.
17049
17050         * Versions.def (libpthread): Add GLIBC_2.18.
17051         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
17052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
17053         Likewise.
17054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
17055         Likewise.
17056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
17057         Likewise.
17058         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
17059         Likewise.
17060         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
17061         Likewise.
17062         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
17063         Likewise.
17064         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
17065         Likewise.
17066         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
17067         Likewise.
17068         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
17069         Likewise.
17070
17071 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
17072
17073         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17074         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
17075
17076 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
17077             H.J. Lu  <hjl.tools@gmail.com>
17078
17079         [BZ #15627]
17080         * sysdeps/x86_64/rtld-memset.c: Remove file.
17081         * sysdeps/x86_64/rtld-memset.S: New file.
17082
17083 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
17084
17085         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
17086         (test_in_one_mode): Take arguments for whether the rounding mode
17087         is supported for each floating-point type.
17088         (do_test): Pass new arguments to test_in_one_mode using
17089         ROUNDING_TESTS.
17090
17091 2013-06-13  Roland McGrath  <roland@hack.frob.com>
17092
17093         * posix/tst-waitid.c (do_test): Distinguish different instances of
17094         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
17095         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
17096         before entering the kernel for waitpid.
17097
17098 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
17099
17100         * NEWS: Fix note on clock function precision.  Text by Roland
17101         McGrath.
17102
17103 2013-06-13  Roland McGrath  <roland@hack.frob.com>
17104
17105         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
17106         it into place only when and if the sanity check passes.
17107
17108 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
17109
17110         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
17111         output for whether conversion result is exact.  Take argument
17112         indicating whether type is IBM long double.
17113         (round_for_all): Change need_exact field to ibm_ld.
17114         * stdlib/tst-strtod-round.c (struct exactness): New type.
17115         (struct test): Change bool ld_ok field to struct exactness exact.
17116         (TEST): Update all definitions for change to field.
17117         (tests): Regenerate array contents.
17118         (test_in_one_mode): Take pointer to new field instead of old ld_ok
17119         field value.  Check for IBM long double here.
17120         (do_test): Update calls to test_in_one_mode.
17121
17122 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
17123
17124         [BZ #12515]
17125         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
17126         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
17127
17128 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17129
17130         [BZ #15605]
17131         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
17132         generated by the compiler on loop optimizations.
17133         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
17134         general definitions.
17135
17136 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
17137
17138         * math/bug-nextafter.c: Include <math-tests.h>.
17139         (main): Only test for exceptions if EXCEPTION_TESTS is true for
17140         the relevant type.
17141         * math/bug-nexttoward.c: Include <math-tests.h>.
17142         (main): Only test for exceptions if EXCEPTION_TESTS is true for
17143         the relevant type.
17144         * math/test-misc.c: Include <math-tests.h>.
17145         (main): Only test for exceptions if EXCEPTION_TESTS is true for
17146         the relevant type.
17147
17148 2013-06-12  Andreas Jaeger  <aj@suse.de>
17149
17150         * po/ia.po: Update Interlingua translation from translation
17151         project.
17152
17153 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
17154
17155         * include/fenv.h: Include stdbool.h.
17156         (struct rm_ctx): New structure.
17157         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
17158         Define macro.
17159         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
17160         (SET_RESTORE_ROUNDF): Likewise.
17161         (SET_RESTORE_ROUNDL): Likewise.
17162         (SET_RESTORE_ROUND_NOEX): Likewise.
17163         (SET_RESTORE_ROUND_NOEXF): Likewise.
17164         (SET_RESTORE_ROUND_NOEXL): Likewise.
17165         (SET_RESTORE_ROUND_53BIT): Likewise.
17166         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
17167         (libc_feresetround_noexf_ctx): Likewise.
17168         (libc_feresetround_noexl_ctx): Likewise.
17169         (libc_feholdsetround_53bit_ctx): Likewise.
17170         (libc_feresetround_53bit_ctx): Likewise.
17171         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
17172         (libc_feholdexcept_setround_sse_ctx): New function.
17173         (libc_fesetenv_sse_ctx): Likewise.
17174         (libc_feupdateenv_sse_ctx): Likewise.
17175         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
17176         (libc_feholdexcept_setround_387_ctx): Likewise.
17177         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
17178         (libc_feholdsetround_387_prec_ctx): Likewise.
17179         (libc_feholdsetround_387_ctx): Likewise.
17180         (libc_feholdsetround_387_53bit_ctx): Likewise.
17181         (libc_feholdsetround_sse_ctx): Likewise.
17182         (libc_feresetround_sse_ctx): Likewise.
17183         (libc_feresetround_387_ctx): Likewise.
17184         (libc_feupdateenv_387_ctx): Likewise.
17185         (libc_feholdexcept_setroundf_ctx): Define macro.
17186         (libc_fesetenvf_ctx): Likewise.
17187         (libc_feupdateenvf_ctx): Likewise.
17188         (libc_feholdsetroundf_ctx): Likewise.
17189         (libc_feresetroundf_ctx): Likewise.
17190         (libc_feholdexcept_setround_ctx): Likewise.
17191         (libc_fesetenv_ctx): Likewise.
17192         (libc_feupdateenv_ctx): Likewise.
17193         (libc_feholdsetround_ctx): Likewise.
17194         (libc_feresetround_ctx): Likewise.
17195         (libc_feholdexcept_setroundl_ctx): Likewise.
17196         (libc_feupdateenvl_ctx): Likewise.
17197         (libc_feholdsetroundl_ctx): Likewise.
17198         (libc_feresetroundl_ctx): Likewise.
17199         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
17200         (libc_feresetround_53bit_ctx): Likewise.
17201
17202 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
17203
17204         * locale/iso-639.def: Convert to UTF-8.
17205
17206 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
17207
17208         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
17209         (EXCEPTION_TESTS_double): Likewise.
17210         (EXCEPTION_TESTS_long_double): Likewise.
17211         (EXCEPTION_TESTS): Likewise.
17212         * math/libm-test.inc (test_exceptions): Only test exceptions if
17213         EXCEPTION_TESTS (FLOAT).
17214
17215 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
17216
17217         * benchtests/Makefile (string-bench): Add strcpy_chk and
17218         stpcpy_chk.
17219         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
17220         * benchtests/bench-stpcpy_chk.c: New file.
17221         * benchtests/bench-strcpy_chk-ifunc.c: New file.
17222         * benchtests/bench-strcpy_chk.c: New file.
17223         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
17224         code.
17225         (do_test): Likewise.
17226
17227 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17228
17229         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
17230         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
17231         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
17232         with tabs where appropriate.
17233         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
17234         dl-procinfo.h.
17235         [PPC_PLATFORM_PPC440]: Likewise.
17236         [PPC_PLATFORM_PPC464]: Likewise.
17237         [PPC_PLATFORM_PPC476]: Likewise.
17238         (_dl_string_platform): Add support for detecting ppc405, ppc440,
17239         ppc464, and ppc476 platform strings merging from ports/
17240         dl-procinfo.h.
17241
17242 2013-06-11  Andreas Schwab  <schwab@suse.de>
17243
17244         [BZ #14991]
17245         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
17246         (from_ucs4_idx): Regenerate.
17247         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
17248         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
17249         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
17250         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
17251         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
17252         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
17253         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
17254         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
17255         from FROM_LOOP and TO_LOOP specific macros.
17256         (BODY): Handle combining characters.
17257         * iconvdata/BIG5HKSCS.irreversible: Update.
17258         * iconvdata/BIG5HKSCS.precomposed: New file.
17259         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
17260         characters.
17261         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
17262
17263 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
17264
17265         * include/sys/time.h: Fix indentation and add copyright header.
17266
17267         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
17268         (do_test): Likewise.
17269         * string/test-memchr.c (do_one_test): Likewise.
17270         (do_test): Likewise.
17271         * string/test-memcmp.c (do_one_test): Likewise.
17272         (do_test): Likewise.
17273         * string/test-memcpy.c (do_one_test): Likewise.
17274         (do_test): Likewise.
17275         * string/test-memmem.c (do_one_test): Likewise.
17276         (do_test): Likewise.
17277         (do_random_tests): Likewise.
17278         * string/test-memmove.c (do_one_test): Likewise.
17279         (do_test): Likewise.
17280         * string/test-memset.c (do_one_test): Likewise.
17281         (do_test): Likewise.
17282         * string/test-rawmemchr.c (do_one_test): Likewise.
17283         (do_test): Likewise.
17284         * string/test-strcasecmp.c (do_one_test): Likewise.
17285         (do_test): Likewise.
17286         * string/test-strcasestr.c (do_one_test): Likewise.
17287         (do_test): Likewise.
17288         * string/test-strcat.c (do_one_test): Likewise.
17289         (do_test): Likewise.
17290         * string/test-strchr.c (do_one_test): Likewise.
17291         (do_test): Likewise.
17292         * string/test-strcmp.c (do_one_test): Likewise.
17293         (do_test): Likewise.
17294         * string/test-strcpy.c (do_one_test): Likewise.
17295         (do_test): Likewise.
17296         * string/test-string.h: Likewise.
17297         (test_init): Likewise.
17298         * string/test-strlen.c (do_one_test): Likewise.
17299         (do_test): Likewise.
17300         * string/test-strncasecmp.c (do_one_test): Likewise.
17301         (do_test): Likewise.
17302         * string/test-strncat.c (do_one_test): Likewise.
17303         (do_test): Likewise.
17304         * string/test-strncmp.c (do_one_test): Likewise.
17305         (do_test_limit): Likewise.
17306         (do_test): Likewise.
17307         * string/test-strncpy.c (do_one_test): Likewise.
17308         (do_test): Likewise.
17309         * string/test-strnlen.c (do_one_test): Likewise.
17310         (do_test): Likewise.
17311         * string/test-strpbrk.c (do_one_test): Likewise.
17312         (do_test): Likewise.
17313         * string/test-strrchr.c (do_one_test): Likewise.
17314         (do_test): Likewise.
17315         * string/test-strspn.c (do_one_test): Likewise.
17316         (do_test): Likewise.
17317         * string/test-strstr.c (do_one_test): Likewise.
17318         (do_test): Likewise.
17319
17320         * benchtests/Makefile (string-bench): Add string benchmarks.
17321         * benchtests/bench-bcopy-ifunc.c: New file.
17322         * benchtests/bench-bcopy.c: New file.
17323         * benchtests/bench-bzero-ifunc.c: New file.
17324         * benchtests/bench-bzero.c: New file.
17325         * benchtests/bench-memccpy-ifunc.c: New file.
17326         * benchtests/bench-memccpy.c: New file.
17327         * benchtests/bench-memchr-ifunc.c: New file.
17328         * benchtests/bench-memchr.c: New file.
17329         * benchtests/bench-memcmp-ifunc.c: New file.
17330         * benchtests/bench-memcmp.c: New file.
17331         * benchtests/bench-memmem-ifunc.c: New file.
17332         * benchtests/bench-memmem.c: New file.
17333         * benchtests/bench-memmove-ifunc.c: New file.
17334         * benchtests/bench-memmove.c: New file.
17335         * benchtests/bench-mempcpy-ifunc.c: New file.
17336         * benchtests/bench-mempcpy.c: New file.
17337         * benchtests/bench-memset-ifunc.c: New file.
17338         * benchtests/bench-memset.c: New file.
17339         * benchtests/bench-rawmemchr-ifunc.c: New file.
17340         * benchtests/bench-rawmemchr.c: New file.
17341         * benchtests/bench-stpcpy-ifunc.c: New file.
17342         * benchtests/bench-stpcpy.c: New file.
17343         * benchtests/bench-stpncpy-ifunc.c: New file.
17344         * benchtests/bench-stpncpy.c: New file.
17345         * benchtests/bench-strcasecmp-ifunc.c: New file.
17346         * benchtests/bench-strcasecmp.c: New file.
17347         * benchtests/bench-strcasestr-ifunc.c: New file.
17348         * benchtests/bench-strcasestr.c: New file.
17349         * benchtests/bench-strcat-ifunc.c: New file.
17350         * benchtests/bench-strcat.c: New file.
17351         * benchtests/bench-strchr-ifunc.c: New file.
17352         * benchtests/bench-strchr.c: New file.
17353         * benchtests/bench-strchrnul-ifunc.c: New file.
17354         * benchtests/bench-strchrnul.c: New file.
17355         * benchtests/bench-strcmp-ifunc.c: New file.
17356         * benchtests/bench-strcmp.c: New file.
17357         * benchtests/bench-strcpy-ifunc.c: New file.
17358         * benchtests/bench-strcpy.c: New file.
17359         * benchtests/bench-strcspn-ifunc.c: New file.
17360         * benchtests/bench-strcspn.c: New file.
17361         * benchtests/bench-strlen-ifunc.c: New file.
17362         * benchtests/bench-strlen.c: New file.
17363         * benchtests/bench-strncasecmp-ifunc.c: New file.
17364         * benchtests/bench-strncasecmp.c: New file.
17365         * benchtests/bench-strncat-ifunc.c: New file.
17366         * benchtests/bench-strncat.c: New file.
17367         * benchtests/bench-strncmp-ifunc.c: New file.
17368         * benchtests/bench-strncmp.c: New file.
17369         * benchtests/bench-strncpy-ifunc.c: New file.
17370         * benchtests/bench-strncpy.c: New file.
17371         * benchtests/bench-strnlen-ifunc.c: New file.
17372         * benchtests/bench-strnlen.c: New file.
17373         * benchtests/bench-strpbrk-ifunc.c: New file.
17374         * benchtests/bench-strpbrk.c: New file.
17375         * benchtests/bench-strrchr-ifunc.c: New file.
17376         * benchtests/bench-strrchr.c: New file.
17377         * benchtests/bench-strspn-ifunc.c: New file.
17378         * benchtests/bench-strspn.c: New file.
17379         * benchtests/bench-strstr-ifunc.c: New file.
17380         * benchtests/bench-strstr.c: New file.
17381
17382         * benchtests/Makefile: Disable parallel execution of targets.
17383         (string-bench): Add memcpy.
17384         (benchset): New variable to store a list of benchmark sets.
17385         (bench-func): Renamed from bench.
17386         (bench-set): New target.
17387         (bench): Depend on bench-func and bench-set.
17388         * benchtests/README: Add section on benchmark sets.
17389         * benchtests/bench-memcpy-ifunc.c: New file.
17390         * benchtests/bench-memcpy.c: New file.
17391         * benchtests/bench-string.h: New file.
17392
17393 2013-06-11  Andreas Schwab  <schwab@suse.de>
17394
17395         [BZ #15577]
17396         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
17397         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
17398         values in the triple.
17399         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
17400         terminator in the group key.
17401
17402 2013-06-11  Andreas Jaeger  <aj@suse.de>
17403
17404         * po/zh_TW.po: Update Chinese (traditional) translation from
17405         translation project.
17406
17407 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
17408
17409         * include/time.h (__clock_gettime): Add libc_hidden_proto.
17410         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
17411         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
17412         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
17413         (clock_getcpuclockid): Likewise.
17414         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
17415         Add weak_alias and libc_hidden_def.
17416         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
17417         * rt/clock_gettime.c (clock_gettime): Rename to
17418         __clock_gettime.  Add weak_alias and libc_hidden_def.
17419         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
17420         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
17421         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
17422         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
17423         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
17424         Likewise.
17425         * rt/clock_settime.c (clock_settime): Rename to
17426         __clock_settime.  Add weak_alias and libc_hidden_def.
17427         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
17428
17429 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
17430
17431         * mach/err_boot.sub: Remove trailing whitespace.
17432         * mach/err_ipc.sub: Likewise.
17433         * mach/err_mach.sub: Likewise.
17434
17435         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
17436         (ROUNDING_TESTS_double): Likewise.
17437         (ROUNDING_TESTS_long_double): Likewise.
17438         (ROUNDING_TESTS): Likewise.
17439         * math/libm-test.inc: Include <math-tests.h>.
17440         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
17441         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
17442         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
17443         (IF_ROUND_INIT_FE_UPWARD): Likewise.
17444
17445 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
17446
17447         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
17448         of assigning.
17449
17450 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
17451
17452         * sysdeps/gnu/errlist.awk: Do not generate space at end of
17453         otherwise empty TRANS lines.
17454         * sysdeps/gnu/errlist.c: Regenerated.
17455
17456         * catgets/gencat.c (error_print): Use (void) in function
17457         definition.
17458         * crypt/crypt_util.c (__init_des): Likewise.
17459         * crypt/speeds.c (Stop): Likewise.
17460         (main): Likewise.
17461         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
17462         * inet/ruserpass.c (token): Likewise.
17463         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
17464         * intl/localealias.c (extend_alias_table): Likewise.
17465         * intl/plural-exp.c (init_germanic_plural): Likewise.
17466         * libio/fcloseall.c (__fcloseall): Likewise.
17467         * libio/genops.c (_IO_flush_all): Likewise.
17468         (_IO_flush_all_linebuffered): Likewise.
17469         (_IO_cleanup): Likewise.
17470         (_IO_iter_begin): Likewise.
17471         (_IO_iter_end): Likewise.
17472         (_IO_list_lock): Likewise.
17473         (_IO_list_unlock): Likewise.
17474         (_IO_list_resetlock): Likewise.
17475         * libio/getchar.c (getchar): Likewise.
17476         * libio/getchar_u.c (getchar_unlocked): Likewise.
17477         * libio/getwchar.c (getwchar): Likewise.
17478         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
17479         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
17480         * login/getpt.c (__getpt): Likewise.
17481         * login/tst-utmp.c (main): Likewise.
17482         * malloc/hooks.c (__malloc_check_init): Likewise.
17483         * malloc/malloc.c (__malloc_stats): Likewise.
17484         * malloc/mtrace.c (tr_break): Likewise.
17485         (mtrace): Likewise.
17486         (muntrace): Likewise.
17487         * misc/fstab.c (endfsent): Likewise.
17488         * misc/getclktck.c (__getclktck): Likewise.
17489         * misc/getdtsz.c (__getdtablesize): Likewise.
17490         * misc/gethostid.c (gethostid): Likewise.
17491         * misc/getpagesize.c (__getpagesize): Likewise.
17492         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
17493         (__get_nprocs): Likewise.
17494         (__get_phys_pages): Likewise.
17495         (__get_avphys_pages): Likewise.
17496         * misc/getttyent.c (getttyent): Likewise.
17497         (setttyent): Likewise.
17498         (endttyent): Likewise.
17499         * misc/getusershell.c (getusershell): Likewise.
17500         (endusershell): Likewise.
17501         (setusershell): Likewise.
17502         (initshells): Likewise.
17503         * misc/hsearch.c (__hdestroy): Likewise.
17504         * misc/sync.c (sync): Likewise.
17505         * misc/syslog.c (closelog_internal): Likewise.
17506         (closelog): Likewise.
17507         * misc/ttyslot.c (ttyslot): Likewise.
17508         * misc/vhangup.c (vhangup): Likewise.
17509         * posix/fork.c (__fork): Likewise.
17510         * posix/getegid.c (__getegid): Likewise.
17511         * posix/geteuid.c (__geteuid): Likewise.
17512         * posix/getgid.c (__getgid): Likewise.
17513         * posix/getpid.c (__getpid): Likewise.
17514         * posix/getppid.c (__getppid): Likewise.
17515         * posix/getuid.c (__getuid): Likewise.
17516         * posix/pause.c (pause): Likewise.
17517         * posix/setpgrp.c (setpgrp): Likewise.
17518         * posix/setsid.c (__setsid): Likewise.
17519         * posix/test-vfork.c (noop): Likewise.
17520         * resolv/gethnamaddr.c (_endhtent): Likewise.
17521         (_gethtent): Likewise.
17522         (ht_endhostent): Likewise.
17523         (gethostent): Likewise.
17524         (dns_service): Likewise.
17525         * stdlib/drand48.c (drand48): Likewise.
17526         * stdlib/lrand48.c (lrand48): Likewise.
17527         * stdlib/mrand48.c (mrand48): Likewise.
17528         * stdlib/rand.c (rand): Likewise.
17529         * stdlib/random.c (__random): Likewise.
17530         * stdlib/setenv.c (clearenv): Likewise.
17531         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
17532         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
17533         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
17534         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
17535         (__get_nprocs): Likewise.
17536         (__get_phys_pages): Likewise.
17537         (__get_avphys_pages): Likewise.
17538         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
17539         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
17540         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
17541         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
17542         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
17543         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
17544         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
17545         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
17546         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
17547         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
17548         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
17549         * sysdeps/mach/hurd/sync.c (sync): Likewise.
17550         * sysdeps/posix/clock.c (clock): Likewise.
17551         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
17552         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
17553         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
17554         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
17555         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
17556         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
17557         (__get_nprocs_conf): Likewise.
17558         (__get_phys_pages): Likewise.
17559         (__get_avphys_pages): Likewise.
17560         * time/clock.c (clock): Likewise.
17561         * time/tzset.c (__tzname_max): Likewise.
17562
17563 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
17564
17565         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
17566         (__bswap_32): Do not use "register".
17567         * crypt/crypt.c (_ufc_doit_r): Likewise.
17568         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
17569         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
17570         * gmon/gmon.c (__monstartup): Likewise.
17571         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
17572         * hurd/hurdmalloc.c (more_memory): Likewise.
17573         (malloc): Likewise.
17574         (free): Likewise.
17575         (realloc): Likewise.
17576         (malloc_fork_prepare): Likewise.
17577         (malloc_fork_parent): Likewise.
17578         (malloc_fork_child): Likewise.
17579         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
17580         (_svcauth_des): Likewise.
17581         * inet/inet_lnaof.c (inet_lnaof): Likewise.
17582         * inet/inet_net.c (inet_network): Likewise.
17583         * inet/inet_netof.c (inet_netof): Likewise.
17584         * inet/rcmd.c (__validuser2_sa): Likewise.
17585         * io/fts.c (fts_open): Likewise.
17586         (fts_load): Likewise.
17587         (fts_close): Likewise.
17588         (fts_read): Likewise.
17589         (fts_children): Likewise.
17590         (fts_build): Likewise.
17591         (fts_stat): Likewise.
17592         (fts_sort): Likewise.
17593         (fts_alloc): Likewise.
17594         (fts_lfree): Likewise.
17595         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
17596         (_IO_file_xsgetn): Likewise.
17597         (_IO_file_xsgetn_mmap): Likewise.
17598         * libio/iofopncook.c (_IO_cookie_read): Likewise.
17599         (_IO_cookie_write): Likewise.
17600         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
17601         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
17602         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
17603         * malloc/obstack.c (_obstack_begin): Likewise.
17604         (_obstack_begin_1): Likewise.
17605         (_obstack_newchunk): Likewise.
17606         (_obstack_allocated_p): Likewise.
17607         (obstack_free): Likewise.
17608         (_obstack_memory_used): Likewise.
17609         * misc/getttyent.c (getttynam): Likewise.
17610         (getttyent): Likewise.
17611         (skip): Likewise.
17612         (value): Likewise.
17613         * misc/getusershell.c (initshells): Likewise.
17614         * misc/syslog.c (__vsyslog_chk): Likewise.
17615         * misc/ttyslot.c (ttyslot): Likewise.
17616         * nis/nis_hash.c (__nis_hash): Likewise.
17617         * posix/fnmatch_loop.c (FCT): Likewise.
17618         * posix/getconf.c (print_all): Likewise.
17619         (main): Likewise.
17620         * posix/getopt.c (exchange): Likewise.
17621         * posix/glob.c (globfree): Likewise.
17622         (prefix_array): Likewise.
17623         (__glob_pattern_type): Likewise.
17624         * resolv/arpa/nameser.h (NS_GET16): Likewise.
17625         (NS_GET32): Likewise.
17626         (NS_PUT16): Likewise.
17627         (NS_PUT32): Likewise.
17628         * resolv/gethnamaddr.c (getanswer): Likewise.
17629         (gethostbyname2): Likewise.
17630         (gethostbyaddr): Likewise.
17631         (_gethtent): Likewise.
17632         (_gethtbyname2): Likewise.
17633         (_gethtbyaddr): Likewise.
17634         * resolv/ns_print.c (dst_s_get_int16): Likewise.
17635         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
17636         * resolv/res_init.c (__res_vinit): Likewise.
17637         (net_mask): Likewise.
17638         * resolv/res_mkquery.c (outchar): Likewise.
17639         (PRINT): Likewise.
17640         * stdio-common/printf_fp.c (outchar): Likewise.
17641         (PRINT): Likewise.
17642         * stdio-common/printf_fphex.c (outchar): Likewise.
17643         (PRINT): Likewise.
17644         * stdio-common/printf_size.c (outchar): Likewise.
17645         (PRINT): Likewise.
17646         * stdio-common/test_rdwr.c (main): Likewise.
17647         * stdio-common/tfformat.c (matches): Likewise.
17648         * stdio-common/vfprintf.c (outchar): Likewise.
17649         (printf_unknown): Likewise.
17650         (buffered_vfprintf): Likewise.
17651         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
17652         * stdio-common/xbug.c (AppendToBuffer): Likewise.
17653         (ReadFile): Likewise.
17654         * stdlib/qsort.c (SWAP): Likewise.
17655         (_quicksort): Likewise.
17656         * stdlib/setenv.c (__add_to_environ): Likewise.
17657         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
17658         * stdlib/strtol_l.c (__strtol_l): Likewise.
17659         * stdlib/tst-strtod.c (main): Likewise.
17660         * stdlib/tst-strtol.c (main): Likewise.
17661         * stdlib/tst-strtoll.c (main): Likewise.
17662         * string/bits/string2.h (__strcmp_cc): Likewise.
17663         (__strcmp_cg): Likewise.
17664         (__strcspn_c1): Likewise.
17665         (__strcspn_c2): Likewise.
17666         (__strcspn_c3): Likewise.
17667         (__strspn_c1): Likewise.
17668         (__strspn_c2): Likewise.
17669         (__strspn_c3): Likewise.
17670         (__strsep_1c): Likewise.
17671         (__strsep_2c): Likewise.
17672         (__strsep_3c): Likewise.
17673         * string/memccpy.c (__memccpy): Likewise.
17674         * string/stpcpy.c (__stpcpy): Likewise.
17675         * string/strcmp.c (strcmp): Likewise.
17676         * string/strrchr.c (strrchr): Likewise.
17677         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
17678         Likewise.
17679         * sysdeps/mach/hurd/getcwd.c
17680         (_hurd_canonicalize_directory_name_internal): Likewise.
17681         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
17682         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
17683         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
17684         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
17685         Likewise, in both definitions.
17686         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
17687         definitions.
17688         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
17689         64] (__bswap_64): Likewise.
17690         * time/test_time.c (main): Likewise.
17691         * time/tzfile.c (__tzfile_read): Likewise.
17692         (__tzfile_compute): Likewise.
17693         * time/tzset.c (__tzset_parse_tz): Likewise.
17694         (tzset_internal): Likewise.
17695         (compute_change): Likewise.
17696         * wcsmbs/wcscat.c (__wcscat): Likewise.
17697         * wcsmbs/wcschr.c (wcschr): Likewise.
17698         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
17699         * wcsmbs/wcscspn.c (wcscspn): Likewise.
17700         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
17701         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
17702         * wcsmbs/wcsspn.c (wcsspn): Likewise.
17703         * wcsmbs/wcsstr.c (wcsstr): Likewise.
17704         * wcsmbs/wmemchr.c (wmemchr): Likewise.
17705         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
17706         * wcsmbs/wmemset.c (wmemset): Likewise.
17707
17708 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
17709
17710         * scripts/config.guess: Update to version 2013-05-16.
17711         * scripts/config.sub: Update to version 2013-04-24.
17712         * scripts/install-sh: Update to version 2011-11-20.07.
17713         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
17714         * scripts/move-if-change: Update to version 2012-01-06 07:23.
17715
17716 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
17717
17718         * debug/fgetws_u_chk.c: Fix leading whitespaces.
17719         * elf/sln.c: Likewise.
17720         * hurd/hurd/ioctl.h: Likewise.
17721         * hurd/hurdmalloc.c: Likewise.
17722         * hurd/xattr.c: Likewise.
17723         * include/shlib-compat.h: Likewise.
17724         * inet/ruserpass.c: Likewise.
17725         * libio/iofgets_u.c: Likewise.
17726         * libio/iofgetws_u.c: Likewise.
17727         * locale/programs/ld-identification.c: Likewise.
17728         * locale/programs/ld-time.c: Likewise.
17729         * mach/msg-destroy.c: Likewise.
17730         * nss/nss_files/files-netgrp.c: Likewise.
17731         * resolv/res_data.c: Likewise.
17732         * soft-fp/op-1.h: Likewise.
17733         * soft-fp/op-2.h: Likewise.
17734         * soft-fp/op-4.h: Likewise.
17735         * soft-fp/op-common.h: Likewise.
17736         * stdio-common/printf_fphex.c: Likewise.
17737         * stdlib/strtod_l.c: Likewise.
17738         * sunrpc/rpc/clnt.h: Likewise.
17739         * sysdeps/generic/framestate.c: Likewise.
17740         * sysdeps/i386/bsd-_setjmp.S: Likewise.
17741         * sysdeps/i386/bsd-setjmp.S: Likewise.
17742         * sysdeps/i386/__longjmp.S: Likewise.
17743         * sysdeps/i386/setjmp.S: Likewise.
17744         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17745         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
17746         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17747         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
17748         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
17749         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
17750         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17751         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
17752         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
17753         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
17754         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
17755         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
17756         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
17757         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
17758         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
17759         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17760         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
17761         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
17762         * sysdeps/ieee754/support.c: Likewise.
17763         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
17764         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
17765         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
17766         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
17767         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
17768         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
17769         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
17770         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
17771         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
17772         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
17773         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
17774         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
17775         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
17776         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
17777         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
17778         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
17779         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
17780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
17781
17782 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
17783
17784         * posix/transbug.c: Remove executable mode.
17785
17786 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
17787
17788         * crypt/speeds.c: Remove trailing whitespace.
17789         * dlfcn/default.c: Likewise.
17790         * elf/ifuncdep2.c: Likewise.
17791         * elf/ifuncmain1.c: Likewise.
17792         * elf/ifuncmain1vis.c: Likewise.
17793         * elf/testobj.h: Likewise.
17794         * elf/tst-stackguard1.c: Likewise.
17795         * gmon/sys/gmon.h: Likewise.
17796         * hurd/hurdmsg.c: Likewise.
17797         * hurd/new-fd.c: Likewise.
17798         * hurd/ports-get.c: Likewise.
17799         * iconvdata/ibm1008_420.c: Likewise.
17800         * inet/tst-getni1.c: Likewise.
17801         * inet/tst-getni2.c: Likewise.
17802         * libio/ioungetc.c: Likewise.
17803         * libio/wfiledoalloc.c: Likewise.
17804         * manual/libm-err-tab.pl: Likewise.
17805         * math/w_dremf.c: Likewise.
17806         * misc/ftruncate.c: Likewise.
17807         * posix/bug-glob2.c: Likewise.
17808         * posix/tst-pcre.c: Likewise.
17809         * posix/wait4.c: Likewise.
17810         * resolv/README: Likewise.
17811         * resolv/res_debug.h: Likewise.
17812         * resolv/tst-inet_ntop.c: Likewise.
17813         * setjmp/bug269-setjmp.c: Likewise.
17814         * soft-fp/extended.h: Likewise.
17815         * soft-fp/op-1.h: Likewise.
17816         * soft-fp/op-2.h: Likewise.
17817         * soft-fp/op-4.h: Likewise.
17818         * soft-fp/op-8.h: Likewise.
17819         * soft-fp/testit.c: Likewise.
17820         * stdio-common/bug16.c: Likewise.
17821         * stdlib/random.c: Likewise.
17822         * sunrpc/rpcsvc/rquota.x: Likewise.
17823         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
17824         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
17825         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17826         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17827         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17828         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17829         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
17830         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17831         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
17832         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
17833         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
17834         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
17835         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17836         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17837         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17838         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17839         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17840         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17841         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
17842         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
17843         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
17844         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
17845         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
17846         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
17847         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17848         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17849         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
17850         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
17851         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17852         * sysdeps/ieee754/s_lib_version.c: Likewise.
17853         * sysdeps/mach/hurd/check_fds.c: Likewise.
17854         * sysdeps/mach/hurd/getsockname.c: Likewise.
17855         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
17856         * sysdeps/mach/hurd/recvfrom.c: Likewise.
17857         * sysdeps/powerpc/bits/link.h: Likewise.
17858         * sysdeps/powerpc/dl-procinfo.c: Likewise.
17859         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
17860         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
17861         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
17862         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
17863         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
17864         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
17865         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
17866         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
17867         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
17868         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
17869         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
17870         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
17871         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
17872         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
17873         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
17874         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
17875         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
17876         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
17877         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
17878         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
17879         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
17880         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
17881         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
17882         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
17883         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
17884         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
17885         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
17886         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
17887         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
17888         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
17889         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
17890         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
17891         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
17892         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
17893         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
17894         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
17895         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
17896         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
17897         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
17898         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
17899         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
17900         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
17901         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
17902         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
17903         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
17904         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
17905         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
17906         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
17907         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
17908         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
17909         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
17910         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
17911         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
17912         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
17913         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
17914         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
17915         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
17916         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
17917         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
17918         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
17919         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
17920         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
17921         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
17922         * sysdeps/powerpc/sysdep.h: Likewise.
17923         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17924         * sysdeps/s390/s390-64/sub_n.S: Likewise.
17925         * sysdeps/sh/dl-trampoline.S: Likewise.
17926         * sysdeps/sh/memset.S: Likewise.
17927         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
17928         * sysdeps/sh/strlen.S: Likewise.
17929         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
17930         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
17931         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
17932         * sysdeps/sparc/sparc32/rem.S: Likewise.
17933         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
17934         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
17935         * sysdeps/sparc/sparc32/strchr.S: Likewise.
17936         * sysdeps/sparc/sparc32/udiv.S: Likewise.
17937         * sysdeps/sparc/sparc32/urem.S: Likewise.
17938         * sysdeps/sparc/sparc64/add_n.S: Likewise.
17939         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
17940         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
17941         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
17942         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
17943         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
17944         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
17945         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
17946         * sysdeps/unix/bsd/times.c: Likewise.
17947         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
17948         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
17949         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
17950         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
17951         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
17952         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
17953         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
17954         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
17955         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
17956         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
17957         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
17958         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
17959         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
17960         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
17961         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
17962         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
17963         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
17964         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
17965         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
17966         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
17967         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
17968         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
17969         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
17970         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
17971         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
17972         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
17973         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
17974         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17975         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
17976         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
17977         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
17978         * sysdeps/x86_64/strcspn.S: Likewise.
17979
17980 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
17981
17982         * locale/C-translit.h: Revert #include <stdint.h> because this is a
17983         generated file.  Regenerate properly from gen-translit.pl.
17984         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
17985         locale/C-translit.h.
17986
17987 2013-06-05  Andreas Schwab  <schwab@suse.de>
17988
17989         [BZ #15100]
17990         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
17991         week as 6 instead of -1.
17992         * time/tst-strptime.c (day_tests): Add test case.
17993
17994 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
17995
17996         * sysdeps/generic/math_private.h
17997         (libc_feholdexcept_setround_53bit): Replace with
17998         libc_feholdsetround_53bit.
17999         (libc_feupdateenv_53bit): Replace with
18000         libc_feresetround_53bit.
18001         (SET_RESTORE_ROUND_53BIT): Adjust.
18002
18003 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
18004
18005         * string/test-strchrnul.c: Add copyright header.
18006
18007         * posix/tst-getaddrinfo4.c: Increase test timeout.
18008
18009 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
18010
18011         [BZ #15536]
18012         * math/libm-test.inc (MAX_EXP): Remove
18013         (MIN_EXP): Define.
18014         (ulp): Use MIN_EXP - MANT_DIG.
18015         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
18016
18017 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
18018
18019         * po/be.po: Revert last change.
18020         * po/zh_CN.po: Likewise.
18021         * po/header.pot: Likewise.
18022
18023 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
18024
18025         * Makefile ($(common-objpfx)linkobj/libc.so): Define
18026         link-libc-deps to empty as target-specific variable.
18027         * Makerules (link-libc-args): New variable.
18028         (libc-for-link): Likewise.
18029         (link-libc-deps): Likewise.
18030         (lib%.so): Depend on $(link-libc-deps).  Link with
18031         $(link-libc-args).
18032         (build-module): Link with $(link-libc-args).
18033         (build-module-asneeded): Likewise.
18034         (build-module-helper-objlist): Filter out $(link-libc-deps) from
18035         list of objects.
18036         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
18037         target-specific variable.
18038         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
18039         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
18040         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
18041         libc.
18042         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
18043         libc and ld.so.
18044         ($(objpfx)libpcprofile.so): Likewise.
18045         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
18046         libc_nonshared.a.
18047         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
18048         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
18049         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
18050         $(link-libc-deps).
18051         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
18052         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
18053         * login/Makefile ($(objpfx)libutil.so): Likewise.
18054         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
18055         * math/Makefile ($(objpfx)libm.so): Likewise.
18056         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
18057         $(objpfx)libnsl.so): Define libc-for-link as target-specific
18058         variable instead of depending directly on libc.
18059         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
18060         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
18061         $(link-libc-deps).
18062         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
18063         libc.
18064         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
18065         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
18066         ($(objpfx)libanl.so): Likewise.
18067         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
18068         ld.so.
18069         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
18070         $(link-libc-deps).
18071         * sysdeps/i386/fpu/Makefile: Remove file.
18072         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
18073         ($(objpfx)libm.so): Remove dependency on ld.so.
18074
18075 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
18076
18077         [BZ # 15553]
18078         * nis/yp_xdr.c (XDRMAXNAME): Define.
18079         (XDRMAXRECORD): Define.
18080         (xdr_domainname): Use XDRMAXNAME.
18081         (xdr_mapname): Likewise.
18082         (xdr_peername): Likewise.
18083         (xdr_keydat): Use XDRMAXRECORD.
18084         (xdr_valdat): Likewise.
18085
18086 2013-05-30  Jeff Law  <law@redhat.com>
18087
18088         [BZ #14256]
18089         * manual/errno.texi (ESTALE): Update to account for more than
18090         just NFS file systems.
18091         * sysdeps/gnu/errlist.c: Regenerated.
18092
18093 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
18094
18095         [BZ #15465]
18096         * elf/Makefile (tests): Add tst-null-argv.
18097         (modules-names):  Add tst-null-argv-lib.
18098         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
18099         (tst-null-argv-ENV): Set environment for tst-null-argv.
18100         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
18101         (RTLD_PROGNAME): New macro.
18102         * elf/tst-null-argv.c: New test case.
18103         * elf/tst-null-argv-lib.c: Library for test case.
18104         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
18105         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
18106         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
18107         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
18108         * elf/dl-init.c (call_init): Likewise.
18109         (_dl_init): Likewise.
18110         * elf/dl-load.c (print_search_path): Likewise.
18111         (_dl_map_object): Likewise.
18112         * elf/dl-lookup.c (do_lookup_x): Likewise.
18113         (add_dependency): Likewise.
18114         (_dl_lookup_symbol_x): Likewise.
18115         (_dl_debug_bindings): Likewise.
18116         * elf/dl-open.c (_dl_show_scope): Likewise.
18117         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
18118         * elf/dl-version.c (match_symbol): Likewise.
18119         (_dl_check_map_versions): Likewise.
18120         * elf/rtld.c (dl_main): Likewise.
18121         (print_unresolved): Use RTLD_PROGNAME.
18122         (print_missing_version): Likewise.
18123         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
18124         (elf_machine_rela): Likewise.
18125         * sysdeps/powerpc/powerpc32/dl-machine.c
18126         (__process_machine_rela): Likewise.
18127         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18128         Likewise.
18129         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18130         Likewise.
18131         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
18132         Likewise.
18133         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
18134         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
18135         Likewise.
18136         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
18137         Likewise.
18138         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
18139
18140 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
18141
18142         * po/be.po: Add descriptive title.
18143         * po/zh_CN.po: Likewise.
18144         * po/header.pot: Likewise.
18145
18146 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
18147
18148         * locale/programs/locarchive.c (create_archive): Inlucde fname in
18149         error message.
18150         (enlarge_archive): Likewise.
18151
18152 2013-05-28  Ben North  <ben@redfrontdoor.org>
18153
18154         * manual/arith.texi (frexp): It is the magnitude of the return
18155         value which lies in [0.5, 1), not the return value itself.
18156
18157 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18158
18159         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18160
18161 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
18162
18163         * stdio-common/bug26.c (main): Correct fscanf template.
18164
18165         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
18166         declare _dl_skip_args.
18167
18168         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
18169         Don't declare.
18170
18171         * manual/platform.texi: Add missing @end deftypefun.
18172
18173 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
18174
18175         [BZ #15529]
18176         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
18177         bit of mantissa of 2^16382.
18178         * math/libm-test.inc (hypot_test_data): Add more tests.
18179
18180         * math/libm-test.inc: Add drem and pow10 to list of tested
18181         functions.
18182         (pow10_test): New function.
18183         (drem_test): Likewise.
18184         (drem_test_tonearest): Likewise.
18185         (drem_test_towardzero): Likewise.
18186         (drem_test_downward): Likewise.
18187         (drem_test_upward): Likewise.
18188         (main): Call the new functions.
18189
18190         * math/libm-test.inc (finite_test_data): Remove.
18191         (finite_test): Run tests from isfinite_test_data.
18192         (gamma_test_data): Remove.
18193         (gamma_test): Run tests from lgamma_test_data.
18194         * sysdeps/i386/fpu/libm-test-ulps: Update.
18195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18196
18197 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18198
18199         * manual/platform.texi: Add PowerPC PPR function set documentation.
18200         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
18201         implementation.
18202
18203 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
18204
18205         * math/libm-test.inc (MAX_EXP): Define.
18206         (ULPDIFF): Define.
18207         (ulp): New function.
18208         (check_float_internal): Use ULPDIFF.
18209         (cpow_test): Disable failing test.
18210         (check_ulp): Test ulp() implemetnation.
18211         (main): Call check_ulp before starting tests.
18212
18213 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
18214
18215         * math/gen-libm-test.pl (generate_testfile): Do not handle
18216         START_DATA and END_DATA.
18217         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
18218         END_DATA.
18219         (acos_tonearest_test_data): Likewise.
18220         (acos_towardzero_test_data): Likewise.
18221         (acos_downward_test_data): Likewise.
18222         (acos_upward_test_data): Likewise.
18223         (acosh_test_data): Likewise.
18224         (asin_test_data): Likewise.
18225         (asin_tonearest_test_data): Likewise.
18226         (asin_towardzero_test_data): Likewise.
18227         (asin_downward_test_data): Likewise.
18228         (asin_upward_test_data): Likewise.
18229         (asinh_test_data): Likewise.
18230         (atan_test_data): Likewise.
18231         (atanh_test_data): Likewise.
18232         (atan2_test_data): Likewise.
18233         (cabs_test_data): Likewise.
18234         (cacos_test_data): Likewise.
18235         (cacosh_test_data): Likewise.
18236         (carg_test_data): Likewise.
18237         (casin_test_data): Likewise.
18238         (casinh_test_data): Likewise.
18239         (catan_test_data): Likewise.
18240         (catanh_test_data): Likewise.
18241         (cbrt_test_data): Likewise.
18242         (ccos_test_data): Likewise.
18243         (ccosh_test_data): Likewise.
18244         (ceil_test_data): Likewise.
18245         (cexp_test_data): Likewise.
18246         (cimag_test_data): Likewise.
18247         (clog_test_data): Likewise.
18248         (clog10_test_data): Likewise.
18249         (conj_test_data): Likewise.
18250         (copysign_test_data): Likewise.
18251         (cos_test_data): Likewise.
18252         (cos_tonearest_test_data): Likewise.
18253         (cos_towardzero_test_data): Likewise.
18254         (cos_downward_test_data): Likewise.
18255         (cos_upward_test_data): Likewise.
18256         (cosh_test_data): Likewise.
18257         (cosh_tonearest_test_data): Likewise.
18258         (cosh_towardzero_test_data): Likewise.
18259         (cosh_downward_test_data): Likewise.
18260         (cosh_upward_test_data): Likewise.
18261         (cpow_test_data): Likewise.
18262         (cproj_test_data): Likewise.
18263         (creal_test_data): Likewise.
18264         (csin_test_data): Likewise.
18265         (csinh_test_data): Likewise.
18266         (csqrt_test_data): Likewise.
18267         (ctan_test_data): Likewise.
18268         (ctan_tonearest_test_data): Likewise.
18269         (ctan_towardzero_test_data): Likewise.
18270         (ctan_downward_test_data): Likewise.
18271         (ctan_upward_test_data): Likewise.
18272         (ctanh_test_data): Likewise.
18273         (ctanh_tonearest_test_data): Likewise.
18274         (ctanh_towardzero_test_data): Likewise.
18275         (ctanh_downward_test_data): Likewise.
18276         (ctanh_upward_test_data): Likewise.
18277         (erf_test_data): Likewise.
18278         (erfc_test_data): Likewise.
18279         (exp_test_data): Likewise.
18280         (exp_tonearest_test_data): Likewise.
18281         (exp_towardzero_test_data): Likewise.
18282         (exp_downward_test_data): Likewise.
18283         (exp_upward_test_data): Likewise.
18284         (exp10_test_data): Likewise.
18285         (exp2_test_data): Likewise.
18286         (expm1_test_data): Likewise.
18287         (fabs_test_data): Likewise.
18288         (fdim_test_data): Likewise.
18289         (finite_test_data): Likewise.
18290         (floor_test_data): Likewise.
18291         (fma_test_data): Likewise.
18292         (fma_towardzero_test_data): Likewise.
18293         (fma_downward_test_data): Likewise.
18294         (fma_upward_test_data): Likewise.
18295         (fmax_test_data): Likewise.
18296         (fmin_test_data): Likewise.
18297         (fmod_test_data): Likewise.
18298         (fpclassify_test_data): Likewise.
18299         (frexp_test_data): Likewise.
18300         (gamma_test_data): Likewise.
18301         (hypot_test_data): Likewise.
18302         (ilogb_test_data): Likewise.
18303         (isfinite_test_data): Likewise.
18304         (isgreater_test_data): Likewise.
18305         (isgreaterequal_test_data): Likewise.
18306         (isinf_test_data): Likewise.
18307         (isless_test_data): Likewise.
18308         (islessequal_test_data): Likewise.
18309         (islessgreater_test_data): Likewise.
18310         (isnan_test_data): Likewise.
18311         (isnormal_test_data): Likewise.
18312         (issignaling_test_data): Likewise.
18313         (isunordered_test_data): Likewise.
18314         (j0_test_data): Likewise.
18315         (j1_test_data): Likewise.
18316         (jn_test_data): Likewise.
18317         (ldexp_test_data): Likewise.
18318         (lgamma_test_data): Likewise.
18319         (lrint_test_data): Likewise.
18320         (lrint_tonearest_test_data): Likewise.
18321         (lrint_towardzero_test_data): Likewise.
18322         (lrint_downward_test_data): Likewise.
18323         (lrint_upward_test_data): Likewise.
18324         (llrint_test_data): Likewise.
18325         (llrint_tonearest_test_data): Likewise.
18326         (llrint_towardzero_test_data): Likewise.
18327         (llrint_downward_test_data): Likewise.
18328         (llrint_upward_test_data): Likewise.
18329         (log_test_data): Likewise.
18330         (log10_test_data): Likewise.
18331         (log1p_test_data): Likewise.
18332         (log2_test_data): Likewise.
18333         (logb_test_data): Likewise.
18334         (logb_downward_test_data): Likewise.
18335         (lround_test_data): Likewise.
18336         (llround_test_data): Likewise.
18337         (modf_test_data): Likewise.
18338         (nearbyint_test_data): Likewise.
18339         (nextafter_test_data): Likewise.
18340         (nexttoward_test_data): Likewise.
18341         (pow_test_data): Likewise.
18342         (pow_tonearest_test_data): Likewise.
18343         (pow_towardzero_test_data): Likewise.
18344         (pow_downward_test_data): Likewise.
18345         (pow_upward_test_data): Likewise.
18346         (remainder_test_data): Likewise.
18347         (remainder_tonearest_test_data): Likewise.
18348         (remainder_towardzero_test_data): Likewise.
18349         (remainder_downward_test_data): Likewise.
18350         (remainder_upward_test_data): Likewise.
18351         (remquo_test_data): Likewise.
18352         (rint_test_data): Likewise.
18353         (rint_tonearest_test_data): Likewise.
18354         (rint_towardzero_test_data): Likewise.
18355         (rint_downward_test_data): Likewise.
18356         (rint_upward_test_data): Likewise.
18357         (round_test_data): Likewise.
18358         (scalb_test_data): Likewise.
18359         (scalbn_test_data): Likewise.
18360         (scalbln_test_data): Likewise.
18361         (signbit_test_data): Likewise.
18362         (sin_test_data): Likewise.
18363         (sin_tonearest_test_data): Likewise.
18364         (sin_towardzero_test_data): Likewise.
18365         (sin_downward_test_data): Likewise.
18366         (sin_upward_test_data): Likewise.
18367         (sincos_test_data): Likewise.
18368         (sinh_test_data): Likewise.
18369         (sinh_tonearest_test_data): Likewise.
18370         (sinh_towardzero_test_data): Likewise.
18371         (sinh_downward_test_data): Likewise.
18372         (sinh_upward_test_data): Likewise.
18373         (sqrt_test_data): Likewise.
18374         (tan_test_data): Likewise.
18375         (tan_tonearest_test_data): Likewise.
18376         (tan_towardzero_test_data): Likewise.
18377         (tan_downward_test_data): Likewise.
18378         (tan_upward_test_data): Likewise.
18379         (tanh_test_data): Likewise.
18380         (tgamma_test_data): Likewise.
18381         (trunc_test_data): Likewise.
18382         (y0_test_data): Likewise.
18383         (y1_test_data): Likewise.
18384         (yn_test_data): Likewise.
18385         (significand_test_data): Likewise.
18386
18387         * math/gen-libm-test.pl (@functions): Remove variable.
18388         (generate_testfile): Don't handle START and END lines.
18389         * math/libm-test.inc (START): New macro.
18390         (END): Likewise.
18391         (END_COMPLEX): Likewise.
18392         (acos_test): Use END macro without arguments.
18393         (acos_test_tonearest): Likewise.
18394         (acos_test_towardzero): Likewise.
18395         (acos_test_downward): Likewise.
18396         (acos_test_upward): Likewise.
18397         (acosh_test): Likewise.
18398         (asin_test): Likewise.
18399         (asin_test_tonearest): Likewise.
18400         (asin_test_towardzero): Likewise.
18401         (asin_test_downward): Likewise.
18402         (asin_test_upward): Likewise.
18403         (asinh_test): Likewise.
18404         (atan_test): Likewise.
18405         (atanh_test): Likewise.
18406         (atan2_test): Likewise.
18407         (cabs_test): Likewise.
18408         (cacos_test): Use END_COMPLEX macro without arguments.
18409         (cacosh_test): Likewise.
18410         (carg_test): Use END macro without arguments.
18411         (casin_test): Use END_COMPLEX macro without arguments.
18412         (casinh_test): Likewise.
18413         (catan_test): Likewise.
18414         (catanh_test): Likewise.
18415         (cbrt_test): Use END macro without arguments.
18416         (ccos_test): Use END_COMPLEX macro without arguments.
18417         (ccosh_test): Likewise.
18418         (ceil_test): Use END macro without arguments.
18419         (cexp_test): Use END_COMPLEX macro without arguments.
18420         (cimag_test): Use END macro without arguments.
18421         (clog_test): Use END_COMPLEX macro without arguments.
18422         (clog10_test): Likewise.
18423         (conj_test): Likewise.
18424         (copysign_test): Use END macro without arguments.
18425         (cos_test): Likewise.
18426         (cos_test_tonearest): Likewise.
18427         (cos_test_towardzero): Likewise.
18428         (cos_test_downward): Likewise.
18429         (cos_test_upward): Likewise.
18430         (cosh_test): Likewise.
18431         (cosh_test_tonearest): Likewise.
18432         (cosh_test_towardzero): Likewise.
18433         (cosh_test_downward): Likewise.
18434         (cosh_test_upward): Likewise.
18435         (cpow_test): Use END_COMPLEX macro without arguments.
18436         (cproj_test): Likewise.
18437         (creal_test): Use END macro without arguments.
18438         (csin_test): Use END_COMPLEX macro without arguments.
18439         (csinh_test): Likewise.
18440         (csqrt_test): Likewise.
18441         (ctan_test): Likewise.
18442         (ctan_test_tonearest): Likewise.
18443         (ctan_test_towardzero): Likewise.
18444         (ctan_test_downward): Likewise.
18445         (ctan_test_upward): Likewise.
18446         (ctanh_test): Likewise.
18447         (ctanh_test_tonearest): Likewise.
18448         (ctanh_test_towardzero): Likewise.
18449         (ctanh_test_downward): Likewise.
18450         (ctanh_test_upward): Likewise.
18451         (erf_test): Use END macro without arguments.
18452         (erfc_test): Likewise.
18453         (exp_test): Likewise.
18454         (exp_test_tonearest): Likewise.
18455         (exp_test_towardzero): Likewise.
18456         (exp_test_downward): Likewise.
18457         (exp_test_upward): Likewise.
18458         (exp10_test): Likewise.
18459         (exp2_test): Likewise.
18460         (expm1_test): Likewise.
18461         (fabs_test): Likewise.
18462         (fdim_test): Likewise.
18463         (finite_test): Likewise.
18464         (floor_test): Likewise.
18465         (fma_test): Likewise.
18466         (fma_test_towardzero): Likewise.
18467         (fma_test_downward): Likewise.
18468         (fma_test_upward): Likewise.
18469         (fmax_test): Likewise.
18470         (fmin_test): Likewise.
18471         (fmod_test): Likewise.
18472         (fpclassify_test): Likewise.
18473         (frexp_test): Likewise.
18474         (gamma_test): Likewise.
18475         (hypot_test): Likewise.
18476         (ilogb_test): Likewise.
18477         (isfinite_test): Likewise.
18478         (isgreater_test): Likewise.
18479         (isgreaterequal_test): Likewise.
18480         (isinf_test): Likewise.
18481         (isless_test): Likewise.
18482         (islessequal_test): Likewise.
18483         (islessgreater_test): Likewise.
18484         (isnan_test): Likewise.
18485         (isnormal_test): Likewise.
18486         (issignaling_test): Likewise.
18487         (isunordered_test): Likewise.
18488         (j0_test): Likewise.
18489         (j1_test): Likewise.
18490         (jn_test): Likewise.
18491         (ldexp_test): Likewise.
18492         (lgamma_test): Likewise.
18493         (lrint_test): Likewise.
18494         (lrint_test_tonearest): Likewise.
18495         (lrint_test_towardzero): Likewise.
18496         (lrint_test_downward): Likewise.
18497         (lrint_test_upward): Likewise.
18498         (llrint_test): Likewise.
18499         (llrint_test_tonearest): Likewise.
18500         (llrint_test_towardzero): Likewise.
18501         (llrint_test_downward): Likewise.
18502         (llrint_test_upward): Likewise.
18503         (log_test): Likewise.
18504         (log10_test): Likewise.
18505         (log1p_test): Likewise.
18506         (log2_test): Likewise.
18507         (logb_test): Likewise.
18508         (logb_test_downward): Likewise.
18509         (lround_test): Likewise.
18510         (llround_test): Likewise.
18511         (modf_test): Likewise.
18512         (nearbyint_test): Likewise.
18513         (nextafter_test): Likewise.
18514         (nexttoward_test): Likewise.
18515         (pow_test): Likewise.
18516         (pow_test_tonearest): Likewise.
18517         (pow_test_towardzero): Likewise.
18518         (pow_test_downward): Likewise.
18519         (pow_test_upward): Likewise.
18520         (remainder_test): Likewise.
18521         (remainder_test_tonearest): Likewise.
18522         (remainder_test_towardzero): Likewise.
18523         (remainder_test_downward): Likewise.
18524         (remainder_test_upward): Likewise.
18525         (remquo_test): Likewise.
18526         (rint_test): Likewise.
18527         (rint_test_tonearest): Likewise.
18528         (rint_test_towardzero): Likewise.
18529         (rint_test_downward): Likewise.
18530         (rint_test_upward): Likewise.
18531         (round_test): Likewise.
18532         (scalb_test): Likewise.
18533         (scalbn_test): Likewise.
18534         (scalbln_test): Likewise.
18535         (signbit_test): Likewise.
18536         (sin_test): Likewise.
18537         (sin_test_tonearest): Likewise.
18538         (sin_test_towardzero): Likewise.
18539         (sin_test_downward): Likewise.
18540         (sin_test_upward): Likewise.
18541         (sincos_test): Likewise.
18542         (sinh_test): Likewise.
18543         (sinh_test_tonearest): Likewise.
18544         (sinh_test_towardzero): Likewise.
18545         (sinh_test_downward): Likewise.
18546         (sinh_test_upward): Likewise.
18547         (sqrt_test): Likewise.
18548         (tan_test): Likewise.
18549         (tan_test_tonearest): Likewise.
18550         (tan_test_towardzero): Likewise.
18551         (tan_test_downward): Likewise.
18552         (tan_test_upward): Likewise.
18553         (tanh_test): Likewise.
18554         (tgamma_test): Likewise.
18555         (trunc_test): Likewise.
18556         (y0_test): Likewise.
18557         (y1_test): Likewise.
18558         (yn_test): Likewise.
18559         (significand_test): Likewise.
18560
18561 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
18562
18563         [BZ #15381]
18564         * libio/genops.c (_IO_no_init): Initialize wide struct info.
18565
18566 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
18567
18568         [BZ #14894]
18569         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
18570         __ppc_mdoio and __ppc_mdoom.
18571         * manual/platform.texi: Document new functions __ppc_yield,
18572         __ppc_mdoio and __ppc_mdoom.
18573
18574 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
18575
18576         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
18577         (main): Mention "tls" pseudo-hwcap is legacy.
18578         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
18579
18580 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
18581
18582         * math/gen-libm-test.pl (parse_args): Output only string of
18583         arguments as text for test name, not full call or descriptions of
18584         tests for extra outputs.
18585         (generate_testfile): Do not pass function name to parse_args.
18586         Generate this_func variable from START.
18587         * math/libm-test.inc (struct test_f_f_data): Rename test_name
18588         field to arg_str.
18589         (struct test_ff_f_data): Likewise.
18590         (test_ff_f_data_nexttoward): Likewise.
18591         (struct test_fi_f_data): Likewise.
18592         (struct test_fl_f_data): Likewise.
18593         (struct test_if_f_data): Likewise.
18594         (struct test_fff_f_data): Likewise.
18595         (struct test_c_f_data): Likewise.
18596         (struct test_f_f1_data): Likewise.  Remove field extra_name.
18597         (struct test_fF_f1_data): Likewise.
18598         (struct test_ffI_f1_data): Likewise.
18599         (struct test_c_c_data): Rename test_name field to arg_str.
18600         (struct test_cc_c_data): Likewise.
18601         (struct test_f_i_data): Likewise.
18602         (struct test_ff_i_data): Likewise.
18603         (struct test_f_l_data): Likewise.
18604         (struct test_f_L_data): Likewise.
18605         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
18606         and extra2_name.
18607         (COMMON_TEST_SETUP): New macro.
18608         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
18609         (COMMON_TEST_CLEANUP): Likewise.
18610         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
18611         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
18612         macros.
18613         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
18614         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
18615         macros.
18616         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
18617         (RUN_TEST_fff_f): Take argument string.  Call new setup and
18618         cleanup macros.
18619         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
18620         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
18621         macros.
18622         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
18623         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
18624         macros.
18625         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
18626         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
18627         cleanup macros.
18628         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
18629         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
18630         cleanup macros.
18631         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
18632         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
18633         cleanup macros.
18634         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
18635         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
18636         macros.
18637         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
18638         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
18639         macros.
18640         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
18641         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
18642         macros.
18643         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
18644         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
18645         cleanup macros.
18646         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
18647         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
18648         cleanup macros.
18649         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
18650         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
18651         macros.
18652         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
18653         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
18654         cleanup macros.
18655         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
18656         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
18657         macros.
18658         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
18659         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
18660         macros.
18661         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
18662         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
18663         cleanup macros.
18664         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
18665
18666 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
18667
18668         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
18669         to _sifields.sigfault.
18670         (si_addr_lsb): Define new macro.
18671         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
18672         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18673         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
18674
18675 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
18676
18677         [BZ #15441]
18678         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
18679         returns -1.
18680         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
18681         null return -1.
18682         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
18683         loading the domain.
18684
18685 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
18686
18687         * math/gen-libm-test.pl (parse_args): Do not include expected
18688         result in test name.
18689         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
18690         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18691         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18692         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18693         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18695
18696 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
18697
18698         * benchtests/Makefile: Sort function entries.
18699
18700         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
18701         tanh, asinh, acosh, atanh.
18702         * benchtests/acos-inputs: New file.
18703         * benchtests/acosh-inputs: New file.
18704         * benchtests/asin-inputs: New file.
18705         * benchtests/asinh-inputs: New file.
18706         * benchtests/atanh-inputs: New file.
18707         * benchtests/cosh-inputs: New file.
18708         * benchtests/log-inputs: New file.
18709         * benchtests/sinh-inputs: New file.
18710         * benchtests/tanh-inputs: New file.
18711
18712 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
18713
18714         [BZ #15339]
18715         * posix/tst-getaddrinfo4.c: New test.
18716         * posix/Makefile (tests): Add it.
18717
18718 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18719
18720         [BZ #15339]
18721         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
18722         when no services were used.
18723         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
18724         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
18725
18726 2013-05-21  Andreas Schwab  <schwab@suse.de>
18727
18728         [BZ #15014]
18729         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
18730         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
18731         successful.
18732         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
18733         redundant variable declarations and reallocation of buffer when
18734         parsing as IPv6 address.  Always set NSS status when called from
18735         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
18736         buffer too small.  Correct computation of needed size.
18737         * nss/Makefile (tests): Add test-digits-dots.
18738         * nss/test-digits-dots.c: New test.
18739
18740 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
18741
18742         * benchtests/Makefile: Remove instructions for adding
18743         benchmark tests.
18744         * benchtests/README: New file to explain how to execute and
18745         enhance the benchmark tests.
18746
18747 2013-05-21  Andreas Schwab  <schwab@suse.de>
18748
18749         [BZ #15493]
18750         * setjmp/Makefile (tests): Add tst-sigsetjmp.
18751         * setjmp/tst-sigsetjmp.c: New test.
18752
18753 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
18754
18755         * sysdeps/x86_64/memset.S (memset): New implementation.
18756         (__bzero): Likewise.
18757         (__memset_tail): New function.
18758
18759 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
18760
18761         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
18762         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
18763         __memcpy_sse2_unaligned ifunc selection.
18764         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
18765         Add memcpy-sse2-unaligned.S.
18766         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
18767         Add: __memcpy_sse2_unaligned.
18768
18769 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
18770
18771         [BZ #15490]
18772         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
18773         math_force_eval before restoring floating-point envrionment.
18774         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
18775         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
18776         Likewise.
18777         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
18778         <math_private.h>.
18779         (__nearbyintl): Use math_force_eval before restoring
18780         floating-point environment.
18781         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
18782
18783         * math/gen-libm-test.pl (special_functions): Remove.
18784         (parse_args): Don't handle TEST_extra.  Handle functions with no
18785         return value.
18786         * math/libm-test.inc (struct test_sincos_data): Replace with
18787         struct test_fFF_11_data.
18788         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
18789         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
18790         (sincos_test_data): Change element type to struct
18791         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
18792         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
18793         RUN_TEST_LOOP_sincos.
18794         * math/README.libm-test: Don't mention special handling of
18795         individual functions.
18796         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
18797         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18798         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
18799         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18800         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
18801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18802
18803         * math/gen-libm-test.pl (get_variable): Remove function.
18804         (parse_args): Don't show pointer parameters to call in test
18805         names.  Use "extra output N" in test names for extra outputs
18806         rather than naming variables.
18807
18808 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
18809
18810         [BZ #15488]
18811         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
18812         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
18813         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
18814         double tests.
18815         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
18816         disable.
18817         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
18818         check_long_double.
18819
18820         * math/gen-libm-test.pl (@tests): Remove variable.
18821         ($count): Likewise.
18822         (new_test): Remove function.
18823         (show_exceptions): New function.
18824         (special_functions): Use show_exceptions instead of new_test.
18825         (parse_args): Likewise.
18826         (generate_testfile): Pass only function name in generated call to
18827         print_max_error or print_complex_max_error.
18828         (get_ulps): Do not handle complex tests specially.
18829         (output_test): Rename to ...
18830         (get_all_ulps_for_test): ... this.  Return a string rather than
18831         printing to a file.  Require ulps to be present.
18832         (output_ulps): Generate arrays rather than #defines.
18833         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
18834         (struct ulp_data): New type.
18835         (BUILD_COMPLEX_ULP): Remove macro.
18836         (compare_ulp_data): New function.
18837         (find_ulps): Likewise.
18838         (find_test_ulps): Likewise.
18839         (find_function_ulps): Likewise.
18840         (find_complex_function_ulps): Likewise.
18841         (print_max_error): Determine allowed ulps using
18842         find_function_ulps.
18843         (print_complex_max_error): Determine allowed ulps using
18844         find_complex_function_ulps.
18845         (check_float_internal): Determine max ulps using find_test_ulps.
18846         (check_float): Do not take max_ulp parameter.  Update call to
18847         check_float_internal.
18848         (check_complex): Likewise.
18849         (check_int): Do not take max_ulp parameter.
18850         (check_long): Likewise.
18851         (check_bool): Likewise.
18852         (check_longlong): Likewise.
18853         (struct test_f_f_data): Remove max_ulp field.
18854         (struct test_ff_f_data): Likewise.
18855         (struct test_ff_f_data_nexttoward): Likewise.
18856         (struct test_fi_f_data): Likewise.
18857         (struct test_fl_f_data): Likewise.
18858         (struct test_if_f_data): Likewise.
18859         (struct test_fff_f_data): Likewise.
18860         (struct test_c_f_data): Likewise.
18861         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
18862         (struct test_fF_f1_data): Likewise.
18863         (struct test_ffI_f1_data): Likewise.
18864         (struct test_c_c_data): Remove max_ulp field.
18865         (struct test_cc_c_data): Likewise.
18866         (struct test_f_i_data): Likewise.
18867         (struct test_ff_i_data): Likewise.
18868         (struct test_f_l_data): Likewise.
18869         (struct test_f_L_data): Likewise.
18870         (struct test_sincos_data): Likewise.
18871         (RUN_TEST_f_f): Do not handle ulps.
18872         (RUN_TEST_LOOP_f_f): Likewise.
18873         (RUN_TEST_2_f): Likewise.
18874         (RUN_TEST_LOOP_2_f): Likewise.
18875         (RUN_TEST_fff_f): Likewise.
18876         (RUN_TEST_LOOP_fff_f): Likewise.
18877         (RUN_TEST_c_f): Likewise.
18878         (RUN_TEST_LOOP_c_f): Likewise.
18879         (RUN_TEST_f_f1): Likewise.
18880         (RUN_TEST_LOOP_f_f1): Likewise.
18881         (RUN_TEST_fF_f1): Likewise.
18882         (RUN_TEST_LOOP_fF_f1): Likewise.
18883         (RUN_TEST_fI_f1): Likewise.
18884         (RUN_TEST_LOOP_fI_f1): Likewise.
18885         (RUN_TEST_ffI_f1): Likewise.
18886         (RUN_TEST_LOOP_ffI_f1): Likewise.
18887         (RUN_TEST_c_c): Likewise.
18888         (RUN_TEST_LOOP_c_c): Likewise.
18889         (RUN_TEST_cc_c): Likewise.
18890         (RUN_TEST_LOOP_cc_c): Likewise.
18891         (RUN_TEST_f_i): Likewise.
18892         (RUN_TEST_LOOP_f_i): Likewise.
18893         (RUN_TEST_f_i_tg): Likewise.
18894         (RUN_TEST_LOOP_f_i_tg): Likewise.
18895         (RUN_TEST_ff_i_tg): Likewise.
18896         (RUN_TEST_LOOP_ff_i_tg): Likewise.
18897         (RUN_TEST_f_b): Likewise.
18898         (RUN_TEST_LOOP_f_b): Likewise.
18899         (RUN_TEST_f_b_tg): Likewise.
18900         (RUN_TEST_LOOP_f_b_tg): Likewise.
18901         (RUN_TEST_f_l): Likewise.
18902         (RUN_TEST_LOOP_f_l): Likewise.
18903         (RUN_TEST_f_L): Likewise.
18904         (RUN_TEST_LOOP_f_L): Likewise.
18905         (RUN_TEST_sincos): Likewise.
18906         (RUN_TEST_LOOP_sincos): Likewise.
18907
18908 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
18909
18910         [BZ #15480]
18911         [BZ #15485]
18912         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
18913         main case of finite arguments, set rounding mode to FE_TONEAREST
18914         and discard exceptions.
18915         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
18916         exceptions.
18917         (remainder_tonearest_test_data): New variable.
18918         (remainder_test_tonearest): New function.
18919         (remainder_towardzero_test_data): New variable.
18920         (remainder_test_towardzero): New function.
18921         (remainder_downward_test_data): New variable.
18922         (remainder_test_downward): New function.
18923         (remainder_upward_test_data): New variable.
18924         (remainder_test_upward): New function.
18925         (main): Call the new test functions.
18926
18927         * math/libm-test.inc (struct test_f_f1_data): Remove field
18928         extra_init.
18929         (struct test_fF_f1_data): Likewise.
18930         (struct test_ffI_f1_data): Likewise.
18931         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
18932         based on value of EXTRA_EXPECTED.
18933         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
18934         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
18935         EXTRA_VAR based on value of EXTRA_EXPECTED.
18936         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
18937         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
18938         EXTRA_VAR based on value of EXTRA_EXPECTED.
18939         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
18940         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
18941         EXTRA_VAR based on value of EXTRA_EXPECTED.
18942         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
18943         * math/gen-libm-test.pl (parse_args): Don't output initializers
18944         for extra output values.
18945
18946         * math/libm-test.inc (check_int): Expect result to be exactly
18947         equal to expected value and do not handle ulps.
18948         (check_long): Likewise.
18949         (check_longlong): Likewise.
18950
18951         * math/libm-test.inc (ceil_test_data): Test for "inexact"
18952         exceptions.
18953         (cimag_test_data): Likewise.
18954         (conj_test_data): Likewise.
18955         (copysign_test_data): Likewise.
18956         (cproj_test_data): Likewise.
18957         (creal_test_data): Likewise.
18958         (fabs_test_data): Likewise.
18959         (fdim_test_data): Likewise.
18960         (finite_test_data): Likewise.
18961         (floor_test_data): Likewise.
18962         (fmax_test_data): Likewise.
18963         (fmin_test_data): Likewise.
18964         (fmod_test_data): Likewise.
18965         (fpclassify_test_data): Likewise.
18966         (frexp_test_data): Likewise.
18967         (ilogb_test_data): Likewise.
18968         (isfinite_test_data): Likewise.
18969         (isgreater_test_data): Likewise.
18970         (isgreaterequal_test_data): Likewise.
18971         (isinf_test_data): Likewise.
18972         (isless_test_data): Likewise.
18973         (islessequal_test_data): Likewise.
18974         (islessgreater_test_data): Likewise.
18975         (isnan_test_data): Likewise.
18976         (isnormal_test_data): Likewise.
18977         (issignaling_test_data): Likewise.
18978         (isunordered_test_data): Likewise.
18979         (ldexp_test_data): Likewise.
18980         (lrint_test_data): Likewise.
18981         (lrint_test_data) [TEST_FLOAT]: Disable one test.
18982         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
18983         (lrint_tonearest_test_data): Test for "inexact" exceptions.
18984         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
18985         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
18986         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
18987         test input.
18988         (lrint_towardzero_test_data): Test for "inexact" exceptions.
18989         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
18990         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
18991         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
18992         that test input.
18993         (lrint_downward_test_data): Test for "inexact" exceptions.
18994         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
18995         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
18996         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
18997         test input.
18998         (lrint_upward_test_data): Test for "inexact" exceptions.
18999         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
19000         test input.
19001         (llrint_test_data): Test for "inexact" exceptions.
19002         (llrint_test_data) [TEST_FLOAT]: Disable one test.
19003         (llrint_tonearest_test_data): Test for "inexact" exceptions.
19004         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
19005         (llrint_towardzero_test_data): Test for "inexact" exceptions.
19006         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
19007         (llrint_downward_test_data): Test for "inexact" exceptions.
19008         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
19009         (llrint_upward_test_data): Test for "inexact" exceptions.
19010         (logb_test_data): Likewise.
19011         (logb_downward_test_data): Likewise.
19012         (nextafter_test_data): Likewise.
19013         (nexttoward_test_data): Likewise.
19014         (remainder_test_data): Likewise.
19015         (remquo_test_data): Likewise.
19016         (scalbn_test_data): Likewise.
19017         (scalbln_test_data): Likewise.
19018         (signbit_test_data): Likewise.
19019         (sqrt_test_data): Likewise.
19020         (significand_test_data): Likewise.
19021
19022 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
19023
19024         [BZ #15424]
19025         * benchtests/bench-modf.c (struct args): Mark arg0 as
19026         volatile.
19027         * scripts/bench.pl: Mark members of struct args as volatile.
19028
19029 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19030
19031         [BZ # 15497]
19032         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
19033         negative infinity on POWER6 or lower.
19034         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
19035
19036 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
19037
19038         [BZ #15442]
19039         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
19040         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
19041         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
19042         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
19043         (_FP_SETQNAN): New macro.
19044         (_FP_SETQNAN_SEMIRAW): Likewise.
19045         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
19046         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
19047         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
19048         (FP_EXTEND): Use _FP_FRAC_SNANP.
19049         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
19050         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
19051         into account.
19052         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
19053         New macro.
19054         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
19055         Likewise.
19056
19057 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
19058
19059         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
19060         with DIVIDE_BY_ZERO_EXCEPTION.
19061         (gamma_test_data): Likewise.
19062         (lgamma_test_data): Likewise.
19063         (log_test_data): Likewise.
19064         (log10_test_data): Likewise.
19065         (log2_test_data): Likewise.
19066         (tgamma_test_data): Likewise.
19067
19068         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
19069         (acos_test_tonearest): Likewise.
19070         (acos_test_towardzero): Likewise.
19071         (acos_test_downward): Likewise.
19072         (acos_test_upward): Likewise.
19073         (acosh_test): Likewise.
19074         (asin_test): Likewise.
19075         (asin_test_tonearest): Likewise.
19076         (asin_test_towardzero): Likewise.
19077         (asin_test_downward): Likewise.
19078         (asin_test_upward): Likewise.
19079         (asinh_test): Likewise.
19080         (atan_test): Likewise.
19081         (atanh_test): Likewise.
19082         (atan2_test): Likewise.
19083         (cabs_test): Likewise.
19084         (cacos_test): Likewise.
19085         (cacosh_test): Likewise.
19086         (casin_test): Likewise.
19087         (casinh_test): Likewise.
19088         (catan_test): Likewise.
19089         (catanh_test): Likewise.
19090         (cbrt_test): Likewise.
19091         (ccos_test): Likewise.
19092         (ccosh_test): Likewise.
19093         (cexp_test): Likewise.
19094         (clog_test): Likewise.
19095         (clog10_test): Likewise.
19096         (cos_test): Likewise.
19097         (cos_test_tonearest): Likewise.
19098         (cos_test_towardzero): Likewise.
19099         (cos_test_downward): Likewise.
19100         (cos_test_upward): Likewise.
19101         (cosh_test): Likewise.
19102         (cosh_test_tonearest): Likewise.
19103         (cosh_test_towardzero): Likewise.
19104         (cosh_test_downward): Likewise.
19105         (cosh_test_upward): Likewise.
19106         (cpow_test): Likewise.
19107         (csin_test): Likewise.
19108         (csinh_test): Likewise.
19109         (csqrt_test): Likewise.
19110         (ctan_test): Likewise.
19111         (ctan_test_tonearest): Likewise.
19112         (ctan_test_towardzero): Likewise.
19113         (ctan_test_downward): Likewise.
19114         (ctan_test_upward): Likewise.
19115         (ctanh_test): Likewise.
19116         (ctanh_test_tonearest): Likewise.
19117         (ctanh_test_towardzero): Likewise.
19118         (ctanh_test_downward): Likewise.
19119         (ctanh_test_upward): Likewise.
19120         (erf_test): Likewise.
19121         (erfc_test): Likewise.
19122         (exp_test): Likewise.
19123         (exp_test_tonearest): Likewise.
19124         (exp_test_towardzero): Likewise.
19125         (exp_test_downward): Likewise.
19126         (exp_test_upward): Likewise.
19127         (exp10_test): Likewise.
19128         (exp2_test): Likewise.
19129         (expm1_test): Likewise.
19130         (fmod_test): Likewise.
19131         (gamma_test): Likewise.
19132         (hypot_test): Likewise.
19133         (j0_test): Likewise.
19134         (j1_test): Likewise.
19135         (jn_test): Likewise.
19136         (lgamma_test): Likewise.
19137         (log_test): Likewise.
19138         (log10_test): Likewise.
19139         (log1p_test): Likewise.
19140         (log2_test): Likewise.
19141         (logb_test_downward): Likewise.
19142         (pow_test): Likewise.
19143         (pow_test_tonearest): Likewise.
19144         (pow_test_towardzero): Likewise.
19145         (pow_test_downward): Likewise.
19146         (pow_test_upward): Likewise.
19147         (remainder_test): Likewise.
19148         (remquo_test): Likewise.
19149         (sin_test): Likewise.
19150         (sin_test_tonearest): Likewise.
19151         (sin_test_towardzero): Likewise.
19152         (sin_test_downward): Likewise.
19153         (sin_test_upward): Likewise.
19154         (sincos_test): Likewise.
19155         (sinh_test): Likewise.
19156         (sinh_test_tonearest): Likewise.
19157         (sinh_test_towardzero): Likewise.
19158         (sinh_test_downward): Likewise.
19159         (sinh_test_upward): Likewise.
19160         (sqrt_test): Likewise.
19161         (tan_test): Likewise.
19162         (tan_test_tonearest): Likewise.
19163         (tan_test_towardzero): Likewise.
19164         (tan_test_downward): Likewise.
19165         (tan_test_upward): Likewise.
19166         (tanh_test): Likewise.
19167         (tgamma_test): Likewise.
19168         (y0_test): Likewise.
19169         (y1_test): Likewise.
19170         (yn_test): Likewise.
19171
19172         * math/gen-libm-test.pl (adjust_arg): Remove function.
19173         (special_function): Remove argument $in_func.  Only handle
19174         generating output for tables of tests, not inside functions.
19175         (parse_args): Likewise.
19176         (generate_testfile): Remove variable $in_func.  Update call to
19177         parse_args.
19178         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
19179         (MINUS_ZERO_INIT): Rename macro to minus_zero.
19180         (PLUS_INFTY_INIT): Rename macro to plus_infty.
19181         (MINUS_INFTY_INIT): Rename macro to minus_infty.
19182         (QNAN_VALUE_INIT): Rename macro to qnan_value.
19183         (MAX_VALUE_INIT): Rename macro to max_value.
19184         (MIN_VALUE_INIT): Rename macro to min_value.
19185         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
19186         (plus_zero): Remove variable.
19187         (minus_zero): Likewise.
19188         (plus_infty): Likewise.
19189         (minus_infty): Likewise.
19190         (qnan_value): Likewise.
19191         (max_value): Likewise.
19192         (min_value): Likewise.
19193         (min_subnorm_value): Likewise.
19194
19195 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
19196
19197         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
19198         uint64_t or uint32_t usage.
19199         * crypt/sha256-block.c: Likewise.
19200         * crypt/sha256-crypt.c: Likewise.
19201         * crypt/sha256.c: Likewise.
19202         * crypt/sha512-block.c: Likewise.
19203         * crypt/sha512-crypt.c: Likewise.
19204         * crypt/sha512.c: Likewise.
19205         * debug/backtrace-tst.c: Likewise.
19206         * debug/pcprofiledump.c: Likewise.
19207         * elf/cache.c: Likewise.
19208         * elf/dl-cache.c: Likewise.
19209         * elf/dl-misc.c: Likewise.
19210         * elf/dl-profile.c: Likewise.
19211         * elf/dl-support.c: Likewise.
19212         * elf/ldconfig.c: Likewise.
19213         * elf/sprof.c: Likewise.
19214         * iconv/dummy-repertoire.c: Likewise.
19215         * iconv/iconv_charmap.c: Likewise.
19216         * iconv/skeleton.c: Likewise.
19217         * iconvdata/8bit-generic.c: Likewise.
19218         * iconvdata/cp737.h: Likewise.
19219         * iconvdata/cp775.h: Likewise.
19220         * iconvdata/ibm1008.h: Likewise.
19221         * iconvdata/ibm1025.h: Likewise.
19222         * iconvdata/ibm1046.h: Likewise.
19223         * iconvdata/ibm1097.h: Likewise.
19224         * iconvdata/ibm1112.h: Likewise.
19225         * iconvdata/ibm1122.h: Likewise.
19226         * iconvdata/ibm1123.h: Likewise.
19227         * iconvdata/ibm1124.h: Likewise.
19228         * iconvdata/ibm1129.h: Likewise.
19229         * iconvdata/ibm1130.h: Likewise.
19230         * iconvdata/ibm1132.h: Likewise.
19231         * iconvdata/ibm1133.h: Likewise.
19232         * iconvdata/ibm1137.h: Likewise.
19233         * iconvdata/ibm1140.h: Likewise.
19234         * iconvdata/ibm1141.h: Likewise.
19235         * iconvdata/ibm1142.h: Likewise.
19236         * iconvdata/ibm1143.h: Likewise.
19237         * iconvdata/ibm1144.h: Likewise.
19238         * iconvdata/ibm1145.h: Likewise.
19239         * iconvdata/ibm1146.h: Likewise.
19240         * iconvdata/ibm1147.h: Likewise.
19241         * iconvdata/ibm1148.h: Likewise.
19242         * iconvdata/ibm1149.h: Likewise.
19243         * iconvdata/ibm1153.h: Likewise.
19244         * iconvdata/ibm1154.h: Likewise.
19245         * iconvdata/ibm1155.h: Likewise.
19246         * iconvdata/ibm1156.h: Likewise.
19247         * iconvdata/ibm1157.h: Likewise.
19248         * iconvdata/ibm1158.h: Likewise.
19249         * iconvdata/ibm1160.h: Likewise.
19250         * iconvdata/ibm1161.h: Likewise.
19251         * iconvdata/ibm1162.h: Likewise.
19252         * iconvdata/ibm1163.h: Likewise.
19253         * iconvdata/ibm1164.h: Likewise.
19254         * iconvdata/ibm1166.h: Likewise.
19255         * iconvdata/ibm1167.h: Likewise.
19256         * iconvdata/ibm12712.h: Likewise.
19257         * iconvdata/ibm1390.h: Likewise.
19258         * iconvdata/ibm1399.h: Likewise.
19259         * iconvdata/ibm16804.h: Likewise.
19260         * iconvdata/ibm4517.h: Likewise.
19261         * iconvdata/ibm4899.h: Likewise.
19262         * iconvdata/ibm4909.h: Likewise.
19263         * iconvdata/ibm4971.h: Likewise.
19264         * iconvdata/ibm5347.h: Likewise.
19265         * iconvdata/ibm803.h: Likewise.
19266         * iconvdata/ibm856.h: Likewise.
19267         * iconvdata/ibm901.h: Likewise.
19268         * iconvdata/ibm902.h: Likewise.
19269         * iconvdata/ibm9030.h: Likewise.
19270         * iconvdata/ibm9066.h: Likewise.
19271         * iconvdata/ibm921.h: Likewise.
19272         * iconvdata/ibm922.h: Likewise.
19273         * iconvdata/ibm9448.h: Likewise.
19274         * iconvdata/isiri-3342.h: Likewise.
19275         * iconvdata/jis0201.h: Likewise.
19276         * include/link.h: Likewise.
19277         * include/netdb.h: Likewise.
19278         * inet/check_native.c: Likewise.
19279         * inet/check_pf.c: Likewise.
19280         * inet/getipv4sourcefilter.c: Likewise.
19281         * inet/getnameinfo.c: Likewise.
19282         * inet/getsourcefilter.c: Likewise.
19283         * inet/htonl.c: Likewise.
19284         * inet/setipv4sourcefilter.c: Likewise.
19285         * inet/setsourcefilter.c: Likewise.
19286         * inet/test-inet6_opt.c: Likewise.
19287         * inet/tst-network.c: Likewise.
19288         * locale/C-collate.c: Likewise.
19289         * locale/C-ctype.c: Likewise.
19290         * locale/C-time.c: Likewise.
19291         * locale/C-translit.h: Likewise.
19292         * locale/loadarchive.c: Likewise.
19293         * locale/programs/3level.h: Likewise.
19294         * locale/programs/charmap.c: Likewise.
19295         * locale/programs/charmap.h: Likewise.
19296         * locale/programs/ld-address.c: Likewise.
19297         * locale/programs/ld-collate.c: Likewise.
19298         * locale/programs/ld-ctype.c: Likewise.
19299         * locale/programs/ld-identification.c: Likewise.
19300         * locale/programs/ld-measurement.c: Likewise.
19301         * locale/programs/ld-messages.c: Likewise.
19302         * locale/programs/ld-monetary.c: Likewise.
19303         * locale/programs/ld-name.c: Likewise.
19304         * locale/programs/ld-numeric.c: Likewise.
19305         * locale/programs/ld-paper.c: Likewise.
19306         * locale/programs/ld-telephone.c: Likewise.
19307         * locale/programs/ld-time.c: Likewise.
19308         * locale/programs/linereader.c: Likewise.
19309         * locale/programs/locale.c: Likewise.
19310         * locale/programs/locarchive.c: Likewise.
19311         * locale/programs/locfile.h: Likewise.
19312         * locale/programs/repertoire.c: Likewise.
19313         * locale/programs/simple-hash.c: Likewise.
19314         * locale/programs/simple-hash.h: Likewise.
19315         * malloc/memusage.c: Likewise.
19316         * malloc/memusagestat.c: Likewise.
19317         * nis/nis_defaults.c: Likewise.
19318         * nis/nis_hash.c: Likewise.
19319         * nis/nis_print.c: Likewise.
19320         * nis/nis_xdr.c: Likewise.
19321         * nscd/connections.c: Likewise.
19322         * nscd/hstcache.c: Likewise.
19323         * nscd/nscd_gethst_r.c: Likewise.
19324         * nscd/nscd_getserv_r.c: Likewise.
19325         * nscd/nscd_helper.c: Likewise.
19326         * nscd/servicescache.c: Likewise.
19327         * nss/makedb.c: Likewise.
19328         * nss/nss_db/db-XXX.c: Likewise.
19329         * nss/nss_db/db-initgroups.c: Likewise.
19330         * nss/nss_db/db-netgrp.c: Likewise.
19331         * nss/nss_files/files-network.c: Likewise.
19332         * nss/nss_files/files-parse.c: Likewise.
19333         * posix/bug-regex5.c: Likewise.
19334         * posix/fnmatch_loop.c: Likewise.
19335         * posix/regcomp.c: Likewise.
19336         * posix/regexec.c: Likewise.
19337         * posix/tst-rfc3484-2.c: Likewise.
19338         * posix/tst-rfc3484-3.c: Likewise.
19339         * posix/tst-rfc3484.c: Likewise.
19340         * resolv/nss_dns/dns-canon.c: Likewise.
19341         * resolv/nss_dns/dns-network.c: Likewise.
19342         * resolv/res_init.c: Likewise.
19343         * resolv/res_mkquery.c: Likewise.
19344         * resolv/tst-aton.c: Likewise.
19345         * stdlib/cxa_atexit.c: Likewise.
19346         * stdlib/cxa_finalize.c: Likewise.
19347         * stdlib/gen-fpioconst.c: Likewise.
19348         * stdlib/strtol_l.c: Likewise.
19349         * string/tst-endian.c: Likewise.
19350         * sunrpc/auth_des.c: Likewise.
19351         * sunrpc/clnt_udp.c: Likewise.
19352         * sunrpc/rtime.c: Likewise.
19353         * sunrpc/svcauth_des.c: Likewise.
19354         * sunrpc/xdr.c: Likewise.
19355         * sunrpc/xdr_intXX_t.c: Likewise.
19356         * sunrpc/xdr_rec.c: Likewise.
19357         * sysdeps/generic/ldconfig.h: Likewise.
19358         * sysdeps/generic/ldsodefs.h: Likewise.
19359         * sysdeps/generic/memusage.h: Likewise.
19360         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
19361         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
19362         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
19363         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
19364         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
19365         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19366         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
19367         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
19368         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
19369         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
19370         * sysdeps/posix/getaddrinfo.c: Likewise.
19371         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
19372         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
19373         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
19374         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
19375         * sysdeps/powerpc/test-gettimebase.c: Likewise.
19376         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
19377         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
19378         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
19379         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
19380         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
19381         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
19382         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
19383         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
19384         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
19385         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
19386         * sysdeps/x86_64/dl-tls.h: Likewise.
19387         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
19388         * time/alt_digit.c: Likewise.
19389         * time/era.c: Likewise.
19390         * wcsmbs/tst-c16c32-1.c: Likewise.
19391
19392 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
19393
19394         * math/libm-test.inc (struct test_sincos_data): New type.
19395         (RUN_TEST_LOOP_sincos): New macro.
19396         (sincos_test_data): New variable.
19397         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
19398
19399 2013-05-16  Richard Henderson  <rth@redhat.com>
19400
19401         * math/atest-exp2.c (LIMB64): New macro.
19402         (CONSTSZ): New macro.
19403         (mp_exp1, mp_exp_m1, mp_log2): New variables.
19404         (hexdig): Move ...
19405         (print_mpn_fp): ... to function scope.
19406         (read_mpn_hex): Remove.
19407         (get_log2): Remove.
19408         (exp2_mpn): Use mp_log2.
19409         (main): Use mp_exp1.
19410
19411 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
19412
19413         * math/libm-test.inc: Remove comment about not testing "inexact"
19414         exceptions.
19415         (INEXACT_EXCEPTION): New macro.
19416         (NO_INEXACT_EXCEPTION): Likewise.
19417         (INVALID_EXCEPTION_OK): Update value.
19418         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
19419         (OVERFLOW_EXCEPTION_OK): Likewise.
19420         (UNDERFLOW_EXCEPTION_OK): Likewise.
19421         (IGNORE_ZERO_INF_SIGN): Likewise.
19422         (ERRNO_UNCHANGED): Likewise.
19423         (ERRNO_EDOM): Likewise.
19424         (ERRNO_ERANGE): Likewise.
19425         (test_exceptions): Handle testing "inexact" exceptions.
19426         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
19427         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
19428         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
19429         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
19430         INEXACT_EXCEPTION.
19431         (rint_towardzero_test_data): Likewise.
19432         (rint_downward_test_data): Likewise.
19433         (rint_upward_test_data): Likewise.
19434
19435         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
19436         with OVERFLOW_EXCEPTION.
19437         (exp10_test_data): Likewise.
19438         (exp2_test_data): Likewise.
19439         (expm1_test_data): Likewise.
19440         (lgamma_test_data): Likewise.
19441         (pow_test_data): Likewise.
19442         (tgamma_test_data): Likewise.
19443         (yn_test_data): Remove duplicate test of overflow.
19444
19445         * math/libm-test.inc (struct test_cc_c_data): New type.
19446         (RUN_TEST_LOOP_cc_c): New macro.
19447         (cpow_test_data): New variable.
19448         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
19449
19450         * math/libm-test.inc (struct test_f_L_data): New type.
19451         (RUN_TEST_LOOP_f_L): New macro.
19452         (llrint_test_data): New variable.
19453         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
19454         (llrint_tonearest_test_data): New variable.
19455         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
19456         (llrint_towardzero_test_data): New variable.
19457         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
19458         (llrint_downward_test_data): New variable.
19459         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
19460         (llrint_upward_test_data): New variable.
19461         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
19462         (llround_test_data): New variable.
19463         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
19464
19465 2013-05-13  Peter Collingbourne  <pcc@google.com>
19466
19467         * math/atest-exp2.c (get_log2): Remove const attribute.
19468
19469 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
19470
19471         * math/libm-test.inc (struct test_f_l_data): New type.
19472         (RUN_TEST_LOOP_f_l): New macro.
19473         (lrint_test_data): New variable.
19474         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
19475         (lrint_tonearest_test_data): New variable.
19476         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
19477         (lrint_towardzero_test_data): New variable.
19478         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
19479         (lrint_downward_test_data): New variable.
19480         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
19481         (lrint_upward_test_data): New variable.
19482         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
19483         (lround_test_data): New variable.
19484         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
19485
19486 2013-05-15  Peter Collingbourne  <pcc@google.com>
19487
19488         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
19489         (EXTRACT_WORDS64) Use where appropriate.
19490         (INSERT_WORDS64) Likewise.
19491
19492         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
19493         constraints with x constraints.
19494         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
19495
19496         * malloc/obstack.c (_obstack_compat): Add initializer.
19497
19498 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
19499
19500         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
19501         si_trapno and add si_addr_lsb to _sifields.sigfault.
19502         (si_trapno): Remove macro.
19503         (si_addr_lsb): Define new macro.
19504         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
19505
19506 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
19507
19508         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
19509         instead of TEST_f_l.
19510         (llrint_test_tonearest): Likewise.
19511         (llrint_test_towardzero): Likewise.
19512         (llrint_test_downward): Likewise.
19513         (llrint_test_upward): Likewise.
19514         (llround_test): Likewise.
19515
19516         * math/libm-test.inc (struct test_f_i_data): Add comment.
19517         (RUN_TEST_LOOP_f_b): New macro.
19518         (RUN_TEST_LOOP_f_b_tg): Likewise.
19519         (finite_test_data): New variable.
19520         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
19521         (isfinite_test_data): New variable.
19522         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
19523         (isinf_test_data): New variable.
19524         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
19525         (isnan_test_data): New variable.
19526         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
19527         (isnormal_test_data): New variable.
19528         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
19529         (issignaling_test_data): New variable.
19530         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
19531         (signbit_test_data): New variable.
19532         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
19533
19534         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
19535         with INVALID_EXCEPTION.
19536         (acosh_test_data): Likewise.
19537         (asin_test_data): Likewise.
19538         (atanh_test_data): Likewise.
19539         (fmod_test_data): Likewise.
19540         (log_test_data): Likewise.
19541         (log10_test_data): Likewise.
19542         (log2_test_data): Likewise.
19543         (pow_test_data): Likewise.
19544         (sqrt_test_data): Likewise.
19545         (y0_test_data): Likewise.
19546         (y1_test_data): Likewise.
19547         (yn_test_data): Likewise.
19548
19549         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
19550         function contents.
19551
19552         * math/libm-test.inc (struct test_ff_i_data): New type.
19553         (RUN_TEST_LOOP_ff_i_tg): New macro.
19554         (isgreater_test_data): New variable.
19555         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
19556         (isgreaterequal_test_data): New variable.
19557         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
19558         (isless_test_data): New variable.
19559         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
19560         (islessequal_test_data): New variable.
19561         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
19562         (islessgreater_test_data): New variable.
19563         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
19564         (isunordered_test_data): New variable.
19565         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
19566
19567 2013-05-14  David S. Miller  <davem@davemloft.net>
19568
19569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19570
19571 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
19572
19573         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
19574
19575         * math/libm-test.inc (struct test_fF_f1_data): Change type of
19576         extra_test to int.
19577         (struct test_f_i_data): Change type of max_ulp to int.
19578
19579         * math/libm-test.inc (test_ffI_f1_data): New type.
19580         (RUN_TEST_LOOP_ffI_f1): New macro.
19581         (remquo_test_data): New variable.
19582         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
19583
19584         * setjmp/tst-setjmp-fp.c: New file.
19585         * setjmp/Makefile (tests): Add tst-setjmp-fp.
19586         (link-libm): New variable.
19587         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
19588
19589         * math/libm-test.inc (struct test_f_i_data): New type.
19590         (RUN_TEST_LOOP_f_i): New macro.
19591         (RUN_TEST_LOOP_f_i_tg): Likewise.
19592         (fpclassify_test_data): New variable.
19593         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
19594         (ilogb_test_data): New variable.
19595         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
19596
19597         * math/libm-test.inc (scalbln_test): Correct function name in END
19598         call.
19599
19600         * math/libm-test.inc (struct test_f_f1_data): Add comment.
19601         (RUN_TEST_LOOP_fI_f1): New macro.
19602         (frexp_test_data): New variable.
19603         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
19604
19605         * math/libm-test.inc (struct test_fF_f1_data): New type.
19606         (RUN_TEST_LOOP_fF_f1): New macro.
19607         (modf_test_data): New variable.
19608         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
19609
19610         * math/libm-test.inc (struct test_f_f1_data): New type.
19611         (RUN_TEST_LOOP_f_f1): New macro.
19612         (gamma_test_data): New variable.
19613         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
19614         (lgamma_test_data): New variable.
19615         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
19616
19617 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
19618
19619         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
19620         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
19621         (main): Comment "tls" pseudo-hwcap.
19622
19623 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
19624
19625         * math/libm-test.inc (struct test_fl_f_data): New type.
19626         (RUN_TEST_LOOP_fl_f): New variable.
19627         (scalbln_test_data): New variable.
19628         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
19629
19630         * math/libm-test.inc (struct test_fi_f_data): New type.
19631         (RUN_TEST_LOOP_fi_f): New macro.
19632         (ldexp_test_data): New variable.
19633         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
19634         (scalbn_test_data): New variable.
19635         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
19636
19637         * math/libm-test.inc (struct test_c_f_data): New type.
19638         (RUN_TEST_LOOP_c_f): New macro.
19639         (cabs_test_data): New variable.
19640         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
19641         (carg_test_data): New variable.
19642         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
19643         (cimag_test_data): New variable.
19644         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
19645         (creal_test_data): New variable.
19646         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
19647
19648         * math/libm-test.inc (struct test_if_f_data): New type.
19649         (RUN_TEST_LOOP_if_f): New macro.
19650         (jn_test_data): New variable.
19651         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
19652         (yn_test_data): New variable.
19653         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
19654
19655         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
19656
19657 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19658
19659         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
19660         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
19661
19662 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
19663
19664         * benchtests/Makefile (CPPFLAGS-nonlib): Add
19665         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
19666         (bench-deps): Add bench-timing.h.
19667         * benchtests-bench-skeleton.c: Include bench-timing.h.
19668         (main): Use TIMING_* macros instead of clock_gettime.
19669         * benchtests/bench-timing.h: New file.
19670
19671         [BZ #14582]
19672         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
19673         Renamed from _LIB_VERSION.
19674         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
19675
19676 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
19677
19678         * math/libm-test.inc (struct test_fff_f_data): New type.
19679         (RUN_TEST_LOOP_fff_f): New macro.
19680         (fma_test_data): New variable.
19681         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
19682         (fma_towardzero_test_data): New variable.
19683         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
19684         (fma_downward_test_data): New variable.
19685         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
19686         (fma_upward_test_data): New variable.
19687         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
19688
19689         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
19690         (struct test_c_c_data): New type.
19691         (RUN_TEST_LOOP_c_c): New macro.
19692         (cacos_test_data): New variable.
19693         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
19694         (cacosh_test_data): New variable.
19695         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
19696         (casin_test_data): New variable.
19697         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
19698         (casinh_test_data): New variable.
19699         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
19700         (catan_test_data): New variable.
19701         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
19702         (catanh_test_data): New variable.
19703         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
19704         (ccos_test_data): New variable.
19705         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
19706         (ccosh_test_data): New variable.
19707         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
19708         (cexp_test_data): New variable.
19709         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
19710         (clog_test_data): New variable.
19711         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
19712         (clog10_test_data): New variable.
19713         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
19714         (conj_test_data): New variable.
19715         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
19716         (cproj_test_data): New variable.
19717         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
19718         (csin_test_data): New variable.
19719         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
19720         (csinh_test_data): New variable.
19721         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
19722         (csqrt_test_data): New variable.
19723         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
19724         (ctan_test_data): New variable.
19725         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
19726         (ctan_tonearest_test_data): New variable.
19727         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
19728         (ctan_towardzero_test_data): New variable.
19729         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
19730         (ctan_downward_test_data): New variable.
19731         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
19732         (ctan_upward_test_data): New variable.
19733         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
19734         (ctanh_test_data): New variable.
19735         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
19736         (ctanh_tonearest_test_data): New variable.
19737         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
19738         (ctanh_towardzero_test_data): New variable.
19739         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
19740         (ctanh_downward_test_data): New variable.
19741         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
19742         (ctanh_upward_test_data): New variable.
19743         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
19744         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
19745         of BUILD_COMPLEX.
19746
19747         * math/libm-test.inc (struct test_ff_f_data): New type.
19748         (struct test_ff_f_data_nexttoward): Likewise.
19749         (RUN_TEST_LOOP_2_f): New macro.
19750         (RUN_TEST_LOOP_ff_f): Likewise.
19751         (atan2_test_data): New variable.
19752         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
19753         (copysign_test_data): New variable.
19754         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
19755         (fdim_test_data): New variable.
19756         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
19757         (fmax_test_data): New variable.
19758         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
19759         (fmin_test_data): New variable.
19760         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
19761         (fmod_test_data): New variable.
19762         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
19763         (hypot_test_data): New variable.
19764         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
19765         (nextafter_test_data): New variable.
19766         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
19767         (nexttoward_test_data): New variable.
19768         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
19769         (pow_test_data): New variable.
19770         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
19771         (pow_tonearest_test_data): New variable.
19772         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
19773         (pow_towardzero_test_data): New variable.
19774         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
19775         (pow_downward_test_data): New variable.
19776         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
19777         (pow_upward_test_data): New variable.
19778         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
19779         (remainder_test_data): New variable.
19780         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
19781         (scalb_test_data): New variable.
19782         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
19783         * sysdeps/i386/fpu/libm-test-ulps: Update.
19784
19785 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
19786
19787         * math/libm-test.inc (fma_test): Use max_value instead of local
19788         variable fltmax.
19789         (nextafter_test): Likewise.
19790
19791         * math/libm-test.inc (acos_towardzero_test_data): New variable.
19792         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19793         (acos_downward_test_data): New variable.
19794         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19795         (acos_upward_test_data): New variable.
19796         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19797         (acosh_test_data): New variable.
19798         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
19799         (asin_test_data): New variable.
19800         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
19801         (asin_tonearest_test_data): New variable.
19802         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19803         (asin_towardzero_test_data): New variable.
19804         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19805         (asin_downward_test_data): New variable.
19806         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19807         (asin_upward_test_data): New variable.
19808         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19809         (asinh_test_data): New variable.
19810         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
19811         (atan_test_data): New variable.
19812         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
19813         (atanh_test_data): New variable.
19814         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
19815         (cbrt_test_data): New variable.
19816         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
19817         (ceil_test_data): New variable.
19818         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
19819         (cos_test_data): New variable.
19820         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
19821         (cos_tonearest_test_data): New variable.
19822         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19823         (cos_towardzero_test_data): New variable.
19824         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19825         (cos_downward_test_data): New variable.
19826         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19827         (cos_upward_test_data): New variable.
19828         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19829         (cosh_test_data): New variable.
19830         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
19831         (cosh_tonearest_test_data): New variable.
19832         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19833         (cosh_towardzero_test_data): New variable.
19834         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19835         (cosh_downward_test_data): New variable.
19836         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19837         (cosh_upward_test_data): New variable.
19838         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19839         (erf_test_data): New variable.
19840         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
19841         (erfc_test_data): New variable.
19842         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
19843         (exp_test_data): New variable.
19844         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
19845         (exp_tonearest_test_data): New variable.
19846         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19847         (exp_towardzero_test_data): New variable.
19848         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19849         (exp_downward_test_data): New variable.
19850         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19851         (exp_upward_test_data): New variable.
19852         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19853         (exp10_test_data): New variable.
19854         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
19855         (exp2_test_data): New variable.
19856         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
19857         (expm1_test_data): New variable.
19858         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
19859         (fabs_test_data): New variable.
19860         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
19861         (floor_test_data): New variable.
19862         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
19863         (j0_test_data): New variable.
19864         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
19865         (j1_test_data): New variable.
19866         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
19867         (log_test_data): New variable.
19868         (log_test): Run tests with RUN_TEST_LOOP_f_f.
19869         (log10_test_data): New variable.
19870         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
19871         (log1p_test_data): New variable.
19872         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
19873         (log2_test_data): New variable.
19874         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
19875         (logb_test_data): New variable.
19876         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
19877         (logb_downward_test_data): New variable.
19878         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19879         (nearbyint_test_data): New variable.
19880         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
19881         (rint_test_data): New variable.
19882         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
19883         (rint_tonearest_test_data): New variable.
19884         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19885         (rint_towardzero_test_data): New variable.
19886         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19887         (rint_downward_test_data): New variable.
19888         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19889         (rint_upward_test_data): New variable.
19890         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19891         (round_test_data): New variable.
19892         (round_test): Run tests with RUN_TEST_LOOP_f_f.
19893         (sin_test_data): New variable.
19894         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
19895         (sin_tonearest_test_data): New variable.
19896         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19897         (sin_towardzero_test_data): New variable.
19898         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19899         (sin_downward_test_data): New variable.
19900         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19901         (sin_upward_test_data): New variable.
19902         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19903         (sinh_test_data): New variable.
19904         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
19905         (sinh_tonearest_test_data): New variable.
19906         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19907         (sinh_towardzero_test_data): New variable.
19908         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19909         (sinh_downward_test_data): New variable.
19910         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19911         (sinh_upward_test_data): New variable.
19912         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19913         (sqrt_test_data): New variable.
19914         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
19915         (tan_test_data): New variable.
19916         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
19917         (tan_tonearest_test_data): New variable.
19918         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19919         (tan_towardzero_test_data): New variable.
19920         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
19921         (tan_downward_test_data): New variable.
19922         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
19923         (tan_upward_test_data): New variable.
19924         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
19925         (tanh_test_data): New variable.
19926         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
19927         (tgamma_test_data): New variable.
19928         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
19929         (trunc_test_data): New variable.
19930         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
19931         (y0_test_data): New variable.
19932         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
19933         (y1_test_data): New variable.
19934         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
19935         (significand_test_data): New variable.
19936         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
19937
19938 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
19939
19940         [BZ #12387]
19941         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
19942
19943 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19944
19945         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
19946
19947 2013-05-10  Andreas Jaeger  <aj@suse.de>
19948
19949         [BZ #15448]
19950         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
19951         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
19952
19953 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
19954
19955         * math/gen-libm-test.pl (adjust_arg): New function.
19956         (special_functions): Handle generating output in both functions
19957         and arrays.
19958         (parse_args): Likewise.
19959         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
19960         $in_func argument to parse_args.
19961         * math/libm-test.inc (struct test_f_f_data): New type.
19962         (IF_ROUND_INIT_): New macro.
19963         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
19964         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
19965         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
19966         (IF_ROUND_INIT_FE_UPWARD): Likewise.
19967         (ROUND_RESTORE_): Likewise.
19968         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
19969         (ROUND_RESTORE_FE_TONEAREST): Likewise.
19970         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
19971         (ROUND_RESTORE_FE_UPWARD): Likewise.
19972         (RUN_TEST_LOOP_f_f): New macro.
19973         (acos_test_data): New variable.
19974         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
19975         (acos_tonearest_test_data): New variable.
19976         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
19977
19978 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
19979
19980         * benchtests/bench-skeleton.c (startup): Fix coding style.
19981
19982 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
19983
19984         [BZ #6809]
19985         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
19986         negative infinity argument.
19987         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
19988         negative infinity argument.
19989         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
19990         negative infinity argument.
19991         * math/libm-test.inc (tgamma_test): Expect errno to be set for
19992         domain errors.
19993
19994 2013-05-10  Florian Weimer  <fweimer@redhat.com>
19995
19996         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
19997         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
19998         * iconv/iconv_prog.c (main): Likewise.
19999         * locale/programs/charmap-dir.c (charmap_readdir)
20000         (fopen_uncompressed): Likewise.
20001         * locale/programs/locfile.c (siblings_uncached)
20002         (write_locale_data): Use lstat64 instead of lstat.
20003         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
20004         stat.
20005
20006 2013-05-10  Andreas Jaeger  <aj@suse.de>
20007
20008         [BZ #15395]
20009         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
20010         localization.
20011         Include <locale.h>.
20012
20013 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
20014
20015         * elf/dl-close.c (_dl_close_worker): Add comments.
20016
20017 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
20018
20019         [BZ #15359]
20020         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
20021         high part of pi/2.
20022         (__ieee754_rem_pio2l): Update comments.
20023
20024         [BZ #15429]
20025         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
20026         high part of pi/2.
20027         (__ieee754_rem_pio2l): Update comments.
20028
20029         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
20030         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
20031
20032         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
20033         M_PI_4l.
20034
20035         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
20036         (M_PI_34_LOG10El): Likewise.
20037         (M_PI2_LOG10El): Likewise.
20038         (M_PI4_LOG10El): Likewise.
20039         (M_PI_LOG10El): Likewise.
20040
20041 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20042
20043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20044
20045 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
20046
20047         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
20048         (MINUS_ZERO_INIT): Likewise.
20049         (PLUS_INFTY_INIT): Likewise.
20050         (MINUS_INFTY_INIT): Likewise.
20051         (QNAN_VALUE_INIT): Likewise.
20052         (MAX_VALUE_INIT): Likewise.
20053         (MIN_VALUE_INIT): Likewise.
20054         (MIN_SUBNORM_VALUE_INIT): Likewise.
20055         (plus_zero): Initialize with PLUS_ZERO_INIT.
20056         (minus_zero): Initialize with MINUS_ZERO_INIT.
20057         (plus_infty): Initialize with PLUS_INFTY_INIT.
20058         (minus_infty): Initialize with MINUS_INFTY_INIT.
20059         (qnan_value): Initialize with QNAN_VALUE_INIT.
20060         (max_value): Initialize with MAX_VALUE_INIT.
20061         (min_value): Initialize with MIN_VALUE_INIT.
20062         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
20063
20064         * math/libm-test.inc (RUN_TEST_if_f): New macro.
20065         (jn_test): Use TEST_if_f instead of TEST_ff_f.
20066         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
20067         (yn_test): Use TEST_if_f instead of TEST_ff_f.
20068
20069         * math/libm-test.inc (RUN_TEST_f_f): New macro.
20070         (RUN_TEST_2_f): Likewise.
20071         (RUN_TEST_ff_f): Likewise.
20072         (RUN_TEST_fi_f): Likewise.
20073         (RUN_TEST_fl_f): Likewise.
20074         (RUN_TEST_fff_f): Likewise.
20075         (RUN_TEST_c_f): Likewise.
20076         (RUN_TEST_f_f1): Likewise.
20077         (RUN_TEST_fF_f1): Likewise.
20078         (RUN_TEST_fI_f1): Likewise.
20079         (RUN_TEST_ffI_f1): Likewise.
20080         (RUN_TEST_c_c): Likewise.
20081         (RUN_TEST_cc_c): Likewise.
20082         (RUN_TEST_f_i): Likewise.
20083         (RUN_TEST_f_i_tg): Likewise.
20084         (RUN_TEST_ff_i_tg): Likewise.
20085         (RUN_TEST_f_b): Likewise.
20086         (RUN_TEST_f_b_tg): Likewise.
20087         (RUN_TEST_f_l): Likewise.
20088         (RUN_TEST_f_L): Likewise.
20089         (RUN_TEST_sincos): Likewise.
20090         * math/gen-libm-test.pl (new_test): Take new argument to indicate
20091         whether to show exceptions.  Do not include ");\n" in return
20092         value.
20093         (special_functions): Output call to RUN_TEST_sincos instead of
20094         check_float calls.  Update calls to new_test.
20095         (parse_args): Output call to single RUN_TEST_* macro instead of
20096         check_* calls and other assignments.  Update calls to new_test.
20097
20098         [BZ #2546]
20099         [BZ #2560]
20100         [BZ #5159]
20101         [BZ #15426]
20102         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
20103         input to result for tgamma overflow.
20104         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
20105         (gamma_coeff): New variable.
20106         (NCOEFF): New macro.
20107         (gamma_positive): New function.
20108         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
20109         underflow here.  Use gamma_positive instead of exp (lgamma) for
20110         other arguments.
20111         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
20112         (gamma_coeff): New variable.
20113         (NCOEFF): New macro.
20114         (gammaf_positive): New function.
20115         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
20116         underflow here.  Use gamma_positive instead of exp (lgamma) for
20117         other arguments.
20118         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
20119         (gamma_coeff): New variable.
20120         (NCOEFF): New macro.
20121         (gammal_positive): New function.
20122         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
20123         underflow here.  Use gamma_positive instead of exp (lgamma) for
20124         other arguments.
20125         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
20126         (gamma_coeff): New variable.
20127         (NCOEFF): New macro.
20128         (gammal_positive): New function.
20129         (__ieee754_gammal_r): Handle positive infinity, overflow and
20130         underflow here.  Handle NaN the same as positive infinity.  Remove
20131         check x < 0xffffffff for negative integers.  Use gamma_positive
20132         instead of exp (lgamma) for other arguments.
20133         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
20134         (gamma_coeff): New variable.
20135         (NCOEFF): New macro.
20136         (gammal_positive): New function.
20137         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
20138         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
20139         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
20140         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
20141         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
20142         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
20143         * sysdeps/generic/math_private.h (__gamma_productf): New
20144         prototype.
20145         (__gamma_product): Likewise.
20146         (__gamma_productl): Likewise.
20147         * math/Makefile (libm-calls): Add gamma_product.
20148         * math/libm-test.inc (tgamma_test): Add more tests.
20149         * sysdeps/i386/fpu/libm-test-ulps: Update.
20150         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20151
20152 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
20153
20154         * benchtests/bench-skeleton.c (main): Preheat CPU.
20155
20156 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
20157
20158         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
20159
20160 2013-05-07  Roland McGrath  <roland@hack.frob.com>
20161
20162         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
20163         and _dl_skip_args_internal.
20164
20165 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
20166
20167         * manual/message.texi (Message Translation): Talk about users.
20168         Message to key mapping impacts design.
20169
20170 2013-05-06  Roland McGrath  <roland@hack.frob.com>
20171
20172         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
20173
20174         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
20175
20176         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
20177         * sysdeps/wordsize-64/glob64.c: ... here.
20178
20179         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
20180         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
20181         New macros.
20182
20183         * debug/getlogin_r_chk.c: Moved to ...
20184         * login/getlogin_r_chk.c: ... here.
20185         * debug/Makefile (routines): Move getlogin_r_chk to ...
20186         * login/Makefile (routines): ... here.
20187         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
20188         * login/Versions (libc: GLIBC_2.4): ... here.
20189
20190         * io/poll.c (__poll): Renamed from poll.
20191         Add libc_hidden_def.
20192         (poll): Define as weak alias.
20193
20194         * debug/ptsname_r_chk.c: Moved to ...
20195         * login/ptsname_r_chk.c: ... here.
20196         * debug/Makefile (routines): Move ptsname_r_chk to ...
20197         * login/Makefile (routines): ... here.
20198         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
20199         * login/Versions (libc: GLIBC_2.4): ... here.
20200
20201         * posix/getlogin.c: Moved to ...
20202         * login/getlogin.c: ... here.
20203         * posix/getlogin_r.c: Moved to ...
20204         * login/getlogin_r.c: ... here.
20205         * posix/getlogin_r.c: Moved to ...
20206         * login/getlogin_r.c: ... here.
20207         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
20208         * login/Makefile (routines): ... here.
20209         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
20210         * login/Versions (libc: GLIBC_2.0): ... here.
20211
20212         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
20213         (setrlimit): Define as weak alias.
20214
20215         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
20216         Call __ names for open, ftruncate, and close.
20217         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
20218         (truncate): Define as weak alias.
20219
20220 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
20221
20222         * math/gen-libm-test.pl (parse_args): Initialize x before each
20223         test of frexp, modf and remquo.
20224
20225         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
20226         test signgam value.
20227
20228 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20229
20230         [BZ #15418]
20231         [BZ #15419]
20232         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
20233         internal tests.
20234         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
20235
20236 2013-05-06  Roland McGrath  <roland@hack.frob.com>
20237
20238         * elf/dl-writev.h: New file.
20239         * elf/dl-misc.c: Include it.
20240         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
20241         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
20242
20243 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
20244
20245         * math/libm-test.inc (noXFails): Remove variable.
20246         (noXPasses): Likewise.
20247         (BUILD_COMPLEX_INT): Remove macro.
20248         (print_screen): Remove xfail argument.
20249         (print_screen_max_error): Likewise.
20250         (update_stats): Likewise.
20251         (print_max_error): Likewise.  Update calls to other affected
20252         functions.
20253         (print_complex_max_error): Likewise.
20254         (test_single_exception): Update calls to print_screen.
20255         (test_single_errno): Likewise.
20256         (check_float_internal): Remove xfail argument.  Update calls to
20257         other affected functions.
20258         (check_float): Likewise.
20259         (check_complex): Likewise.
20260         (check_int): Likewise.
20261         (check_long): Likewise.
20262         (check_bool): Likewise.
20263         (check_longlong): Likewise.
20264         (main): Don't print noXFails and noXPasses.
20265         * math/gen-libm-test.pl (top level): Don't mention expected
20266         failure handling in comment.
20267         (new_test): Don't handle expected failures.
20268         (parse_args): Don't mention expected failure handling in comment.
20269         (generate_testfile): Don't handle expected failures.
20270         (parse_ulps): Likewise.
20271         (print_ulps_file): Likewise.
20272         (get_failure): Remove function.
20273         (output_test): Don't handle expected failures.
20274         * make/README.libm-test: Don't mention expected failure handling.
20275
20276         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
20277         (minus_zero): Likewise.
20278         (plus_infty): Likewise.
20279         (minus_infty): Likewise.
20280         (qnan_value): Likewise.
20281         (max_value): Likewise.
20282         (min_value): Likewise.
20283         (min_subnorm_value): Likewise.
20284         (initialize): Do not initialize those variables dynamically.
20285
20286 2013-05-03  Roland McGrath  <roland@hack.frob.com>
20287
20288         * io/open.c (__open_2): Moved to ...
20289         * io/open_2.c: ... this new file.
20290         * io/open64.c (__open64_2): Moved to ...
20291         * io/open64_2.c: ... this new file.
20292         * io/openat.c (__openat_2): Moved to ...
20293         * io/openat_2.c: ... this new file.
20294         * io/openat64.c (__openat64_2): Moved to ...
20295         * io/openat64_2.c: ... this new file.
20296         * io/Makefile (routines): Add them.
20297         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
20298         * sysdeps/unix/sysv/linux/open_2.c: File removed.
20299         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
20300         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
20301         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
20302         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
20303         (__openat64): Add hidden_ver.
20304         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
20305         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
20306
20307         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
20308         Separately conditionalize setting of GLRO(dl_sysinfo) so
20309         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
20310         as well, but the actual setting is only under [NEED_DL_SYSINFO].
20311
20312 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20313
20314         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
20315         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
20316         definition.
20317         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
20318         * sysdeps/unix/sysv/linux/powerpc/init-first.c
20319         (_libc_vdso_platform_setup): Add __vdso_time initialization.
20320         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
20321         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
20322
20323 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
20324
20325         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
20326         test signgam value.
20327
20328         * math/libm-test.inc (hypot_test): Do not use
20329         IGNORE_ZERO_INF_SIGN.
20330
20331 2013-05-03  Andreas Jaeger  <aj@suse.de>
20332
20333         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
20334         Linux 3.9.
20335         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
20336         (PF_MAX): Adjust for VSOCK change.
20337
20338 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20339
20340         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20341
20342 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
20343
20344         [BZ #15264]
20345         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
20346         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
20347         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
20348
20349 2013-05-02  David S. Miller  <davem@davemloft.net>
20350
20351         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20352
20353 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
20354
20355         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
20356
20357 2013-05-01  Roland McGrath  <roland@hack.frob.com>
20358
20359         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
20360
20361 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
20362
20363         [BZ #14952]
20364         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
20365         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
20366         Use __attribute__ ((__gnu_inline__)).
20367         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
20368         Don't use __attribute__ ((__gnu_inline__)).
20369
20370 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
20371
20372         [BZ #15423]
20373         * math/s_catan.c (__catan): Handle small real or imaginary part of
20374         input specially to avoid spurious underflow.
20375         * math/s_catanf.c (__catanf): Likewise.
20376         * math/s_catanh.c (__catanh): Likewise.
20377         * math/s_catanhf.c (__catanhf): Likewise.
20378         * math/s_catanhl.c (__catanhl): Likewise.
20379         * math/s_catanl.c (__catanl): Likewise.
20380         * math/libm-test.inc (catan_test): Add more tests.
20381         (catanh_test): Likewise.
20382         * sysdeps/i386/fpu/libm-test-ulps: Update.
20383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20384
20385 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20386
20387         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20388
20389 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
20390
20391         [BZ #15416]
20392         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
20393         accurately for denominator in atan2.
20394         * math/s_catanf.c (__catanf): Likewise.
20395         * math/s_catanh.c (__catanh): Likewise.
20396         * math/s_catanhf.c (__catanhf): Likewise.
20397         * math/s_catanhl.c (__catanhl): Likewise.
20398         * math/s_catanl.c (__catanl): Likewise.
20399         * math/libm-test.inc (catan_test): Add more tests.
20400         (catanh_test): Likewise.
20401         * sysdeps/i386/fpu/libm-test-ulps: Update.
20402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20403
20404 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
20405
20406         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
20407
20408         * benchtests/Makefile (bench): Remove slow benchmarks.
20409         * benchtests/atan-inputs: Add slow benchmark inputs.
20410         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
20411         (BENCH_FUNC): Accept variant offset.
20412         (VARIANT): Define.
20413         * benchtests/bench-skeleton.c (main): Run benchmark for each
20414         variant.
20415         * benchtests/cos-inputs: Add slow benchmark inputs.
20416         * benchtests/exp-inputs: Likewise.
20417         * benchtests/pow-inputs: Likewise.
20418         * benchtests/sin-inputs: Likewise.
20419         * benchtests/slowatan-inputs: Remove.
20420         * benchtests/slowatan.c: Remove.
20421         * benchtests/slowcos-inputs: Remove.
20422         * benchtests/slowcos.c: Remove.
20423         * benchtests/slowexp-inputs: Remove.
20424         * benchtests/slowexp.c: Remove.
20425         * benchtests/slowpow-inputs: Remove.
20426         * benchtests/slowpow.c: Remove.
20427         * benchtests/slowsin-inputs: Remove.
20428         * benchtests/slowsin.c: Remove.
20429         * benchtests/slowtan-inputs: Remove.
20430         * benchtests/slowtan.c: Remove.
20431         * benchtests/tan-inputs: Add slow benchmark inputs.
20432         * scripts/bench.pl: Parse comments and directives.
20433
20434         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
20435         in CPPFLAGS.
20436         ($(objpfx)bench-%.c): Remove *-ITER.
20437         * benchtests/bench-modf.c: Remove definition of ITER.
20438         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
20439         (main): Loop for DURATION seconds instead of fixed number of
20440         iterations.
20441         * scripts/bench.pl: Don't expect iterations in parameters.
20442
20443 2013-04-29  Roland McGrath  <roland@hack.frob.com>
20444
20445         * io/fchdir.c (__fchdir): Renamed from fchdir.
20446         (fchdir): Define as weak alias.
20447
20448 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
20449
20450         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
20451         (ERRNO_EDOM): Likewise.
20452         (ERRNO_ERANGE): Likewise.
20453         (noErrnoTests): New variable.
20454         (init_max_error): Set errno to 0.
20455         (test_single_errno): New function.
20456         (test_errno): Likewise.
20457         (check_float_internal): Call test_errno.  Set errno to 0.
20458         (check_complex): Refer to errno tests in comment.
20459         (check_int): Call test_errno.  Set errno to 0.
20460         (check_long): Likewise.
20461         (check_bool): Likewise.
20462         (check_longlong): Likewise.
20463         (cos_test): Use ERRNO_* flags for errno tests instead of
20464         check_int.
20465         (expm1_test): Likewise.
20466         (fmod_test): Likewise.
20467         (ilogb_test): Likewise.
20468         (lgamma_test): Likewise.
20469         (pow_test): Likewise.
20470         (remainder_test): Likewise.
20471         (sin_test): Likewise.
20472         (tan_test): Likewise.
20473         (yn_test): Likewise.
20474         (initialize): Set errno to 0.
20475         (main): Print number of errno tests.
20476         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
20477
20478 2013-04-29  Andreas Jaeger  <aj@suse.de>
20479
20480         [BZ #15084]
20481         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
20482         and RES_USEVC.
20483
20484         [BZ #15085]
20485         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
20486         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
20487         unimplemented.
20488
20489         [BZ #15380]
20490         * stdlib/random.c (__initstate): Return NULL if
20491         __initstate fails.
20492
20493         [BZ #15086]
20494         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
20495         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
20496         RES_SNGLKUPREOP.
20497
20498 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20499
20500         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20501
20502 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
20503
20504         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
20505         of individual tests.
20506         (casin_test): Likewise.
20507         (casinh_test): Likewise.
20508
20509 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
20510
20511         [BZ #15409]
20512         * math/s_catan.c (__catan): Handle arguments with large real or
20513         imaginary part separately without squaring.
20514         * math/s_catanf.c (__catanf): Likewise.
20515         * math/s_catanh.c (__catanh): Likewise.
20516         * math/s_catanhf.c (__catanhf): Likewise.
20517         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20518         and redefine.
20519         (__catanhl): Handle arguments with large real or imaginary part
20520         separately without squaring.
20521         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
20522         and redefine.
20523         (__catanl): Handle arguments with large real or imaginary part
20524         separately without squaring.
20525         * math/libm-test.inc (catan_test): Add more tests.
20526         (catanh_test): Likewise.
20527         * sysdeps/i386/fpu/libm-test-ulps: Update.
20528         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20529
20530 2013-04-27  Andreas Jaeger  <aj@suse.de>
20531
20532         [BZ #15007]
20533         * stdlib/stdlib.h: Update guards for qecvt.
20534         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
20535         <stdlib.h>.
20536
20537 2013-04-27  Allan McRae  <allan@archlinux.org>
20538
20539         * sysdeps/i386/fpu/libm-test-ulps: Update.
20540
20541 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
20542
20543         [BZ #15406]
20544         * math/s_catan.c: Include <float.h>.
20545         (__catan): Ensure underflow exception occurs for underflowed
20546         result.
20547         * math/s_catanf.c: Include <float.h>.
20548         (__catanf): Ensure underflow exception occurs for underflowed
20549         result.
20550         * math/s_catanh.c: Include <float.h>.
20551         (__catanh): Ensure underflow exception occurs for underflowed
20552         result.
20553         * math/s_catanhf.c: Include <float.h>.
20554         (__catanhf): Ensure underflow exception occurs for underflowed
20555         result.
20556         * math/s_catanhl.c: Include <float.h>.
20557         (__catanhl): Ensure underflow exception occurs for underflowed
20558         result.
20559         * math/s_catanl.c: Include <float.h>.
20560         (__catanl): Ensure underflow exception occurs for underflowed
20561         result.
20562         * math/libm-test.inc (catan_test): Add more tests.
20563         (catanh_test): Likewise.
20564
20565         [BZ #15405]
20566         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
20567         underflowed result.
20568         * math/s_ccoshf.c (__ccoshf): Likewise.
20569         * math/s_ccoshl.c (__ccoshl): Likewise.
20570         * math/s_csin.c (__csin): Likewise.
20571         * math/s_csinf.c (__csinf): Likewise.
20572         * math/s_csinh.c (__csinh): Likewise.
20573         * math/s_csinhf.c (__csinhf): Likewise.
20574         * math/s_csinhl.c (__csinhl): Likewise.
20575         * math/s_csinl.c (__csinl): Likewise.
20576         * math/libm-test.inc (ccos_test): Add more tests.
20577         (ccosh_test): Likewise.
20578         (csin_test): Likewise.
20579         (csinh_test): Likewise.
20580
20581 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20582
20583         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
20584         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
20585         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
20586         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
20587         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
20588         powerpc/power5+/fpu folders.
20589         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
20590
20591
20592 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20593
20594         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20595
20596 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
20597
20598         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
20599         additions to variable.
20600         [$(config-machine) = x86_64] (modules-names): Likewise.
20601         ($(objpfx)tst-audit3): Remove dependency.
20602         ($(objpfx)tst-audit3.out): Likewise.
20603         ($(objpfx)tst-audit4): Likewise.
20604         ($(objpfx)tst-audit4.out): Likewise.
20605         ($(objpfx)tst-audit5): Likewise.
20606         ($(objpfx)tst-audit5.out): Likewise.
20607         ($(objpfx)tst-audit6): Likewise.
20608         ($(objpfx)tst-audit6.out): Likewise.
20609         ($(objpfx)tst-audit7): Likewise.
20610         ($(objpfx)tst-audit7.out): Likewise.
20611         (tst-audit3-ENV): Remove variable.
20612         (tst-audit4-ENV): Likewise.
20613         (tst-audit5-ENV): Likewise.
20614         (tst-audit6-ENV): Likewise.
20615         (tst-audit7-ENV): Likewise.
20616         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
20617         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
20618         addition to variable.
20619         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
20620         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
20621         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
20622         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
20623         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
20624         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
20625         tst-audit3, tst-audit4 and tst-audit5.
20626         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
20627         tst-audit6 and tst-audit7.
20628         [$(subdir) = elf] (modules-names): Add audit modules for those
20629         tests.
20630         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
20631         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
20632         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
20633         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
20634         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
20635         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
20636         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
20637         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
20638         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
20639         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
20640         [$(subdir) = elf] (tst-audit3-ENV): New variable.
20641         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
20642         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
20643         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
20644         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
20645         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
20646         Likewise.
20647         [$(subdir) = elf && $(config-cflags-avx) = yes]
20648         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
20649         [$(subdir) = elf && $(config-cflags-avx) = yes]
20650         (CFLAGS-tst-auditmod4a.c): Likewise.
20651         [$(subdir) = elf && $(config-cflags-avx) = yes]
20652         (CFLAGS-tst-auditmod4b.c): Likewise.
20653         [$(subdir) = elf && $(config-cflags-avx) = yes]
20654         (CFLAGS-tst-auditmod6b.c): Likewise.
20655         [$(subdir) = elf && $(config-cflags-avx) = yes]
20656         (CFLAGS-tst-auditmod6c.c): Likewise.
20657         [$(subdir) = elf && $(config-cflags-avx) = yes]
20658         (CFLAGS-tst-auditmod7b.c): Likewise.
20659         * elf/tst-audit3.c: Move to ...
20660         * sysdeps/x86_64/tst-audit3.c: ... here.
20661         * elf/tst-audit4.c: Move to ...
20662         * sysdeps/x86_64/tst-audit4.c: ... here.
20663         * elf/tst-audit5.c: Move to ...
20664         * sysdeps/x86_64/tst-audit5.c: ... here.
20665         * elf/tst-audit6.c: Move to ...
20666         * sysdeps/x86_64/tst-audit6.c: ... here.
20667         * elf/tst-audit7.c: Move to ...
20668         * sysdeps/x86_64/tst-audit7.c: ... here.
20669         * elf/tst-auditmod3a.c: Move to ...
20670         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
20671         * elf/tst-auditmod3b.c: Move to ...
20672         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
20673         * elf/tst-auditmod4a.c: Move to ...
20674         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
20675         * elf/tst-auditmod4b.c: Move to ...
20676         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
20677         * elf/tst-auditmod5a.c: Move to ...
20678         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
20679         * elf/tst-auditmod5b.c: Move to ...
20680         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
20681         * elf/tst-auditmod6a.c: Move to ...
20682         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
20683         * elf/tst-auditmod6b.c: Move to ...
20684         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
20685         * elf/tst-auditmod6c.c: Move to ...
20686         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
20687         * elf/tst-auditmod7a.c: Move to ...
20688         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
20689         * elf/tst-auditmod7b.c: Move to ...
20690         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
20691
20692 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
20693
20694         [BZ #15366]
20695         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
20696         define unconditionally.
20697         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
20698         define unconditionally.
20699         (INT8_C, INT16_C, etc.): Likewise.
20700
20701 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
20702
20703         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
20704         __ehdr_start with hidden visibility.
20705
20706         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
20707
20708 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
20709
20710         * math/libm-test.inc (cos_test): Use accurate hex constants.
20711         (sincost_test): Likewise.
20712
20713 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
20714
20715         * math/libm-test.inc (catan_test): Add more tests.
20716         (catanh_test): Likewise.
20717
20718         * math/s_catanf.c (__catanf): Use suffixed floating-point
20719         constants.
20720         * math/s_catanhf.c (__catanhf): Likewise.
20721         * math/s_catanhl.c (__catanhl): Likewise.
20722         * math/s_catanl.c (__catanl): Likewise.
20723
20724         [BZ #15394]
20725         * math/s_catan.c (__catan): Calculate imaginary part of result
20726         with log1p not log unless computing log of number close to 0.
20727         * math/s_catanf.c (__catanf): Likewise.
20728         * math/s_catanl.c (__catanl): Likewise.
20729         * math/s_catanh.c (__catanh): Calculate real part of result with
20730         log1p not log unless computing log of number close to 0.
20731         * math/s_catanhf.c (__catanhf): Likewise.
20732         * math/s_catanhl.c (__catanhl): Likewise.
20733         * math/libm-test.inc (catan_test): Add more tests.
20734         (catanh_test): Likewise.
20735         * sysdeps/i386/fpu/libm-test-ulps: Update.
20736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20737
20738 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
20739
20740         * benchtests/Makefile: Mention files in which fast and slow
20741         paths of math functions are implemented.
20742
20743 2013-04-23  Roland McGrath  <roland@hack.frob.com>
20744
20745         * sysdeps/posix/timespec_get.c: New file.
20746
20747 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20748
20749         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
20750         POWER.
20751         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
20752         for POWER.
20753         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
20754         powerpc/power5/fpu folders.
20755         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
20756         * benchtests/Makefile: Add modf testcase.
20757         * benchtests/bench-modf.c: New file: Benchmark test for mo
20758
20759 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
20760
20761         [BZ #14888]
20762         * time/Makefile (tests): Add tst-strptime-whitespace.
20763         * time/strptime_l.c (get_number): Use ISSPACE.
20764         (__strptime_internal): Likewise.
20765         * time/tst-strptime-whitespace.c: New test case.
20766
20767 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
20768
20769         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
20770         member.
20771         (_nss_files_init): Set it here.
20772
20773 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
20774
20775         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
20776         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
20777         unsigned.
20778
20779 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
20780
20781         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
20782
20783 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
20784
20785         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
20786         size just once.
20787
20788 2013-04-21  David S. Miller  <davem@davemloft.net>
20789
20790         * po/ru.po: Update Russion translation from translation project.
20791
20792 2013-04-17  Adam Conrad  <adconrad@0c3.net>
20793
20794         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
20795         and setfsgid.
20796
20797 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
20798
20799         * configure.in: Remove i386 configure warning. Remove i386 case.
20800         * configure: Regenerate.
20801         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
20802         Add example to error message.
20803         * sysdeps/i386/configure: Regenerate.
20804
20805 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
20806
20807         * benchtests/Makefile (bench): Add cos, tan, slowcos and
20808         slowtan.
20809         * benchtests/cos-inputs: New file.
20810         * benchtests/slowcos-inputs: New file.
20811         * benchtests/slowcos.c: New file.
20812         * benchtests/slowtan-inputs: New file.
20813         * benchtests/slowtan.c: New file.
20814         * benchtests/tan-inputs: New file.
20815
20816 2013-04-16  Roland McGrath  <roland@hack.frob.com>
20817
20818         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
20819         considered kosher.
20820
20821 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
20822
20823         * benchtests/Makefile: Include cppflags-iterator.mk to add
20824         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
20825
20826         * Makefile.in (bench-clean): New target.
20827         * benchtests/Makefile (bench-clean): Likewise.
20828
20829 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
20830
20831         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
20832
20833 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
20834
20835         * stdio-common/tstdiomisc.c: Fix coding-style violation.
20836
20837 2013-04-15  Andreas Schwab  <schwab@suse.de>
20838
20839         * nscd/grpcache.c (cache_addgr): Properly check for short write.
20840         * nscd/initgrcache.c (addinitgroupsX): Likewise.
20841         * nscd/pwdcache.c (cache_addpw): Likewise.
20842         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
20843         more than recsize.
20844
20845 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20846
20847         * benchtests/Makefile (bench): Write all output to
20848         bench-out.tmp together.
20849
20850 2013-04-15  Andreas Schwab  <schwab@suse.de>
20851
20852         * nscd/nscd.c (main): Don't fork again after closing files.
20853
20854 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
20855
20856         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
20857
20858         * benchtests/Rules (bench-deps): Collect dependencies into a
20859         single variable.  Add Makefile to dependencies.
20860         ($(objpfx)bench-%.c): Depend on bench-deps.
20861
20862 2013-04-12  Roland McGrath  <roland@hack.frob.com>
20863             Xavier Roche  <roche+kml2@exalead.com>
20864
20865         [BZ #15361]
20866         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
20867         just that it's a file descriptor.
20868         * manual/llio.texi (Synchronizing AIO Operations): Update description
20869         for EBADF error from aio_fsync.
20870
20871 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
20872
20873         * Rules (bench): Move target definition...
20874         * benchtests/Makefile: ... here.
20875
20876 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
20877
20878         * math/libm-test.inc (cos_test): Fix PI/2 test.
20879         (sincos_test): Likewise.
20880         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
20881         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
20882
20883 2013-04-11  Andreas Schwab  <schwab@suse.de>
20884
20885         [BZ #13988]
20886         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
20887         accept exponent character only when digits were seen.
20888         * stdio-common/Makefile (tests): Add bug26.
20889         * stdio-common/bug26.c: New file.
20890
20891         [BZ #14293]
20892         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
20893         non-freeable.
20894
20895 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
20896
20897         * Makeconfig (rtld-prefix): Define built linker prefix.
20898         * Rules (run-bench): Use it.
20899         * math/Makefile (run-regen-ulps): Likewise.
20900
20901         * Rules (bench): Remove eval.
20902
20903 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
20904             Roland McGrath  <roland@hack.frob.com>
20905             Ondrej Bilka  <neleai@seznam.cz>
20906
20907         [BZ #15346]
20908         * time/getdate.c: Include ctype.h and alloca.h.
20909         (__getdate_r): Trim leading and trailing spaces of input.
20910         * time/tst-getdate.c (tests): Add tests with leading and
20911         trailing spaces.
20912
20913 2013-04-08  Roland McGrath  <roland@hack.frob.com>
20914
20915         [BZ #14280]
20916         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
20917         when computing value.
20918
20919 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20920
20921         * math/README.libm-test (How can I generate "libm-test-ulps"?):
20922         Use testrun.sh to run libm tests.
20923
20924         [BZ #15309]
20925         * elf/dl-open.c (dl_open_worker): memset all of seen array.
20926
20927 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
20928
20929         [BZ #15264]
20930         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
20931
20932 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20933
20934         * Makefile.in (regen-ulps): New target.
20935         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
20936         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
20937         [ifneq (no,$(PERL)] (regen-ulps): New target.
20938         [ifeq (no,$(PERL)] (regen-ulps): New target.
20939         * math/libm-test.inc (ulps_file_name): Define.
20940         (output_dir): New variable.
20941         (options): Add "output-dir" option.
20942         (parse_opt): Handle 'o' case.
20943         (main): If output_dir is non-NULL use it as a prefix
20944         otherwise use "".
20945         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
20946
20947 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20948
20949         [BZ #10060, #10062]
20950         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
20951         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
20952         fail configure if __sync_val_compare_and_swap is not inlined.
20953         * sysdeps/i386/configure: Regenerate.
20954         * configure.in: Build for i686 when configured for i386.
20955         * configure: Regenerate.
20956         * README: Remove i386 reference.
20957
20958 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
20959
20960         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
20961         * sysdeps/s390/s390-64/sysdep.h: Likewise.
20962
20963 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
20964
20965         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
20966         (lmsnanval): New variables.
20967         (F): Add conversion tests.
20968         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
20969         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
20970
20971         * stdio-common/tstdiomisc.c (F): Properly collect individual
20972         tests' results.
20973
20974         [BZ #14686, #15336]
20975         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
20976         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
20977         Instead, use input NaN values or generate a qNaN by arithmetic
20978         operation.  Also fix bugs to comply with the standard.
20979         * math/libm-test.inc (remainder_test): Add more tests.
20980
20981         [BZ #15335, #15342]
20982         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
20983         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
20984         input NaN values or generate a qNaN by arithmetic operation.
20985
20986         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
20987         unreachable code.
20988
20989         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
20990         definitions.
20991
20992 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
20993
20994         [BZ #14478]
20995         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
20996         underflowed result.
20997         * math/s_cexpf.c (__cexpf): Likewise.
20998         * math/s_cexpl.c (__cexpl): Likewise.
20999         * math/libm-test.inc (cexp_test): Add more tests.
21000
21001 2013-04-03  Andreas Schwab  <schwab@suse.de>
21002
21003         [BZ #15330]
21004         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
21005         order arrays from heap if bigger than alloca cutoff.
21006
21007 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
21008
21009         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
21010         (SNAN_TESTS_double): Refer to GCC PR56831.
21011         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
21012         GCC PR56828.
21013
21014 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
21015
21016         * Rules (bench): Move bench.out after the run is complete.
21017
21018         * Rules (bench): Echo currently running benchmark.
21019
21020         * benchtests/Makefile (bench): Add atan and slowatan.
21021         * benchtests/atan-inputs: New file.
21022         * benchtests/slowatan-inputs: New file.
21023         * benchtests/slowatan.c: New file.
21024
21025         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
21026         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
21027         its value.
21028
21029         [BZ #15305]
21030         * sysdeps/unix/sysv/linux/kernel-features.h
21031         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
21032         __ASSUME_XFS_RESTRICTED_CHOWN.
21033         * sysdeps/unix/sysv/linux/pathconf.c
21034         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
21035         Save and restore errno.
21036
21037 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
21038
21039         [BZ #15327]
21040         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
21041         arguments using __kernel_casinh.
21042         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
21043         arguments using __kernel_casinhf.
21044         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
21045         arguments using __kernel_casinhl.
21046         * math/libm-test.inc (cacosh_test): Add more tests.
21047         * sysdeps/i386/fpu/libm-test-ulps: Update.
21048         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21049
21050 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
21051
21052         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
21053         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
21054
21055         * bench/Makefile (bench): Add sin and slowsin.
21056         * benchtests/sin-inputs: New file.
21057         * benchtests/slowsin-inputs: New file.
21058         * benchtests/slowsin.c: New file.
21059
21060         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
21061         (bench): Add slowexp and slowpow.
21062         (exp-ITER): Increase iterations.
21063         (pow-ITER): Likewise.
21064         * benchtests/exp-inputs: Change input.
21065         * benchtests/pow-inputs: Likewise.
21066         * benchtests/slowexp-inputs: New file.
21067         * benchtests/slowexp.c: New file.
21068         * benchtests/slowpow-inputs: New file.
21069         * benchtests/slowpow.c: New file.
21070
21071 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21072
21073         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
21074         instructions.
21075         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
21076         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
21077         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
21078         * benchtests/Makefile: Add rint benchtest.
21079         * benchtests/rint-inputs: Input for rint benchtest.
21080
21081 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
21082
21083         * Versions.def (libm): Add GLIBC_2.18.
21084         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
21085         hidden libm prototypes.
21086         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
21087         * math/Makefile (libm-calls): Add s_issignaling.
21088         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
21089         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
21090         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
21091         declaration.
21092         * math/math.h [__USE_GNU] (issignaling): New macro.
21093         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
21094         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
21095         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
21096         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
21097         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
21098         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
21099         * manual/arith.texi (issignaling): New section.
21100         * manual/libm-err-tab.pl (@all_functions): Update comment.
21101         * math/gen-libm-test.pl (parse_args): Apply special handling for
21102         issignaling.
21103         * math/libm-test.inc (print_float, issignaling_test): New
21104         functions.
21105         (check_float_internal): Add issignaling checks.
21106         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
21107         default definition.
21108         * sysdeps/powerpc/math-tests.h: New file.
21109         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
21110         tests.
21111         * math/test-snan.c (TEST_FUNC): Likewise.
21112
21113 2013-03-30  David S. Miller  <davem@davemloft.net>
21114
21115         * po/de.po: Update from translation team.
21116
21117 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
21118
21119         [BZ #10357]
21120         * math/k_casinh.c (__kernel_casinh): Handle arguments with
21121         imaginary part less than 1.0 and real part less than 0.5
21122         specially.
21123         * math/k_casinhf.c (__kernel_casinhf): Likewise.
21124         * math/k_casinhl.c (__kernel_casinhl): Likewise.
21125         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
21126         (cacos_test): Add more tests.
21127         (casin_test): Likewise.
21128         (casinh_test): Likewise.
21129         * sysdeps/i386/fpu/libm-test-ulps: Update.
21130         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21131
21132 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
21133
21134         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
21135         ONE with its value.
21136
21137         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
21138         (__pow_mp): Replace ONE and MONE with their values.
21139         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
21140         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
21141         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
21142         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
21143         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
21144         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
21145
21146         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
21147
21148         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
21149         (__pow_mp): Replace ZERO and MZERO with their values.
21150         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
21151         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
21152         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
21153         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
21154         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
21155         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
21156         (__sqr): Likewise.
21157
21158         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
21159
21160         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
21161
21162 2013-03-28  Roland McGrath  <roland@hack.frob.com>
21163
21164         * include/stdlib.h [!SHARED] (__call_tls_dtors):
21165         Declare with __attribute__ ((weak)).
21166         * stdlib/exit.c (__libc_atexit) [!SHARED]:
21167         Call __call_tls_dtors only if it's not NULL.
21168
21169 2013-03-28  Roland McGrath  <roland@hack.frob.com>
21170
21171         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
21172         didn't do it already, then set _dl_phdr and _dl_phnum based on the
21173         magic __ehdr_start linker symbol if it's defined.
21174         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
21175         them up here if it was already done.
21176
21177         * elf/dl-support.c (_dl_phdr): Make pointer to const.
21178         (_dl_aux_init): Use const in cast when setting it.
21179         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
21180         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
21181         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
21182
21183         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
21184         Declare them here.
21185         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
21186         * csu/libc-tls.c: Nor here.
21187         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
21188
21189         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
21190         (__libc_message): Never call vsyslog.
21191
21192 2013-03-28  Alan Modra  <amodra@gmail.com>
21193
21194         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
21195         Define as empty.
21196         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
21197         Likewise.
21198
21199 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21200
21201         [BZ #15214]
21202         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
21203         underflow.
21204         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21205
21206 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21207
21208         [BZ #15304]
21209         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
21210         Don't add gid passed as argument.
21211
21212         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
21213
21214 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
21215
21216         [BZ #15307]
21217         * math/k_casinh.c (__kernel_casinh): Handle arguments with
21218         imaginary part between 1.0 and 1.5 and real part less than 0.5
21219         specially.
21220         * math/k_casinhf.c (__kernel_casinhf): Likewise.
21221         * math/k_casinhl.c (__kernel_casinhl): Likewise.
21222         * math/libm-test.inc (cacos_test): Add more tests.
21223         (casin_test): Likewise.
21224         (casinh_test): Likewise.
21225         * sysdeps/i386/fpu/libm-test-ulps: Update.
21226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21227
21228 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21229
21230         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
21231         constants.
21232         (norm): Likewise.
21233         (denorm): Likewise.
21234         (__dbl_mp): Likewise.
21235         (add_magnitudes): Likewise.
21236         (sub_magnitudes): Likewise.
21237         (__add): Likewise.
21238         (__sub): Likewise.
21239         (__mul): Likewise.
21240         (__sqr): Likewise.
21241         (__inv): Likewise.
21242         (__dvd): Likewise.
21243
21244         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
21245         commented code.
21246         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
21247         (__dubcos): Likewise.
21248         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
21249         (__ieee754_acos): Likewise.
21250         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
21251         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
21252         (__exp1): Likewise.
21253         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
21254         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
21255         (log1): Likewise.
21256         (my_log2): Likewise.
21257         (checkint): Likewise.
21258         * sysdeps/ieee754/dbl-64/e_remainder.c
21259         (__ieee754_remainder): Likewise.
21260         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
21261         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
21262         (bsloww): Likewise.
21263         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
21264
21265         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
21266         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
21267         MANTISSA_STORE_T to store computations on mantissa.  Use
21268         macros for rounding and division.
21269         (denorm): Likewise.
21270         (__dbl_mp): Likewise.
21271         (add_magnitudes): Likewise.
21272         (sub_magnitudes): Likewise.
21273         (__mul): Likewise.
21274         (__sqr): Likewise.
21275         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
21276         powers of two in terms of TWOPOW macro.
21277         (mp_no): Make type of mantissa as MANTISSA_T.
21278         [!RADIXI]: Define RADIXI.
21279         [!TWO52]: Define TWO52.
21280         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
21281
21282 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21283
21284         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
21285         llroundl symbol when building for PPC32.
21286
21287 2013-03-24  Mark H Weaver  <mhw@netris.org>
21288
21289         * manual/arith.texi (Normalization Functions): Fix prototypes for
21290         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
21291
21292 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21293
21294         [BZ #13889]
21295         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
21296         high value to check if expl overflow.
21297         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
21298         to check for underflow and overflow.
21299         * math/libm-test.inc: Add exp test.
21300
21301 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
21302
21303         [BZ #11120]
21304         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
21305         with NOT_IN_libc.
21306
21307 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21308
21309         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
21310         symbol.
21311
21312 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
21313
21314         * math/gen-libm-test.pl (parse_args, special_functions): Properly
21315         wrap blocks consisting of several statements.
21316
21317         * sysdeps/generic/math-tests.h: New file.
21318         * sysdeps/i386/fpu/math-tests.h: Likewise.
21319         * math/test-snan.c: Include it.
21320         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
21321
21322 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
21323
21324         [BZ #15285]
21325         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
21326         (__ieee754_j0l): Do not improve calculations using cos of twice
21327         input for inputs above LDBL_MAX / 2.0L.
21328         (__ieee754_y0l): Likewise.
21329         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
21330         (__ieee754_j1l): Do not improve calculations using cos of twice
21331         input for inputs above LDBL_MAX / 2.0L.
21332         (__ieee754_y1l): Likewise.
21333         * math/libm-test.inc (j0_test): Add another test.
21334         (j1_test): Likewise.
21335         (y0_test): Likewise.
21336         (y1_test): Likewise.
21337         * sysdeps/i386/fpu/libm-test-ulps: Update.
21338
21339 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21340
21341         * Rules ($(objpfx)bench-%.c): Include code from a C source
21342         file.
21343
21344 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
21345
21346         [BZ #15287]
21347         * math/k_casinh.c (__kernel_casinh): Handle arguments with
21348         imaginary part 1.0 and real part less than 0.5 specially.
21349         * math/k_casinhf.c (__kernel_casinhf): Likewise.
21350         * math/k_casinhl.c (__kernel_casinhl): Likewise.
21351         * math/libm-test.inc (cacos_test): Add more tests.
21352         (casin_test): Likewise.
21353         (casinh_test): Likewise.
21354         * sysdeps/i386/fpu/libm-test-ulps: Update.
21355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21356
21357 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
21358
21359         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
21360         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
21361
21362 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
21363
21364         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
21365         * config.make.in (config-cflags-sse4): Remove variable.
21366         (config-cflags-avx): Likewise.
21367         (config-cflags-sse2avx): Likewise.
21368         (config-cflags-novzeroupper): Likewise.
21369         (config-asflags-i686): Likewise.
21370         (have-mfma4): Likewise.
21371         (have-as-vis3): Likewise.
21372         (MIG): Likewise.
21373         * configure.in (MIG): Do not AC_SUBST.
21374         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
21375         (libc_cv_cc_sse4): Do not AC_SUBST.
21376         (libc_cv_cc_avx): Likewise.
21377         (libc_cv_cc_sse2avx): Likewise.
21378         (libc_cv_cc_novzeroupper): Likewise.
21379         (libc_cv_cc_fma4): Likewise.
21380         (libc_cv_as_i686): Likewise.
21381         (libc_cv_sparc_as_vis3): Likewise.
21382         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
21383         LIBC_CONFIG_VAR.
21384         (config-asflags-i686): Likewise.
21385         (config-cflags-avx): Likewise.
21386         (config-cflags-sse2avx): Likewise.
21387         (have-mfma4): Likewise.
21388         (config-cflags-novzeroupper): Likewise.
21389         * sysdeps/mach/configure.in (MIG): Likewise.
21390         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
21391         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
21392         LIBC_CONFIG_VAR.
21393         (config-cflags-avx): Likewise.
21394         (config-cflags-sse2avx): Likewise.
21395         (have-mfma4): Likewise.
21396         (config-cflags-novzeroupper): Likewise.
21397         * configure: Regenerated.
21398         * sysdeps/i386/configure: Likewise.
21399         * sysdeps/mach/configure: Likewise.
21400         * sysdeps/sparc/configure: Likewise.
21401         * sysdeps/x86_64/configure: Likewise.
21402
21403 2013-03-20  Roland McGrath  <roland@hack.frob.com>
21404
21405         [BZ #14812]
21406         * locale/programs/localedef.c (options): Put N_ translation marker
21407         on argument names, not just descriptions.
21408
21409 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
21410
21411         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
21412
21413 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
21414
21415         [BZ #14176]
21416         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
21417
21418 2013-03-19  Roland McGrath  <roland@hack.frob.com>
21419
21420         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
21421         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
21422         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
21423         [!BEFORE_ABORT] (before_abort): New function.
21424         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
21425         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
21426         (writev_for_fatal): New function.
21427         (WRITEV_FOR_FATAL): New macro; call that.
21428         (backtrace_and_maps): New function.
21429         (BEFORE_ABORT): New macro; call that.
21430         (struct str_list): Type removed.
21431         (__libc_message, __libc_fatal): Functions removed.
21432         Include <sysdeps/posix/libc_fatal.c> instead.
21433
21434 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
21435
21436         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
21437         constants.
21438         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
21439         double constants.
21440
21441 2013-03-19  Andreas Schwab  <schwab@suse.de>
21442
21443         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
21444         * sysdeps/gnu/configure: Regenerate.
21445
21446         * configure.in: Substitute libc_cv_rtlddir.
21447         * configure: Regenerate.
21448         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
21449         * Makeconfig (rtlddir, inst_rtlddir): New variables.
21450         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
21451         * elf/Makefile (install-others, CFLAGS-interp.c)
21452         (ldso_install, common-ldd-rewrite): Likewise.
21453         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
21454         $(inst_slibdir)/$(rtld-installed-name).
21455         * scripts/rellns-sh: Add -p option.
21456         * Makerules (make-shlib-link): Use rellns-sh to get relative name
21457         for source.
21458
21459 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
21460
21461         * manual/nptl.texi: Renamed to ...
21462         * manual/threads.texi: ... this.
21463         * manual/Makefile (chapters): Update.
21464
21465 2013-03-18  Roland McGrath  <roland@hack.frob.com>
21466
21467         [BZ #14812]
21468         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
21469         on argument names, not just descriptions.
21470         * malloc/memusagestat.c (options): Likewise.
21471         * nss/getent.c (options): Likewise.
21472
21473 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
21474
21475         [BZ #14812]
21476         * iconv/iconv_prog.c (options): Put N_ translation marker
21477         on argument names, not just descriptions.
21478         * iconv/iconvconfig.c (options): Likewise.
21479
21480 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
21481
21482         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
21483         implementation which is faster on all x86_64 architectures.
21484         Tested on AMD, Intel Nehalem, SNB, IVB.
21485         * sysdeps/x86_64/strnlen.S: Likewise.
21486
21487         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
21488         Remove all multiarch strlen and strnlen versions.
21489         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
21490         Remove strlen and strnlen related parts.
21491
21492         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
21493         Inline strlen part.
21494         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
21495
21496         * sysdeps/x86_64/multiarch/strlen.S: Remove.
21497         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
21498         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
21499         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
21500         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
21501         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
21502
21503 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
21504
21505         * manual/memory.texi (Malloc Tunable Parameters):
21506         Sort parameters alphabetically. Add comments for missing entries.
21507
21508 2013-03-17  David S. Miller  <davem@davemloft.net>
21509
21510         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21511
21512 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
21513
21514         [BZ #15283]
21515         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
21516         for arguments at most half maximum finite value.
21517         * math/libm-test.inc (j0_test): Add more tests.
21518         (j1_test): Likewise.
21519         (y0_test): Likewise.
21520         (y1_test): Likewise.
21521         * sysdeps/i386/fpu/libm-test-ulps: Update.
21522         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21523
21524         [BZ #14155]
21525         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
21526         1 / x and functions P and Q for arguments above 0x1p256L.
21527         (__ieee754_y0l): Likewise.
21528         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
21529         (__ieee754_y1l): Likewise.
21530         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
21531         (j1_test): Likewise.
21532         (y0_test): Likewise.
21533         (y1_test): Likewise.
21534
21535 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
21536
21537         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
21538         variable.
21539
21540 2013-03-15  Roland McGrath  <roland@hack.frob.com>
21541
21542         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
21543         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
21544         zero since it's initialized to EXEC_PAGESIZE.
21545
21546         * sysdeps/unix/sysv/linux/ldsodefs.h
21547         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
21548         * sysdeps/generic/ldsodefs.h: ... here.
21549
21550 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
21551
21552         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
21553
21554         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
21555         math/test-snan.c.
21556         * math/test-snan.c: Renamed from
21557         sysdeps/powerpc/fpu/test-powerpc-snan.c.
21558         * math/Makefile (tests): Add test-snan.
21559         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
21560         test-powerpc-snan.
21561
21562         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
21563         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
21564         functions.
21565         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
21566         __builtin_nan family of functions.
21567         * math/libm-test.inc (initialize): Initialize qnan_value with
21568         __builtin_nan family of functions.
21569         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
21570         Remove variables.
21571         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
21572         Remove functions.
21573         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
21574         storage class.  Initialize qNaN_var and sNaN_var with
21575         __builtin_nan and __builtin_nans families of functions,
21576         respectively.
21577
21578         * math/libm-test.inc (acosh_test): Also test with qNaN input.
21579         (sqrt_test): Remove duplicate test with qNaN input.
21580         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
21581         (round_test, signbit_test, significand_test): Note missing +/-Inf
21582         as well as qNaN tests.
21583
21584         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
21585         qNaN_var.  Fix a few strings, too.
21586         * math/libm-test.inc (nan_value): Rename to qnan_value.
21587         * math/gen-libm-test.pl (%beautify): Adjust to that.
21588         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
21589         * math/test-misc.c (main): Likewise.
21590         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
21591         to __qnan_bytes, and __qnan_union, respectively.
21592         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
21593         Likewise.
21594         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
21595         and lqnanval, respectively.
21596         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
21597         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
21598         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
21599         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
21600
21601         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
21602         * math/test-misc.c (main) [__x86_64__]: Enable test for long
21603         doubles.
21604
21605         * math/test-misc.c (main): Fix copy'n'pastos.
21606         * misc/tst-efgcvt.c (special): Likewise.
21607
21608         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
21609         Remove declarations.
21610
21611 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21612
21613         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
21614         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
21615         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
21616         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
21617
21618 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21619
21620         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
21621         macro to return vdso values correctly in IFUNC implementations.
21622         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
21623         Optimization by using IFUNC.
21624
21625 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21626             Richard Henderson  <rth@redhat.com>
21627             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21628
21629         * Makefile.in (bench): New target.
21630         * NEWS: Mention the benchmark framework.
21631         * Rules (bench): Likewise.
21632         (binaries-bench): Generate binaries for functions to
21633         benchmark.
21634         * benchtests/Makefile: New makefile for benchmark tests.
21635         * benchtests/bench-skeleton.c: New skeleton file for benchmark
21636         programs.
21637         * benchtests/exp-inputs: New input file for EXP function.
21638         * benchtests/pow-inputs: New input file for POW function.
21639         * scripts/bench.pl: New script to generate source files for
21640         benchmark programs.
21641
21642 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
21643
21644         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
21645         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
21646         computations on mantissa.  Use macros for rounding and
21647         division.
21648         (denorm): Likewise.
21649         (__dbl_mp): Likewise.
21650         (add_magnitudes): Likewise.
21651         (sub_magnitudes): Likewise.
21652         (__mul): Likewise.
21653         (__sqr): Likewise.
21654         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
21655         powers of two in terms of TWOPOW macro.
21656         (mp_no): Make type of mantissa as MANTISSA_T.
21657         [!RADIXI]: Define RADIXI.
21658         [!TWO52]: Define TWO52.
21659         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
21660
21661         * manual/nptl.texi (cindex): Modify threads to pthreads.
21662
21663 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
21664
21665         * sysdeps/x86_64/preconfigure: Regenerated.
21666
21667 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
21668
21669         [BZ #14155]
21670         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
21671         0x1p28 and above.
21672         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
21673         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
21674         0x1p28 and above.
21675         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
21676         * math/libm-test.inc (j0_test): Do not allow one spurious
21677         underflow exception.
21678         (y1_test): Likewise.
21679
21680 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
21681
21682         * manual/Makefile (chapters): Add nptl.
21683         * manual/debug.texi (Debugging Support): Add link to Threads
21684         chapter.
21685         * manual/nptl.texi: New file.
21686
21687         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
21688
21689 2013-03-14  Petr Baudis  <pasky@ucw.cz>
21690
21691         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
21692         for non-NULL pointer before the memory validity test. Pointed
21693         out by Holger Brunck <holger.brunck@keymile.com>.
21694
21695 2013-03-13  Andreas Schwab  <schwab@suse.de>
21696
21697         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
21698         instead of .os.
21699
21700 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
21701
21702         * timezone/zic.c: Update from tzcode 2013b.
21703
21704 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
21705
21706         * manual/install.texi (Configuring and compiling):
21707         Mention i686 and i586.
21708         * INSTALL: Regenerate.
21709
21710 2013-03-12  Roland McGrath  <roland@hack.frob.com>
21711
21712         * sysdeps/init_array/elf-init.c: New file.
21713         * csu/elf-init.c
21714         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
21715         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
21716
21717         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
21718         __gmon_start__ as global, but as static with a .preinit_array pointer.
21719         * sysdeps/init_array/gmon-start.c: New file.  Use that.
21720         * sysdeps/init_array/crti.S: New file, empty except for comments.
21721         * sysdeps/init_array/crtn.S: Likewise.
21722
21723 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
21724
21725         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
21726         definining bcopy.
21727         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
21728         Remove Prefer_SSE_for_memop.
21729         * sysdeps/x86_64/multiarch/init-arch.h: Remove
21730         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
21731         HAS_PREFER_SSE_FOR_MEMOP.
21732         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
21733         memset-x86-64.
21734         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
21735         Remove bzero, memset ifunc support.
21736         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
21737         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
21738         * sysdeps/x86_64/multiarch/memset.S: Likewise.
21739         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
21740
21741 2013-03-11  Andreas Schwab  <schwab@suse.de>
21742
21743         [BZ #15234]
21744         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
21745         by SHLIB_COMPAT.
21746         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
21747         (GLIBC_2.16): Remove pthread_atfork.
21748
21749 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
21750
21751         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
21752         (ptestcases.h): Likewise.
21753
21754 2013-03-08  Roland McGrath  <roland@hack.frob.com>
21755
21756         * Makeconfig ($(common-objpfx)config.status): Depend on
21757         sysdeps/*/preconfigure{,.in} too.
21758
21759 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
21760
21761         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
21762         (__free_hook): Use void * instead of __malloc_ptr_t.
21763         (__malloc_hook): Likewise.
21764         (__realloc_hook): Likewise.
21765         (__memalign_hook): Likewise.
21766         (__after_morecore_hook): Likewise.
21767         * malloc/arena.c (save_malloc_hook): Likewise.
21768         (save_free_hook): Likewise.
21769         * malloc/hooks.c (malloc_hook_ini): Likewise.
21770         (realloc_hook_ini): Likewise.
21771         (memalign_hook_ini): Likewise.
21772         * malloc/malloc.c (malloc_hook_ini): Likewise.
21773         (realloc_hook_ini): Likewise.
21774         (memalign_hook_ini): Likewise.
21775         (__free_hook): Likewise.
21776         (__malloc_hook): Likewise.
21777         (__realloc_hook): Likewise.
21778         (__memalign_hook): Likewise.
21779         (__libc_malloc): Likewise.
21780         (__libc_free): Likewise.
21781         (__libc_realloc): Likewise.
21782         (__libc_memalign): Likewise.
21783         (__libc_valloc): Likewise.
21784         (__libc_pvalloc): Likewise.
21785         (__libc_calloc): Likewise.
21786         (__posix_memalign): Likewise.
21787         * malloc/morecore.c (__sbrk): Likewise.
21788         (__default_morecore): Likewise.
21789
21790         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
21791
21792         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
21793         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
21794         __malloc_ptrdiff_t.
21795
21796         * malloc/malloc.h (__malloc_size_t): Remove macro.
21797         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
21798         __malloc_size_t.
21799         (old_memalign_hook): Likewise.
21800         (old_realloc_hook): Likewise.
21801         (struct hdr): Likewise.
21802         (flood): Likewise.
21803         (mallochook): Likewise.
21804         (memalignhook): Likewise.
21805         (reallochook): Likewise.
21806         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
21807         (tr_old_realloc_hook): Likewise.
21808         (tr_old_memalign_hook): Likewise.
21809         (tr_mallochook): Likewise.
21810         (tr_reallochook): Likewise.
21811         (tr_memalignhook): Likewise.
21812
21813 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21814
21815         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
21816         default_ldbl_pack and using as default implementation.
21817         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
21818         implementation.
21819         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
21820         redundant definition.
21821         (ldbl_insert_mantissa): Likewise.
21822         (ldbl_canonicalize): Likewise.
21823         (ldbl_nearbyint): Likewise.
21824         (ldbl_pack): Rename to ldbl_pack_ppc.
21825         (ldbl_unpack): Rename to ldbl_unpack_ppc.
21826         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
21827         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
21828
21829 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
21830
21831         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
21832         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
21833         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
21834         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
21835         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
21836         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
21837         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
21838         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
21839
21840 2013-03-07  Andreas Jaeger  <aj@suse.de>
21841
21842         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
21843         bits/mman-linux.h.
21844
21845 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
21846
21847         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
21848         Include mpa.h and declare __MPEXP.
21849         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
21850         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
21851         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
21852         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
21853         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
21854         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
21855         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
21856
21857         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
21858         (__slowpow): Use long double EXPL and LOGL functions to
21859         compute POW.
21860         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
21861         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
21862         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
21863         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
21864         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
21865         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
21866
21867         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
21868         intermediate variable to calculate exponent.
21869         (__sqr): Likewise.
21870         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
21871         Likewise.
21872         (__sqr): Likewise.
21873
21874         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
21875         [!NO__SQR]: Define __sqr.
21876         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
21877         and NO__SQR.  Remove all code except __mul and __sqr.  Include
21878         sysdeps/ieee754/dbl-64/mpa.c.
21879         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
21880
21881         [BZ #12723]
21882         * posix/Makefile (tests): Add tst-pathconf.
21883         * posix/tst-pathconf.c: New test case.
21884         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
21885         _PC_PIPE_BUF.
21886         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
21887
21888 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
21889
21890         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
21891
21892 2013-03-06  Andreas Jaeger  <aj@suse.de>
21893
21894         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
21895         definition via __MAP_ANONYMOUS.
21896
21897         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
21898         it's not part of Linux headers.
21899
21900         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
21901         (MAP_HUGE_MASK): Define.
21902
21903         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21904         Define.
21905         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21906         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21907         Define.
21908         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21909         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
21910         Define.
21911         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21912         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
21913         Define.
21914         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
21915
21916         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
21917         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
21918         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
21919         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
21920         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
21921         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
21922
21923         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
21924         Handle f2fs.
21925
21926         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
21927         Handle f2fs and efivarfs.
21928
21929         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
21930         f2fs.
21931
21932         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
21933         (EFIVARFS_MAGIC): Add.
21934         (F2FS_LINK_MAX): Add.
21935
21936 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
21937
21938         * stdio-common/vfprintf.c: Replace __builtin_expect with
21939         __glibc_unlikely.
21940
21941 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
21942
21943         [BZ #13550]
21944         * sysdeps/generic/bp-sym.h: Remove file.
21945         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
21946         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
21947         <bp-sym.h> and <bp-asm.h>.
21948         (__longjmp): Don't use BP_SYM.
21949         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
21950         and <bp-asm.h>.
21951         (memcpy): Don't use BP_SYM.
21952         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
21953         <bp-sym.h> and <bp-asm.h>.
21954         (memcpy): Don't use BP_SYM.
21955         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
21956         <bp-asm.h>.
21957         (memcpy): Don't use BP_SYM.
21958         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
21959         <bp-asm.h>.
21960         (memset): Don't use BP_SYM.
21961         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21962         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21963         (__bzero): Don't use BP_SYM.
21964         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21965         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21966         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
21967         <bp-sym.h> and <bp-asm.h>.
21968         (memcmp): Don't use BP_SYM.  Remove comment about bounded
21969         pointers.
21970         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
21971         <bp-sym.h> and <bp-asm.h>.
21972         (memcpy): Don't use BP_SYM.
21973         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
21974         <bp-sym.h> and <bp-asm.h>.
21975         (memset): Don't use BP_SYM.
21976         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21977         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21978         (__bzero): Don't use BP_SYM.
21979         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21980         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21981         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
21982         <bp-sym.h> and <bp-asm.h>.
21983         (strncmp): Don't use BP_SYM.  Remove comment about bounded
21984         pointers.
21985         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
21986         <bp-sym.h> and <bp-asm.h>.
21987         (memcpy): Don't use BP_SYM.
21988         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
21989         <bp-sym.h> and <bp-asm.h>.
21990         (memset): Don't use BP_SYM.
21991         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
21992         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
21993         (__bzero): Don't use BP_SYM.
21994         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
21995         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
21996         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
21997         <bp-sym.h> and <bp-asm.h>.
21998         (__memchr): Don't use BP_SYM.
21999         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
22000         <bp-sym.h> and <bp-asm.h>.
22001         (memcmp): Don't use BP_SYM.  Remove comment about bounded
22002         pointers.
22003         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
22004         <bp-sym.h> and <bp-asm.h>.
22005         (memcpy): Don't use BP_SYM.
22006         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
22007         <bp-sym.h> and <bp-asm.h>.
22008         (__mempcpy): Don't use BP_SYM.
22009         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
22010         <bp-sym.h> and <bp-asm.h>.
22011         (__memrchr): Don't use BP_SYM.
22012         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
22013         <bp-sym.h> and <bp-asm.h>.
22014         (memset): Don't use BP_SYM.
22015         (__bzero): Likewise.
22016         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
22017         <bp-sym.h> and <bp-asm.h>.
22018         (__rawmemchr): Don't use BP_SYM.
22019         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
22020         <bp-sym.h> and <bp-asm.h>.
22021         (__STRCMP): Don't use BP_SYM.
22022         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
22023         <bp-sym.h> and <bp-asm.h>.
22024         (strchr): Don't use BP_SYM.
22025         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
22026         <bp-sym.h> and <bp-asm.h>.
22027         (__strchrnul): Don't use BP_SYM.
22028         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
22029         <bp-sym.h> and <bp-asm.h>.
22030         (strlen): Don't use BP_SYM.
22031         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
22032         <bp-sym.h> and <bp-asm.h>.
22033         (strncmp): Don't use BP_SYM.  Remove comment about bounded
22034         pointers.
22035         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
22036         <bp-sym.h> and <bp-asm.h>.
22037         (__strnlen): Don't use BP_SYM.
22038         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
22039         <bp-sym.h> and <bp-asm.h>.
22040         (__GI__setjmp): Don't use BP_SYM.
22041         (_setjmp): Likewise.
22042         (__sigsetjmp): Likewise.
22043         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
22044         (L(start_addresses)): Don't use BP_SYM.
22045         (_start): Likewise.
22046         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
22047         <bp-asm.h>.
22048         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
22049         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
22050         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
22051         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
22052         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
22053         <bp-asm.h>.
22054         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
22055         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
22056         about bounded pointers.
22057         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
22058         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
22059         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
22060         <bp-asm.h>.
22061         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
22062         about bounded pointers.  Remove GKM FIXME comments.
22063         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
22064         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
22065         <bp-asm.h>.
22066         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
22067         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
22068         Remove GKM FIXME comments.
22069         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
22070         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
22071         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
22072         <bp-asm.h>.
22073         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
22074         about bounded pointers.  Remove GKM FIXME comment.
22075         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
22076         and <bp-asm.h>.
22077         (strncmp): Don't use BP_SYM.  Remove comment about bounded
22078         pointers.
22079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
22080         <bp-sym.h> and <bp-asm.h>.
22081         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
22082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
22083         <bp-sym.h> and <bp-asm.h>.
22084         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
22085         comment.
22086
22087 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
22088
22089         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
22090         call free(NULL).
22091
22092 2013-03-05  David S. Miller  <davem@davemloft.net>
22093
22094         * po/es.po: Update from translation team.
22095
22096 2013-03-05  Andreas Jaeger  <aj@suse.de>
22097
22098         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
22099         <bits/mman-linux.h>.
22100         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
22101         is fine.
22102         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
22103         <bits/mman-linux.h> to end of file.
22104         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
22105         is fine.
22106         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
22107         <bits/mman-linux.h> to end of file.
22108         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
22109         is fine.
22110         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
22111         <bits/mman-linux.h> to end of file.
22112
22113         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
22114         (MCL_CURRENT, MCL_FUTURE): Define here.
22115
22116 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22117
22118         [BZ #15232]
22119         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
22120         attribute_hidden.
22121         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
22122
22123 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22124
22125         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
22126         fourth parameter needed for rt_sigprocmask syscall.
22127         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
22128         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
22129         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
22130         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
22131         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
22132         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
22133
22134 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
22135
22136         [BZ #13550]
22137         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
22138         comment about bounded pointers.
22139         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
22140         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
22141
22142 2013-03-04  Andreas Jaeger  <aj@suse.de>
22143
22144         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
22145         common definitions.
22146
22147         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
22148         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
22149         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
22150         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
22151         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
22152         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
22153
22154 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22155
22156         [BZ #15055]
22157         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
22158         __ieee754_sqrl instead of __sqrl.
22159
22160 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
22161
22162         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
22163         * sysdeps/powerpc/fpu_control.h: ... here.
22164         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
22165         * sysdeps/powerpc/bits/fenvinline.h: ... here.
22166         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
22167         * sysdeps/powerpc/bits/mathinline.h: ... here.
22168
22169 2013-03-01  Roland McGrath  <roland@hack.frob.com>
22170
22171         * elf/dl-hwcaps.c (_dl_important_hwcaps):
22172         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
22173         to just [NEED_DL_SYSINFO_DSO].
22174         * elf/dl-support.c: Likewise.
22175         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
22176         * elf/rtld.c (dl_main): Likewise.
22177         * elf/setup-vdso.h (setup_vdso): Likewise.
22178         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
22179         * sysdeps/unix/sysv/linux/dl-sysdep.c
22180         (_dl_discover_osversion): Likewise.
22181
22182 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
22183
22184         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
22185         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
22186
22187 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
22188
22189         * NEWS: Mention libm performance improvements and non-x86 PI
22190         futex support.
22191
22192         * csu/libc-start.c (__pthread_initialize_minimal): Change
22193         function arguments.
22194         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
22195
22196 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
22197
22198         [BZ #13550]
22199         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
22200         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
22201         <bp-sym.h> and <bp-asm.h>.
22202         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
22203         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
22204         and <bp-asm.h>.
22205         (memcpy): Don't use BP_SYM.
22206         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
22207         <bp-asm.h>.
22208         (__mpn_add_n): Don't use BP_SYM.
22209         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
22210         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
22211         and <bp-asm.h>.
22212         (__mpn_addmul_1): Don't use BP_SYM.
22213         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22214         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
22215         <bp-sym.h>.
22216         (_setjmp): Don't use BP_SYM.
22217         (__novmx_setjmp): Likewise.
22218         (__GI__setjmp): Likewise.
22219         (__vmx_setjmp): Likewise.
22220         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
22221         <bp-sym.h>.
22222         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
22223         (__bzero): Don't use BP_SYM.
22224         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
22225         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
22226         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
22227         <bp-sym.h> and <bp-asm.h>.
22228         (memcpy): Don't use BP_SYM.
22229         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
22230         <bp-sym.h> and <bp-asm.h>.
22231         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
22232         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
22233         <bp-sym.h> and <bp-asm.h>.
22234         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
22235         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
22236         <bp-asm.h>.
22237         (__mpn_lshift): Don't use BP_SYM.
22238         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22239         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
22240         <bp-asm.h>.
22241         (memset): Don't use BP_SYM.
22242         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
22243         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
22244         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
22245         <bp-asm.h>.
22246         (__mpn_mul_1): Don't use BP_SYM.
22247         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22248         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
22249         <bp-sym.h> and <bp-asm.h>.
22250         (memcmp): Don't use BP_SYM.
22251         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
22252         <bp-sym.h> and <bp-asm.h>.
22253         (memcpy): Don't use BP_SYM.
22254         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
22255         <bp-sym.h> and <bp-asm.h>.
22256         (memset): Don't use BP_SYM.
22257         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
22258         <bp-sym.h> and <bp-asm.h>.
22259         (strncmp): Don't use BP_SYM.
22260         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
22261         <bp-sym.h> and <bp-asm.h>.
22262         (memcpy): Don't use BP_SYM.
22263         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
22264         <bp-sym.h> and <bp-asm.h>.
22265         (memset): Don't use BP_SYM.
22266         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
22267         <bp-sym.h> and <bp-asm.h>.
22268         (__memchr): Don't use BP_SYM.
22269         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
22270         <bp-sym.h> and <bp-asm.h>.
22271         (memcmp): Don't use BP_SYM.
22272         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
22273         <bp-sym.h> and <bp-asm.h>.
22274         (memcpy): Don't use BP_SYM.
22275         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
22276         <bp-sym.h> and <bp-asm.h>.
22277         (__mempcpy): Don't use BP_SYM.
22278         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
22279         <bp-sym.h> and <bp-asm.h>.
22280         (__memrchr): Don't use BP_SYM.
22281         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
22282         <bp-sym.h> and <bp-asm.h>.
22283         (memset): Don't use BP_SYM.
22284         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
22285         <bp-sym.h> and <bp-asm.h>.
22286         (__rawmemchr): Don't use BP_SYM.
22287         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
22288         <bp-sym.h> and <bp-asm.h>.
22289         (__STRCMP): Don't use BP_SYM.
22290         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
22291         <bp-sym.h> and <bp-asm.h>.
22292         (strchr): Don't use BP_SYM.
22293         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
22294         <bp-sym.h> and <bp-asm.h>.
22295         (__strchrnul): Don't use BP_SYM.
22296         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
22297         <bp-sym.h> and <bp-asm.h>.
22298         (strlen): Don't use BP_SYM.
22299         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
22300         <bp-sym.h> and <bp-asm.h>.
22301         (strncmp): Don't use BP_SYM.
22302         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
22303         <bp-sym.h> and <bp-asm.h>.
22304         (__strnlen): Don't use BP_SYM.
22305         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
22306         <bp-asm.h>.
22307         (__mpn_rshift): Don't use BP_SYM.
22308         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22309         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
22310         <bp-sym.h> and <bp-asm.h>.
22311         (__sigsetjmp): Don't use BP_SYM.
22312         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
22313         (L(start_addresses)): Don't use BP_SYM.
22314         (_start): Likewise.
22315         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
22316         <bp-asm.h>.
22317         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
22318         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
22319         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
22320         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
22321         <bp-asm.h>.
22322         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
22323         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
22324         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
22325         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
22326         <bp-asm.h>.
22327         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
22328         comments.
22329         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
22330         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
22331         <bp-asm.h>.
22332         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
22333         FIXME comments.
22334         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
22335         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
22336         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
22337         <bp-asm.h>.
22338         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
22339         comment.
22340         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
22341         and <bp-asm.h>.
22342         (strncmp): Don't use BP_SYM,
22343         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
22344         <bp-asm.h>.
22345         (__mpn_sub_n): Don't use BP_SYM.
22346         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22347         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
22348         and <bp-asm.h>.
22349         (__mpn_submul_1): Don't use BP_SYM.
22350         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
22352         <bp-sym.h> and <bp-asm.h>.
22353         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
22354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
22355         <bp-sym.h> and <bp-asm.h>.
22356         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
22357         comment.
22358
22359 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22360
22361         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
22362         Use ZK to minimize writes to Z.
22363         (sub_magnitudes): Simplify code a bit.
22364         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
22365         Use ZK to minimize writes to Z.
22366         (sub_magnitudes): Simplify code a bit.
22367
22368 2013-02-27  Roland McGrath  <roland@hack.frob.com>
22369
22370         * csu/gmon-start.c: Add special exception to license text.
22371
22372 2013-02-27  Richard Henderson  <rth@redhat.com>
22373
22374         * scripts/config.guess: Update from config.git.
22375         * scripts/config.sub: Likewise.
22376
22377 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
22378
22379         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
22380
22381         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
22382
22383         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
22384
22385         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
22386
22387         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
22388
22389 2013-02-26  Roland McGrath  <roland@hack.frob.com>
22390
22391         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
22392         [$(build-shared = yes].
22393
22394 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22395
22396         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
22397         (__mul): Reduce iterations for calculating mantissa.
22398
22399         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
22400         MPTWO.
22401         (__mpranred): Likewise.
22402
22403         [BZ #15160]
22404         * malloc/memusagestat.c (main): Draw graphs for heap and stack
22405         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
22406
22407 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
22408
22409         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
22410         Define __attribute__.
22411
22412 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
22413
22414         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
22415         unused.
22416         * posix/regex_internal.h (__attribute): Remove.
22417         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
22418         (re_string_context_at): Likewise.
22419         (bitset_not): Use __attribute__ and mark function as possibly
22420         unused.
22421         (bitset_merge): Likewise.
22422         (bitset_mask): Likewise.
22423         (re_string_char_size_at): Likewise.
22424         (re_string_wchar_at): Likewise.
22425         (re_string_elem_size_at): Likewise.
22426
22427 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
22428
22429         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
22430         code.
22431         (cc32): Likewise.
22432
22433         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
22434         (__acr): Likewise.
22435         (__cpy): Likewise.
22436         (norm): Likewise.
22437         (denorm): Likewise.
22438         (__dbl_mp): Likewise.
22439         (add_magnitudes): Likewise.
22440         (sub_magnitudes): Likewise.
22441         (__mul): Likewise.
22442         (__inv): Likewise.
22443
22444         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
22445         style.
22446
22447         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
22448         style.
22449
22450         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
22451         code.
22452
22453         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
22454         up changes with default code.
22455         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
22456         Likewise.
22457
22458 2013-02-24  Allan McRae  <allan@archlinux.org>
22459
22460         * manual/socket.texi (The Internet Namespace): Order menu items
22461         to match that in the file.
22462
22463         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
22464         node listing of the info page menu.
22465
22466 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
22467
22468         [BZ #13550]
22469         * sysdeps/i386/bp-asm.h: Remove file.
22470         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
22471         (PARMS): Do not use macros from bp-asm.h.
22472         (S1): Likewise.
22473         (S2): Likewise.
22474         (SIZE): Likewise.
22475         (__mpn_add_n): Do not use BP_SYM
22476         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
22477         "bp-asm.h".
22478         (PARMS): Do not use macros from bp-asm.h.
22479         (S1): Likewise.
22480         (SIZE): Likewise.
22481         (__mpn_addmul_1): Do not use BP_SYM
22482         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
22483         "bp-asm.h".
22484         (PARMS): Do not use macros from bp-asm.h.
22485         (SIGMSK): Likewise.
22486         (_setjmp): Likewise.  Do not use BP_SYM.
22487         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
22488         "bp-asm.h".
22489         (PARMS): Do not use macros from bp-asm.h.
22490         (SIGMSK): Likewise.
22491         (setjmp): Likewise.  Do not use BP_SYM.
22492         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
22493         "bp-asm.h".
22494         (PARMS): Do not use macros from bp-asm.h.
22495         (__frexp): Do not use BP_SYM.
22496         (frexp): Likewise.
22497         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
22498         "bp-asm.h".
22499         (PARMS): Do not use macros from bp-asm.h.
22500         (__frexpf): Do not use BP_SYM.
22501         (frexpf): Likewise.
22502         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
22503         "bp-asm.h".
22504         (PARMS): Do not use macros from bp-asm.h.
22505         (__frexpl): Do not use BP_SYM.
22506         (frexpl): Likewise.
22507         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
22508         "bp-asm.h".
22509         (PARMS): Do not use macros from bp-asm.h.
22510         (__remquo): Do not use BP_SYM.
22511         (remquo): Likewise.
22512         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
22513         "bp-asm.h".
22514         (PARMS): Do not use macros from bp-asm.h.
22515         (__remquof): Do not use BP_SYM.
22516         (remquof): Likewise.
22517         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
22518         "bp-asm.h".
22519         (PARMS): Do not use macros from bp-asm.h.
22520         (__remquol): Do not use BP_SYM.
22521         (remquol): Likewise.
22522         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
22523         "bp-asm.h".
22524         (PARMS): Do not use macros from bp-asm.h.
22525         (DEST): Likewise.
22526         (SRC): Likewise.
22527         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
22528         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
22529         "bp-asm.h".
22530         (PARMS): Do not use macros from bp-asm.h.
22531         (strlen): Do not use BP_SYM.
22532         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
22533         "bp-asm.h".
22534         (PARMS): Do not use macros from bp-asm.h.
22535         (S1): Likewise.
22536         (S2): Likewise.
22537         (SIZE): Likewise.
22538         (__mpn_add_n): Do not use BP_SYM.
22539         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
22540         "bp-asm.h".
22541         (PARMS): Do not use macros from bp-asm.h.
22542         (S1): Likewise.
22543         (SIZE): Likewise.
22544         (__mpn_addmul_1): Do not use BP_SYM.
22545         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
22546         weak_alias.
22547         (bzero): Likewise.
22548         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
22549         "bp-asm.h".
22550         (PARMS): Do not use macros from bp-asm.h.
22551         (S): Likewise.
22552         (SIZE): Likewise.
22553         (__mpn_lshift): Do not use BP_SYM.
22554         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
22555         "bp-asm.h".
22556         (PARMS): Do not use macros from bp-asm.h.
22557         (DEST): Likewise.
22558         (SRC): Likewise.
22559         (LEN): Likewise.
22560         (memcpy): Likewise.  Do not use BP_SYM.
22561         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
22562         libc_hidden_def and weak_alias.
22563         (mempcpy): Do not use BP_SYM in weak_alias.
22564         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
22565         "bp-asm.h".
22566         (PARMS): Do not use macros from bp-asm.h.
22567         (DEST): Likewise.
22568         (LEN): Likewise.
22569         [!BZERO_P] (CHR): Likewise.
22570         (memset): Likewise.  Do not use BP_SYM.
22571         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
22572         "bp-asm.h".
22573         (PARMS): Do not use macros from bp-asm.h.
22574         (S1): Likewise.
22575         (SIZE): Likewise.
22576         (__mpn_mul_1): Do not use BP_SYM.
22577         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
22578         "bp-asm.h".
22579         (PARMS): Do not use macros from bp-asm.h.
22580         (S): Likewise.
22581         (SIZE): Likewise.
22582         (__mpn_rshift): Do not use BP_SYM.
22583         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
22584         "bp-asm.h".
22585         (PARMS): Do not use macros from bp-asm.h.
22586         (STR): Likewise.
22587         (CHR): Likewise.
22588         (strchr): Likewise.  Do not use BP_SYM.
22589         (index): Do not use BP_SYM in weak_alias.
22590         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
22591         "bp-asm.h".
22592         (PARMS): Do not use macros from bp-asm.h.
22593         (DEST): Likewise.
22594         (SRC): Likewise.
22595         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
22596         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
22597         "bp-asm.h".
22598         (PARMS): Do not use macros from bp-asm.h.
22599         (strlen): Do not use BP_SYM.
22600         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
22601         "bp-asm.h".
22602         (PARMS): Do not use macros from bp-asm.h.
22603         (S1): Likewise.
22604         (S2): Likewise.
22605         (SIZE): Likewise.
22606         (__mpn_sub_n): Do not use BP_SYM.
22607         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
22608         "bp-asm.h".
22609         (PARMS): Do not use macros from bp-asm.h.
22610         (S1): Likewise.
22611         (SIZE): Likewise.
22612         (__mpn_submul_1): Do not use BP_SYM.
22613         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
22614         "bp-asm.h".
22615         (PARMS): Do not use macros from bp-asm.h.
22616         (S1): Likewise.
22617         (S2): Likewise.
22618         (SIZE): Likewise.
22619         (__mpn_add_n): Do not use BP_SYM.
22620         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
22621         weak_alias.
22622         (bzero): Likewise.
22623         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
22624         "bp-asm.h".
22625         (PARMS): Do not use macros from bp-asm.h.
22626         (BLK2): Likewise.
22627         (LEN): Likewise.
22628         (memcmp): Do not use BP_SYM.
22629         (bcmp): Do not use BP_SYM in weak_alias.
22630         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
22631         "bp-asm.h".
22632         (PARMS): Do not use macros from bp-asm.h.
22633         (DEST): Likewise.
22634         (SRC): Likewise.
22635         (LEN): Likewise.
22636         (memcpy): Likewise.  Do not use BP_SYM.
22637         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
22638         "bp-asm.h".
22639         (PARMS): Do not use macros from bp-asm.h.
22640         (DEST): Likewise.
22641         (SRC): Likewise.
22642         (LEN): Likewise.
22643         (memmove): Likewise.  Do not use BP_SYM.
22644         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
22645         "bp-asm.h".
22646         (PARMS): Do not use macros from bp-asm.h.
22647         (DEST): Likewise.
22648         (SRC): Likewise.
22649         (LEN): Likewise.
22650         (__mempcpy): Likewise.  Do not use BP_SYM.
22651         (mempcpy): Do not use BP_SYM in weak_alias.
22652         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
22653         "bp-asm.h".
22654         (PARMS): Do not use macros from bp-asm.h.
22655         (DEST): Likewise.
22656         (LEN): Likewise.
22657         [!BZERO_P] (CHR): Likewise.
22658         (memset): Likewise.  Do not use BP_SYM.
22659         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
22660         "bp-asm.h".
22661         (PARMS): Do not use macros from bp-asm.h.
22662         (STR2): Likewise.
22663         (strcmp): Do not use BP_SYM.
22664         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
22665         "bp-asm.h".
22666         (PARMS): Do not use macros from bp-asm.h.
22667         (STR): Likewise.
22668         (DELIM): Likewise.
22669         [USE_AS_STRTOK_R] (SAVE): Likewise.
22670         (FUNCTION): Likewise.  Do not use BP_SYM.
22671         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
22672         aliases.
22673         (strtok_r): Likewise.
22674         (__GI___strtok_r): Likewise.
22675         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
22676         (PARMS): Do not use macros from bp-asm.h.
22677         (S): Likewise.
22678         (SIZE): Likewise.
22679         (__mpn_lshift): Do not use BP_SYM.
22680         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
22681         (PARMS): Do not use macros from bp-asm.h.
22682         (STR): Likewise.
22683         (CHR): Likewise.
22684         (__memchr): Do not use BP_SYM.
22685         (memchr): Do not use BP_SYM in weak_alias.
22686         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
22687         (PARMS): Do not use macros from bp-asm.h.
22688         (BLK2): Likewise.
22689         (LEN): Likewise.
22690         (memcmp): Do not use BP_SYM.
22691         (bcmp): Do not use BP_SYM in weak_alias.
22692         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
22693         (PARMS): Do not use macros from bp-asm.h.
22694         (S1): Likewise.
22695         (SIZE): Likewise.
22696         (__mpn_mul_1): Do not use BP_SYM.
22697         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
22698         "bp-asm.h".
22699         (PARMS): Do not use macros from bp-asm.h.
22700         (STR): Likewise.
22701         (CHR): Likewise.
22702         (__rawmemchr): Do not use BP_SYM.
22703         (rawmemchr): Do not use BP_SYM in weak_alias.
22704         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
22705         (PARMS): Do not use macros from bp-asm.h.
22706         (S): Likewise.
22707         (SIZE): Likewise.
22708         (__mpn_rshift): Do not use BP_SYM.
22709         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
22710         (PARMS): Do not use macros from bp-asm.h.
22711         (SIGMSK): Likewise.
22712         (__sigsetjmp): Likewise.  Do not use BP_SYM.
22713         * sysdeps/i386/start.S: Do not include "bp-sym.h".
22714         (_start): Do not use BP_SYM.
22715         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
22716         (PARMS): Do not use macros from bp-asm.h.
22717         (DEST): Likewise.
22718         (SRC): Likewise.
22719         (__stpcpy): Likewise.  Do not use BP_SYM.
22720         (stpcpy): Do not use BP_SYM in weak_alias.
22721         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
22722         "bp-asm.h".
22723         (PARMS): Do not use macros from bp-asm.h.
22724         (DEST): Likewise.
22725         (SRC): Likewise.
22726         (LEN): Likewise.
22727         (__stpncpy): Likewise.  Do not use BP_SYM.
22728         (stpncpy): Do not use BP_SYM in weak_alias.
22729         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
22730         (PARMS): Do not use macros from bp-asm.h.
22731         (STR): Likewise.
22732         (CHR): Likewise.
22733         (strchr): Likewise.  Do not use BP_SYM.
22734         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
22735         "bp-asm.h".
22736         (PARMS): Do not use macros from bp-asm.h.
22737         (STR): Likewise.
22738         (CHR): Likewise.
22739         (__strchrnul): Likewise.  Do not use BP_SYM.
22740         (strchrnul): Do not use BP_SYM in weak_alias.
22741         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
22742         "bp-asm.h".
22743         (PARMS): Do not use macros from bp-asm.h.
22744         (STOP): Likewise.
22745         (strcspn): Do not use BP_SYM.
22746         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
22747         "bp-asm.h".
22748         (PARMS): Do not use macros from bp-asm.h.
22749         (STR): Likewise.
22750         (STOP): Likewise.
22751         (strpbrk): Likewise.  Do not use BP_SYM.
22752         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
22753         "bp-asm.h".
22754         (PARMS): Do not use macros from bp-asm.h.
22755         (STR): Likewise.
22756         (CHR): Likewise.
22757         (strrchr): Likewise.  Do not use BP_SYM.
22758         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
22759         (PARMS): Do not use macros from bp-asm.h.
22760         (SKIP): Likewise.
22761         (strspn): Do not use BP_SYM.
22762         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
22763         (PARMS): Do not use macros from bp-asm.h.
22764         (STR): Likewise.
22765         (DELIM): Likewise.
22766         (SAVE): Likewise.
22767         (FUNCTION): Likewise.  Do not use BP_SYM.
22768         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
22769         aliases.
22770         (strtok_r): Likewise.
22771         (__GI___strtok_r): Likewise.
22772         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
22773         (PARMS): Do not use macros from bp-asm.h.
22774         (S1): Likewise.
22775         (S2): Likewise.
22776         (SIZE): Likewise.
22777         (__mpn_sub_n): Do not use BP_SYM.
22778         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
22779         "bp-asm.h".
22780         (PARMS): Do not use macros from bp-asm.h.
22781         (S1): Likewise.
22782         (SIZE): Likewise.
22783         (__mpn_submul_1): Do not use BP_SYM.
22784         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
22785         <bp-sym.h>.
22786         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
22787         and <bp-asm.h>.
22788         (PARMS): Do not use macros from bp-asm.h.
22789         (FLAGS): Likewise.
22790         (PTID): Likewise.
22791         (TLS): Likewise.
22792         (CTID): Likewise.
22793         (__clone): Do not use BP_SYM.
22794         (clone): Do not use BP_SYM in weak_alias.
22795         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
22796         and <bp-asm.h>.
22797         (PARMS): Do not use macros from bp-asm.h.
22798         (LEN): Likewise.
22799         (__mmap64): Do not use BP_SYM.
22800         (mmap64): Do not use BP_SYM in weak_alias.
22801         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
22802         <bp-sym.h> and <bp-asm.h>.
22803         (PARMS): Do not use macros from bp-asm.h.
22804         (__posix_fadvise64_l64): Do not use BP_SYM.
22805         * sysdeps/unix/sysv/linux/i386/semtimedop.S
22806         (PARMS): Do not use macros from bp-asm.h.
22807         (NSOPS): Likewise.
22808         (semtimedop): Do not use BP_SYM.
22809         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
22810         and <bp-asm.h>.
22811
22812 2013-02-21  Allan McRae  <allan@archlinux.org>
22813
22814         * manual/message.texi (Charset conversion in gettext):
22815         Move @end statement to beginning of line.
22816
22817 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
22818
22819         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
22820         static.
22821         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
22822         Likewise.
22823
22824         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
22825         (denorm): Likewise.
22826         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
22827         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
22828
22829 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22830
22831         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
22832         tail-call to the resolved function if pltexit isn't needed.
22833
22834 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
22835
22836         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
22837         or Y being zero as being unlikely.
22838         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
22839         Likewise.
22840
22841 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
22842
22843         * manual/nss.texi (System Databases and Name Service Switch):
22844         Remove frobnicate @pxref.
22845
22846 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
22847
22848         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
22849         __attribute__ ((unused)) to __attribute__ ((__unused__)).
22850
22851 2013-02-20  Petr Machata  <pmachata@redhat.com>
22852
22853         * elf/elf.h (R_ARM_TARGET1): New macro.
22854         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
22855         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
22856         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
22857         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
22858         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
22859         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
22860         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
22861         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
22862         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
22863         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
22864         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
22865         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
22866         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
22867         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
22868         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
22869         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
22870         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
22871         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
22872         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
22873         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
22874         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
22875         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
22876         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
22877         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
22878         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
22879         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
22880         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
22881         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
22882         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
22883         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
22884         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
22885         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
22886         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
22887         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
22888         (R_ARM_THM_GOT_BREL12): Likewise.
22889         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
22890         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
22891         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
22892         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
22893         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
22894         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
22895         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
22896         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
22897         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
22898
22899 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
22900
22901         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
22902         __attribute_used__ to __attribute__ ((unused)).
22903
22904 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
22905
22906         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
22907         powerpc mpa.c.
22908         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
22909         comment formatting.
22910         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
22911
22912 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
22913
22914         [BZ #13550]
22915         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
22916         Remove macro.
22917         (ENTER): Remove both macro definitions.
22918         (LEAVE): Likewise.
22919         (CHECK_BOUNDS_LOW): Likewise.
22920         (CHECK_BOUNDS_HIGH): Likewise.
22921         (CHECK_BOUNDS_BOTH): Likewise.
22922         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
22923         (RETURN_BOUNDED_POINTER): Likewise.
22924         (RETURN_NULL_BOUNDED_POINTER): Likewise.
22925         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
22926         (POP_ERRNO_LOCATION_RETURN): Likewise.
22927         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
22928         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22929         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
22930         macros.
22931         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22932         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
22933         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
22934         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
22935         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
22936         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
22937         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
22938         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
22939         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
22940         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
22941         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
22942         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
22943         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22944         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
22945         removed macros.
22946         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22947         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
22948         macros.
22949         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22950         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
22951         * sysdeps/i386/i586/memset.S (memset): Likewise.
22952         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
22953         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22954         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
22955         macros.
22956         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22957         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
22958         Change uses of L(2) to L(out).
22959         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
22960         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
22961         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
22962         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22963         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
22964         removed macros.
22965         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22966         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
22967         macros.
22968         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
22969         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
22970         (RETURN): Do not use macro LEAVE.
22971         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
22972         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
22973         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
22974         * sysdeps/i386/i686/memset.S (memset): Likewise.
22975         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
22976         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
22977         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
22978         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
22979         Likewise.
22980         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
22981         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
22982         L(1_2) and L(1_3) into L(1).
22983         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
22984         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
22985         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22986         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
22987         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
22988         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
22989         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
22990         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
22991         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
22992         macros.
22993         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
22994         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
22995         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
22996         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
22997         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
22998         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
22999         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
23000         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
23001         * sysdeps/i386/strcspn.S (strcspn): Likewise.
23002         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
23003         * sysdeps/i386/strrchr.S (strrchr): Likewise.
23004         * sysdeps/i386/strspn.S (strspn): Likewise.
23005         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
23006         conditional code.
23007         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
23008         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
23009         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
23010         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
23011         L(1_3) into L(1_1).
23012         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
23013         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
23014         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
23015         macros.
23016         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
23017
23018 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
23019
23020         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
23021         macro.
23022
23023 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
23024
23025         * math/atest-exp.c (exp_mpn): Remove ROUND.
23026         * math/atest-exp2.c (exp_mpn): Likewise.
23027         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
23028
23029         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
23030         * stdlib/tst-tls-atexit-lib.c: Likewise.
23031         * stdlib/tst-tls-atexit.c: Likewise.
23032
23033 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
23034
23035         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
23036         and __attribute_alloc_size__.
23037
23038 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
23039
23040         * include/programs/xmalloc.h: Change __attribute_alloc_size to
23041         __attribute_alloc_size__.
23042         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
23043         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
23044
23045 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
23046
23047         * include/programs/xmalloc.h: New file.
23048         * catgets/gencat.c: Include it.
23049         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
23050         * elf/pldd.c: Likewise.
23051         * iconv/iconv_charmap.c: Likewise.
23052         * iconv/iconvconfig.c: Likewise.
23053         * iconv/strtab.c: Likewise.
23054         * locale/programs/locale.c: Likewise.
23055         * locale/programs/localedef.h: Likewise.
23056         * locale/programs/simple-hash.c: Likewise.
23057         * nscd/nscd.h: Likewise.
23058         * nss/makedb.c: Likewise.
23059         * sysdeps/generic/ldconfig.h: Likewise.
23060
23061 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
23062
23063         * Versions.def: Add GLIBC_2.18.
23064         * include/link.h (struct link_map): New member l_tls_dtor_count.
23065         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
23066         (__call_tls_dtors): Likewise.
23067         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
23068         __cxa_thread_atexit_impl.
23069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23070         Likewise.
23071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
23072         Likewise.
23073         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
23074         Likewise.
23075         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
23076         Likewise.
23077         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
23078         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
23079         Likewise.
23080         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
23081         Likewise.
23082         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
23083         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
23084         Likewise.
23085         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
23086         (tests): Add test case tst-tls-atexit.
23087         (modules-names): Add shared library for tst-tls-atexit.
23088         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
23089         (GLIBC_PRIVATE): Add __call_tls_dtors.
23090         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
23091         for libstdc++.
23092         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
23093         * stdlib/tst-tls-atexit.c: New test case.
23094         * stdlib/tst-tls-atexit-lib.c: New test case.
23095
23096         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
23097
23098         * elf/Versions (ld): Add _dl_find_dso_for_object.
23099         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
23100         * elf/dl-open.c (_dl_find_dso_for_object): New function.
23101         (dl_open_worker): Use _dl_find_dso_for_object.
23102         * elf/dl-sym.c (do_sym): Likewise.
23103         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
23104
23105 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23106
23107         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
23108         Syntactic changes only.
23109         (_dl_runtime_profile): Do a tail-call to the resolved function.
23110
23111 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
23112
23113         [BZ #13550]
23114         * sysdeps/x86_64/bp-asm.h: Remove file.
23115         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
23116         <bp-sym.h> and <bp-asm.h>.
23117         (__clone): Do not use BP_SYM.
23118         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
23119         <bp-sym.h> and <bp-asm.h>.
23120         * sysdeps/unix/x86_64/sysdep.S: Likewise.
23121         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
23122         "bp-asm.h".
23123         (_setjmp): Do not use BP_SYM.
23124         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
23125         "bp-asm.h".
23126         (setjmp): Do not use BP_SYM.
23127         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
23128         libc_hidden_def.
23129         (mempcpy): Do not use BP_SYM in weak_alias.
23130         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
23131         "bp-asm.h".
23132         (strchr): Do not use BP_SYM.
23133         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
23134         "bp-asm.h".
23135         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
23136         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
23137         (_start): Do not use BP_SYM.
23138         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
23139         "bp-asm.h".
23140         (strcat): Do not use BP_SYM.
23141         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
23142         "bp-asm.h".
23143         (STRCMP): Do not use BP_SYM.
23144         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
23145         "bp-asm.h".
23146         (STRCPY): Do not use BP_SYM.
23147         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
23148         "bp-asm.h".
23149         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
23150         "bp-asm.h".
23151         (FUNCTION): Do not use BP_SYM.
23152         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
23153         weak_alias.
23154         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
23155
23156 2013-02-17  Andreas Jaeger  <aj@suse.de>
23157
23158         * time/Versions: Sort entries.
23159         * string/Versions: Likewise.
23160         * resolv/Versions: Likewise.
23161         * posix/Versions: Likewise.
23162         * iconv/Versions: Likewise.
23163         * elf/Versions: Likewise.
23164         * wcsmbs/Versions: Likewise.
23165
23166 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
23167
23168         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
23169         loop termination condition.
23170
23171         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
23172         variable to calculate EZ.
23173         (__sqr): Likewise.
23174
23175         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
23176         the lower precision input.
23177
23178 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
23179
23180         [BZ #13550]
23181         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
23182         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
23183         (run-via-rtld-prefix): Do not handle %-bp tests.
23184         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
23185         (all-object-suffixes): Remove .ob.
23186         (bppfx): Remove variable.
23187         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
23188         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
23189         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
23190         [$(build-bounded) = yes] (libtype.ob): Likewise.
23191         * Makerules (elide-routines.ob): Remove variable.
23192         (do-tests-clean): Do not handle *-bp.out.
23193         (common-mostlyclean): Do not handle *-bp and *-bp.out.
23194         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
23195         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
23196         (tests): Do not include $(tests-bp.out).
23197         (xtests): Do not include $(xtests-bp.out).
23198         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
23199         [$(build-bounded) = yes] ($(addprefix
23200         $(objpfx),$(binaries-bounded))): Remove rule.
23201         ($(objpfx)%-bp.out): Remove rule.
23202         * config.make.in (build-bounded): Remove variable.
23203         * crypt/Makefile [$(build-bounded) = yes]
23204         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
23205         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
23206         append to variable.
23207         [$(build-bounded) = yes] (install-lib): Likewise.
23208         [$(build-bounded) = yes] (generated): Likewise.
23209         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
23210         Remove rule.
23211         * intl/Makefile [$(build-bounded) = yes]
23212         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
23213         * math/Makefile [$(build-bounded) = yes]
23214         ($(tests:%=$(objpfx)%-bp): Likewise.
23215         * misc/Makefile [$(build-bounded) = yes]
23216         ($(objpfx)tst-tsearch-bp): Likewise.
23217         * nptl/Makeconfig (bounded-thread-library): Remove variable.
23218         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
23219         Remove dependency.
23220         * string/Makefile (o-objects.ob): Remove variable.
23221         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
23222         (CFLAGS-.ob): Remove variable.
23223         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
23224         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
23225         both definitions of variable.
23226         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
23227         (ASFLAGS-.ob): Remove variable.
23228
23229 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
23230
23231         [BZ #13550]
23232         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
23233         Remove __BOUNDED_POINTERS__ from condition.
23234         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
23235         * string/bits/string2.h [!__NO_STRING_INLINES &&
23236         !__BOUNDED_POINTERS__]: Likewise.
23237         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
23238         Likewise.
23239         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
23240         Remove conditional code.
23241         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
23242         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
23243         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
23244         condition.
23245
23246         [BZ #13550]
23247         * csu/libc-start.c: Do not include <bp-sym.h>.
23248         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
23249         * elf/dl-open.c: Do not include <bp-sym.h>.
23250         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
23251         * math/fegetenv.c: Do not include <bp-sym.h>.
23252         (fegetenv): Do not use BP_SYM in versioned symbols.
23253         * nptl/sysdeps/pthread/bits/libc-lockP.h
23254         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
23255         <bp-sym.h>.
23256         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23257         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
23258         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23259         (__pthread_mutex_destroy): Likewise.
23260         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23261         (__pthread_mutex_lock): Likewise.
23262         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23263         (__pthread_mutex_trylock): Likewise.
23264         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23265         (__pthread_mutex_unlock): Likewise.
23266         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23267         (__pthread_mutexattr_init): Likewise.
23268         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23269         (__pthread_mutexattr_destroy): Likewise.
23270         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23271         (__pthread_mutexattr_settype): Likewise.
23272         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23273         (__pthread_rwlock_init): Likewise.
23274         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23275         (__pthread_rwlock_destroy): Likewise.
23276         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23277         (__pthread_rwlock_rdlock): Likewise.
23278         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23279         (__pthread_rwlock_tryrdlock): Likewise.
23280         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23281         (__pthread_rwlock_wrlock): Likewise.
23282         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23283         (__pthread_rwlock_trywrlock): Likewise.
23284         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23285         (__pthread_rwlock_unlock): Likewise.
23286         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23287         (__pthread_key_create): Likewise.
23288         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23289         (__pthread_setspecific): Likewise.
23290         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23291         (__pthread_getspecific): Likewise.
23292         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
23293         Likewise.
23294         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23295         (_pthread_cleanup_push_defer): Likewise.
23296         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23297         (_pthread_cleanup_pop_restore): Likewise.
23298         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
23299         (pthread_setcancelstate): Likewise.
23300         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
23301         <bp-sym.h>.
23302         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
23303         (memchr): Do not use BP_SYM in weak_alias.
23304         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
23305         (fegetenv): Do not use BP_SYM in versioned symbols.
23306         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
23307         (fesetenv): Do not use BP_SYM in versioned symbols.
23308         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
23309         (feupdateenv): Do not use BP_SYM in versioned symbols.
23310         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
23311         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
23312         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
23313         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
23314         (open64): Do not use BP_SYM in weak_alias.
23315         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
23316         (fegetenv): Do not use BP_SYM in versioned symbols.
23317         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
23318         (fesetenv): Do not use BP_SYM in versioned symbols.
23319         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
23320         (feupdateenv): Do not use BP_SYM in versioned symbols.
23321         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
23322         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
23323         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
23324         (feraiseexcept): Do not use BP_SYM in versioned symbols.
23325         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
23326         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
23327         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
23328         <bp-sym.h>.
23329         (__libc_start_main): Do not use BP_SYM.
23330
23331 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
23332
23333         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
23334         redundant return line.
23335         (norm): Likewise.
23336         (denorm): Likewise.
23337         (dbl_mp): Likewise.
23338         (sub_magnitudes): Likewise.
23339         (__add): Likewise.
23340         (__sub): Likewise.
23341         (__mul): Likewise.
23342         (__inv): Likewise.
23343         (__dvd): Likewise.
23344         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
23345         (norm): Likewise.
23346         (denorm): Likewise.
23347         (dbl_mp): Likewise.
23348         (sub_magnitudes): Likewise.
23349         (__add): Likewise.
23350         (__sub): Likewise.
23351         (__mul): Likewise.
23352         (__inv): Likewise.
23353         (__dvd): Likewise.
23354
23355         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
23356         instead of __mul.
23357         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
23358         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
23359         (cc32): Likewise.
23360
23361         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
23362         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
23363         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
23364         of __mul for squares.
23365         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
23366         function
23367         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
23368         Likewise.
23369         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
23370         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
23371
23372 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
23373
23374         [BZ #13550]
23375         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
23376         code.
23377         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
23378         prototype or function definition.  Rename ubp_* variables and
23379         parameters.  Remove argv definitions conditional on
23380         [__BOUNDED_POINTERS__].
23381         * debug/backtrace.c (__backtrace): Do not use __unbounded.
23382         * elf/dl-runtime.c (_dl_fixup): Likewise.
23383         * include/set-hooks.h (RUN_HOOK): Likewise.
23384         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
23385         definition.
23386         * string/strcpy.c (strcpy): Do not use __unbounded.
23387         * sysdeps/generic/frame.h (struct layout): Likewise.
23388         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
23389         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
23390         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
23391         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
23392         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
23393         (__backtrace): Likewise.
23394         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
23395         use __ptrvalue.
23396         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
23397         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
23398         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
23399         Likewise.
23400         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
23401         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
23402         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
23403         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23404         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
23405         Do not use __unbounded.
23406         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
23407         Rename __unboundedrlimits parameter to rlimits in prototype.
23408         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
23409         Do not use __unbounded.
23410         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
23411         not use __ptrvalue.
23412         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23413         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
23414         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23415         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
23416         __ptrvalue or __unbounded.
23417         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
23418         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
23419         use __unbounded.
23420         (__new_msgctl): Do not use __ptrvalue.
23421         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
23422         __unbounded.
23423         (__libc_msgrcv): Do not use __ptrvalue.
23424         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
23425         startup_info): Do not use __unbounded.
23426         (__libc_start_main): Likewise.  Rename ubp_* variables and
23427         parameters.  Remove argv definitions conditional on
23428         [__BOUNDED_POINTERS__].
23429         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
23430         __ptrvalue.
23431         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
23432         use __unbounded.
23433         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
23434         or __ptrvalue.
23435         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
23436         use __unbounded.
23437         (__new_shmctl): Do not use __ptrvalue.
23438         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
23439         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
23440         Likewise.
23441         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
23442         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
23443         (__libc_sigaction): Likewise.
23444         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
23445         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
23446         Likewise.
23447         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23448
23449 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
23450
23451         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
23452
23453         * string/mempcpy.c: Implement by calling memcpy.
23454
23455 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
23456
23457         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
23458
23459         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
23460         evaluation.
23461
23462         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
23463         values in the mantissa.
23464
23465         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
23466         minimize writes to Z.
23467         (sub_magnitudes): Simplify code a bit.
23468
23469 2013-02-12  Roland McGrath  <roland@hack.frob.com>
23470
23471         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
23472         from the message.  The linker prefixes all warnings with that already.
23473
23474 2013-02-12  Andreas Schwab  <schwab@suse.de>
23475
23476         [BZ #15078]
23477         * posix/regexec.c (extend_buffers): Add parameter min_len.
23478         (check_matching): Pass minimum needed length.
23479         (clean_state_log_if_needed): Likewise.
23480         (get_subexp): Likewise.
23481         * posix/Makefile (tests): Add bug-regex34.
23482         (bug-regex34-ENV): Define.
23483         * posix/bug-regex34.c: New file.
23484
23485         [BZ #11561]
23486         * posix/regcomp.c (parse_bracket_exp): When looking up collating
23487         elements compare against the byte sequence of it, not its name.
23488         * posix/Makefile (tests): Add bug-regex35.
23489         (bug-regex35-ENV): Define.
23490         * posix/bug-regex35.c: New file.
23491
23492 2013-02-11  Tom de Vries  <tom@codesourcery.com>
23493
23494         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
23495         comment.
23496         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
23497         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
23498         (CHECK_EOL): Add undef.
23499
23500 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
23501
23502         * bits/stdlib-bsearch.h: New file.
23503         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
23504         * stdlib/stdlib.h: Likewise.
23505
23506 2013-02-11  Roland McGrath  <roland@hack.frob.com>
23507
23508         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
23509         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
23510         declaration.
23511         * manual/search.texi (Array Search Function): Add missing const in
23512         lfind prototype.
23513         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
23514         declaration to use rlim_t.
23515         (Basic Scheduling Functions): Remove erroneous const from
23516         sched_getparam prototype.  Remove erroneous * from
23517         sched_get_priority_max and sched_get_priority_min prototypes.
23518         (Resource Usage): Fix summary @comment on vtimes to refer to
23519         sys/vtimes.h rather than vtimes.h.
23520         Add missing *s in vtimes prototype.
23521         (Limits on Resources): Fix ulimit prototype to return long int.
23522         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
23523         prototypes to use long int rather than double.
23524         (BSD Random): Fix initstate and setstate to use char *, not void *.
23525         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
23526         prototype to make second argument 'struct aiocb64 *const[]'.
23527         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
23528         (Status of AIO Operations): Remove erroneous const in aio_return and
23529         aio_return64 prototypes.
23530         (Synchronizing I/O): Fix sync prototype to return void.
23531         * manual/startup.texi (Suboptions): Remove an erroneous const in
23532         getsubopt prototype.
23533         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
23534         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
23535         use size_t rather than int.
23536         (Scanning All Users): Likewise for getpwent_r.
23537         (Setting Groups): Add missing const to setgroups prototype.
23538         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
23539         * manual/socket.texi (Host Names): Fix gethostbyaddr and
23540         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
23541         'const void *' rather than 'const char *'.
23542         (Host Address Functions): Likewise for inet_ntop.
23543         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
23544         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
23545         ssize_t for return value.
23546         (Sending Data): Likewise for send, sendto, sendmsg.
23547         (Socket Option Functions): Add a missing const in setsockopt prototype.
23548         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
23549         use wchar_t for the argument.
23550         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
23551         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
23552         take no arguments.
23553         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
23554         double/float/long double for second argument.
23555         Fix return types of significand, significandf, significandl.
23556         * manual/filesys.texi (Setting Permissions): Use mode_t for second
23557         argument in fchmod prototype.
23558         (File Owner): Use uid_t and gid_t in fchown prototype.
23559         (File Times): Add const to utimes, futimes, and lutimes prototypes.
23560         (Making Special Files): Use mode_t and dev_t in mknod prototype.
23561         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
23562         use 'const struct dirent **' as argument types to CMP function pointer
23563         argument.
23564         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
23565         (File Times): Fix summary magic @comment for struct utimbuf and utime
23566         to refer to utime.h, not time.h.
23567         * manual/string.texi (Argz Functions): Add missing const in
23568         argz_extract and argz_next prototypes.
23569         (Finding Tokens in a String): Likewise for basename.
23570         (String/Array Comparison): Fix typo in wcscasecmp prototype.
23571         (Copying and Concatenation): Fix typo in wmemmove prototype.
23572         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
23573         (Signal Stack): Remove erroneous const in sigstack prototype.
23574         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
23575         prototype.
23576         (Simple Calendar Time): Likewise for stime.
23577         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
23578         prototype.
23579         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
23580         say sys/sysctl.h instead.
23581         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
23582         and vsyslog prototypes.
23583
23584 2013-02-11  Tom de Vries  <tom@codesourcery.com>
23585
23586         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
23587         Remove.
23588
23589 2013-02-11  Roland McGrath  <roland@hack.frob.com>
23590
23591         * misc/sys/mman.h: Fix typo in mremap comment.
23592
23593 2013-02-08  Roland McGrath  <roland@hack.frob.com>
23594
23595         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
23596         the '\0' terminator.
23597
23598 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
23599
23600         [BZ #13550]
23601         * debug/segfault.c: Don't include <bp-checks.h>.
23602         * sysdeps/generic/bp-checks.h: Remove file.
23603         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
23604         (__GETDENTS): Don't use CHECK_N.
23605         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
23606         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
23607         (__getgroups): Don't use CHECK_N.
23608         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
23609         (setgroups): Don't use CHECK_N.
23610         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
23611         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
23612         (__libc_msgrcv): Don't use CHECK_N.
23613         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
23614         (__libc_msgsnd): Don't use CHECK_N.
23615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
23616         <bp-checks.h>.
23617         (__libc_pread): Don't use CHECK_N.
23618         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
23619         include <bp-checks.h>.
23620         (__libc_pread64): Don't use CHECK_N.
23621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
23622         include <bp-checks.h>.
23623         (__libc_pwrite): Don't use CHECK_N.
23624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
23625         include <bp-checks.h>.
23626         (__libc_pwrite64): Don't use CHECK_N.
23627         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
23628         <bp-checks.h>.
23629         (__libc_pread): Don't use CHECK_N.
23630         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
23631         include <bp-checks.h>.
23632         (__libc_pread64): Don't use CHECK_N.
23633         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
23634         include <bp-checks.h>.
23635         (__libc_pwrite): Don't use CHECK_N.
23636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
23637         include <bp-checks.h>.
23638         (__libc_pwrite64): Don't use CHECK_N.
23639         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
23640         (do_pread): Don't use CHECK_N.
23641         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
23642         (do_pread64): Don't use CHECK_N.
23643         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
23644         (do_pwrite): Don't use CHECK_N.
23645         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
23646         (do_pwrite64): Don't use CHECK_N.
23647         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
23648         (__libc_readv): Don't use CHECK_N.
23649         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
23650         (semop): Don't use CHECK_N.
23651         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
23652         <bp-checks.h>.
23653         (semtimedop): Don't use CHECK_N.
23654         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
23655         (__libc_pread): Don't use CHECK_N.
23656         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
23657         <bp-checks.h>.
23658         (__libc_pread64): Don't use CHECK_N.
23659         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
23660         <bp-checks.h>.
23661         (__libc_pwrite): Don't use CHECK_N.
23662         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
23663         <bp-checks.h>.
23664         (__libc_pwrite64): Don't use CHECK_N.
23665         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
23666         <bp-checks.h>.
23667         (__libc_msgrcv): Don't use CHECK_N.
23668         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
23669         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
23670         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
23671         (__libc_writev): Don't use CHECK_N.
23672
23673 2013-02-08  Roland McGrath  <roland@hack.frob.com>
23674
23675         * string/strcpy.c: Removed unused variable.
23676
23677         * Makeconfig (+sysdep-includes): Define with := rather than =.
23678         Use an existing include/ subdir of each sysdeps dir before it.
23679
23680 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
23681
23682         * nscd/connection.c (register_traced_file): Comment function.
23683         [HAVE_INOTIFY] (union __inev): Define.
23684         [HAVE_INOTIFY] (inotify_check_files): New function.
23685         [HAVE_INOTIFY] (clear_db_cache): Likewise.
23686         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
23687         clear_db_cache.
23688         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
23689
23690 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
23691
23692         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
23693         loaded if not already and that a failure is permanent.
23694
23695 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
23696
23697         [BZ #15006]
23698         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
23699         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
23700
23701 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
23702
23703         [BZ #13550]
23704         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
23705         (CHECK_1_NULL_OK): Likewise.
23706         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
23707         (__fxstat): Do not use CHECK_1.
23708         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
23709         <bp-checks.h>.
23710         (___fxstat64): Do not use CHECK_1.
23711         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
23712         <bp-checks.h>.
23713         (__fxstatat): Do not use CHECK_1.
23714         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
23715         <bp-checks.h>.
23716         (__fxstatat64): Do not use CHECK_1.
23717         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
23718         <bp-checks.h>.
23719         (__fxstat): Do not use CHECK_1.
23720         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
23721         <bp-checks.h>.
23722         (__fxstatat): Do not use CHECK_1.
23723         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
23724         <bp-checks.h>.
23725         (__getresgid): Do not use CHECK_1.
23726         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
23727         <bp-checks.h>.
23728         (__getresuid): Do not use CHECK_1.
23729         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
23730         <bp-checks.h>.
23731         (__lxstat): Do not use CHECK_1.
23732         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
23733         <bp-checks.h>.
23734         (__old_msgctl): Do not use CHECK_1.
23735         (__new_msgctl): Likewise.
23736         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
23737         <bp-checks.h>.
23738         (__new_setrlimit): Do not use CHECK_1.
23739         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
23740         <bp-checks.h>.
23741         (__old_shmctl): Do not use CHECK_1.
23742         (__new_shmctl): Likewise.
23743         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
23744         <bp-checks.h>.
23745         (__xstat): Do not use CHECK_1.
23746         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
23747         (__lxstat): Do not use CHECK_1.
23748         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
23749         <bp-checks.h>.
23750         (___lxstat64): Do not use CHECK_1.
23751         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
23752         (__old_msgctl): Do not use CHECK_1.
23753         (__new_msgctl): Likewise.
23754         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
23755         <bp-checks.h>.
23756         (__gettimeofday): Do not use CHECK_1.
23757         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
23758         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
23759         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
23760         <bp-checks.h>.
23761         (__gettimeofday): Do not use CHECK_1.
23762         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
23763         (__old_shmctl): Do not use CHECK_1_NULL_OK.
23764         (__new_shmctl): Do not use CHECK_1.
23765         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
23766         <bp-checks.h>.
23767         (do_sigtimedwait): Do not use CHECK_1.
23768         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
23769         <bp-checks.h>.
23770         (do_sigwaitinfo): Do not use CHECK_1.
23771         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
23772         <bp-checks.h>.
23773         (msgctl): Do not use CHECK_1.
23774         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
23775         <bp-checks.h>.
23776         (shmctl): Do not use CHECK_1.
23777         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
23778         (ustat): Do not use CHECK_1.
23779         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
23780         <bp-checks.h>.
23781         (__fxstat): Do not use CHECK_1.
23782         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
23783         <bp-checks.h>.
23784         (__fxstatat): Do not use CHECK_1.
23785         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
23786         <bp-checks.h>.
23787         (__lxstat): Do not use CHECK_1.
23788         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
23789         <bp-checks.h>.
23790         (__xstat): Do not use CHECK_1.
23791         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
23792         (__xstat): Do not use CHECK_1.
23793         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
23794         (___xstat64): Do not use CHECK_1.
23795
23796         [BZ #13550]
23797         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
23798         definitions.
23799         (CHECK_BOUNDS_HIGH): Likewise.
23800         * string/strcpy.c: Do not include <bp-checks.h>.
23801         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
23802
23803 2013-02-07  Roland McGrath  <roland@hack.frob.com>
23804
23805         * nscd/nscd-client.h (__nscd_drop_map_ref):
23806         Add __attribute__ ((unused)).
23807         * nis/nss-nisplus.h (niserr2nss): Likewise.
23808
23809         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
23810         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
23811
23812         * csu/libc-tls.c (init_static_tls, init_slotinfo):
23813         Remove inline keyword.
23814         * include/rounding-mode.h (round_away): Likewise.
23815         * libio/wfileops.c (adjust_wide_data): Likewise.
23816         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
23817         (__m128i_strloadu_tolower): Likewise.
23818         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
23819         (__m128i_strloadu_tolower): Likewise.
23820         * time/mktime.c (ydhms_diff): Likewise.
23821         * locale/elem-hash.h (elem_hash): Likewise.
23822         * locale/setlocale.c (setdata): Likewise.
23823         * posix/regex_internal.h (re_string_char_size_at): Likewise.
23824         (re_string_wchar_at): Likewise.
23825         (bitset_not, bitset_merge, bitset_mask): Likewise.
23826         [!(__GNUC__ > 3)] (inline): Remove macro.
23827         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
23828         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
23829         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
23830         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
23831         * string/memcmp.c (memcmp_bytes): Likewise.
23832         * locale/programs/locarchive.c (compute_hashval): Likewise.
23833         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
23834         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
23835         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
23836         * nss/getent.c (print_rpc, print_protocols): Likewise.
23837         (print_passwd, print_group, print_aliases): Likewise.
23838         * nis/nss-nisplus.h (niserr2nss): Likewise.
23839         * nscd/connections.c (restart_p): Likewise.
23840         Change return type to bool.
23841
23842 2013-02-05  Roland McGrath  <roland@hack.frob.com>
23843
23844         * Makeconfig (all-Depend-files): Add existing
23845         $(sorted-subdirs:=/Depend) files.
23846         (all-subdirs): Remove nss.
23847         * sysdeps/unix/inet/Subdirs: Add it here instead.
23848         * hesiod/Depend: New file.
23849
23850         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
23851         instead of calling alloca.
23852
23853         * io/lseek.c (__lseek): Rename to __libc_lseek.
23854         Define __lseek as an alias.
23855
23856         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
23857
23858 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
23859
23860         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
23861         else clause and remove check for non-standard endianness.
23862
23863 2013-02-04  David S. Miller  <davem@davemloft.net>
23864
23865         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23866
23867 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
23868
23869         [BZ #13550]
23870         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
23871         (__ubp_memchr): Remove prototype.
23872         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
23873         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
23874         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
23875         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
23876         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
23877         Remove alias.
23878         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
23879         (__ubp_memchr): Likewise.
23880         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
23881         (__ubp_memchr): Likewise.
23882         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
23883         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
23884         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
23885         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
23886         CHECK_STRING.
23887         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
23888         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
23889         (__getcwd): Do not use CHECK_STRING.
23890         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
23891         <bp-checks.h>.
23892         (__real_chown): Do not use CHECK_STRING.
23893         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
23894         <bp-checks.h>.
23895         (fchownat): Do not use CHECK_STRING.
23896         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
23897         CHECK_STRING.
23898         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
23899         <bp-checks.h>.
23900         (__lchown): Do not use CHECK_STRING.
23901         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
23902         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
23903         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
23904         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
23905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
23906         include <bp-checks.h>.
23907         (truncate64): Do not use CHECK_STRING.
23908         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
23909         <bp-checks.h>.
23910         (__real_chown): Do not use CHECK_STRING.
23911         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
23912         <bp-checks.h>.
23913         (__lchown): Do not use CHECK_STRING.
23914         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
23915         <bp-checks.h>.
23916         (__chown): Do not use CHECK_STRING.
23917         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
23918         <bp-checks.h>.
23919         (truncate64): Do not use CHECK_STRING.
23920         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
23921         Likewise.
23922         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
23923         (__xmknod): Do not use CHECK_STRING.
23924         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
23925         <bp-checks.h>.
23926         (__xmknodat): Do not use CHECK_STRING.
23927         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
23928         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
23929
23930 2013-02-04  Andreas Schwab  <schwab@suse.de>
23931
23932         [BZ #14142]
23933         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
23934         * include/netdb.h: Likewise for h_errno.
23935         * elf/tst-stackguard1.c: Include <tls.h>.
23936
23937 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
23938
23939         * elf/link.h (struct link_map): Extend the l_addr comment.
23940         * include/link.h (struct link_map): Likewise.
23941
23942 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
23943
23944         [BZ #13550]
23945         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
23946         (BOUNDED_1): Remove macro.
23947         * debug/backtrace.c: Don't include <bp-checks.h>.
23948         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
23949         (__backtrace): Likewise.
23950         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
23951         <bp-checks.h>.
23952         (__backtrace): Don't use BOUNDED_1.
23953         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
23954         <bp-checks.h>.
23955         (__backtrace): Don't use BOUNDED_1.
23956         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
23957         (__backtrace): Don't use BOUNDED_1.
23958         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
23959         (shmat): Don't use BOUNDED_N.
23960
23961 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
23962
23963         [BZ #13550]
23964         * sysdeps/generic/bp-start.h: Remove file.
23965         * csu/libc-start.c: Don't include <bp-start.h>.
23966         (LIBC_START_MAIN): Set up __environ directly instead of using
23967         INIT_ARGV_and_ENVIRON.
23968         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
23969         <bp-start.h>.
23970
23971         [BZ #13550]
23972         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
23973         definitions.
23974         (CHECK_FCNTL): Likewise.
23975         (CHECK_N_PAGES): Likewise.
23976
23977         [BZ #13550]
23978         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
23979         definitions.
23980         (CHECK_SIGSET_NULL_OK): Likewise.
23981         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
23982         <bp-checks.h>.
23983         (sigpending): Don't use CHECK_SIGSET.
23984         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
23985         <bp-checks.h>.
23986         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
23987         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
23988         <bp-checks.h>.
23989         (do_sigsuspend): Don't use CHECK_SIGSET.
23990         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
23991         use CHECK_SIGSET.
23992         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
23993         (do_sigwait): Don't use CHECK_SIGSET.
23994         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
23995         use CHECK_SIGSET.
23996         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
23997         include <bp-checks.h>.
23998         (sigpending): Don't use CHECK_SIGSET.
23999         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
24000         include <bp-checks.h>.
24001         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
24002         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
24003         <bp-checks.h>.
24004         (sigpending): Don't use CHECK_SIGSET.
24005         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
24006         <bp-checks.h>.
24007         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
24008
24009         [BZ #13550]
24010         * sysdeps/generic/bp-semctl.h: Remove file.
24011         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
24012         <bp-checks.h> and <bp-semctl.h>.
24013         (__old_semctl): Don't use CHECK_SEMCTL.
24014         (__new_semctl): Likewise.
24015         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
24016         and <bp-semctl.h>.
24017         (__old_semctl): Don't use CHECK_SEMCTL.
24018         (__new_semctl): Likewise.
24019         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
24020         <bp-checks.h> and <bp-semctl.h>.
24021         (__old_semctl): Don't use CHECK_SEMCTL.
24022         (__new_semctl): Likewise.
24023         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
24024         <bp-checks.h> and <bp-semctl.h>.
24025         (semctl): Don't use CHECK_SEMCTL.
24026
24027         [BZ #13550]
24028         * Makerules (elide-bp-thunks): Remove variable.
24029         (elide-routines.oS): Don't use $(elide-bp-thunks).
24030         (elide-routines.os): Likewise.
24031         (elide-routines.o): Likewise.
24032         (elide-routines.op): Likewise.
24033         (elide-routines.og): Likewise.
24034         (objects): Don't use $(bp-thunks).
24035         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
24036         include.
24037         (common-generated): Do not add s-proto-bp.d.
24038         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
24039         (int): Likewise.
24040         (typ): Likewise.
24041         Do not generate makefile rules for bounded-pointer thunks.
24042         * sysdeps/generic/bp-thunks.h: Remove file.
24043         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
24044         * sysdeps/unix/s-proto-bp.S: Likewise.
24045
24046         [BZ #15062]
24047         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
24048         parts of result separately when argument is not close to line from
24049         -i to i and one part of argument is small.
24050         * math/k_casinhf.c (__kernel_casinhf): Likewise.
24051         * math/k_casinhl.c (__kernel_casinhl): Likewise.
24052         * math/libm-test.inc (cacos_test): Add more tests.
24053         (casin_test): Likewise.
24054         (casinh_test): Likewise.
24055         * sysdeps/i386/fpu/libm-test-ulps: Update.
24056         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24057
24058 2013-01-31  David S. Miller  <davem@davemloft.net>
24059
24060         * po/de.po: Update from translation team.
24061
24062 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
24063
24064         * time/tzfile.c: Include stdint.h for SIZE_MAX.
24065
24066 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
24067
24068         * configure.in (_AC_PROG_CC_C89): New definition.
24069         * configure: Regenerate.
24070
24071         * configure.in (AC_PROG_CPP): New definition.
24072         * configure: Regenerate.
24073
24074 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
24075
24076         * debug/tst-backtrace.h: New file.
24077         * debug/tst-backtrace2.c: Include tst-backtrace.h.
24078         (ret): Remove variable.
24079         (x): Likewise.
24080         (FAIL): Remove macro.
24081         (NO_INLINE): Likewise.
24082         (fn1): Use match function instead of strstr.
24083         * debug/tst-backtrace3.c: Include tst-backtrace.h.
24084         (ret): Remove variable.
24085         (x): Likewise.
24086         (FAIL): Remove macro.
24087         (NO_INLINE): Likewise.
24088         (fn): Use match function instead of strstr.
24089         * debug/tst-backtrace4.c: Include tst-backtrace.h.
24090         (ret): Remove variable.
24091         (x): Likewise.
24092         (FAIL): Remove macro.
24093         (NO_INLINE): Likewise.
24094         (handle_signal): Use match function instead of strstr.
24095         * debug/tst-backtrace5.c: Include tst-backtrace.h.
24096         (ret): Remove variable.
24097         (x): Likewise.
24098         (FAIL): Remove macro.
24099         (NO_INLINE): Likewise.
24100         (handle_signal): Use match function instead of strstr.
24101
24102 2013-01-23  Roland McGrath  <roland@hack.frob.com>
24103
24104         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
24105
24106 2013-01-23  David S. Miller  <davem@davemloft.net>
24107
24108         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
24109         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
24110         argument of CAS if possible.
24111         * sysdeps/sparc/sparc64/bits/atomic.h
24112         (__arch_compare_and_exchange_val_32_acq): Likewise.
24113         (__arch_compare_and_exchange_val_64_acq): Likewise.
24114
24115 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
24116
24117         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
24118         * sysdeps/posix/ulimit.c: ... this.
24119         Include <limits.h>.
24120         * sysdeps/unix/bsd/ulimit.c: Remove file.
24121
24122 2013-01-23  Adam Conrad  <adconrad@0c3.net>
24123
24124         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
24125         (LDFLAGS-tst-array5): Likewise.
24126
24127 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
24128
24129         [BZ #15036]
24130         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
24131         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
24132         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
24133         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
24134
24135 2013-01-21  David S. Miller  <davem@davemloft.net>
24136
24137         * sysdeps/sparc/backtrace.c: New file.
24138         * sysdeps/sparc/sparc32/backtrace.h: New file.
24139         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
24140         * sysdeps/sparc/sparc64/backtrace.h: New file.
24141         * sysdeps/sparc/sparc64/backtrace.c: Delete.
24142         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
24143         -funwind-tables.
24144
24145 2013-01-21  Andreas Schwab  <schwab@suse.de>
24146
24147         [BZ #15020]
24148         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
24149         closed its stdout.
24150
24151 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
24152
24153         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
24154         "mpa2.h".
24155         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
24156
24157 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
24158             Mark Mitchell  <mark@codesourcery.com>
24159             Tom de Vries  <tom@codesourcery.com>
24160             Paul Pluzhnikov  <ppluzhnikov@google.com>
24161
24162         * debug/tst-backtrace2.c: New file.
24163         * debug/tst-backtrace3.c: Likewise.
24164         * debug/tst-backtrace4.c: Likewise.
24165         * debug/tst-backtrace5.c: Likewise.
24166         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
24167         (CFLAGS-tst-backtrace3.c): Likewise.
24168         (CFLAGS-tst-backtrace4.c): Likewise.
24169         (CFLAGS-tst-backtrace5.c): Likewise.
24170         (LDFLAGS-tst-backtrace2): Likewise.
24171         (LDFLAGS-tst-backtrace3): Likewise.
24172         (LDFLAGS-tst-backtrace4): Likewise.
24173         (LDFLAGS-tst-backtrace5): Likewise.
24174         (tests): Add new tests tst-backtrace2, tst-backtrace3,
24175         tst-backtrace4 and tst-backtrace5.
24176
24177 2013-01-18  Anton Blanchard  <anton@samba.org>
24178             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
24179
24180         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
24181         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
24182         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
24183         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
24184         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
24185         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
24186         "+r" and remove output regs list as redundant.  Add explicit inline
24187         asm to specify register of return val to work around compiler codegen
24188         bug.  Remove (int) cast on return value.  Add return type parameter to
24189         use in macro so that this macro does not truncate return value for
24190         64-bit values.
24191         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
24192         pass to INTERNAL_VSYSCALL_NCS.
24193         (INLINE_VSYSCALL): Add 'long int' as return type to
24194         INTERNAL_VSYSCALL_NCS macro invocation.
24195         (INTERNAL_VSYSCALL): Add 'long int' as return type to
24196         INTERNAL_VSYSCALL_NCS macro invocation.
24197         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24198
24199 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
24200
24201         [BZ #14496]
24202         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
24203         Fix application of SIMD FP exception mask.
24204
24205         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
24206         mp_no from a power of two.
24207         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
24208         __mpexp_twomm1.  Use __pow_mp.
24209
24210         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
24211         multiplication.
24212
24213 2013-01-17  David S. Miller  <davem@davemloft.net>
24214
24215         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24216
24217 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
24218
24219         [BZ #15023]
24220         * include/complex.h: Condition contents on [!_COMPLEX_H].
24221         (__kernel_casinhf): New prototype.
24222         (__kernel_casinh): Likewise.
24223         (__kernel_casinhl): Likewise.
24224         * math/Makefile (libm_calls): Add k_casinh.
24225         * math/k_casinh.c: New file.
24226         * math/k_casinhf.c: Likewise.
24227         * math/k_casinhl.c: Likewise.
24228         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
24229         finite nonzero arguments.
24230         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
24231         finite nonzero arguments.
24232         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
24233         finite nonzero arguments.
24234         * math/s_casinh.c: Do not include <float.h>.
24235         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
24236         * math/s_casinhf.c: Do not include <float.h>.
24237         (__casinhf): Move code for finite nonzero arguments to
24238         k_casinhf.c.
24239         * math/s_casinhl.c: Do not include <float.h>.
24240         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
24241         redefine.
24242         (__casinhl): Move code for finite nonzero arguments to
24243         k_casinhl.c.
24244         * math/libm-test.inc (cacos_test): Add more tests.
24245         * sysdeps/i386/fpu/libm-test-ulps: Update.
24246         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24247
24248 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
24249
24250         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
24251         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
24252         [!HAVE_MREMAP]: Remove [defined linux] case.
24253         * malloc/arena.c: Do not include <malloc-sysdep.h>.
24254
24255 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
24256
24257         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
24258
24259 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
24260
24261         * elf/elf.h (R_386_SIZE32): New relocation.
24262         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
24263         R_386_SIZE32.
24264         (elf_machine_rela): Likewise.
24265         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
24266         R_X86_64_SIZE64 and R_X86_64_SIZE32.
24267
24268 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
24269
24270         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
24271         (FP_FAST_FMA): Do not define.
24272         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
24273         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
24274         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
24275         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
24276         !_SOFT_FLOAT]: Likewise.
24277         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
24278         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
24279         value.
24280         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
24281         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
24282         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
24283         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
24284         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
24285         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
24286         file.
24287
24288 2013-01-16  Andreas Schwab  <schwab@suse.de>
24289
24290         [BZ #14327]
24291         * include/stdlib.h (__mktemp): Add declaration.
24292         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
24293         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
24294
24295 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
24296
24297         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
24298         definitions.
24299         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
24300         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
24301         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
24302         definitions here.
24303         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
24304         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
24305         definitions.
24306         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
24307         and ONE.
24308         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
24309         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
24310         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
24311         definitions.
24312         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
24313         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
24314         definitions.
24315         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
24316
24317         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
24318
24319 2013-01-15  David S. Miller  <davem@davemloft.net>
24320
24321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
24322         trunc{,f} to libm-sysdep_routes.
24323         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
24324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
24325         file.
24326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
24327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
24328         file.
24329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
24330         file.
24331         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
24332         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
24333         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
24334         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
24335         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
24336         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
24337         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
24338         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
24339
24340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
24341         nearbyint{,f} to libm-sysdep_routes.
24342         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
24343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
24344         New file.
24345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
24346         file.
24347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
24348         New file.
24349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
24350         file.
24351         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
24352         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
24353         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
24354         file.
24355         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
24356         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
24357         file.
24358         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
24359         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
24360         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
24361
24362         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
24363         libc_feholdexcept and libc_fesetenv.
24364
24365 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
24366
24367         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
24368
24369 2013-01-14  David S. Miller  <davem@davemloft.net>
24370
24371         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
24372         (SPARC_ASM_VIS2_IFUNC): Likewise.
24373         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
24374         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
24375         use of 'siam' instruction.
24376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
24377         Likewise.
24378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
24379         Likewise.
24380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
24381         Likewise.
24382         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
24383         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
24384         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
24385         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
24386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
24387         file.
24388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
24389         file.
24390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
24391         file.
24392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
24393         file.
24394         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
24395         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
24396         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
24397         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
24398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
24399         new VIS2 routines.
24400         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
24401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
24402         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
24403         Likewise.
24404         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
24405         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
24406         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
24407         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
24408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
24409         routines to libm-sysdep_routines.
24410         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
24411
24412         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
24413         fdim/fdimf to libm-sysdep_routines.
24414         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
24415         file.
24416         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
24417         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
24418         file.
24419         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
24420         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
24421         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
24422         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
24423         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
24424         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
24425         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
24426
24427 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
24428
24429         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
24430         to optimize copies.
24431
24432         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
24433         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
24434         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
24435
24436         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
24437         local variable MPTWO.
24438         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
24439         Likewise.
24440
24441 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
24442
24443         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
24444         GLOB_NOESCAPE.
24445
24446 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
24447
24448         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
24449
24450 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
24451
24452         * manual/pattern.texi (glob_t): Document gl_flags.
24453         (glob64_t): Likewise.
24454
24455 2013-01-11  David S. Miller  <davem@davemloft.net>
24456
24457         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
24458         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
24459         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
24460         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
24461         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
24462         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
24463         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
24464         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
24465         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
24466         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
24467         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
24468         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
24469         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
24470
24471         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
24472         sparc V9 rather than using V8 code.
24473         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
24474         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
24475
24476         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
24477         Move to...
24478         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
24479         Here.
24480
24481 2013-01-11  Roland McGrath  <roland@hack.frob.com>
24482
24483         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
24484         not in the main loop.
24485         * configure: Regenerated.
24486
24487 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
24488
24489         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
24490         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
24491         to just #else.
24492         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
24493         [!__GLIBC_HAVE_LONG_LONG] case.
24494         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
24495         condition to just #else.
24496         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
24497         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
24498         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
24499         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
24500         unconditional.
24501         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
24502         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
24503         #elif condition to just #else.
24504         * sysdeps/unix/sysv/linux/sys/sysmacros.h
24505         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
24506         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
24507         #elif condition to just #else.
24508
24509 2013-01-11  Steve Ellcey  <sellcey@mips.com>
24510
24511         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
24512         (EF_MIPS_ARCH_64): Fix value.
24513         (EF_MIPS_ARCH_32R2): New.
24514         (EF_MIPS_ARCH_64R2): New.
24515
24516 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
24517
24518         * Makeconfig (+link-pie-before-libc): New.
24519         (+link-pie-after-libc): Likewise.
24520         (+link-pie-tests): Likewise.
24521         (+link-pie): Rewritten.
24522         (link-before-libc): Remove $(config-LDFLAGS).
24523         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
24524         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
24525         (config-LDFLAGS): Renamed to ...
24526         (rtld-LDFLAGS): This.
24527         (rtld-tests-LDFLAGS): New macro.
24528         (link-libc-rpath-link): Likewise.
24529         (link-libc-tests-rpath-link): Likewise.
24530         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
24531         (link-libc): Prepand $(link-libc-rpath-link).
24532         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
24533         (test-program-prefix): New macro.
24534         (test-via-rtld-prefix): Likewise.
24535         (test-program-cmd): Likewise.
24536         (host-test-program-cmd): Likewise.
24537         * Makefile ($(common-objpfx)testrun.sh): Replace
24538         $(run-program-prefix) with $(test-program-prefix).
24539         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
24540         $(rtld-LDFLAGS).
24541         ($(common-objpfx)shlib.lds): Likewise.
24542         (build-module-helper): Likewise.
24543         ($(common-objpfx)format.lds): Likewise.
24544         * Rules (binaries-pie-tests): New.
24545         (binaries-pie-notests): Likewise.
24546         (binaries-pie): Rewritten.
24547         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
24548         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
24549         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
24550         (make-test-out): Replace $(host-built-program-cmd) with
24551         $(host-test-program-cmd).
24552         * config.make.in (build-hardcoded-path-in-tests): New variable.
24553         * configure.in (--enable-hardcoded-path-in-tests): New configure
24554         option.
24555         (hardcoded_path_in_tests): New AC_SUBST.
24556         * configure: Regenerated.
24557         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
24558         $(built-program-cmd) with $(test-program-cmd).
24559         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
24560         (test_program_cmd): This.
24561         * elf/Makefile ($(objpfx)order.out): Run test with
24562         $(test-program-prefix).
24563         ($(objpfx)order2.out): Likewise.
24564         ($(objpfx)tst-initorder.out): Likewise.
24565         ($(objpfx)tst-initorder2.out): Likewise.
24566         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
24567         $(test-program-cmd).
24568         ($(objpfx)tst-array1-static.out): Likewise.
24569         ($(objpfx)tst-array2.out): Likewise.
24570         ($(objpfx)tst-array3.out): Likewise.
24571         ($(objpfx)tst-array4.out): Likewise.
24572         ($(objpfx)tst-array5.out): Likewise.
24573         ($(objpfx)tst-array5-static.out): Likewise.
24574         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
24575         $(test-program-cmd).
24576         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
24577         $(run-program-prefix) with $(test-program-prefix).
24578         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
24579         (test_program_prefix): This.
24580         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
24581         $(run-program-prefix) with $(test-program-prefix).
24582         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
24583         (test_program_prefix): This.
24584         * iconvdata/tst-tables.sh: Likewise.
24585         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
24586         $(run-program-prefix) with $(test-program-prefix).
24587         ($(objpfx)tst-translit.out): Likewise.
24588         ($(objpfx)tst-gettext2.out): Likewise.
24589         ($(objpfx)tst-gettext4.out): Likewise.
24590         ($(objpfx)tst-gettext6.out): Likewise.
24591         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
24592         (test_program_prefix): This.
24593         * intl/tst-gettext2.sh: Likewise.
24594         * intl/tst-gettext4.sh  Likewise.
24595         * intl/tst-gettext6.sh: Likewise.
24596         * intl/tst-translit.sh: Likewise.
24597         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
24598         with $(test-program-cmd).
24599         * libio/Makefile ($(objpfx)test-freopen.out): Replace
24600         $(run-program-prefix) with $(test-program-prefix).
24601         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
24602         (test_program_prefix): This.
24603         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
24604         $(run-program-prefix) with $(test-program-prefix).
24605         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
24606         (test_program_prefix): This.
24607         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
24608         * posix/Makefile ($(objpfx)globtest.out): Replace
24609         $(run-via-rtld-prefix) and $(test-wrapper) with
24610         $(test-program-prefix) and $(test-via-rtld-prefix).
24611         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
24612         $(test-program-prefix).
24613         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
24614         $(host-test-program-cmd).
24615         (tst-spawn-ARGS): Likewise.
24616         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
24617         $(test-program-prefix).
24618         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
24619         (test_via_rtld_prefix): This.
24620         (test_wrapper): Renamed to ...
24621         (test_program_prefix): This.
24622         (run_program_prefix): Replaced by test_program_prefix.
24623         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
24624         (test_program_prefix): This.
24625         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
24626         with $(host-test-program-cmd).
24627         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
24628         $(run-program-prefix) with $(test-program-prefix).
24629         ($(objpfx)tst-printf.out): Likewise.
24630         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
24631         $(test-program-cmd).
24632         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
24633         (test_program_prefix): This.
24634         * stdio-common/tst-unbputc.sh: Likewise.
24635         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
24636         $(run-program-prefix) with $(test-program-prefix).
24637         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
24638         (test_program_prefix): This.
24639         * string/Makefile ($(objpfx)tst-svc.out):  Replace
24640         $(built-program-cmd) with $(test-program-cmd).
24641
24642 2013-01-11  Andreas Jaeger  <aj@suse.de>
24643
24644         [BZ #15003]
24645         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
24646         value. Sync with Linux 3.7.
24647
24648 2013-01-10  David S. Miller  <davem@davemloft.net>
24649
24650         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
24651         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
24652         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
24653
24654 2013-01-10  Roland McGrath  <roland@hack.frob.com>
24655
24656         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
24657         never set.
24658         * configure: Regenerated.
24659
24660 2013-01-10  David S. Miller  <davem@davemloft.net>
24661
24662         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
24663         sparc V9 rather than using V8 code.
24664         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
24665         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
24666
24667 2013-01-10  Roland McGrath  <roland@hack.frob.com>
24668
24669         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
24670         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
24671         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
24672         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
24673         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
24674         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
24675         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
24676         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
24677         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
24678         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
24679         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
24680         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
24681         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
24682         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
24683         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
24684         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
24685         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
24686         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
24687         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
24688         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
24689         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
24690         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
24691         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
24692         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
24693         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
24694         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
24695         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
24696
24697 2013-01-10  David S. Miller  <davem@davemloft.net>
24698
24699         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24700
24701 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
24702
24703         * posix/Makefile (tests-static): New variable.
24704         (tests): Add $(tests-static).
24705         (tst-exec-static-ARGS): New variable.
24706         (tst-spawn-static-ARGS): Likewise.
24707         * posix/tst-exec-static.c: New file.
24708         * posix/tst-spawn-static.c: Likewise.
24709         * posix/tst-exec.c: Support run directly.
24710         * posix/tst-spawn.c: Likewise.
24711
24712 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
24713
24714         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
24715         long.
24716         * math/bits/mathcalls.h (llrint): Likewise.
24717         (llround): Likewise.
24718         * stdlib/stdlib.h (struct drand48_data): Likewise.
24719         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
24720         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
24721         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
24722         Likewise.
24723         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
24724         Likewise.
24725         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
24726         (elf_greg_t): Likewise.
24727         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
24728         (__jmp_buf): Likewise.
24729         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
24730         definitions.
24731         (llrint): Likewise, for all definitions.
24732         (llrintl): Likewise.
24733
24734         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
24735         Remove [__GNUC__] condition.
24736         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
24737         condition to just [__USE_ISOC99].
24738         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
24739
24740 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
24741
24742         [BZ #14200]
24743         * sysdeps/unix/sysv/linux/x86/bits/environments.h
24744         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
24745         defined.
24746         (_POSIX_V6_ILP32_OFF32): Likewise.
24747         (_XBS5_ILP32_OFF32): Likewise.
24748         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
24749         (__ILP32_OFFBIG_LDFLAGS): Likewise.
24750
24751 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
24752
24753         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
24754
24755         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
24756         doubles __mpexp_twomm1.  Adjust usage.
24757         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
24758         Remove.
24759
24760 2013-01-10  Andreas Schwab  <schwab@suse.de>
24761
24762         [BZ #14964]
24763         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
24764         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
24765
24766 2013-01-09  David S. Miller  <davem@davemloft.net>
24767
24768         [BZ #15003]
24769         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS)
24770         (TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT)
24771         (TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS)
24772         (TCP_FASTOPEN): Define.
24773         (tcp_repair_opt): New structure.
24774         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
24775         enum values.
24776         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE)
24777         (TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN)
24778         (TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
24779         (tcp_cookie_transactions): New structure.
24780
24781 2013-01-09  Anton Blanchard  <anton@samba.org>
24782
24783         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
24784         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
24785         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
24786         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
24787
24788 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
24789
24790         * include/features.h (__USE_ANSI): Remove.
24791
24792 2013-01-09  Roland McGrath  <roland@hack.frob.com>
24793
24794         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
24795
24796         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
24797
24798 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
24799
24800         * sysdeps/s390/fpu/libm-test-ulps: Update.
24801
24802         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24803
24804         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
24805         (__acr): Likewise.
24806         (__cpy): Likewise.
24807         (norm): Likewise.
24808         (denorm): Likewise.
24809         (__mp_dbl): Likewise.
24810         (__dbl_mp): Likewise.
24811         (add_magnitudes): Likewise.
24812         (sub_magnitudes): Likewise.
24813         (__add): Likewise.
24814         (__sub): Likewise.
24815         (__mul): Likewise.
24816         (__inv): Likewise.
24817         (__dvd): Likewise.
24818         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
24819         (__acr): Likewise.
24820         (__cpy): Likewise.
24821         (norm): Likewise.
24822         (denorm): Likewise.
24823         (__mp_dbl): Likewise.
24824         (__dbl_mp): Likewise.
24825         (add_magnitudes): Likewise.
24826         (sub_magnitudes): Likewise.
24827         (__add): Likewise.
24828         (__sub): Likewise.
24829         (__mul): Likewise.
24830         (__inv): Likewise.
24831         (__dvd): Likewise.
24832         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
24833         (__acr): Likewise.
24834         (__cpy): Likewise.
24835         (norm): Likewise.
24836         (denorm): Likewise.
24837         (__mp_dbl): Likewise.
24838         (__dbl_mp): Likewise.
24839         (add_magnitudes): Likewise.
24840         (sub_magnitudes): Likewise.
24841         (__add): Likewise.
24842         (__sub): Likewise.
24843         (__mul): Likewise.
24844         (__inv): Likewise.
24845         (__dvd): Likewise.
24846
24847 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
24848
24849         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
24850         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
24851         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
24852         2 && __USE_EXTERN_INLINES]: Likewise.
24853
24854 2013-01-08  Andreas Jaeger  <aj@suse.de>
24855
24856         [BZ# 14985]
24857         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
24858         Remove.
24859         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
24860         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
24861
24862 2013-01-07  Anton Blanchard  <anton@samba.org>
24863
24864         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
24865         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
24866         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
24867         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
24868         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
24869         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
24870         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
24871         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
24872         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
24873         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
24874         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
24875         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
24876         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
24877         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
24878         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
24879         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
24880         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
24881         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
24882         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
24883         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
24884         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
24885         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
24886         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
24887         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
24888         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
24889         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
24890         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
24891         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
24892         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
24893         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
24894         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
24895         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
24896         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
24897         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
24898         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
24899         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
24900         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
24901         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
24902         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
24903         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
24904         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
24905         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24906         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
24907
24908 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
24909
24910         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
24911         (__MALLOC_PMT): Likewise.
24912         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
24913         [__GNUC__], only on [_LIBC].
24914         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
24915         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
24916         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
24917         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
24918         forward declaration.
24919         (realloc_hook_ini): Likewise.
24920         (memalign_hook_ini): Likewise.
24921         (__libc_memalign): Do not use __MALLOC_PMT in variable
24922         declaration.
24923         (__libc_valloc): Likewise.
24924         (__libc_pvalloc): Likewise.
24925         (__libc_calloc): Likewise.
24926         (__posix_memalign): Likewise.
24927
24928         [BZ #14996]
24929         * math/s_casinh.c: Include <float.h>.
24930         (__casinh): Do not do computation with squaring and square root
24931         for large arguments.
24932         * math/s_casinhf.c: Include <float.h>.
24933         (__casinhf): Do not do computation with squaring and square root
24934         for large arguments.
24935         * math/s_casinhl.c: Include <float.h>.
24936         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
24937         (__casinhl): Do not do computation with squaring and square root
24938         for large arguments.
24939         * math/libm-test.inc (casin_test): Add more tests.
24940         (casinh_test): Likewise.
24941         * sysdeps/i386/fpu/libm-test-ulps: Update.
24942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24943
24944 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
24945
24946         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
24947         (__x86_64_raw_data_cache_size): Likewise.
24948         (__x86_64_data_cache_size_half): Likewise.
24949         (__x86_64_raw_data_cache_size_half): Likewise.
24950         (__x86_64_shared_cache_size): Likewise.
24951         (__x86_64_raw_shared_cache_size): Likewise.
24952         (__x86_64_shared_cache_size_half): Likewise.
24953         (__x86_64_raw_shared_cache_size_half): Likewise.
24954         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
24955         to ...
24956         (__x86_data_cache_size): This.
24957         (__x86_64_raw_data_cache_size): Renamed to ...
24958         (__x86_raw_data_cache_size): This.
24959         (__x86_64_data_cache_size_half): Renamed to ...
24960         (__x86_data_cache_size_half): This.
24961         (__x86_64_raw_data_cache_size_half): Renamed to ...
24962         (__x86_raw_data_cache_size_half): This.
24963         (__x86_64_shared_cache_size): Renamed to ...
24964         (__x86_shared_cache_size): This.
24965         (__x86_64_raw_shared_cache_size): Renamed to ...
24966         (__x86_raw_shared_cache_size): This.
24967         (__x86_64_shared_cache_size_half): Renamed to ...
24968         (__x86_shared_cache_size_half): This.
24969         (__x86_64_raw_shared_cache_size_half): Renamed to ...
24970         (__x86_raw_shared_cache_size_half): This.
24971         * sysdeps/x86_64/memcpy.S: Updated.
24972         * sysdeps/x86_64/memset.S: Likewise.
24973         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
24974         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24975         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24976
24977 2013-01-04  David S. Miller  <davem@davemloft.net>
24978
24979         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24980
24981 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
24982
24983         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
24984         1 to avoid redefinition warning.
24985         (__USE_GNU): Don't define.
24986         (init_signaling_nan): Protoize.
24987
24988         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24989
24990 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
24991
24992         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
24993         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
24994         (__cpymn): Likewise.
24995         (norm): Remove commented code.
24996         (denorm): Likewise.
24997         (__mp_dbl): Likewise.
24998         (__inv): Likewise.
24999         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
25000         (__cpymn): Likewise.
25001         (norm): Remove commented code.
25002         (denorm): Likewise.
25003         (__mp_dbl): Likewise.
25004         (__inv): Likewise.
25005
25006         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
25007         mp_no value for 1.0 and 2.0.
25008         (norm): Use RADIXI instead of radixi.d.
25009         (denorm): Likewise.
25010         (__mul): Use 0.0 instead of zero.d.
25011         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
25012         mp_no value for 1.0 and 2.0.
25013         (norm): Use RADIXI instead of radixi.d.
25014         (denorm): Likewise.
25015         (__mul): Use 0.0 instead of zero.d.
25016
25017 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
25018
25019         [BZ #14994]
25020         * math/s_casinh.c (__casinh): Reduce finite argument to first
25021         quadrant then set signs of results at the end.
25022         * math/s_casinhf.c (__casinhf): Likewise.
25023         * math/s_casinhl.c (__casinhl): Likewise.
25024         * math/libm-test.inc (casin_test): Add more tests.
25025         (casinh_test): Likewise.
25026         * sysdeps/i386/fpu/libm-test-ulps: Update.
25027         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25028
25029 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
25030
25031         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
25032
25033         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
25034
25035         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
25036         declarations.
25037         (denorm): Likewise.
25038         (__mp_dbl): Likewise.
25039         (__inv): Likewise.
25040
25041         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
25042         and adjust the header comment.
25043
25044         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
25045         variable name from declaration.
25046
25047 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
25048
25049         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25050         Initialize COMMON_CPUID_INDEX_7 element.
25051         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
25052         (CPUID_RTM): Likewise.
25053         (HAS_RTM): Likewise.
25054         (COMMON_CPUID_INDEX_7): New enum.
25055
25056 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
25057
25058         [BZ #14981]
25059         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
25060         size is zero, record memory as freed.
25061
25062 2013-01-03  Andreas Jaeger  <aj@suse.de>
25063
25064         * po/ia.po: Add new Interlingua translation.
25065
25066 2012-01-03  Allan McRae  <allan@archlinux.org>
25067
25068         * locale/programs/localedef.c: Fix description of '--posix' flag.
25069
25070 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
25071
25072         * NEWS: Update dates in second copyright notice.
25073         * README: Update copyright dates in example.
25074         * manual/libc.texinfo: Update copyright dates.
25075         * scripts/test-installation.pl: Update copyright date in --version
25076         output.
25077
25078         * hurd/ctty-input.c: Fix copyright notice formatting.
25079         * hurd/ctty-output.c: Likewise.
25080         * hurd/dtable.c: Likewise.
25081         * hurd/hurd-raise.c: Likewise.
25082         * hurd/hurdprio.c: Likewise.
25083         * hurd/msgportdemux.c: Likewise.
25084         * misc/sys/file.h: Likewise.
25085         * misc/sys/ioctl.h: Likewise.
25086         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
25087         * sysdeps/mach/hurd/chdir.c: Likewise.
25088         * sysdeps/mach/hurd/fchdir.c: Likewise.
25089         * sysdeps/mach/hurd/rename.c: Likewise.
25090         * sysdeps/mach/hurd/rmdir.c: Likewise.
25091         * sysdeps/mach/hurd/seekdir.c: Likewise.
25092         * sysdeps/mach/hurd/setsid.c: Likewise.
25093         * sysdeps/posix/wait3.c: Likewise.
25094
25095         * All files with FSF copyright notices: Update copyright dates
25096         using scripts/update-copyrights.
25097         * intl/plural.c: Regenerated.
25098         * locale/programs/charmap-kw.h: Likewise.
25099         * locale/programs/locfile-kw.h: Likewise.
25100
25101 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
25102
25103         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
25104         four values.
25105
25106         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
25107         calculation loop and add branch prediction.
25108
25109         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
25110         check access beyond bounds of m1np.
25111
25112         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
25113         MPTWO.
25114         (__inv): Remove local variable MPTWO to use the global
25115         constant.
25116         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
25117         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
25118         variable MPTWO.
25119         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
25120         MP3HALFS static const.
25121
25122 2013-01-01  David S. Miller  <davem@davemloft.net>
25123
25124         * po/ca.po: Update from translation team.
25125
25126 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
25127
25128         * scripts/update-copyrights: New file.
25129         * Makeconfig: Reformat copyright notice.
25130         * ctype/ctype.h: Likewise.
25131         * debug/swprintf_chk.c: Likewise.
25132         * elf/dl-cache.c: Likewise.
25133         * elf/dl-debug.c: Likewise.
25134         * elf/dl-object.c: Likewise.
25135         * grp/initgroups.c: Likewise.
25136         * hurd/Makefile: Likewise.
25137         * hurd/hurd/signal.h: Likewise.
25138         * hurd/hurdfault.c: Likewise.
25139         * hurd/hurdioctl.c: Likewise.
25140         * hurd/hurdlookup.c: Likewise.
25141         * hurd/intr-msg.c: Likewise.
25142         * iconv/gconv_open.c: Likewise.
25143         * libio/swprintf.c: Likewise.
25144         * locale/lc-ctype.c: Likewise.
25145         * locale/nl_langinfo.c: Likewise.
25146         * mach/Machrules: Likewise.
25147         * mach/Makefile: Likewise.
25148         * malloc/obstack.h: Likewise.
25149         * manual/Makefile: Likewise.
25150         * manual/tsort.awk: Likewise.
25151         * misc/bits/stab.def: Likewise.
25152         * nis/nis_print_group_entry.c: Likewise.
25153         * nis/nis_table.c: Likewise.
25154         * nis/nss_compat/compat-pwd.c: Likewise.
25155         * nis/nss_compat/compat-spwd.c: Likewise.
25156         * po/Makefile: Likewise.
25157         * posix/fnmatch.c: Likewise.
25158         * posix/regex.h: Likewise.
25159         * resolv/Makefile: Likewise.
25160         * resolv/nss_dns/dns-network.c: Likewise.
25161         * resolv/res_hconf.c: Likewise.
25162         * scripts/gen-sorted.awk: Likewise.
25163         * soft-fp/soft-fp.h: Likewise.
25164         * stdio-common/printf.h: Likewise.
25165         * stdlib/monetary.h: Likewise.
25166         * stdlib/random.c: Likewise.
25167         * stdlib/random_r.c: Likewise.
25168         * sysdeps/generic/Makefile: Likewise.
25169         * sysdeps/gnu/Makefile: Likewise.
25170         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
25171         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
25172         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
25173         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
25174         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
25175         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
25176         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
25177         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
25178         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
25179         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
25180         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
25181         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
25182         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
25183         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
25184         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
25185         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
25186         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
25187         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
25188         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
25189         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
25190         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
25191         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
25192         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
25193         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
25194         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
25195         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
25196         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
25197         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
25198         * sysdeps/mach/hurd/errnos.awk: Likewise.
25199         * sysdeps/mach/hurd/fork.c: Likewise.
25200         * sysdeps/mach/hurd/getcwd.c: Likewise.
25201         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
25202         * sysdeps/mach/hurd/mmap.c: Likewise.
25203         * sysdeps/mach/hurd/utimes.c: Likewise.
25204         * sysdeps/mach/hurd/xmknod.c: Likewise.
25205         * sysdeps/posix/profil.c: Likewise.
25206         * sysdeps/posix/readdir_r.c: Likewise.
25207         * sysdeps/powerpc/bits/mathdef.h: Likewise.
25208         * sysdeps/powerpc/bits/setjmp.h: Likewise.
25209         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
25210         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
25211         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
25212         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
25213         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
25214         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
25215         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
25216         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
25217         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
25218         * sysdeps/pthread/lio_listio.c: Likewise.
25219         * sysdeps/sparc/dl-procinfo.h: Likewise.
25220         * sysdeps/unix/i386/sysdep.S: Likewise.
25221         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
25222         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
25223         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
25224         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
25225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
25226         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
25227         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
25228         * sysdeps/unix/sysv/linux/speed.c: Likewise.
25229         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
25230         * sysdeps/wordsize-32/divdi3.c: Likewise.
25231         * time/sys/time.h: Likewise.
25232         * wcsmbs/Makefile: Likewise.
25233
25234 2013-01-01  David S. Miller  <davem@davemloft.net>
25235
25236         * po/fr.po: Update from translation team.
25237
25238         * catgets/gencat.c: Update copyright year.
25239         * csu/version.c: Likewise.
25240         * debug/catchsegv.sh: Likewise.
25241         * debug/pcprofiledump.c: Likewise.
25242         * debug/xtrace.sh: Likewise.
25243         * elf/ldconfig.c: Likewise.
25244         * elf/ldd.bash.in: Likewise.
25245         * elf/pldd.c: Likewise.
25246         * elf/sotruss.ksh: Likewise.
25247         * elf/sprof.c: Likewise.
25248         * iconv/iconv_prog.c: Likewise.
25249         * iconv/iconvconfig.c: Likewise.
25250         * locale/programs/locale.c: Likewise.
25251         * locale/programs/localedef.c: Likewise.
25252         * login/programs/pt_chown.c: Likewise.
25253         * malloc/memusage.sh: Likewise.
25254         * malloc/memusagestat.c: Likewise.
25255         * malloc/mtrace.pl: Likewise.
25256         * nscd/nscd.c: Likewise.
25257         * nss/getent.c: Likewise.
25258         * nss/makedb.c: Likewise.
25259         * posix/getconf.c: Likewise.
25260
25261 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
25262
25263         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
25264         numbers.
25265
25266 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
25267
25268         * math/bits/mathcalls.h (modf): Use __nonnull.
25269
25270 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
25271
25272         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
25273         (split): Use macro CN instead of the bare value.
25274         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
25275         could be used.
25276         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
25277         instead of the bare value.
25278         (power1): Likewise.
25279
25280 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25281
25282         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
25283         __ATAN_TWOM.
25284         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
25285
25286         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
25287         their values.
25288         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
25289         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
25290         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
25291         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
25292
25293 2012-12-28  Andreas Jaeger  <aj@suse.de>
25294
25295         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
25296         values are from Linux 3.7.
25297
25298         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
25299         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
25300
25301 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25302
25303         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
25304         TRUE case.
25305
25306         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
25307         (norm): Likewise.
25308         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
25309         variables with preprocessor constants.
25310         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
25311         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
25312         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
25313
25314 2012-12-27  Bruno Haible  <bruno@clisp.org>
25315
25316         [BZ #14317]
25317         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
25318         only if needed.
25319
25320 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
25321
25322         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
25323         and use variable directly.
25324         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
25325
25326         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
25327         MPONE.
25328         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
25329         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
25330         variable MPONE.
25331         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
25332         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
25333         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
25334         include directive.  Remove local variable MPONE.
25335         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
25336         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
25337         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
25338
25339 2012-12-25  David S. Miller  <davem@davemloft.net>
25340
25341         * version.h (RELEASE): Set to "development".
25342         (VERSION): Set to "2.17.90".
25343         * NEWS: Add 2.18 section.
25344
25345 2012-12-21  David S. Miller  <davem@davemloft.net>
25346
25347         * po/hr.po: Update from translation team.
25348
25349 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25350
25351         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
25352
25353 2012-12-19  Steve Ellcey  <sellcey@mips.com>
25354
25355         * NEWS:  Mention new memcpy for MIPS.
25356
25357 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
25358
25359         * manual/contrib.texi (Contributors): Spelling correction.
25360
25361 2012-12-15  David S. Miller  <davem@davemloft.net>
25362
25363         * po/ru.po: Update from translation team.
25364
25365 2012-12-13  David S. Miller  <davem@davemloft.net>
25366
25367         * NEWS: Mention IFUNC testsuite enhancements.
25368
25369         * po/pl.po: Update from translation team.
25370         * po/bg.po: Likewise.
25371
25372         * manual/contrib.texi (Contributors): Update entries for Hongjiu
25373         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
25374
25375 2012-12-11  David S. Miller  <davem@davemloft.net>
25376
25377         * po/sv.po: Update from translation team.
25378
25379         * po/vi.po: Update from translation team.
25380
25381         * po/cs.po: Update from translation team.
25382
25383         * po/de.po: Update from translation team.
25384         * po/eo.po: Likewise.
25385         * po/nl.po: Likewise.
25386
25387 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
25388
25389         [BZ #14246]
25390         * manual/argp.texi (Argp Helper Functions): Move node to follow
25391         Argp Parsing State.
25392
25393         [BZ #14872]
25394         * manual/conf.texi (Limits on File System Capacity): Mention if
25395         terminating null is included in the max size.
25396
25397 2012-12-10  Andreas Jaeger  <aj@suse.de>
25398
25399         * po/cs.po: Update from translation team.
25400
25401 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
25402
25403         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
25404         void pointer and cast to uintptr_t.
25405         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
25406         path.
25407         * sysdeps/s390/s390-64/memcpy.S: Likewise.
25408         * sysdeps/s390/s390-64/memset.S: Likewise.
25409
25410 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
25411
25412         [BZ #14833]
25413         * menual/message.texi (Message Translation): Fix typos.
25414         (Helper programs for gettext): Likewise.
25415
25416 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
25417
25418         [BZ #14898]
25419         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
25420         Change to -1.
25421
25422 2012-12-07  David S. Miller  <davem@davemloft.net>
25423
25424         * po/libc.pot: Update.
25425
25426 2012-12-07  Richard Henderson  <rth@redhat.com>
25427
25428         [BZ #10114]
25429         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
25430         normal/normal case to before the switch.
25431         (_FP_DIV): Likewise.
25432
25433 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
25434             Mike Frysinger  <vapier@gentoo.org>
25435
25436         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
25437         check for __NR_fadvise64_64.
25438
25439 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
25440
25441         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
25442         0, not just to plain "0" as a statement.
25443         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
25444         with cw.
25445
25446 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
25447
25448         * NEWS: Use sourceware.org in Bugzilla URL.
25449
25450 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
25451
25452         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
25453         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
25454
25455         * stdio-common/tst-put-error.c (do_test): Add newline to the
25456         padded test to ensure flush.
25457
25458 2012-12-05  Jeff Law  <law@redhat.com>
25459
25460         * sunrpc/etc.rpc (fedfs_admin): Add entry.
25461
25462 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
25463
25464         * README: Don't refer to ports add-on as distributed separately.
25465         Mention AArch64 in list of systems supported in the ports add-on.
25466
25467         * LICENSES: Add more non-FSF copyright and license notices.
25468
25469         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
25470         ((unused)).
25471
25472         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
25473
25474         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
25475         10000 as width of padded output.
25476
25477 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
25478
25479         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
25480
25481         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
25482         variable LX with __attribute__ ((unused)).
25483         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
25484         Likewise.
25485         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
25486         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
25487         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
25488         with __attribute__ ((unused)).
25489
25490 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
25491
25492         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
25493
25494 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
25495
25496         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
25497         (CFLAGS-nldbl-acos.c): New variable.
25498         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
25499         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
25500         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
25501         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
25502         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
25503         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
25504         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
25505         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
25506         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
25507         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
25508         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
25509         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
25510         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
25511         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
25512         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
25513         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
25514         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
25515         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
25516         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
25517         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
25518         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
25519         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
25520         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
25521         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
25522         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
25523         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
25524         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
25525         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
25526         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
25527         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
25528         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
25529         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
25530         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
25531         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
25532         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
25533         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
25534         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
25535         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
25536         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
25537         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
25538         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
25539         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
25540         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
25541         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
25542         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
25543         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
25544         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
25545         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
25546         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
25547         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
25548         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
25549         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
25550         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
25551         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
25552         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
25553         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
25554         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
25555         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
25556         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
25557         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
25558         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
25559         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
25560         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
25561         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
25562         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
25563         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
25564         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
25565         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
25566         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
25567         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
25568         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
25569         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
25570         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
25571         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
25572         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
25573         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
25574         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
25575         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
25576         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
25577         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
25578         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
25579         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
25580         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
25581         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
25582         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
25583         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
25584         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
25585         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
25586         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
25587         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
25588         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
25589         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
25590         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
25591         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
25592         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
25593         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
25594         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
25595
25596         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
25597         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
25598
25599         [BZ #14914]
25600         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
25601         whole low double instead of just low 47 bits when splitting values
25602         into two parts.
25603
25604 2012-12-03  Allan McRae  <allan@archlinux.org>
25605
25606         * manual/stdio.texi (Predefined Printf Handlers): Remove
25607         @hsep and @vsep usage.
25608
25609 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
25610
25611         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
25612         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
25613
25614 2012-12-03  Jeff Law  <law@redhat.com>
25615
25616         * time/sys/time.h (settimeofday): Do not mark TV argument
25617         as __nonnull.
25618
25619 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
25620
25621         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
25622         when currently writing and seek to current position when not.
25623         * libio/Makefile (tests): Remove bug-fclose1.
25624         * libio/bug-fclose1.c: Delete.
25625
25626 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
25627
25628         * manual/arith.texi (feenableexcept): Fix typo.
25629         (fedisableexcept): Likewise.
25630
25631 2012-11-30  Roland McGrath  <roland@hack.frob.com>
25632
25633         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
25634         second, differently-typed declaration, rather than a cast.
25635
25636 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
25637
25638         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
25639         * include/rpc/svc.h: ... here.
25640
25641 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
25642
25643         [BZ #13013]
25644         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
25645         depending n and resplen2 to catch cases where answer
25646         equals answerp2.
25647
25648 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
25649
25650         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
25651         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
25652
25653 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
25654
25655         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
25656
25657 2012-11-29  Roland McGrath  <roland@hack.frob.com>
25658
25659         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
25660
25661 2012-11-28  Jeff Law  <law@redhat.com>
25662
25663         [BZ #13761]
25664         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
25665         dataset_temporary.  Track alloca usage into alloca_used.
25666         If dataset is large allocate and release it via malloc/free.
25667
25668 2012-06-04  Florian Weimer  <fweimer@redhat.com>
25669
25670         [BZ #14197]
25671         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
25672
25673 2012-11-28  David S. Miller  <davem@davemloft.net>
25674
25675         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25676
25677 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
25678
25679         [BZ #14803]
25680         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
25681         of pi/2 rounded to nearest to 64 bits.
25682         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
25683         nearest to 64 bits.
25684         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
25685         bits.
25686
25687 2012-11-28  Jeff Law <law@redhat.com>
25688             Martin Osvald <mosvald@redhat.com>
25689
25690         [BZ #14889]
25691         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
25692         * sunrpc/svc.c: Include time.h.
25693         (__svc_accept_failed): New function.
25694         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
25695         any reason other than EINTR, call __svc_accept_failed.
25696         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
25697         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
25698
25699 2012-11-28  Andreas Schwab  <schwab@suse.de>
25700
25701         * scripts/abilist.awk: Also handle indirect functions in .opd
25702         section.
25703
25704 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
25705
25706         [BZ #13881]
25707         * sysdeps/x86/fpu/powl_helper.c: New file.
25708         * sysdeps/x86/fpu/Makefile: Likewise.
25709         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
25710         (p3): New object.
25711         (__ieee754_powl): Use __powl_helper for finite arguments except
25712         integer exponents below 8.
25713         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
25714         (p3): New object.
25715         (__ieee754_powl): Use __powl_helper for finite arguments except
25716         integer exponents below 8.
25717         * math/libm-test.inc (pow_test): Add more tests and enable some
25718         previously disabled tests.
25719         * sysdeps/i386/fpu/libm-test-ulps: Update.
25720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25721
25722 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
25723             Carlos O'Donell  <carlos_odonell@mentor.com>
25724
25725         * nss/makedb.c (is_prime): Assert that input is odd and greater
25726         than 4.  Note that fact in a comment too.
25727         (next_prime): Add 4 to input.
25728
25729 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
25730
25731         [BZ #11741]
25732         * libio/Makefile (tests): Add test case tst-fwrite-error.
25733         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
25734         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
25735         * libio/tst-fwrite-error.c: New test case.
25736
25737 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
25738
25739         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
25740         before casting to void *.
25741         * include/libc-internal.h (__pointer_type): New macro.
25742         (__integer_if_pointer_type_sub): Likewise.
25743         (__integer_if_pointer_type): Likewise.
25744         (cast_to_integer): Likewise.
25745         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
25746         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
25747         before casting to atomic64_t.
25748         (atomic_exchange_acq): Likewise.
25749         (__arch_exchange_and_add_body): Likewise.
25750         (__arch_add_body): Likewise.
25751         (atomic_add_negative): Likewise.
25752         (atomic_add_zero): Likewise.
25753
25754 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
25755
25756         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
25757         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
25758         (add_fdes): Likewise.
25759         (linear_search_fdes): Likewise.
25760         (binary_search_unencoded_fdes): Likewise.
25761
25762 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
25763
25764         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
25765
25766 2012-11-24  Adam Conrad  <adconrad@0c3.net>
25767
25768         * configure.in: Autodetect C++ header directories.
25769         * configure: Regenerated.
25770
25771 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
25772
25773         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
25774
25775 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
25776
25777         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25778
25779 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
25780
25781         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
25782         LDBL_MANT_DIG == 106]: Disable some tests.
25783         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
25784         Likewise.
25785         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
25786         Likewise.
25787
25788         [BZ #14871]
25789         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
25790         input for small inputs.  Return +/- pi/2 for large inputs.
25791         * math/libm-test.inc (atan_test): Add more tests.
25792
25793         * sysdeps/generic/unwind-dw2-fde-glibc.c
25794         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
25795         __attribute__ ((unused)).
25796
25797         [BZ #14645]
25798         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
25799         x * y if x and y are nonzero and z is zero.
25800
25801         [BZ #14811]
25802         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
25803         nonzero exponents with absolute value below 0x1p-117 to +/-
25804         0x1p-117.
25805
25806         [BZ #14869]
25807         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
25808         up arguments below 2**-450, not just those below 2**-500.
25809         * math/libm-test.inc (hypot_test): Add another test.
25810
25811         [BZ #14868]
25812         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
25813         Return a+b for ratio over 2**120, not 2**60.
25814         * math/libm-test.inc (hypot_test): Add another test.
25815
25816         * math/libm-test.inc (clog_test): Use
25817         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
25818         (clog10_test): Likewise.
25819
25820         [BZ #6778]
25821         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
25822
25823 2012-11-22  Andreas Schwab  <schwab@suse.de>
25824
25825         * sysdeps/i386/fpu/libm-test-ulps: Update.
25826
25827 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
25828
25829         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
25830         printf output with newline.
25831
25832 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
25833
25834         [BZ #14865]
25835         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
25836         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
25837         -z nodlopen, -z initfirst and -z execstack support.
25838         * configure: Regenerated.
25839
25840         * elf/elf.h (DF_1_NODIRECT): New macro.
25841         (DF_1_IGNMULDEF): Likewise.
25842         (DF_1_NOKSYMS): Likewise.
25843         (DF_1_NOHDR): Likewise.
25844         (DF_1_EDITED): Likewise.
25845         (DF_1_NORELOC): Likewise.
25846         (DF_1_SYMINTPOSE): Likewise.
25847         (DF_1_GLOBAUDIT): Likewise.
25848         (DF_1_SINGLETON): Likewise.
25849         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
25850         DT_1_SUPPORTED_MASK bits.
25851         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
25852
25853 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
25854
25855         * sysdeps/unix/make-syscalls.sh: Document prefixes.
25856
25857 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
25858
25859         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
25860         macro.
25861
25862         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
25863         (sendmmsg): Move declarations...
25864         * socket/sys/socket.h: ... here.
25865         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
25866         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
25867         include it from...
25868         * socket/recvmmsg.c: ... this new file.
25869         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
25870         (sendmmsg): Rename to __sendmmsg, create weak alias and make
25871         definition of __sendmmsg hidden.
25872         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
25873         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
25874         Move ENOSYS stub into and include it from...
25875         * socket/sendmmsg.c: ... this new file.
25876         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
25877         (sysdep_routines): Move recvmmsg and sendmmsg...
25878         * socket/Makefile (routines): ... here.
25879         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
25880         (GLIBC_PRIVATE): Add __sendmmsg.
25881         * include/sys/socket.h (__sendmmsg): Add declarations.
25882         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
25883         sendmmsg.
25884
25885 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
25886
25887         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
25888         variable I1 with __attribute__ ((unused)).
25889         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
25890
25891 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
25892
25893         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
25894         DUMMY variables with __attribute__ ((unused)).
25895
25896         * bits/byteswap.h: Include <bits/types.h>.
25897         (__bswap_64): Use __uint64_t instead of unsigned long long int.
25898
25899 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
25900
25901         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
25902         string_t.  Do not manually set errno.
25903         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
25904         length with __strnlen.  Make sure to both set errno and return it on
25905         failure.
25906
25907 2012-11-19  David S. Miller  <davem@davemloft.net>
25908
25909         With help from Joseph Myers.
25910         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
25911         very large arguments properly.
25912         * math/libm-test.inc (atan_test): New tests.
25913         (atan2_test): New tests.
25914         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25915         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
25916
25917 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
25918
25919         [BZ #14856]
25920         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
25921         Define to 3.
25922
25923         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
25924         [POSIX] (EADDRNOTAVAIL): Likewise.
25925         [POSIX] (EAFNOSUPPORT): Likewise.
25926         [POSIX] (EALREADY): Likewise.
25927         [POSIX] (ECONNABORTED): Likewise.
25928         [POSIX] (ECONNREFUSED): Likewise.
25929         [POSIX] (ECONNRESET): Likewise.
25930         [POSIX] (EDESTADDRREQ): Likewise.
25931         [POSIX] (EDQUOT): Likewise.
25932         [POSIX] (EHOSTUNREACH): Likewise.
25933         [POSIX] (EIDRM): Likewise.
25934         [POSIX] (EISCONN): Likewise.
25935         [POSIX] (ELOOP): Likewise.
25936         [POSIX] (EMULTIHOP): Likewise.
25937         [POSIX] (ENETDOWN): Likewise.
25938         [POSIX] (ENETUNREACH): Likewise.
25939         [POSIX] (ENOBUFS): Likewise.
25940         [POSIX] (ENODATA): Likewise.
25941         [POSIX] (ENOLINK): Likewise.
25942         [POSIX] (ENOMSG): Likewise.
25943         [POSIX] (ENOPROTOOPT): Likewise.
25944         [POSIX] (ENOSR): Likewise.
25945         [POSIX] (ENOSTR): Likewise.
25946         [POSIX] (ENOTCONN): Likewise.
25947         [POSIX] (ENOTSOCK): Likewise.
25948         [POSIX] (EOPNOTSUPP): Likewise.
25949         [POSIX] (EOVERFLOW): Likewise.
25950         [POSIX] (EPROTO): Likewise.
25951         [POSIX] (EPROTONOSUPPORT): Likewise.
25952         [POSIX] (EPROTOTYPE): Likewise.
25953         [POSIX] (ESTALE): Likewise.
25954         [POSIX] (ETIME): Likewise.
25955         [POSIX] (ETXTBSY): Likewise.
25956         [POSIX] (EWOULDBLOCK): Likewise.
25957         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
25958         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
25959         [POSIX] (SEEK_CUR): Likewise.
25960         [POSIX] (SEEK_END): Likewise.
25961         [POSIX || UNIX98] (mode_t): Do not require.
25962         [POSIX] (off_t): Likewise.
25963         [POSIX] (pid_t): Likewise.
25964         [POSIX] (sys/stat.h): Do not allow header.
25965         [POSIX] (unistd.h): Likewise.
25966         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
25967         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
25968         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
25969         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
25970         require.
25971         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
25972         sigevent): Specify elements.
25973         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
25974         entry.
25975         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
25976         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
25977
25978         * conform/data/cpio.h-data [POSIX]: Disable whole file.
25979         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
25980         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
25981         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
25982         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
25983         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
25984         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
25985         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
25986         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
25987         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
25988         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
25989         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
25990         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
25991         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
25992         Likewise.
25993         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
25994         Likewise.
25995         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
25996         Likewise.
25997         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
25998         Likewise.
25999         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
26000         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
26001         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
26002         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
26003         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
26004         Specify lower bound on value.
26005         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
26006         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
26007         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
26008         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
26009         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
26010         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
26011         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
26012         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
26013         value.
26014         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
26015         as optional.
26016         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
26017         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
26018         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
26019         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
26020         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
26021         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
26022         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
26023         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
26024         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
26025         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
26026         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
26027         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
26028         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
26029         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
26030         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
26031         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
26032         entry.
26033         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
26034         optional.
26035         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
26036         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
26037         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
26038         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
26039         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
26040         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
26041         Likewise.
26042         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
26043         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
26044         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
26045         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
26046         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
26047         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
26048         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
26049         as optional.
26050         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
26051         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
26052         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
26053         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
26054         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
26055         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
26056         specify as optional.
26057         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
26058         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
26059         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
26060         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
26061         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
26062         [XPG3] (NL_LANGMAX): Likewise.
26063         [POSIX || XPG3] (NL_MSGMAX): Likewise.
26064         [POSIX || XPG3] (NL_NMAX): Likewise.
26065         [POSIX || XPG3] (NL_SETMAX): Likewise.
26066         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
26067         [XPG3] (NZERO): Likewise.
26068         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
26069         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
26070         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
26071         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
26072         (REG_ERANGE): Expect.
26073         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
26074         optional-constant.
26075         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
26076         Use (void) in prototype.
26077         [POSIX] (*_t): Allow.
26078         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
26079         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
26080         (WRDE_BADVAL): Expect.
26081
26082         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
26083         expect.
26084         [XPG3 || XPG4] (O_RSYNC): Likewise.
26085         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
26086         Likewise.
26087         [XPG3 || XPG4] (pthread_sigmask): Likewise.
26088         [XPG3 || XPG4] (sigqueue): Likewise.
26089         [XPG3 || XPG4] (sigtimedwait): Likewise.
26090         [XPG3 || XPG4] (sigwaitinfo): Likewise.
26091         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
26092         [XPG3 || XPG4] (vsnprintf): Likewise.
26093         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
26094         Likewise.
26095         [XPG3 || XPG4] (blksize_t): Likewise.
26096         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
26097         Likewise.
26098         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
26099         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
26100         [XPG3 || XPG4] (struct itimerspec): Likewise.
26101         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
26102         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
26103         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
26104         [XPG3 || XPG4] (clockid_t): Likewise.
26105         [XPG3 || XPG4] (timer_t): Likewise.
26106         [XPG3 || XPG4] (clock_getres): Likewise.
26107         [XPG3 || XPG4] (clock_gettime): Likewise.
26108         [XPG3 || XPG4] (clock_settime): Likewise.
26109         [XPG3 || XPG4] (nanosleep): Likewise.
26110         [XPG3 || XPG4] (timer_create): Likewise.
26111         [XPG3 || XPG4] (timer_delete): Likewise.
26112         [XPG3 || XPG4] (timer_gettime): Likewise.
26113         [XPG3 || XPG4] (timer_getoverrun): Likewise.
26114         [XPG3 || XPG4] (timer_settime): Likewise.
26115         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
26116         [XPG3 || XPG4] (getlogin_r): Likewise.
26117         [XPG3 || XPG4] (pread): Likewise.
26118         [XPG3 || XPG4] (pthread_atfork): Likewise.
26119         [XPG3 || XPG4] (pwrite): Likewise.
26120
26121         [BZ #14835]
26122         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
26123         <bits/siginfo.h>.
26124
26125 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
26126
26127         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
26128         finalizing MALLSTREAM.
26129
26130         * sysdeps/mach/hurd/syncfs.c: New file.
26131
26132 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
26133
26134         [BZ #14719]
26135         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
26136         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
26137         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
26138         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
26139         (_nss_dns_gethostbyname4_r): Likewise.
26140         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
26141         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
26142
26143 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
26144
26145         [BZ #13763]
26146         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
26147
26148 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
26149
26150         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
26151         * elf/cache.c (print_entry): Print ",AArch64" for
26152         FLAG_AARCH64_LIB64
26153
26154         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
26155         * elf/cache.c (print_entry): Print ",hard-float" for
26156         FLAG_ARM_LIBHF.
26157
26158 2012-11-18  David S. Miller  <davem@davemloft.net>
26159
26160         With help from Joseph Myers.
26161         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
26162         cutoff to 2**-13.
26163         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
26164         cutoff to 2**-25.
26165         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
26166         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
26167         small.
26168         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
26169         * math/libm-test.inc (y0_test): New tests.
26170         (y1_test): New tests.
26171         * sysdeps/i386/fpu/libm-test-ulps: Update.
26172         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26174
26175 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
26176
26177         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
26178         64-bit targets.
26179         * configure: Regenerated.
26180
26181 2012-11-17  David S. Miller  <davem@davemloft.net>
26182
26183         [BZ #14811]
26184         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
26185         nonzero exponents with absolute value below 0x1p-128 to +/-
26186         0x1p-128.
26187
26188 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
26189
26190         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
26191
26192         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
26193
26194         * posix/getconf-speclist.c: New file.
26195         * posix/posix-envs.def: Likewise.
26196         * posix/confstr.c (START_ENV_GROUP): New macro.
26197         (END_ENV_GROUP): Likewise.
26198         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
26199         (KNOWN_PRESENT_ENV_STRING): Likewise.
26200         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
26201         (UNKNOWN_ENVIRONMENT): Likewise.
26202         (confstr): Include posix-envs.def instead of handling
26203         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
26204         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
26205         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
26206         (END_ENV_GROUP): Likewise.
26207         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
26208         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
26209         (UNKNOWN_ENVIRONMENT): Likewise.
26210         (__sysconf): Include posix-envs.def instead of handling associated
26211         cases directly here.
26212         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
26213         preprocessing getconf-speclist.c rather than running getconf or
26214         generating empty file.
26215
26216 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
26217
26218         * scripts/check-local-headers.sh: Ignore 'mach' headers.
26219
26220 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
26221
26222         [BZ #14672]
26223         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
26224
26225 2012-11-16  David S. Miller  <davem@davemloft.net>
26226
26227         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
26228         smaller than LDBL_EPSILON/2.0L, just return xm1.
26229
26230 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
26231
26232         * elf/tst-array1.c (init): Set constructor priority to 1000.
26233         (fini): Set destructor priority to 1000.
26234         * elf/tst-array2dep.c: Likewise.
26235
26236 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26237
26238         [BZ #11741]
26239         * libio/fileops.c (_IO_new_file_write): Correctly return error.
26240         (_IO_new_file_xsputn): Also return EOF if none of the input
26241         data was written when overflow failed.
26242         * libio/iopadn.c (_IO_padn): Likewise.
26243         * libio/iowpadn.c (_IO_wpadn): Likewise.
26244         * stdio-common/tst-put-error.c: Add copyright notice.
26245         (do_test): Add case for printing padded string.
26246         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
26247         _IO_padn returned error.
26248         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
26249         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
26250         return EOF.
26251
26252 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
26253
26254         * libio/libioP.h: Add comment note that the references to C++
26255         bits are now obsolete.
26256
26257 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26258
26259         * math/libm-test.inc (check_complex): Use asprintf.
26260
26261 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
26262
26263         * debug/pcprofiledump.c (print_version): Update copyright year.
26264         * malloc/memusagestat.c (print_version): Likewise.
26265
26266 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
26267
26268         [BZ #14831]
26269         * elf/Makefile (tests): Add tst-audit8.
26270         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
26271         ($(objpfx)tst-audit8.out): New target.
26272         (tst-audit8-ENV): New variable.
26273         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
26274         audit if l_reloc_result is NULL.
26275         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
26276         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
26277         * elf/tst-audit8.c: New file.
26278
26279 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26280
26281         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
26282         * misc/Makefile (CFLAGS-select.c): Define.
26283         * posix/Makefile (CFLAGS-pause.c): Define.
26284
26285 2012-11-13  David S. Miller  <davem@davemloft.net>
26286
26287         * crypt/Makefile: Move test targets after toplevel Rules
26288         inclusion.  Grab any necessary sysdep routines when linking.
26289         * crypt/md5.c (md5_process_block): Remove define, we will always
26290         name it __md5_process_block.
26291         (md5_finish_ctx): Update md5_process_block call.
26292         (md5_stream): Likewise.
26293         (md5_process_bytes): Likewise.
26294         (md5_process_block): Rename to __md5_process_block and move to ...
26295         * crypt/md5-block.c: ... here.
26296         * crypt/sha256.c (sha256_process_block): Move to ...
26297         * crypt/sha256-block.c: ... here.
26298         * crypt/sha512.c (sha512_process_block): Move to ...
26299         * crypt/sha512-block.c: ... here.
26300         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
26301         path.
26302         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
26303         * sysdeps/sparc/sparc64/multiarch/Makefile
26304         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
26305         crypt subdir.
26306         (localedef-aux): Add md5 crypto assembler when in locale subdir.
26307         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
26308         multiarch changes.
26309         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
26310         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
26311         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
26312         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
26313         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
26314         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
26315         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
26316         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
26317         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
26318         file.
26319         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
26320         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
26321         file.
26322         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
26323
26324 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
26325
26326         * timezone/tzselect.ksh: Update from tzcode git revision
26327         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
26328         * timezone/zdump.c: Likewise.
26329         * timezone/zic.c: Likewise.
26330         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
26331         in TZVERSION setting, not $(PKGVERSION).
26332         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
26333         REPORT_BUGS_TO settings.
26334
26335         [BZ #14838]
26336         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
26337         macro.
26338
26339 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26340
26341         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
26342         detection to immediately after _FP_ROUND().
26343         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
26344         bits are 0.
26345
26346 2012-11-11  David S. Miller  <davem@davemloft.net>
26347
26348         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
26349         inttypes.h
26350         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
26351         __close rather than their public counterparts.
26352
26353 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
26354
26355         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
26356         file.
26357         [UNIX98] (sem_timedwait): Do not expect.
26358         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
26359         [XPG4 || UNIX98] (sockatmark): Do not expect.
26360         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
26361         (clock_getcpuclockid): Do not expect.
26362         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
26363         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
26364         Do not expect.
26365         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
26366         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
26367         [UNIX98] (vwscanf): Likewise.
26368         [UNIX98] (vswscanf): Likewise.
26369
26370 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
26371
26372         * timezone/version.h: Remove file.
26373         * timezone/README: Do not refer to version.h.
26374         * timezone/Makefile ($(objpfx)zic.o): New dependency on
26375         $(objpfx)version.h.
26376         ($(objpfx)zdump.o): Likewise.
26377         ($(objpfx)version.h): New target.
26378
26379         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
26380         2012i.
26381         * timezone/README: Don't mention modification to tzselect.ksh.
26382         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
26383         work on unmodified tzselect.ksh.  Substitute version numbers in
26384         tzselect.ksh.
26385
26386         * Makefile (format-me): Remove.
26387         (INSTALL): Adjust indentation.  Use commands directly instead of
26388         using $(format-me).
26389
26390         * aclocal.m4 (ACX_PKGVERSION): New macro.
26391         (ACX_BUGURL): Likewise.
26392         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
26393         (PKGVERSION): New AC_DEFINE_UNQUOTED.
26394         (REPORT_BUGS_TO): Likewise.
26395         * configure: Regenerated.
26396         * config.h.in (PKGVERSION): New macro.
26397         (REPORT_BUGS_TO): Likewise.
26398         * config.make.in (PKGVERSION): New variable.
26399         (PKGVERSION_TEXI): Likewise.
26400         (REPORT_BUGS_TO): Likewise.
26401         (REPORT_BUGS_TEXI): Likewise.
26402         * Makefile (format-me): Use -I$(common-objpfx)manual.
26403         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
26404         ($(common-objpfx)manual/%): New target.
26405         (manual/%): Remove target.
26406         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
26407         (print_version): Use PKGVERSION.
26408         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
26409         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
26410         and REPORT_BUGS_TO.
26411         ($(objpfx)xtrace): Likewise.
26412         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
26413         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
26414         (print_version): Use PKGVERSION.
26415         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
26416         (do_version): Use PKGVERSION.
26417         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
26418         REPORT_BUGS_TO.
26419         (common-ldd-rewrite): Likewise.
26420         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
26421         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
26422         (print_version): Use PKGVERSION.
26423         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
26424         * elf/pldd.c (argp_program_bug_address): Remove variable.
26425         (more_help): New function.
26426         (argp): Use more_help.
26427         (print_version): Use PKGVERSION.
26428         * elf/sln.c (main): Use PKGVERSION.
26429         (usage): Use REPORT_BUGS_TO.
26430         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
26431         (top level): Use PKGVERSION.
26432         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
26433         (print_version): Use PKGVERSION.
26434         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
26435         (print_version): Use PKGVERSION.
26436         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
26437         (print_version): Use PKGVERSION.
26438         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
26439         (print_version): Use PKGVERSION.
26440         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
26441         (print_version): Use PKGVERSION.
26442         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
26443         (print_version): Use PKGVERSION.
26444         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
26445         and BUGURL.
26446         ($(objpfx)memusage): Likewise.
26447         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
26448         (do_version): Use PKGVERSION.
26449         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
26450         (print_version): Use PKGVERSION.
26451         * malloc/mtrace.pl ($PACKAGE): Remove variable.
26452         ($PKGVERSION): New variable.
26453         ($REPORT_BUGS_TO): Likewise.
26454         (usage): Use $REPORT_BUGS_TO.
26455         (top level): Use $PKGVERSION.
26456         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
26457         ($(objpfx)pkgvers.texi): New rule.
26458         ($(objpfx)stamp-pkgvers): Likewise.
26459         * manual/install.texi: Include pkgvers.texi.
26460         (--with-pkgversion): Document new configure option.
26461         (--with-bugurl): Likewise.
26462         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
26463         than necessarily for this particular distribution.  Use
26464         REPORT_BUGS_TO for where to report bugs.
26465         * INSTALL: Regenerated.
26466         * manual/libc.texinfo: Include pkgvers.texi.
26467         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
26468         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
26469         (print_version): Use PKGVERSION.
26470         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
26471         (print_version): Use PKGVERSION.
26472         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
26473         (print_version): Use PKGVERSION.
26474         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
26475         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
26476         macro.
26477         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
26478         (print_version): Use PKGVERSION.
26479         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
26480         (print_version): Use PKGVERSION.
26481         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
26482         and PKGVERSION.
26483
26484         * timezone/checktab.awk: Update from tzcode 2012i.
26485         * timezone/ialloc.c: Likewise.
26486         * timezone/private.h: Likewise.
26487         * timezone/scheck.c: Likewise.
26488         * timezone/tzfile.h: Likewise.
26489         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
26490         (TZVERSION): Hardcode tzcode version number.
26491         * timezone/zdump.c: Update from tzcode 2012i.
26492         * timezone/zic.c: Likewise.
26493         * timezone/version.h: New file.
26494         * timezone/README: Describe version.h.  Update upstream location.
26495
26496         [BZ #14824]
26497         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
26498         (mktemp): Enable declaration.
26499         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
26500         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
26501         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
26502         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
26503         Likewise.
26504         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
26505         Likewise.
26506         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
26507         Likewise.
26508         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
26509         Likewise.
26510         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
26511         Likewise.
26512         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
26513         Likewise.
26514
26515         [BZ #14821]
26516         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
26517         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
26518         for copies of such integer values.
26519         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
26520         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
26521
26522 2012-11-09  Andreas Jaeger  <aj@suse.de>
26523
26524         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
26525         definitions and declarations that are provided by
26526         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
26527
26528 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26529
26530         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
26531         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
26532         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
26533         definition.
26534
26535 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26536
26537         * elf/elf.h: Update comment before AArch64 relocations.
26538
26539 2012-11-07  David S. Miller  <davem@davemloft.net>
26540
26541         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
26542         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
26543         (__start_context): Declare.
26544         (__makecontext_ret): Delete.
26545         (__makecontext): Hook up __start_context instead of
26546         __makecontext_ret.
26547         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
26548         (sysdep_routines): Add __start_context when in stdlib.
26549
26550 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26551
26552         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
26553         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
26554         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
26555         hardcoded "nm".
26556         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
26557         (READELF): New variable.  Use it instead of hardcoded "readelf".
26558
26559 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
26560
26561         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
26562         * sysdeps/x86/Makefile: Here.
26563         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
26564         * sysdeps/x86/tst-xmmymm.sh: This.
26565
26566 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26567
26568         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
26569         expectations.
26570         [UNIX98] (pthread_barrier_t): Do not expect.
26571         [UNIX98] (pthread_barrierattr_t): Likewise.
26572         [UNIX98] (pthread_spinlock_t): Likewise.
26573         [UNIX98] (pthread_barrier_destroy): Likewise.
26574         [UNIX98] (pthread_barrier_init): Likewise.
26575         [UNIX98] (pthread_barrier_wait): Likewise.
26576         [UNIX98] (pthread_barrierattr_destroy): Likewise.
26577         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
26578         [UNIX98] (pthread_barrierattr_init): Likewise.
26579         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
26580         [UNIX98] (pthread_getcpuclockid): Likewise.
26581         [UNIX98] (pthread_mutex_timedlock): Likewise.
26582         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
26583         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
26584         [UNIX98] (pthread_sigmask): Likewise.
26585         [UNIX98] (pthread_spin_destroy): Likewise.
26586         [UNIX98] (pthread_spin_init): Likewise.
26587         [UNIX98] (pthread_spin_lock): Likewise.
26588         [UNIX98] (pthread_spin_trylock): Likewise.
26589         [UNIX98] (pthread_spin_unlock): Likewise.
26590         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
26591         Do not expect.
26592         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
26593         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
26594         [XPG3 || XPG4] (pthread_cond_t): Likewise.
26595         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
26596         [XPG3 || XPG4] (pthread_key_t): Likewise.
26597         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
26598         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
26599         [XPG3 || XPG4] (pthread_once_t): Likewise.
26600         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
26601         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
26602         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
26603         [XPG3 || XPG4] (pthread_t): Likewise.
26604
26605         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
26606         not expect.
26607         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
26608
26609         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
26610         Change function return type to int.
26611
26612         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
26613         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
26614         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
26615         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
26616         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
26617         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
26618         [!POSIX] (posix_madvise): Likewise.
26619         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
26620         && !UNIX98].
26621         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
26622         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
26623         (mode_t): Likewise.
26624         (posix_mem_offset): Likewise.
26625         (posix_typed_mem_get_info): Likewise.
26626         (posix_typed_mem_open): Likewise.
26627
26628         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
26629         Change condition to [XOPEN2K8].
26630
26631         * conform/conformtest.pl: Preprocess allow-header data with -x c
26632         instead of from stdin.
26633         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
26634         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
26635         [C99-based standards] (cerfc): Likewise.
26636         [C99-based standards] (cexp2): Likewise.
26637         [C99-based standards] (cexpm1): Likewise.
26638         [C99-based standards] (clog10): Likewise.
26639         [C99-based standards] (clog1p): Likewise.
26640         [C99-based standards] (clog2): Likewise.
26641         [C99-based standards] (clgamma): Likewise.
26642         [C99-based standards] (ctgamma): Likewise.
26643         [C99-based standards] (cerff): Likewise.
26644         [C99-based standards] (cerfcf): Likewise.
26645         [C99-based standards] (cexp2f): Likewise.
26646         [C99-based standards] (cexpm1f): Likewise.
26647         [C99-based standards] (clog10f): Likewise.
26648         [C99-based standards] (clog1pf): Likewise.
26649         [C99-based standards] (clog2f): Likewise.
26650         [C99-based standards] (clgammaf): Likewise.
26651         [C99-based standards] (ctgammaf): Likewise.
26652         [C99-based standards] (cerfl): Likewise.
26653         [C99-based standards] (cerfcl): Likewise.
26654         [C99-based standards] (cexp2l): Likewise.
26655         [C99-based standards] (cexpm1l): Likewise.
26656         [C99-based standards] (clog10l): Likewise.
26657         [C99-based standards] (clog1pl): Likewise.
26658         [C99-based standards] (clog2l): Likewise.
26659         [C99-based standards] (clgammal): Likewise.
26660         [C99-based standards] (ctgammal): Likewise.
26661         * conform/data/inttypes.h-data [C99-based standards]: Include
26662         stdint.h-data.  Remove all expectations for stdint.h contents.
26663         [C99-based standards] (PRI*): Do not allow.
26664         [C99-based standards] (SCN*): Likewise.
26665         [C99-based standards] (*_t): Likewise.
26666         [C99-based-standards] (PRId8): Expect macro.
26667         [C99-based-standards] (PRIi8): Likewise.
26668         [C99-based-standards] (PRIo8): Likewise.
26669         [C99-based-standards] (PRIu8): Likewise.
26670         [C99-based-standards] (PRIx8): Likewise.
26671         [C99-based-standards] (PRIX8): Likewise.
26672         [C99-based-standards] (SCNd8): Likewise.
26673         [C99-based-standards] (SCNi8): Likewise.
26674         [C99-based-standards] (SCNo8): Likewise.
26675         [C99-based-standards] (SCNu8): Likewise.
26676         [C99-based-standards] (SCNx8): Likewise.
26677         [C99-based-standards] (PRIdLEAST8): Likewise.
26678         [C99-based-standards] (PRIiLEAST8): Likewise.
26679         [C99-based-standards] (PRIoLEAST8): Likewise.
26680         [C99-based-standards] (PRIuLEAST8): Likewise.
26681         [C99-based-standards] (PRIxLEAST8): Likewise.
26682         [C99-based-standards] (PRIXLEAST8): Likewise.
26683         [C99-based-standards] (SCNdLEAST8): Likewise.
26684         [C99-based-standards] (SCNiLEAST8): Likewise.
26685         [C99-based-standards] (SCNoLEAST8): Likewise.
26686         [C99-based-standards] (SCNuLEAST8): Likewise.
26687         [C99-based-standards] (SCNxLEAST8): Likewise.
26688         [C99-based-standards] (PRIdFAST8): Likewise.
26689         [C99-based-standards] (PRIiFAST8): Likewise.
26690         [C99-based-standards] (PRIoFAST8): Likewise.
26691         [C99-based-standards] (PRIuFAST8): Likewise.
26692         [C99-based-standards] (PRIxFAST8): Likewise.
26693         [C99-based-standards] (PRIXFAST8): Likewise.
26694         [C99-based-standards] (SCNdFAST8): Likewise.
26695         [C99-based-standards] (SCNiFAST8): Likewise.
26696         [C99-based-standards] (SCNoFAST8): Likewise.
26697         [C99-based-standards] (SCNuFAST8): Likewise.
26698         [C99-based-standards] (SCNxFAST8): Likewise.
26699         [C99-based-standards] (PRId16): Likewise.
26700         [C99-based-standards] (PRIi16): Likewise.
26701         [C99-based-standards] (PRIo16): Likewise.
26702         [C99-based-standards] (PRIu16): Likewise.
26703         [C99-based-standards] (PRIx16): Likewise.
26704         [C99-based-standards] (PRIX16): Likewise.
26705         [C99-based-standards] (SCNd16): Likewise.
26706         [C99-based-standards] (SCNi16): Likewise.
26707         [C99-based-standards] (SCNo16): Likewise.
26708         [C99-based-standards] (SCNu16): Likewise.
26709         [C99-based-standards] (SCNx16): Likewise.
26710         [C99-based-standards] (PRIdLEAST16): Likewise.
26711         [C99-based-standards] (PRIiLEAST16): Likewise.
26712         [C99-based-standards] (PRIoLEAST16): Likewise.
26713         [C99-based-standards] (PRIuLEAST16): Likewise.
26714         [C99-based-standards] (PRIxLEAST16): Likewise.
26715         [C99-based-standards] (PRIXLEAST16): Likewise.
26716         [C99-based-standards] (SCNdLEAST16): Likewise.
26717         [C99-based-standards] (SCNiLEAST16): Likewise.
26718         [C99-based-standards] (SCNoLEAST16): Likewise.
26719         [C99-based-standards] (SCNuLEAST16): Likewise.
26720         [C99-based-standards] (SCNxLEAST16): Likewise.
26721         [C99-based-standards] (PRIdFAST16): Likewise.
26722         [C99-based-standards] (PRIiFAST16): Likewise.
26723         [C99-based-standards] (PRIoFAST16): Likewise.
26724         [C99-based-standards] (PRIuFAST16): Likewise.
26725         [C99-based-standards] (PRIxFAST16): Likewise.
26726         [C99-based-standards] (PRIXFAST16): Likewise.
26727         [C99-based-standards] (SCNdFAST16): Likewise.
26728         [C99-based-standards] (SCNiFAST16): Likewise.
26729         [C99-based-standards] (SCNoFAST16): Likewise.
26730         [C99-based-standards] (SCNuFAST16): Likewise.
26731         [C99-based-standards] (SCNxFAST16): Likewise.
26732         [C99-based-standards] (PRId32): Likewise.
26733         [C99-based-standards] (PRIi32): Likewise.
26734         [C99-based-standards] (PRIo32): Likewise.
26735         [C99-based-standards] (PRIu32): Likewise.
26736         [C99-based-standards] (PRIx32): Likewise.
26737         [C99-based-standards] (PRIX32): Likewise.
26738         [C99-based-standards] (SCNd32): Likewise.
26739         [C99-based-standards] (SCNi32): Likewise.
26740         [C99-based-standards] (SCNo32): Likewise.
26741         [C99-based-standards] (SCNu32): Likewise.
26742         [C99-based-standards] (SCNx32): Likewise.
26743         [C99-based-standards] (PRIdLEAST32): Likewise.
26744         [C99-based-standards] (PRIiLEAST32): Likewise.
26745         [C99-based-standards] (PRIoLEAST32): Likewise.
26746         [C99-based-standards] (PRIuLEAST32): Likewise.
26747         [C99-based-standards] (PRIxLEAST32): Likewise.
26748         [C99-based-standards] (PRIXLEAST32): Likewise.
26749         [C99-based-standards] (SCNdLEAST32): Likewise.
26750         [C99-based-standards] (SCNiLEAST32): Likewise.
26751         [C99-based-standards] (SCNoLEAST32): Likewise.
26752         [C99-based-standards] (SCNuLEAST32): Likewise.
26753         [C99-based-standards] (SCNxLEAST32): Likewise.
26754         [C99-based-standards] (PRIdFAST32): Likewise.
26755         [C99-based-standards] (PRIiFAST32): Likewise.
26756         [C99-based-standards] (PRIoFAST32): Likewise.
26757         [C99-based-standards] (PRIuFAST32): Likewise.
26758         [C99-based-standards] (PRIxFAST32): Likewise.
26759         [C99-based-standards] (PRIXFAST32): Likewise.
26760         [C99-based-standards] (SCNdFAST32): Likewise.
26761         [C99-based-standards] (SCNiFAST32): Likewise.
26762         [C99-based-standards] (SCNoFAST32): Likewise.
26763         [C99-based-standards] (SCNuFAST32): Likewise.
26764         [C99-based-standards] (SCNxFAST32): Likewise.
26765         [C99-based-standards] (PRId64): Likewise.
26766         [C99-based-standards] (PRIi64): Likewise.
26767         [C99-based-standards] (PRIo64): Likewise.
26768         [C99-based-standards] (PRIu64): Likewise.
26769         [C99-based-standards] (PRIx64): Likewise.
26770         [C99-based-standards] (PRIX64): Likewise.
26771         [C99-based-standards] (SCNd64): Likewise.
26772         [C99-based-standards] (SCNi64): Likewise.
26773         [C99-based-standards] (SCNo64): Likewise.
26774         [C99-based-standards] (SCNu64): Likewise.
26775         [C99-based-standards] (SCNx64): Likewise.
26776         [C99-based-standards] (PRIdLEAST64): Likewise.
26777         [C99-based-standards] (PRIiLEAST64): Likewise.
26778         [C99-based-standards] (PRIoLEAST64): Likewise.
26779         [C99-based-standards] (PRIuLEAST64): Likewise.
26780         [C99-based-standards] (PRIxLEAST64): Likewise.
26781         [C99-based-standards] (PRIXLEAST64): Likewise.
26782         [C99-based-standards] (SCNdLEAST64): Likewise.
26783         [C99-based-standards] (SCNiLEAST64): Likewise.
26784         [C99-based-standards] (SCNoLEAST64): Likewise.
26785         [C99-based-standards] (SCNuLEAST64): Likewise.
26786         [C99-based-standards] (SCNxLEAST64): Likewise.
26787         [C99-based-standards] (PRIdFAST64): Likewise.
26788         [C99-based-standards] (PRIiFAST64): Likewise.
26789         [C99-based-standards] (PRIoFAST64): Likewise.
26790         [C99-based-standards] (PRIuFAST64): Likewise.
26791         [C99-based-standards] (PRIxFAST64): Likewise.
26792         [C99-based-standards] (PRIXFAST64): Likewise.
26793         [C99-based-standards] (SCNdFAST64): Likewise.
26794         [C99-based-standards] (SCNiFAST64): Likewise.
26795         [C99-based-standards] (SCNoFAST64): Likewise.
26796         [C99-based-standards] (SCNuFAST64): Likewise.
26797         [C99-based-standards] (SCNxFAST64): Likewise.
26798         [C99-based-standards] (PRIdMAX): Likewise.
26799         [C99-based-standards] (PRIiMAX): Likewise.
26800         [C99-based-standards] (PRIoMAX): Likewise.
26801         [C99-based-standards] (PRIuMAX): Likewise.
26802         [C99-based-standards] (PRIxMAX): Likewise.
26803         [C99-based-standards] (PRIXMAX): Likewise.
26804         [C99-based-standards] (SCNdMAX): Likewise.
26805         [C99-based-standards] (SCNiMAX): Likewise.
26806         [C99-based-standards] (SCNoMAX): Likewise.
26807         [C99-based-standards] (SCNuMAX): Likewise.
26808         [C99-based-standards] (SCNxMAX): Likewise.
26809         [C99-based-standards] (PRIdPTR): Likewise.
26810         [C99-based-standards] (PRIiPTR): Likewise.
26811         [C99-based-standards] (PRIoPTR): Likewise.
26812         [C99-based-standards] (PRIuPTR): Likewise.
26813         [C99-based-standards] (PRIxPTR): Likewise.
26814         [C99-based-standards] (PRIXPTR): Likewise.
26815         [C99-based-standards] (SCNdPTR): Likewise.
26816         [C99-based-standards] (SCNiPTR): Likewise.
26817         [C99-based-standards] (SCNoPTR): Likewise.
26818         [C99-based-standards] (SCNuPTR): Likewise.
26819         [C99-based-standards] (SCNxPTR): Likewise.
26820         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
26821         allow.
26822         * conform/data/stdint.h-data: Update comments to clarify
26823         requirements.
26824         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
26825         type.
26826         [C99-based standards] (INT8_MAX): Likewise.
26827         [C99-based standards] (INT16_MIN): Likewise.
26828         [C99-based standards] (INT16_MAX): Likewise.
26829         [C99-based standards] (INT32_MIN): Likewise.
26830         [C99-based standards] (INT32_MAX): Likewise.
26831         [C99-based standards] (INT64_MIN): Likewise.
26832         [C99-based standards] (INT64_MAX): Likewise.
26833         [C99-based standards] (UINT8_MAX): Likewise.
26834         [C99-based standards] (UINT16_MAX): Likewise.
26835         [C99-based standards] (UINT32_MAX): Likewise.
26836         [C99-based standards] (UINT64_MAX): Likewise.
26837         [C99-based standards] (INT_LEAST8_MIN): Likewise.
26838         [C99-based standards] (INT_LEAST8_MAX): Likewise.
26839         [C99-based standards] (INT_LEAST16_MIN): Likewise.
26840         [C99-based standards] (INT_LEAST16_MAX): Likewise.
26841         [C99-based standards] (INT_LEAST32_MIN): Likewise.
26842         [C99-based standards] (INT_LEAST32_MAX): Likewise.
26843         [C99-based standards] (INT_LEAST64_MIN): Likewise.
26844         [C99-based standards] (INT_LEAST64_MAX): Likewise.
26845         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
26846         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
26847         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
26848         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
26849         [C99-based standards] (INT_FAST8_MIN): Likewise.
26850         [C99-based standards] (INT_FAST8_MAX): Likewise.
26851         [C99-based standards] (INT_FAST16_MIN): Likewise.
26852         [C99-based standards] (INT_FAST16_MAX): Likewise.
26853         [C99-based standards] (INT_FAST32_MIN): Likewise.
26854         [C99-based standards] (INT_FAST32_MAX): Likewise.
26855         [C99-based standards] (INT_FAST64_MIN): Likewise.
26856         [C99-based standards] (INT_FAST64_MAX): Likewise.
26857         [C99-based standards] (UINT_FAST8_MAX): Likewise.
26858         [C99-based standards] (UINT_FAST16_MAX): Likewise.
26859         [C99-based standards] (UINT_FAST32_MAX): Likewise.
26860         [C99-based standards] (UINT_FAST64_MAX): Likewise.
26861         [C99-based standards] (INTPTR_MIN): Likewise.
26862         [C99-based standards] (INTPTR_MAX): Likewise.
26863         [C99-based standards] (UINTPTR_MAX): Likewise.
26864         [C99-based standards] (INTMAX_MIN): Likewise.
26865         [C99-based standards] (INTMAX_MAX): Likewise.
26866         [C99-based standards] (UINTMAX_MAX): Likewise.
26867         [C99-based standards] (PTRDIFF_MIN): Likewise.
26868         [C99-based standards] (PTRDIFF_MAX): Likewise.
26869         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
26870         [C99-based standards] (SIZE_MAX): Likewise.
26871         [C99-based standards] (WCHAR_MAX): Likewise.
26872         [C99-based standards] (WINT_MAX): Likewise.
26873         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
26874         constraint on value.
26875         [C99-based standards] (WCHAR_MIN): Likewise.
26876         [C99-based standards] (WINT_MIN): Likewise.
26877         [C99-based standards] (*_t): Allow.
26878         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
26879         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
26880         Include math.h-data and complex.h-data.  Remove all expectations
26881         of math.h and complex.h contents.
26882         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
26883         at end of line.
26884         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
26885         (struct tm): Expect tag.
26886         [C99-based-standards] (wcstof): Expect function.
26887         [C99-based-standards] (wcstold): Likewise.
26888         [C99-based-standards] (wcstoll): Likewise.
26889         [C99-based-standards] (wcstoull): Likewise.
26890         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
26891         macro-int-constant.  Specify type.
26892         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
26893         constraint on value.
26894         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
26895         Specify type.
26896         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
26897         Specify value.
26898         [ISO C standards]: Do not allow headers.
26899         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
26900         wcs[abcdefghijklmnopqrstuvwxyz]*.
26901         [ISO C standards] (*_t): Do not allow.
26902         * conform/data/wctype.h-data [C99-based standards] (iswblank):
26903         Expect function.
26904         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
26905         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
26906         Specify type.
26907         [ISO C standards]: Do not allow headers.
26908         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
26909         is[abcdefghijklmnopqrstuvwxyz]*.
26910         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
26911         to[abcdefghijklmnopqrstuvwxyz]*.
26912         [ISO C standards] (*_t): Do not allow.
26913         * conform/data/stdalign.h-data: New file.
26914         * conform/data/stdbool.h-data: Likewise.
26915         * conform/data/stdnoreturn.h-data: Likewise.
26916
26917 2012-11-07  Roland McGrath  <roland@hack.frob.com>
26918
26919         [BZ #14815]
26920         * manual/filesys.texi (Directory Entries): Typo fix.
26921         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
26922
26923 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
26924
26925         * elf/elf.h (EM_AARCH64): New macro.
26926         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
26927         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
26928         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
26929         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
26930         (R_AARCH64_TLSDESC): Likewise.
26931         (NT_ARM_TLS): Likewise.
26932         (NT_ARM_HW_BREAK): Likewise.
26933         (NT_ARM_HW_WATCH): Likewise.
26934
26935 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26936
26937         [BZ #14811]
26938         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
26939         (__ieee754_powl): Saturate nonzero exponents with absolute value
26940         below 0x1p-79 to +/- 0x1p-79.
26941         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
26942         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
26943         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
26944         nonzero exponents with absolute value below 0x1p-32 to +/-
26945         0x1p-32.
26946         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
26947         (__ieee754_powl): Saturate nonzero exponents with absolute value
26948         below 0x1p-79 to +/- 0x1p-79.
26949         * math/libm-test.inc (pow_test): Add more tests.
26950
26951 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26952
26953         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
26954         _dl_s390_cap_flags with kernel. Increase string length.
26955         (_dl_s390_platforms): Add z196 and zEC12.
26956
26957 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
26958
26959         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
26960         Change XOPEN21K to XOPEN2K.
26961
26962 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
26963
26964         * string/memmove.c: Use memcpy when possible.
26965
26966 2012-11-06  Andreas Jaeger  <aj@suse.de>
26967
26968         * po/eo.po: Update from translation team.
26969
26970 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
26971
26972         [BZ #14793]
26973         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
26974         exponent and small x and y exponents, scale x or y up.  Increase
26975         by 2 the exponent used in scaling up.
26976         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
26977         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
26978         * math/libm-test.inc (fma_test): Add more tests.
26979         (fma_test_towardzero): Likewise.
26980         (fma_test_downward): Likewise.
26981         (fma_test_upward): Likewise.
26982
26983 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
26984
26985         [BZ #14805]
26986         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
26987         fenv_t *.
26988
26989         [BZ #14801]
26990         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
26991         namespace for names of struct fields.
26992         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
26993         fenv_t fields.
26994         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
26995         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
26996
26997 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26998
26999         [BZ #3665]
27000         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
27001
27002 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
27003
27004         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
27005         PTR_DEMANGLE.
27006
27007         [BZ #5246]
27008         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
27009         PTR_DEMANGLE.
27010
27011 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
27012
27013         [BZ #14797]
27014         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
27015         definitely overflow as x * y not x * y + z.
27016         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27017         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27018         * math/libm-test.inc (fma_test): Add more tests.
27019         (fma_test_towardzero): Likewise.
27020         (fma_test_downward): Likewise.
27021         (fma_test_upward): Likewise.
27022
27023 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
27024
27025         [BZ #157]
27026
27027         * include/stub-tag.h: Remove file.
27028         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
27029         '#include' of it.
27030         * manual/maint.texi (Porting): Don't reference it.
27031         * Makerules ($(objpfx)stubs): Likewise.
27032         * dirent/closedir.c: Don't include <stub-tag.h>.
27033         * dirent/dirfd.c: Likewise.
27034         * dirent/fdopendir.c: Likewise.
27035         * dirent/getdents.c: Likewise.
27036         * dirent/getdents64.c: Likewise.
27037         * dirent/opendir.c: Likewise.
27038         * dirent/readdir.c: Likewise.
27039         * dirent/readdir64.c: Likewise.
27040         * dirent/readdir64_r.c: Likewise.
27041         * dirent/readdir_r.c: Likewise.
27042         * dirent/rewinddir.c: Likewise.
27043         * dirent/seekdir.c: Likewise.
27044         * dirent/telldir.c: Likewise.
27045         * gmon/profil.c: Likewise.
27046         * grp/setgroups.c: Likewise.
27047         * inet/if_index.c: Likewise.
27048         * io/access.c: Likewise.
27049         * io/chdir.c: Likewise.
27050         * io/chmod.c: Likewise.
27051         * io/chown.c: Likewise.
27052         * io/close.c: Likewise.
27053         * io/dup.c: Likewise.
27054         * io/dup2.c: Likewise.
27055         * io/dup3.c: Likewise.
27056         * io/euidaccess.c: Likewise.
27057         * io/faccessat.c: Likewise.
27058         * io/fchdir.c: Likewise.
27059         * io/fchmod.c: Likewise.
27060         * io/fchmodat.c: Likewise.
27061         * io/fchown.c: Likewise.
27062         * io/fchownat.c: Likewise.
27063         * io/fcntl.c: Likewise.
27064         * io/flock.c: Likewise.
27065         * io/fstatfs.c: Likewise.
27066         * io/fstatfs64.c: Likewise.
27067         * io/fstatvfs.c: Likewise.
27068         * io/fstatvfs64.c: Likewise.
27069         * io/futimens.c: Likewise.
27070         * io/fxstat.c: Likewise.
27071         * io/fxstat64.c: Likewise.
27072         * io/fxstatat.c: Likewise.
27073         * io/fxstatat64.c: Likewise.
27074         * io/getcwd.c: Likewise.
27075         * io/isatty.c: Likewise.
27076         * io/lchmod.c: Likewise.
27077         * io/lchown.c: Likewise.
27078         * io/link.c: Likewise.
27079         * io/linkat.c: Likewise.
27080         * io/lseek.c: Likewise.
27081         * io/lseek64.c: Likewise.
27082         * io/lxstat64.c: Likewise.
27083         * io/mkdir.c: Likewise.
27084         * io/mkdirat.c: Likewise.
27085         * io/mkfifo.c: Likewise.
27086         * io/mkfifoat.c: Likewise.
27087         * io/open.c: Likewise.
27088         * io/open64.c: Likewise.
27089         * io/openat.c: Likewise.
27090         * io/openat64.c: Likewise.
27091         * io/pipe.c: Likewise.
27092         * io/pipe2.c: Likewise.
27093         * io/poll.c: Likewise.
27094         * io/posix_fadvise.c: Likewise.
27095         * io/posix_fadvise64.c: Likewise.
27096         * io/posix_fallocate.c: Likewise.
27097         * io/posix_fallocate64.c: Likewise.
27098         * io/read.c: Likewise.
27099         * io/readlink.c: Likewise.
27100         * io/readlinkat.c: Likewise.
27101         * io/rmdir.c: Likewise.
27102         * io/sendfile.c: Likewise.
27103         * io/sendfile64.c: Likewise.
27104         * io/statfs.c: Likewise.
27105         * io/statfs64.c: Likewise.
27106         * io/statvfs.c: Likewise.
27107         * io/statvfs64.c: Likewise.
27108         * io/symlink.c: Likewise.
27109         * io/symlinkat.c: Likewise.
27110         * io/ttyname.c: Likewise.
27111         * io/ttyname_r.c: Likewise.
27112         * io/umask.c: Likewise.
27113         * io/unlink.c: Likewise.
27114         * io/unlinkat.c: Likewise.
27115         * io/utime.c: Likewise.
27116         * io/utimensat.c: Likewise.
27117         * io/write.c: Likewise.
27118         * io/xmknod.c: Likewise.
27119         * io/xmknodat.c: Likewise.
27120         * io/xstat.c: Likewise.
27121         * io/xstat64.c: Likewise.
27122         * login/getpt.c: Likewise.
27123         * login/grantpt.c: Likewise.
27124         * login/unlockpt.c: Likewise.
27125         * math/e_acoshl.c: Likewise.
27126         * math/e_acosl.c: Likewise.
27127         * math/e_asinl.c: Likewise.
27128         * math/e_atan2l.c: Likewise.
27129         * math/e_atanhl.c: Likewise.
27130         * math/e_coshl.c: Likewise.
27131         * math/e_expl.c: Likewise.
27132         * math/e_fmodl.c: Likewise.
27133         * math/e_gammal_r.c: Likewise.
27134         * math/e_hypotl.c: Likewise.
27135         * math/e_j0l.c: Likewise.
27136         * math/e_j1l.c: Likewise.
27137         * math/e_jnl.c: Likewise.
27138         * math/e_lgammal_r.c: Likewise.
27139         * math/e_log10l.c: Likewise.
27140         * math/e_log2l.c: Likewise.
27141         * math/e_logl.c: Likewise.
27142         * math/e_powl.c: Likewise.
27143         * math/e_rem_pio2l.c: Likewise.
27144         * math/e_sinhl.c: Likewise.
27145         * math/e_sqrtl.c: Likewise.
27146         * math/fclrexcpt.c: Likewise.
27147         * math/fedisblxcpt.c: Likewise.
27148         * math/feenablxcpt.c: Likewise.
27149         * math/fegetenv.c: Likewise.
27150         * math/fegetexcept.c: Likewise.
27151         * math/fegetround.c: Likewise.
27152         * math/feholdexcpt.c: Likewise.
27153         * math/fesetenv.c: Likewise.
27154         * math/fesetround.c: Likewise.
27155         * math/feupdateenv.c: Likewise.
27156         * math/fgetexcptflg.c: Likewise.
27157         * math/fraiseexcpt.c: Likewise.
27158         * math/fsetexcptflg.c: Likewise.
27159         * math/ftestexcept.c: Likewise.
27160         * math/k_cosl.c: Likewise.
27161         * math/k_rem_pio2l.c: Likewise.
27162         * math/k_sinl.c: Likewise.
27163         * math/k_tanl.c: Likewise.
27164         * math/s_asinhl.c: Likewise.
27165         * math/s_atanl.c: Likewise.
27166         * math/s_cbrtl.c: Likewise.
27167         * math/s_erfl.c: Likewise.
27168         * math/s_expm1l.c: Likewise.
27169         * math/s_log1pl.c: Likewise.
27170         * math/s_tanhl.c: Likewise.
27171         * misc/acct.c: Likewise.
27172         * misc/brk.c: Likewise.
27173         * misc/chflags.c: Likewise.
27174         * misc/chroot.c: Likewise.
27175         * misc/fchflags.c: Likewise.
27176         * misc/fgetxattr.c: Likewise.
27177         * misc/flistxattr.c: Likewise.
27178         * misc/fremovexattr.c: Likewise.
27179         * misc/fsetxattr.c: Likewise.
27180         * misc/fsync.c: Likewise.
27181         * misc/ftruncate.c: Likewise.
27182         * misc/futimes.c: Likewise.
27183         * misc/futimesat.c: Likewise.
27184         * misc/getdomain.c: Likewise.
27185         * misc/getdtsz.c: Likewise.
27186         * misc/gethostid.c: Likewise.
27187         * misc/gethostname.c: Likewise.
27188         * misc/getloadavg.c: Likewise.
27189         * misc/getpagesize.c: Likewise.
27190         * misc/getsysstats.c: Likewise.
27191         * misc/getxattr.c: Likewise.
27192         * misc/gtty.c: Likewise.
27193         * misc/ioctl.c: Likewise.
27194         * misc/lgetxattr.c: Likewise.
27195         * misc/listxattr.c: Likewise.
27196         * misc/llistxattr.c: Likewise.
27197         * misc/lremovexattr.c: Likewise.
27198         * misc/lsetxattr.c: Likewise.
27199         * misc/lutimes.c: Likewise.
27200         * misc/madvise.c: Likewise.
27201         * misc/mincore.c: Likewise.
27202         * misc/mlock.c: Likewise.
27203         * misc/mlockall.c: Likewise.
27204         * misc/mmap.c: Likewise.
27205         * misc/mprotect.c: Likewise.
27206         * misc/msync.c: Likewise.
27207         * misc/munlock.c: Likewise.
27208         * misc/munlockall.c: Likewise.
27209         * misc/munmap.c: Likewise.
27210         * misc/preadv.c: Likewise.
27211         * misc/preadv64.c: Likewise.
27212         * misc/ptrace.c: Likewise.
27213         * misc/pwritev.c: Likewise.
27214         * misc/pwritev64.c: Likewise.
27215         * misc/readv.c: Likewise.
27216         * misc/reboot.c: Likewise.
27217         * misc/remap_file_pages.c: Likewise.
27218         * misc/removexattr.c: Likewise.
27219         * misc/revoke.c: Likewise.
27220         * misc/select.c: Likewise.
27221         * misc/setdomain.c: Likewise.
27222         * misc/setegid.c: Likewise.
27223         * misc/seteuid.c: Likewise.
27224         * misc/sethostid.c: Likewise.
27225         * misc/sethostname.c: Likewise.
27226         * misc/setregid.c: Likewise.
27227         * misc/setreuid.c: Likewise.
27228         * misc/setxattr.c: Likewise.
27229         * misc/sstk.c: Likewise.
27230         * misc/stty.c: Likewise.
27231         * misc/swapoff.c: Likewise.
27232         * misc/swapon.c: Likewise.
27233         * misc/sync.c: Likewise.
27234         * misc/syncfs.c: Likewise.
27235         * misc/syscall.c: Likewise.
27236         * misc/truncate.c: Likewise.
27237         * misc/ualarm.c: Likewise.
27238         * misc/usleep.c: Likewise.
27239         * misc/ustat.c: Likewise.
27240         * misc/utimes.c: Likewise.
27241         * misc/vhangup.c: Likewise.
27242         * misc/writev.c: Likewise.
27243         * posix/_exit.c: Likewise.
27244         * posix/alarm.c: Likewise.
27245         * posix/execve.c: Likewise.
27246         * posix/fexecve.c: Likewise.
27247         * posix/fork.c: Likewise.
27248         * posix/fpathconf.c: Likewise.
27249         * posix/getaddrinfo.c: Likewise.
27250         * posix/getegid.c: Likewise.
27251         * posix/geteuid.c: Likewise.
27252         * posix/getgid.c: Likewise.
27253         * posix/getgroups.c: Likewise.
27254         * posix/getlogin.c: Likewise.
27255         * posix/getlogin_r.c: Likewise.
27256         * posix/getpgid.c: Likewise.
27257         * posix/getpid.c: Likewise.
27258         * posix/getppid.c: Likewise.
27259         * posix/getresgid.c: Likewise.
27260         * posix/getresuid.c: Likewise.
27261         * posix/getsid.c: Likewise.
27262         * posix/getuid.c: Likewise.
27263         * posix/glob64.c: Likewise.
27264         * posix/nanosleep.c: Likewise.
27265         * posix/pathconf.c: Likewise.
27266         * posix/pause.c: Likewise.
27267         * posix/posix_madvise.c: Likewise.
27268         * posix/pread.c: Likewise.
27269         * posix/pread64.c: Likewise.
27270         * posix/pwrite.c: Likewise.
27271         * posix/pwrite64.c: Likewise.
27272         * posix/sched_getaffinity.c: Likewise.
27273         * posix/sched_getp.c: Likewise.
27274         * posix/sched_gets.c: Likewise.
27275         * posix/sched_primax.c: Likewise.
27276         * posix/sched_primin.c: Likewise.
27277         * posix/sched_rr_gi.c: Likewise.
27278         * posix/sched_setaffinity.c: Likewise.
27279         * posix/sched_setp.c: Likewise.
27280         * posix/sched_sets.c: Likewise.
27281         * posix/sched_yield.c: Likewise.
27282         * posix/setgid.c: Likewise.
27283         * posix/setlogin.c: Likewise.
27284         * posix/setpgid.c: Likewise.
27285         * posix/setresgid.c: Likewise.
27286         * posix/setresuid.c: Likewise.
27287         * posix/setsid.c: Likewise.
27288         * posix/setuid.c: Likewise.
27289         * posix/sleep.c: Likewise.
27290         * posix/spawni.c: Likewise.
27291         * posix/sysconf.c: Likewise.
27292         * posix/times.c: Likewise.
27293         * posix/wait.c: Likewise.
27294         * posix/wait3.c: Likewise.
27295         * posix/wait4.c: Likewise.
27296         * posix/waitpid.c: Likewise.
27297         * resolv/gai_sigqueue.c: Likewise.
27298         * resource/getpriority.c: Likewise.
27299         * resource/getrlimit.c: Likewise.
27300         * resource/getrusage.c: Likewise.
27301         * resource/nice.c: Likewise.
27302         * resource/setpriority.c: Likewise.
27303         * resource/setrlimit.c: Likewise.
27304         * resource/ulimit.c: Likewise.
27305         * rt/aio_cancel.c: Likewise.
27306         * rt/aio_fsync.c: Likewise.
27307         * rt/aio_read.c: Likewise.
27308         * rt/aio_sigqueue.c: Likewise.
27309         * rt/aio_suspend.c: Likewise.
27310         * rt/aio_write.c: Likewise.
27311         * rt/clock_getres.c: Likewise.
27312         * rt/clock_gettime.c: Likewise.
27313         * rt/clock_nanosleep.c: Likewise.
27314         * rt/clock_settime.c: Likewise.
27315         * rt/lio_listio.c: Likewise.
27316         * rt/mq_close.c: Likewise.
27317         * rt/mq_getattr.c: Likewise.
27318         * rt/mq_notify.c: Likewise.
27319         * rt/mq_open.c: Likewise.
27320         * rt/mq_receive.c: Likewise.
27321         * rt/mq_send.c: Likewise.
27322         * rt/mq_setattr.c: Likewise.
27323         * rt/mq_timedreceive.c: Likewise.
27324         * rt/mq_timedsend.c: Likewise.
27325         * rt/mq_unlink.c: Likewise.
27326         * rt/shm_open.c: Likewise.
27327         * rt/shm_unlink.c: Likewise.
27328         * rt/timer_create.c: Likewise.
27329         * rt/timer_delete.c: Likewise.
27330         * rt/timer_getoverr.c: Likewise.
27331         * rt/timer_gettime.c: Likewise.
27332         * rt/timer_settime.c: Likewise.
27333         * setjmp/__longjmp.c: Likewise.
27334         * setjmp/setjmp.c: Likewise.
27335         * signal/kill.c: Likewise.
27336         * signal/killpg.c: Likewise.
27337         * signal/raise.c: Likewise.
27338         * signal/sigaction.c: Likewise.
27339         * signal/sigaltstack.c: Likewise.
27340         * signal/sigblock.c: Likewise.
27341         * signal/sigignore.c: Likewise.
27342         * signal/sigintr.c: Likewise.
27343         * signal/signal.c: Likewise.
27344         * signal/sigpause.c: Likewise.
27345         * signal/sigpending.c: Likewise.
27346         * signal/sigqueue.c: Likewise.
27347         * signal/sigreturn.c: Likewise.
27348         * signal/sigset.c: Likewise.
27349         * signal/sigsetmask.c: Likewise.
27350         * signal/sigstack.c: Likewise.
27351         * signal/sigsuspend.c: Likewise.
27352         * signal/sigtimedwait.c: Likewise.
27353         * signal/sigvec.c: Likewise.
27354         * signal/sigwait.c: Likewise.
27355         * signal/sigwaitinfo.c: Likewise.
27356         * signal/sysv_signal.c: Likewise.
27357         * socket/accept.c: Likewise.
27358         * socket/accept4.c: Likewise.
27359         * socket/bind.c: Likewise.
27360         * socket/connect.c: Likewise.
27361         * socket/getpeername.c: Likewise.
27362         * socket/getsockname.c: Likewise.
27363         * socket/getsockopt.c: Likewise.
27364         * socket/isfdtype.c: Likewise.
27365         * socket/listen.c: Likewise.
27366         * socket/recv.c: Likewise.
27367         * socket/recvfrom.c: Likewise.
27368         * socket/recvmsg.c: Likewise.
27369         * socket/send.c: Likewise.
27370         * socket/sendmsg.c: Likewise.
27371         * socket/sendto.c: Likewise.
27372         * socket/setsockopt.c: Likewise.
27373         * socket/shutdown.c: Likewise.
27374         * socket/sockatmark.c: Likewise.
27375         * socket/socket.c: Likewise.
27376         * socket/socketpair.c: Likewise.
27377         * stdio-common/ctermid.c: Likewise.
27378         * stdio-common/cuserid.c: Likewise.
27379         * stdio-common/remove.c: Likewise.
27380         * stdio-common/rename.c: Likewise.
27381         * stdio-common/renameat.c: Likewise.
27382         * stdio-common/tempname.c: Likewise.
27383         * stdlib/getcontext.c: Likewise.
27384         * stdlib/makecontext.c: Likewise.
27385         * stdlib/setcontext.c: Likewise.
27386         * stdlib/swapcontext.c: Likewise.
27387         * stdlib/system.c: Likewise.
27388         * streams/fattach.c: Likewise.
27389         * streams/fdetach.c: Likewise.
27390         * streams/getmsg.c: Likewise.
27391         * streams/getpmsg.c: Likewise.
27392         * streams/putmsg.c: Likewise.
27393         * streams/putpmsg.c: Likewise.
27394         * sysdeps/unix/bsd/getpt.c: Likewise.
27395         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
27396         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
27397         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
27398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
27399         Likewise.
27400         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
27401         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
27402         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
27403         * sysvipc/msgctl.c: Likewise.
27404         * sysvipc/msgget.c: Likewise.
27405         * sysvipc/msgrcv.c: Likewise.
27406         * sysvipc/msgsnd.c: Likewise.
27407         * sysvipc/semctl.c: Likewise.
27408         * sysvipc/semget.c: Likewise.
27409         * sysvipc/semop.c: Likewise.
27410         * sysvipc/semtimedop.c: Likewise.
27411         * sysvipc/shmat.c: Likewise.
27412         * sysvipc/shmctl.c: Likewise.
27413         * sysvipc/shmdt.c: Likewise.
27414         * sysvipc/shmget.c: Likewise.
27415         * termios/tcdrain.c: Likewise.
27416         * termios/tcflow.c: Likewise.
27417         * termios/tcflush.c: Likewise.
27418         * termios/tcgetattr.c: Likewise.
27419         * termios/tcgetpgrp.c: Likewise.
27420         * termios/tcsendbrk.c: Likewise.
27421         * termios/tcsetattr.c: Likewise.
27422         * termios/tcsetpgrp.c: Likewise.
27423         * time/adjtime.c: Likewise.
27424         * time/clock.c: Likewise.
27425         * time/getitimer.c: Likewise.
27426         * time/gettimeofday.c: Likewise.
27427         * time/setitimer.c: Likewise.
27428         * time/settimeofday.c: Likewise.
27429         * time/stime.c: Likewise.
27430         * time/time.c: Likewise.
27431
27432 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
27433
27434         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
27435         /usr/old/bin.
27436
27437         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
27438         instead of spaces.
27439         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
27440
27441 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
27442
27443         [BZ #14796]
27444         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
27445         FE_TONEAREST before applying Dekker multiplication and Knuth
27446         addition.  Clear inexact exceptions and check for exact zero
27447         results afterwards.
27448         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27449         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
27450         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27451         * math/libm-test.inc (fma_test): Add more tests.
27452         (fma_test_towardzero): Likewise.
27453         (fma_test_downward): Likewise.
27454         (fma_test_upward): Likewise.
27455         * sysdeps/generic/math_private.h (default_libc_fesetround): New
27456         function.
27457         (libc_fesetround): New macro.
27458         (libc_fesetroundf): Likewise.
27459         (libc_fesetroundl): Likewise.
27460         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
27461         function.
27462         (libc_fesetround_387): Likewise.
27463         (libc_fesetroundf): New macro.
27464         (libc_fesetround): Likewise.
27465         (libc_fesetroundl): Likewise.
27466         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
27467         function.
27468         (libc_fesetroundf): New macro.
27469         (libc_fesetround): Likewise.
27470         (libc_fesetroundl): Likewise.
27471         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
27472         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
27473         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
27474         libm_hidden_ver.
27475         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
27476         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
27477         libm_hidden_def.
27478         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
27479         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
27480         libm_hidden_ver.
27481         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
27482         libm_hidden_def.
27483
27484         [BZ #3439]
27485         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
27486         integer constant usable in #if and use that to give value to enum
27487         constant.
27488         (FE_DIVBYZERO): Likewise.
27489         (FE_UNDERFLOW): Likewise.
27490         (FE_OVERFLOW): Likewise.
27491         (FE_INVALID): Likewise.
27492         (FE_INVALID_SNAN): Likewise.
27493         (FE_INVALID_ISI): Likewise.
27494         (FE_INVALID_IDI): Likewise.
27495         (FE_INVALID_ZDZ): Likewise.
27496         (FE_INVALID_IMZ): Likewise.
27497         (FE_INVALID_COMPARE): Likewise.
27498         (FE_INVALID_SOFTWARE): Likewise.
27499         (FE_INVALID_SQRT): Likewise.
27500         (FE_INVALID_INTEGER_CONVERSION): Likewise.
27501         (FE_TONEAREST): Likewise.
27502         (FE_TOWARDZERO): Likewise.
27503         (FE_UPWARD): Likewise.
27504         (FE_DOWNWARD): Likewise.
27505         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
27506         (FE_DIVBYZERO): Likewise.
27507         (FE_OVERFLOW): Likewise.
27508         (FE_UNDERFLOW): Likewise.
27509         (FE_INEXACT): Likewise.
27510         (FE_TONEAREST): Likewise.
27511         (FE_DOWNWARD): Likewise.
27512         (FE_UPWARD): Likewise.
27513         (FE_TOWARDZERO): Likewise.
27514         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
27515         (FE_UNDERFLOW): Likewise.
27516         (FE_OVERFLOW): Likewise.
27517         (FE_DIVBYZERO): Likewise.
27518         (FE_INVALID): Likewise.
27519         (FE_TONEAREST): Likewise.
27520         (FE_TOWARDZERO): Likewise.
27521         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
27522         (FE_OVERFLOW): Likewise.
27523         (FE_UNDERFLOW): Likewise.
27524         (FE_DIVBYZERO): Likewise.
27525         (FE_INEXACT): Likewise.
27526         (FE_TONEAREST): Likewise.
27527         (FE_TOWARDZERO): Likewise.
27528         (FE_UPWARD): Likewise.
27529         (FE_DOWNWARD): Likewise.
27530         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
27531         (FE_DIVBYZERO): Likewise.
27532         (FE_OVERFLOW): Likewise.
27533         (FE_UNDERFLOW): Likewise.
27534         (FE_INEXACT): Likewise.
27535         (FE_TONEAREST): Likewise.
27536         (FE_DOWNWARD): Likewise.
27537         (FE_UPWARD): Likewise.
27538         (FE_TOWARDZERO): Likewise.
27539
27540 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
27541
27542         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
27543
27544 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
27545
27546         * scripts/cross-test-ssh.sh (command): Use newlines to separate
27547         commands.  Quote $PWD.
27548         (blacklist_exports): Don't use remove_newlines.  Replace "declare
27549         -x" by "export".
27550         (remove_newlines): Remove.
27551
27552 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
27553
27554         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
27555         * stdlib/stdlib.h (atof): Moved to ...
27556         * include/bits/stdlib-float.h: Here.  New file.
27557         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
27558         * stdlib/bits/stdlib-float.h: New file.
27559         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
27560         -mno-sse -mno-mmx.
27561         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
27562         <xmmintrin.h>.
27563
27564 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
27565
27566         * conform/conformtest.pl (@headers): Add fenv.h.
27567         * conform/data/fenv.h-data: New file.
27568         * include/fenv.h [_ISOMAC]: Disable all contents of file except
27569         include of <math/fenv.h>.
27570
27571         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
27572         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
27573         && !UNIX98].  Enables tests for XOPEN2K8.
27574         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
27575         POSIX2008]: Likewise.
27576
27577         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
27578         (struct rusage): Do not expect type or its members.
27579
27580         [BZ #3439]
27581         * math/math.h (FP_NAN): Define macro to integer constant usable in
27582         #if and use that to give value to enum constant.
27583         (FP_INFINITE): Likewise.
27584         (FP_ZERO): Likewise.
27585         (FP_SUBNORMAL): Likewise.
27586         (FP_NORMAL): Likewise.
27587
27588 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
27589
27590         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
27591         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
27592         arguments.
27593
27594 2012-11-02  Roland McGrath  <roland@hack.frob.com>
27595
27596         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
27597         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
27598         autoconf-time if not.
27599         * configure.in: Remove AC_PREREQ.
27600
27601 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27602
27603         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
27604         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
27605         of the internal implementation.
27606
27607 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
27608
27609         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
27610         except include of <misc/sys/syslog.h>.
27611
27612 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
27613
27614         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
27615         function returns with a NULL context exit with zero.
27616
27617 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27618
27619         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
27620
27621 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
27622
27623         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
27624         (run_program_cmd): This.
27625         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
27626         (tst_langinfo): New variable.  Use it.
27627
27628 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
27629
27630         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
27631         floating point opcodes.
27632
27633 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
27634
27635         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
27636         variable.
27637
27638         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
27639
27640         * sysdeps/mach/hurd/powerpc: Remove directory.
27641         * sysdeps/mach/powerpc: Likewise.
27642
27643 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
27644
27645         * scripts/check-local-headers.sh: Ignore c++ headers.
27646
27647 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
27648
27649         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
27650         __libc_cleanup_region_start argument.
27651
27652 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
27653
27654         [BZ #14784]
27655         [BZ #14785]
27656         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
27657         x * y using scaling, not as x * y + z.
27658         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27659         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27660         * math/libm-test.inc (fma_test): Add more tests.
27661         (fma_test_towardzero): Likewise.
27662         (fma_test_downward): Likewise.
27663         (fma_test_upward): Likewise.
27664
27665 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
27666
27667         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
27668
27669 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
27670
27671         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
27672         New variable.
27673
27674 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
27675
27676         * rt/tst-shm.c (worker): Correct checking for mmap failure.
27677
27678 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
27679
27680         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
27681         Fix sort order.
27682         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
27683         Likewise.
27684
27685 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
27686
27687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
27688         Fix the order of the list for glibc 2.17.
27689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
27690         Likewise.
27691
27692 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
27693
27694         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
27695
27696 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
27697
27698         [BZ #14610]
27699         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
27700         for low part of x being zero before using __atanl (y).
27701         * math/libm-test.inc (atan2_test): Add another test.
27702
27703         * manual/install.texi (Configuring and compiling): Document
27704         general use of test-wrapper and test-wrapper-env.
27705         * INSTALL: Regenerated.
27706
27707         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
27708         (__fma): Do not extract and scale down low bits on after-rounding
27709         systems when result rounded to normal precision would have normal
27710         exponent.
27711         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
27712         (__fmal): Do not extract and scale down low bits on after-rounding
27713         systems when result rounded to normal precision would have normal
27714         exponent.
27715         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
27716         (__fmal): Do not extract and scale down low bits on after-rounding
27717         systems when result rounded to normal precision would have normal
27718         exponent.
27719         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
27720         macro.
27721         (fma_test): Add more tests.
27722         (fma_test_towardzero): Likewise.
27723         (fma_test_downward): Likewise.
27724         (fma_test_upward): Likewise.
27725
27726 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
27727
27728         * sysdeps/i386/tininess.h: Renamed to ...
27729         * sysdeps/x86/tininess.h: This.
27730         * sysdeps/x86_64/tininess.h: Removed.
27731
27732 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
27733
27734         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
27735         input.  Use $(build-program-cmd).
27736         ($(objpfx)tst-array1-static.out): Likewise.
27737         ($(objpfx)tst-array2.out): Likewise.
27738         ($(objpfx)tst-array3.out): Likewise.
27739         ($(objpfx)tst-array4.out): Likewise.
27740         ($(objpfx)tst-array5.out): Likewise.
27741         ($(objpfx)tst-array5-static.out): Likewise.
27742
27743 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
27744
27745         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
27746         if defined.
27747
27748         * nss/nsswitch.h (nss_interface_function): Provide new
27749         macro for use with NSS functions.
27750         * grp/initgroups.c: Use new macro.
27751         * nss/getXXbyYY.c: Likewise.
27752         * nss/getXXbyYY_r.c: Likewise.
27753         * nss/getXXent.c: Likewise.
27754         * nss/getXXent_r.c: Likewise.
27755         * sysdeps/posix/getaddrinfo.c: Likewise.
27756
27757 2012-10-30  Andreas Jaeger  <aj@suse.de>
27758
27759         * po/ru.po: Update Russion translation from translation project.
27760
27761 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
27762
27763         [BZ #14152]
27764         [BZ #14783]
27765         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
27766         result and shift together with sticky bit instead of replicating
27767         round-to-nearest rounding.
27768         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
27769         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
27770         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
27771         missing underflow exceptions.
27772         (fma_test_towardzero): Add more tests.
27773         (fma_test_downward): Likewise.
27774         (fma_test_upward): Likewise.
27775
27776         [BZ #14047]
27777         * sysdeps/generic/tininess.h: New file.
27778         * sysdeps/i386/tininess.h: Likewise.
27779         * sysdeps/sh/tininess.h: Likewise.
27780         * sysdeps/x86_64/tininess.h: Likewise.
27781         * stdlib/tst-strtod-underflow.c: Likewise.
27782         * stdlib/tst-tininess.c: Likewise.
27783         * stdlib/strtod_l.c: Include <tininess.h>.
27784         (round_and_return): Do not set errno for exact underflow cases.
27785         Force an underflow exception when setting errno for underflow.
27786         Determine underflow based on rounding to normal precision if
27787         TININESS_AFTER_ROUNDING.
27788         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
27789         ERANGE for exact underflow cases.
27790         * stdlib/Makefile (tests): Add tst-tininess and
27791         tst-strtod-underflow.
27792         ($(objpfx)tst-tininess): Use $(link-libm).
27793         ($(objpfx)tst-strtod-underflow): Likewise.
27794
27795 2012-10-30  Andreas Jaeger  <aj@suse.de>
27796
27797         [BZ#14767]
27798         * elf/Makefile (tests): Remove conditional for have-initfini-array
27799         since this is now always required and the variable does not exist
27800         anymore.
27801         (tests-static): Likewise.
27802         (modules-names): Likewise.
27803
27804         * po/eo.po: Add Esperanto translation from translation project.
27805
27806         * elf/tst-array1.c (fini_array): Make writeable so that it can be
27807         merged with constructor/destructor.
27808         (init_array): Likewise.
27809         * elf/tst-array2dep.c (fini_array): Likewise.
27810         (init_array): Likewise.
27811
27812 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
27813
27814         * manual/message.texi: Delete @cartouche tags.
27815
27816 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
27817
27818         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
27819         EOPNOTSUPP.
27820         * sysdeps/mach/hurd/fsync.c: Likewise.
27821
27822         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
27823         [_POSIX_REALTIME_SIGNALS]: Change condition to
27824         [_POSIX_REALTIME_SIGNALS > 0].
27825
27826 2012-10-27  Andreas Jaeger  <aj@suse.de>
27827
27828         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
27829         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
27830         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
27831         [__WORDSIZE != 64]: Likewise.
27832
27833 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
27834
27835         *  iconvdata/tst-table.sh: Remove ${SHELL}.
27836         *  iconvdata/tst-tables.sh: Likewise.
27837
27838 2012-10-25  David S. Miller  <davem@davemloft.net>
27839
27840         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27841         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
27842         of strtoull.
27843
27844         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
27845         ifunc-impl-list.c
27846         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27847         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
27848         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
27849         file.
27850
27851 2012-10-25  Roland McGrath  <roland@hack.frob.com>
27852
27853         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27854         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
27855         __getdirentries.
27856
27857 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
27858             Jim Blandy  <jimb@codesourcery.com>
27859
27860         * scripts/cross-test-ssh.sh: New file.
27861         * manual/install.texi (Configuring and compiling): Document use of
27862         cross-test-ssh.sh.
27863         * INSTALL: Regenerated.
27864
27865 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
27866
27867         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
27868         EOPNOTSUPP.
27869
27870 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
27871
27872         * Makeconfig (run-program-prefix): Fix comment.
27873
27874 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
27875             Jim Blandy  <jimb@codesourcery.com>
27876
27877         * Makeconfig (test-wrapper): New variable,
27878         (test-wrapper-env): Likewise.
27879         [$(cross-compiling) = yes && $(test-wrapper) != ""]
27880         (run-built-tests): Define to yes.
27881         (run-program-prefix): Use $(test-wrapper).
27882         (built-program-cmd): Likewise.
27883         * Rules (make-test-out): Use $(test-wrapper-env) and
27884         $(host-built-program-cmd).
27885         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
27886         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
27887         tst-pathopt.sh.
27888         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
27889         $(test-wrapper-env) to tst-rtld-load-self.sh.
27890         ($(objpfx)order2.out): Use $(test-wrapper).
27891         ($(objpfx)tst-initorder.out): Likewise.
27892         ($(objpfx)tst-initorder2.out): Likewise.
27893         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
27894         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
27895         (test_wrapper_env): New variable.  Use it to run ld.so.
27896         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
27897         Use it to run ld.so.
27898         (test_wrapper_env): Likewise.
27899         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
27900         $(test-wrapper) to run-iconv-test.sh.
27901         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
27902         (ICONV): Use $test_wrapper.
27903         * posix/Makefile ($(objpfx)globtest.out): Pass
27904         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
27905         globtest.sh, not $(run-program-prefix).
27906         * posix/globtest.sh (run_via_rtld_prefix): New variable.
27907         (test_wrapper): Likewise.
27908         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
27909         set together with run_via_rtld_prefix.
27910         (run_program_prefix): Define in terms of test_wrapper and
27911         run_via_rtld_prefix.
27912
27913 2012-10-24  Roland McGrath  <roland@hack.frob.com>
27914
27915         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
27916         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
27917         Targets removed.
27918
27919         [BZ #14743]
27920         * include/time.h: Remove librt_hidden_proto (clock_gettime).
27921         Declare __clock_getres, __clock_gettime, __clock_settime,
27922         __clock_nanosleep, and __clock_getcpuclockid.
27923         * rt/clock_gettime.c: Define __clock_gettime as an alias.
27924         Remove librt_hidden_def (clock_gettime).
27925         * sysdeps/unix/clock_gettime.c: Likewise.
27926         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
27927         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
27928         * rt/clock_getres.c: Define __clock_getres as an alias.
27929         * sysdeps/posix/clock_getres.c: Likewise.
27930         * rt/clock_settime.c: Define __clock_settime as an alias.
27931         * sysdeps/unix/clock_settime.c: Likewise.
27932         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
27933         * sysdeps/unix/clock_nanosleep.c: Likewise.
27934         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
27935         * rt/clock-compat.c: New file.
27936         * rt/Makefile (librt-routines): Add clock-compat and move
27937         $(clock-routines) to ...
27938         (routines): ... here, new variable.
27939         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
27940         Don't add get_clockfreq here.
27941         * rt/Versions (libc: GLIBC_2.17): New version set.
27942         Add clock_* symbols here.
27943         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
27944         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
27945         (GLIBC_2.17): Add clock_* symbols.
27946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
27947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
27948         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
27949         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
27950         Likewise.
27951         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
27952         Likewise.
27953         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
27954         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
27955         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
27956         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
27957         * NEWS: Mention the move.
27958
27959         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
27960         Use __open, __read, __close rather than their public counterparts.
27961         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
27962         (__get_clockfreq_via_cpuinfo): Likewise.
27963         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
27964         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
27965
27966         * config.h.in (HAVE_IFUNC): New #undef.
27967         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
27968         was successful.
27969         * configure: Regenerated.
27970
27971 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
27972
27973         * configure.in: Move READELF check to start of file.
27974         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
27975         libc_cv_asm_gnu_indirect_function in the process.
27976         * configure: Regenerated.
27977
27978 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
27979
27980         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
27981         send the output to /dev/null.
27982         (libc_cv_cc_with_libunwind): Likewise.
27983         (libc_cv_as_noexecstack): Likewise.
27984         * configure: Regenerate.
27985
27986 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
27987
27988         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
27989
27990         * posix/globtest.sh (TMPDIR): Do not set.
27991         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
27992         (testout): Likewise.
27993
27994 2012-10-24  Andreas Jaeger  <aj@suse.de>
27995
27996         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
27997         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
27998         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
27999         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
28000         posix_fadvise64, posix_fallocate64.
28001
28002         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
28003         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
28004         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
28005         Likewise.
28006         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
28007         Likewise.
28008         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
28009
28010         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
28011         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
28012         <bits/fcntl-linux.h>.
28013         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
28014
28015         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
28016         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
28017         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
28018         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
28019         [__WORDSIZE != 64]: Likewise.
28020
28021 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
28022
28023         * Makeconfig (run-built-tests): New variable.
28024         * Rules [$(cross-compiling) = yes]: Change condition to
28025         [$(run-built-tests) = no].
28026         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
28027         to [$(run-built-tests) = yes].
28028         * elf/Makefile [$(cross-compiling) = no]: Likewise
28029         * grp/Makefile [$(cross-compiling) = no]: Likewise.
28030         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
28031         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
28032         * intl/Makefile [$(cross-compiling) = no]: Likewise.
28033         * io/Makefile [$(cross-compiling) = no]: Likewise.
28034         * libio/Makefile [$(cross-compiling) = no]: Likewise.
28035         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
28036         * misc/Makefile [$(cross-compiling) = no]: Likewise.
28037         * posix/Makefile [$(cross-compiling) = no]: Likewise.
28038         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
28039         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
28040         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
28041         * string/Makefile [$(cross-compiling) = no]: Likewise.
28042
28043         * posix/Makefile ($(objpfx)globtest.out): Pass
28044         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
28045         $(rtld-installed-name).
28046         * posix/globtest.sh (elf_objpfx): Remove variable.
28047         (rtld_installed_name): Likewise.
28048         (library_path): Likewise.
28049         (run_program_prefix): New variable.  Use for running globtest
28050         binary.
28051
28052 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
28053             Joseph Myers  <joseph@codesourcery.com>
28054
28055         * Makeconfig (host-built-program-cmd): New variable.
28056         * elf/Makefile (tst-stackguard1-ARGS): Use
28057         $(host-built-program-cmd).
28058         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
28059         (tst-spawn-ARGS): Likewise.
28060         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
28061
28062 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
28063             Jim Blandy  <jimb@codesourcery.com>
28064
28065         * Makeconfig (run-via-rtld-prefix): New variable.
28066         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
28067         (built-program-cmd): Likewise.
28068
28069 2012-10-22  Andreas Jaeger  <aj@suse.de>
28070
28071         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
28072         __O_RSYNC if it exists, otherwise to O_SYNC.
28073
28074 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
28075             Joseph Myers  <joseph@codesourcery.com>
28076
28077         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
28078         /dev/null.
28079         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
28080         from /dev/null
28081         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
28082         /dev/null.
28083
28084 2012-10-22  Andreas Jaeger  <aj@suse.de>
28085
28086         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
28087         Define always.
28088         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
28089
28090         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
28091         bits/fcntl-linux.h.
28092
28093         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
28094         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
28095
28096         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
28097         to __O_LARGEFILE.
28098         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
28099         to __O_LARGEFILE.
28100
28101 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
28102             Joseph Myers  <joseph@codesourcery.com>
28103
28104         * config.make.in (NM): New variable.
28105
28106 2012-10-21  Andreas Jaeger  <aj@suse.de>
28107
28108         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
28109         definitions and declarations that are provided by
28110         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
28111
28112 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
28113
28114         [BZ #14683]
28115         * elf/Makefile (tests-static): Add tst-leaks1-static.
28116         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
28117         ($(objpfx)tst-leaks1-static): New rule.
28118         ($(objpfx)tst-leaks1-static-mem): Likewise.
28119         (tst-leaks1-static-ENV): New macro.
28120         * elf/dl-open.c (dl_open_worker): Check the main application
28121         only if SHARED is defined.
28122         * elf/tst-leaks1-static.c: New file.
28123
28124 2012-10-20  Andreas Jaeger  <aj@suse.de>
28125
28126         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
28127         generic values for Linux.
28128         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
28129         and declarations that are provided by <bits/fcntl-linux.h> and
28130         include <bits/fcntl-linux.h>.
28131         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
28132         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
28133
28134 2012-10-20  Roland McGrath  <roland@hack.frob.com>
28135
28136         * io/fcntl.h: Move include of <bits/types.h> to the top and
28137         include it unconditionally.
28138
28139 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
28140
28141         * wcsmbs/Makefile (tests-ifunc): New variable.
28142         (tests): Add $(tests-ifunc).
28143         * wcsmbs/test-wcschr-ifunc.c: New file.
28144         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
28145         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
28146         * wcsmbs/test-wcslen-ifunc.c: Likewise.
28147         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
28148         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
28149
28150         * string/Makefile (tests-ifunc): New variable.
28151         (tests): Add $(tests-ifunc).
28152         * string/test-memccpy.c (TEST_NAME): New macro.
28153         * string/test-memchr.c (TEST_NAME): Likewise.
28154         * string/test-memcmp.c (TEST_NAME): Likewise.
28155         * string/test-memcpy.c (TEST_NAME): Likewise.
28156         * string/test-memmem.c (TEST_NAME): Likewise.
28157         * string/test-memmove.c (TEST_NAME): Likewise.
28158         * string/test-memset.c (TEST_NAME): Likewise.
28159         * string/test-rawmemchr.c (TEST_NAME): Likewise.
28160         * string/test-stpcpy.c (TEST_NAME): Likewise.
28161         * string/test-stpncpy.c (TEST_NAME): Likewise.
28162         * string/test-strcasecmp.c (TEST_NAME): Likewise.
28163         * string/test-strcasestr.c (TEST_NAME): Likewise.
28164         * string/test-strcat.c (TEST_NAME): Likewise.
28165         * string/test-strchr.c (TEST_NAME): Likewise.
28166         * string/test-strcmp.c(TEST_NAME): Likewise.
28167         * string/test-strcpy.c (TEST_NAME): Likewise.
28168         * string/test-strcspn.c (TEST_NAME): Likewise.
28169         * string/test-strlen.c (TEST_NAME): Likewise.
28170         * string/test-strncasecmp.c (TEST_NAME): Likewise.
28171         * string/test-strncmp.c (TEST_NAME): Likewise.
28172         * string/test-strncpy.c (TEST_NAME): Likewise.
28173         * string/test-strnlen.c (TEST_NAME): Likewise.
28174         * string/test-strpbrk.c (TEST_NAME): Likewise.
28175         * string/test-strrchr.c (TEST_NAME): Likewise.
28176         * string/test-strspn.c (TEST_NAME): Likewise.
28177         * string/test-strstr.c (TEST_NAME): Likewise.
28178         * string/test-bcopy-ifunc.c: New file.
28179         * string/test-bzero-ifunc.c: Likewise.
28180         * string/test-memccpy-ifunc.c: Likewise.
28181         * string/test-memchr-ifunc.c: Likewise.
28182         * string/test-memcmp-ifunc.c: Likewise.
28183         * string/test-memcpy-ifunc.c: Likewise.
28184         * string/test-memmem-ifunc.c: Likewise.
28185         * string/test-memmove-ifunc.c: Likewise.
28186         * string/test-mempcpy-ifunc.c: Likewise.
28187         * string/test-memset-ifunc.c: Likewise.
28188         * string/test-rawmemchr-ifunc.c: Likewise.
28189         * string/test-stpcpy-ifunc.c: Likewise.
28190         * string/test-stpncpy-ifunc.c: Likewise.
28191         * string/test-strcasecmp-ifunc.c: Likewise.
28192         * string/test-strcasestr-ifunc.c: Likewise.
28193         * string/test-strcat-ifunc.c: Likewise.
28194         * string/test-strchr-ifunc.c: Likewise.
28195         * string/test-strchrnul-ifunc.c: Likewise.
28196         * string/test-strcmp-ifunc.c: Likewise.
28197         * string/test-strcpy-ifunc.c: Likewise.
28198         * string/test-strcspn-ifunc.c: Likewise.
28199         * string/test-strlen-ifunc.c: Likewise.
28200         * string/test-strncasecmp-ifunc.c: Likewise.
28201         * string/test-strncat-ifunc.c: Likewise.
28202         * string/test-strncmp-ifunc.c: Likewise.
28203         * string/test-strncpy-ifunc.c: Likewise.
28204         * string/test-strnlen-ifunc.c: Likewise.
28205         * string/test-strpbrk-ifunc.c: Likewise.
28206         * string/test-strrchr-ifunc.c: Likewise.
28207         * string/test-strspn-ifunc.c: Likewise.
28208         * string/test-strstr-ifunc.c: Likewise.
28209
28210         * debug/Makefile (tests-ifunc): New variable.
28211         (tests): Add $(tests-ifunc).
28212         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
28213         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
28214         * debug/test-stpcpy_chk-ifunc.c: New file.
28215         * debug/test-strcpy_chk-ifunc.c: Likewise.
28216
28217 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
28218
28219         [BZ #13601]
28220         * elf/dl-load.c (open_verify): Retry read if the entire ELF
28221         header is not read in.
28222
28223 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
28224
28225         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
28226         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
28227         directly.  Pass built executable to script as
28228         $(built-program-cmd).
28229         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
28230         $testprogram without using LD_LIBRARY_PATH and $ldso.
28231
28232         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
28233         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
28234         $(rtld-installed-name).
28235         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
28236         (rtld_installed_name): Likewise.
28237         (library_path): Likewise.
28238         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
28239         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
28240         $(run-program-prefix) to tst-tables.sh.
28241         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
28242         it to run tst-table-from and tst-table-to.
28243         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
28244         Pass it to tst-table.sh.
28245         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
28246         $(run-program-prefix) to tst-gettext.sh.
28247         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
28248         tst-translit.sh.
28249         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
28250         tst-gettext2.sh.
28251         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
28252         to run tst-gettext.
28253         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
28254         to run tst-gettext2.
28255         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
28256         to run tst-translit.
28257         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
28258         $(run-program-prefix) to tst-mtrace.sh.
28259         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
28260         to run tst-mtrace.
28261         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
28262         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
28263         $(rtld-installed-name).
28264         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
28265         (rtld_installed_name): Likewise.
28266         (run_program_prefix): New variable.  Use it to run wordexp-test.
28267
28268         * Makeconfig (ARCH): Remove all definitions.
28269         (machine): Likewise.
28270         [ARCH]: Remove conditional code.
28271         [!objdir]: Give error.
28272         [!objdir] (objpfx): Remove.
28273         [!objdir] (common-objpfx): Likewise.
28274         [!objdir] (common-objdir): Likewise.
28275         * configure.in (config_makefile): Remove.  Hardcode Makefile in
28276         AC_CONFIG_FILES call.
28277         * configure: Regenerated.
28278
28279         [BZ #13888]
28280         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
28281         or TMPDIR.
28282         (testout): Likewise.
28283
28284         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
28285         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
28286         $(rtld-installed-name).
28287         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
28288         (rtld_installed_name): Likwise.
28289         (runit): Remove function.
28290         (run_getconf): New variable,  Use it for running getconf binary.
28291
28292 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
28293
28294         [BZ #14716]
28295         * string/test-memmem.c (check_result): New function.
28296         (do_one_test): Use it.
28297         (check1): New function.
28298         (test_main): Use it.
28299
28300 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
28301
28302         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
28303
28304 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
28305
28306         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
28307         (_G_LSEEK64): Likewise.
28308         (_G_MMAP64): Likewise.
28309         (_G_FSTAT64): Likewise.
28310         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
28311         (_G_LSEEK64): Likewise.
28312         (_G_MMAP64): Likewise.
28313         (_G_FSTAT64): Likewise.
28314         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
28315         unconditional.  Call __mmap64 directly.
28316         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
28317         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
28318         __lseek64 directly.
28319         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
28320         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
28321         __mmap64 directly.
28322         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
28323         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
28324         __lseek64 directly.
28325         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
28326         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
28327         __lseek64 directly.
28328         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
28329         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
28330         __lseek64 directly.
28331         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
28332         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
28333         __fxstat64 directly.
28334         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
28335         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
28336         unconditional.
28337         (freopen64) [!_G_OPEN64]: Remove conditional code.
28338         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
28339         unconditional.
28340         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
28341         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
28342         unconditional.
28343         (ftello64) [!_G_LSEEK64]: Remove conditional code.
28344         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
28345         unconditional.
28346         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
28347         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
28348         unconditional.
28349         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
28350         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
28351         unconditional.
28352         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
28353         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
28354         unconditional.
28355         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
28356         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
28357         unconditional.
28358         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
28359
28360 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
28361
28362         [BZ #12140]
28363         * manual/memory.texi (Malloc Tunable Parameters): Add note
28364         about free list pointers overwriting some perturb bytes.
28365         Wording suggested by Roland McGrath.
28366
28367 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
28368
28369         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
28370         (lgamma_test): Likewise.
28371         (tgamma_test): Likewise.
28372
28373 2012-10-16  Florian Weimer  <fweimer@redhat.com>
28374
28375         [BZ #14700]
28376         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
28377         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
28378
28379 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
28380
28381         * NEWS: Mention BZ #14716.
28382         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
28383         when removing AVAILABLE1_USES_J macro.
28384
28385 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
28386
28387         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
28388         (__bswap_64): __uint64_t for unsigned 64-bit int.
28389
28390 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
28391
28392         * include/string.h (memmem): Declare libc hidden alias.
28393         * string/memmem.c (memmem): Define libc hidden alias.
28394         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
28395         __read, __close instead of open, read, close.
28396
28397 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
28398
28399         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
28400         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
28401         global and hidden.
28402         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
28403         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
28404         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
28405         Likewise.
28406         (__rawmemchr_sse2): Likewise.
28407         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
28408         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
28409         (__strchr_sse2): Likewise.
28410         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
28411         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
28412         (__strcasecmp_sse2): Likewise.
28413         (__strncasecmp_sse2): Likewise.
28414         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
28415         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
28416         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
28417         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
28418         (__strrchr_sse2): Likewise.
28419         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
28420         ifunc-impl-list.c.
28421         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
28422         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
28423         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
28424         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
28425         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
28426         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
28427         * sysdeps/x86_64/multiarch/memset.S: Likewise.
28428         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
28429         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
28430         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
28431         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
28432         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
28433         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
28434         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
28435         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
28436         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
28437         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
28438         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
28439         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
28440         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
28441         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
28442         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
28443         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
28444         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
28445         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
28446         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
28447         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
28448         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
28449         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
28450         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
28451
28452         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
28453         global and hidden.
28454         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
28455         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
28456         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
28457         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
28458         Likewise.
28459         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
28460         Likewise.
28461         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
28462         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
28463         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
28464         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
28465         ifunc-impl-list.c.
28466         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
28467         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
28468         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
28469         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
28470         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
28471         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
28472         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
28473         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
28474         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
28475         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
28476         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
28477         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
28478         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
28479         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
28480         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
28481         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
28482         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
28483         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
28484         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
28485         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
28486         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
28487         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
28488         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
28489         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
28490         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
28491         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
28492         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
28493         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
28494         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
28495         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
28496         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
28497         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
28498         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
28499         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
28500         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
28501         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
28502         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
28503         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
28504         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
28505         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
28506         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
28507
28508         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
28509         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
28510         * include/ifunc-impl-list.h: New file.
28511         * misc/ifunc-impl-list.c: Likewise.
28512         * misc/Makefile (routines): Add ifunc-impl-list.
28513         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
28514         * string/test-string.h: Include <ifunc-impl-list.h>.
28515         (func_list, func_count, impl_count, impl_array) [TEST_IFUNC &&
28516         TEST_NAME]: New variables.
28517         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
28518         are defined.
28519         (test_init): Call __libc_ifunc_impl_list to initialize
28520         func_list if TEST_IFUNC and TEST_NAME are defined.
28521
28522         * string/Makefile (strop-tests): Add bcopy and bzero.
28523         * string/test-bcopy.c: New file.
28524         * string/test-bzero.c: Likewise.
28525         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
28526         defined.
28527         * string/test-memset.c: Support bzero test if TEST_BZERO is
28528         defined.
28529         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
28530         __libc_memmove.
28531         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
28532         __libc_memset.
28533         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
28534         of memset.
28535
28536 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
28537
28538         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
28539         * configure: Regenerated.
28540
28541         * Makeconfig (+link-static-before-libc): Don't include
28542         $(link-static-libc).
28543
28544         * libio/libio.h (_IO_pos_t): Remove.
28545
28546 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
28547
28548         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
28549         McGrath.
28550
28551 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
28552
28553         * crypt/crypt-entry.c: Include fips-private.h.
28554         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
28555         * crypt/md5c-test.c (main): Tolerate disabled MD5.
28556         * sysdeps/unix/sysv/linux/fips-private.h: New file.
28557         * sysdeps/generic/fips-private.h: New file, dummy fallback.
28558
28559 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
28560
28561         * crypt/crypt-private.h: Include stdbool.h.
28562         (_ufc_setup_salt_r): Return bool.
28563         * crypt/crypt-entry.c: Include errno.h.
28564         (__crypt_r): Return NULL with EINVAL for bad salt.
28565         * crypt/crypt_util.c (bad_for_salt): New.
28566         (_ufc_setup_salt_r): Check that salt is long enough and within
28567         the specified alphabet.
28568         * crypt/badsalttest.c: New file.
28569         * crypt/Makefile (tests): Add it.
28570         ($(objpfx)badsalttest): New.
28571
28572 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
28573
28574         * NEWS: Add entry for BZ #14602.
28575
28576 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
28577
28578         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
28579         type-generic.
28580         * math/libm-test.inc: Update comment listing what functions and
28581         macros are tested.
28582         (isgreater_test): New function.
28583         (isgreaterequal_test): Likewise.
28584         (isless_test): Likewise.
28585         (islessequal_test): Likewise.
28586         (islessgreater_test): Likewise.
28587         (isunordered_test): Likewise.
28588         (main): Call the new functions.
28589
28590 2012-10-09  Roland McGrath  <roland@hack.frob.com>
28591
28592         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
28593         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
28594         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
28595         * sysdeps/i386/configure: Regenerated.
28596         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
28597         * sysdeps/mach/configure: Regenerated.
28598         * sysdeps/mach/hurd/configure: Regenerated.
28599         * sysdeps/powerpc/configure: Regenerated.
28600         * sysdeps/powerpc/powerpc32/configure: Regenerated.
28601         * sysdeps/powerpc/powerpc64/configure: Regenerated.
28602         * sysdeps/s390/s390-32/configure: Regenerated.
28603         * sysdeps/s390/s390-64/configure: Regenerated.
28604         * sysdeps/sh/configure: Regenerated.
28605         * sysdeps/sparc/configure: Regenerated.
28606         * sysdeps/unix/sysv/linux/configure: Regenerated.
28607         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
28608         * sysdeps/x86_64/configure: Regenerated.
28609
28610         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
28611         defined.  Don't check if MAP is NULL.
28612
28613 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
28614
28615         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
28616         (_G_stat64): Likewise.
28617         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
28618         (_G_stat64): Likewise.
28619         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
28620         instead of struct _G_stat64.
28621         * libio/fileops.c (mmap_remap_check): Likewise.
28622         (decide_maybe_mmap): Likewise.
28623         (_IO_new_file_seekoff): Likewise.
28624         (_IO_file_stat): Likewise.
28625         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
28626         _G_off64_t.
28627         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
28628         instead of struct _G_stat64.
28629         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
28630
28631 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
28632
28633         [BZ #14602]
28634         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
28635         Replace with ...
28636         (CHECK_EOL): New macro.
28637         (two_way_short_needle): Check beginning of haystack for EOL.  Use
28638         CHECK_EOL.
28639         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
28640         Replace with CHECK_EOL.
28641         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
28642         Replace with CHECK_EOL.
28643
28644 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
28645
28646         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
28647         type-generic.
28648         * math/libm-test.inc: Update comment listing what functions and
28649         macros are tested.
28650         (finite_test): New function.
28651         (isinf_test): Likewise.
28652         (isnan_test): Likewise.
28653         (fpclassify_test): Test subnormal input.
28654         (isfinite_test): Likewise.
28655         (isnormal_test): Likewise.
28656         (main): Call the new functions.
28657
28658 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
28659
28660         [BZ #14660]
28661         * Makerules (%.dynsym): Force C locale when running
28662         $(OBJDUMP) --dynamic-syms.
28663
28664 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
28665
28666         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
28667         <stdint.h>.
28668
28669 2012-10-06  David S. Miller  <davem@davemloft.net>
28670
28671         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
28672         upper 32-bits of the length value in %o2 since we use branch-on-register
28673         tests which consider the entire 64-bit register.
28674
28675 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
28676
28677         * string/test-strstr.c (check2): Add a test for page boundary.
28678
28679 2012-10-05  David S. Miller  <davem@davemloft.net>
28680
28681         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
28682         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
28683         file.
28684         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
28685         sysdep_routines.
28686         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
28687         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
28688         and bzero when HWCAP_SPARC_CRYPTO is present.
28689
28690 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
28691
28692         [BZ #14602]
28693         * string/test-strstr.c (check2): New function.
28694         (test_main): Call check2.
28695
28696         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
28697         and bug-strchr1.
28698         * string/bug-strcasestr1.c (do_test): Moved to ...
28699         * string/test-strcasestr.c (check1): Here.  New function.
28700         (do_one_test): Break out result checking code into ...
28701         (check_result): This.  New function.
28702         (do_one_test): Call check_result.
28703         (test_main): Call check1.
28704         * string/bug-strchr1.c (do_test): Moved to ...
28705         * string/test-strchr.c (check1): Here.  New function.
28706         (do_one_test): Break out result checking code into ...
28707         (check_result): This.  New function.
28708         (do_one_test): Call check_result.
28709         (test_main): Call check1.
28710         * string/bug-strstr1.c (main): Moved to ...
28711         * string/test-strstr.c (check1): Here.  New function.
28712         (do_one_test): Break out result checking code into ...
28713         (check_result): This.  New function.
28714         (do_one_test): Call check_result.
28715         (test_main): Call check1.
28716         * string/bug-strcasestr1.c: Removed.
28717         * string/bug-strchr1.c: Likewise.
28718         * string/bug-strstr1.c: Likewise.
28719
28720         * elf/Makefile (dl-routines): Add hwcaps.
28721         * elf/dl-support.c (_dl_important_hwcaps): Removed.
28722         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
28723         (_dl_important_hwcaps): Moved to ...
28724         * elf/dl-hwcaps.c: Here.  New file.
28725         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
28726
28727         [BZ #14557]
28728         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
28729         if IS_IN_rtld isn't defined.
28730
28731         * elf/dl-support.c (_dl_sysinfo_map): New.
28732         Include "get-dynamic-info.h" and "setup-vdso.h".
28733         (_dl_non_dynamic_init): Call setup_vdso.
28734         * elf/dynamic-link.h: Don't include <assert.h>.
28735         (elf_get_dynamic_info): Moved to ...
28736         * elf/get-dynamic-info.h: Here.  New file.
28737         * elf/dynamic-link.h: Include "get-dynamic-info.h".
28738         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
28739         * elf/setup-vdso.h: Here.  New file.
28740         * elf/rtld.c: Include "setup-vdso.h".
28741         (dl_main): Call setup_vdso.
28742
28743 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
28744
28745         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
28746         creal in comment listing functions tested.  List finite, isinf,
28747         isnan, isless, islessequal, isgreater, isgreaterequal,
28748         islessgreater, isunordered, lgamma_r and pow10 as functions and
28749         macros not tested.  Mention which functions not tested are aliases
28750         for other functions.  Fix typo.  Note that signs of NaNs are not
28751         tested.
28752
28753         * scripts/config.guess: Update from config.git.
28754         * scripts/config.sub: Likewise.
28755
28756 2012-10-04  Roland McGrath  <roland@hack.frob.com>
28757
28758         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
28759         * misc/madvise.c (madvise): Renamed to __madvise.
28760         Make madvise a weak alias.
28761         * include/sys/mman.h: Declare __madvise.
28762         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
28763         * sysdeps/unix/syscalls.list
28764         (madvise): Make __madvise the strong name, and madvise a weak alias.
28765         * sysdeps/unix/sysv/linux/syscalls.list
28766         (madvise, mmap): Remove redundant entries.
28767         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
28768         * malloc/malloc.c (mtrim): Likewise.
28769         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
28770
28771 2012-10-03  Roland McGrath  <roland@hack.frob.com>
28772
28773         * sysdeps/mach/hurd/dl-cache.c: File removed.
28774         * config.h.in (USE_LDCONFIG): New #undef.
28775         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
28776         * configure: Regenerated.
28777         * elf/Makefile (dl-routines): Add dl-cache only under
28778         [$(use-ldconfig) = yes].
28779         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
28780         cache on [USE_LDCONFIG].
28781         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
28782         [USE_LDCONFIG].
28783         * elf/rtld.c (dl_main): Likewise.
28784
28785 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
28786
28787         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
28788         _SC_LEVEL4_CACHE_LINESIZE.
28789
28790 2012-10-03  Roland McGrath  <roland@hack.frob.com>
28791
28792         * sysdeps/unix/bsd/confstr.h: File removed.
28793
28794 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
28795
28796         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
28797         sys/sdt-config.h.
28798
28799 2012-10-02  Roland McGrath  <roland@hack.frob.com>
28800
28801         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
28802         Make 'mapoff' field ElfW(Off) rather than off_t.
28803
28804 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
28805
28806         * nscd/Makefile: Remove nscd-cflags and all its users.
28807         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
28808         (CFLAGS-nonlib): Add compiler flags for nscd modules.
28809
28810         [BZ #10631]
28811         * malloc.c (malloc_printerr): Clarify error message.
28812
28813 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
28814
28815         [BZ #14648]
28816         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28817         Set bit_FMA_Usable if FMA is supported.
28818         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
28819         macro.
28820         (bit_FMA4_Usable): Updated.
28821         (index_FMA_Usable): New macro.
28822         (CPUID_FMA): Likewise
28823         (HAS_FMA): Defined with bit_FMA_Usable.
28824
28825 2012-10-01  Roland McGrath  <roland@hack.frob.com>
28826
28827         * bits/types.h (__swblk_t): Type removed.
28828         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
28829         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
28830         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
28831         (__SWBLK_T_TYPE): Likewise.
28832         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
28833         (__SWBLK_T_TYPE): Likewise.
28834         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
28835         (__SWBLK_T_TYPE): Likewise.
28836         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
28837         (__SWBLK_T_TYPE): Likewise.
28838
28839 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
28840             Honza Horak <hhorak@redhat.com>
28841
28842         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
28843         (xdr_mapname): Use YPMAXMAP as maxsize.
28844         (xdr_peername): Use YPMAXPEER as maxsize.
28845         (xdr_keydat): Use YPAXRECORD as maxsize.
28846         (xdr_valdat): Use YPMAXRECORD as maxsize.
28847
28848 2012-10-01  Roland McGrath  <roland@hack.frob.com>
28849
28850         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
28851
28852         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
28853         * csu/init-first.c: ... here.
28854         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
28855         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
28856         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
28857         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
28858         * sysdeps/i386/init-first.c: File removed.
28859         * sysdeps/sh/init-first.c: File removed.
28860
28861 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
28862
28863         [BZ #14645]
28864         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
28865         if x * y might underflow to zero and z is zero.
28866         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
28867         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28868         * math/libm-test.inc (min_subnorm_value): New variable.
28869         (fma_test): Add more tests.
28870         (fma_test_towardzero): Likewise.
28871         (fma_test_downward): Likewise
28872         (fma_test_upward): Likewise.
28873         (initialize): Set min_subnorm_value.
28874
28875 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
28876
28877         [BZ #14638]
28878         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
28879         0 + 0.
28880         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
28881         mode for addition resulting in exact zero.
28882         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
28883         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
28884         exact 0 + 0.
28885         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
28886         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
28887         * math/libm-test.inc (fma_test): Add more tests.
28888         (fma_test_towardzero): New function.
28889         (fma_test_downward): Likewise.
28890         (fma_test_upward): Likewise.
28891         (main): Call the new functions.
28892
28893 2012-09-28  David S. Miller  <davem@davemloft.net>
28894
28895         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
28896
28897 2012-09-28  Roland McGrath  <roland@hack.frob.com>
28898
28899         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
28900         instead of SIGALRM.
28901
28902         * sysdeps/gnu/_G_config.h: Moved to ...
28903         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
28904         * sysdeps/mach/hurd/_G_config.h: Moved to ...
28905         * sysdeps/generic/_G_config.h: ... here.
28906
28907         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
28908
28909         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
28910
28911         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
28912         Conditionalize target on [libnss_test1.so-version].
28913
28914         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
28915
28916         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
28917         (elfobjdir): Move out of conditionals.
28918
28919         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
28920         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
28921         (__nss_lookup_function): Conditionalize label remove_from_tree on
28922         [!DO_STATIC_NSS || SHARED], matching its only use.
28923
28924 2012-09-28  David S. Miller  <davem@davemloft.net>
28925
28926         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
28927         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
28928         file.
28929         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
28930         sysdep_routines.
28931         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
28932         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
28933         when HWCAP_SPARC_CRYPTO is present.
28934
28935 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28936
28937         * io/tst-mknodat.c: Create a FIFO instead of a socket.
28938
28939 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
28940
28941         [BZ #6530]
28942         * stdio-common/vfprintf.c (process_string_arg): Revert
28943         2000-07-22 change.
28944
28945 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
28946
28947         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
28948         for testcase.
28949         * stdio-common/tst-sprintf.c: Include <locale.h>
28950         (main): Test sprintf's handling of incomplete multibyte
28951         characters.
28952
28953 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
28954
28955         * elf/dl-runtime.c (VERSYMIDX): Removed.
28956         * elf/dl-version.c (VERSYMIDX): Likewise.
28957         * elf/do-rel.h (VERSYMIDX): Likewise.
28958         (VALIDX): Likewise.
28959         * elf/dynamic-link.h (VERSYMIDX): Likewise.
28960         * elf/rtld.c (VALIDX): Likewise.
28961         (ADDRIDX): Likewise.
28962         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
28963         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
28964         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
28965         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
28966         (VALIDX): Likewise.
28967         (ADDRIDX): Likewise.
28968
28969 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
28970
28971         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
28972
28973 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
28974
28975         [BZ #11438]
28976         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
28977         to global scope.
28978         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
28979         addresses are in the same scope as 192.0.2/24.
28980         * posix/gai.conf: Document new scope table defaults.
28981
28982 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28983
28984         [BZ #5298]
28985         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
28986         for ftell.  Compute offsets from write pointers instead.
28987         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
28988
28989 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
28990
28991         [BZ #14543]
28992         * libio/Makefile (tests): New test case tst-fseek.
28993         * libio/tst-fseek.c: New test case to verify that fseek/ftell
28994         combination works in wide mode.
28995         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
28996         state when the external buffer state changes.
28997
28998 2012-09-27  David S. Miller  <davem@davemloft.net>
28999
29000         [BZ #14376]
29001         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
29002         pass reloc->r_addend in as the 'high' argument to
29003         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
29004
29005         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29006
29007 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
29008
29009         * rt/tst-aio2.c: Include <pthread.h>.
29010         * rt/tst-aio3.c: Likewise.
29011
29012 2012-09-27  Steve Ellcey  <sellcey@mips.com>
29013
29014         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
29015
29016 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
29017
29018         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
29019         contents on [SHARED].
29020
29021 2012-09-26  Marek Polacek  <polacek@redhat.com>
29022
29023         [BZ #14530]
29024         [BZ #13741]
29025         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
29026         for C++ and GCC <4.3 as well as for non GCC compilers.
29027
29028 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
29029
29030         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29031
29032 2012-09-25  Roland McGrath  <roland@hack.frob.com>
29033
29034         * Makefile.in (all, install): Declare with .PHONY.
29035         Reported by Michael Hope <michael.hope@linaro.org>.
29036
29037 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
29038
29039         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
29040         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
29041         system header.
29042         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
29043         Likewise.
29044         (sydep_routines): Add the new and the internal functions.
29045         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
29046         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
29047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
29048         (GLIBC_2.17): Add the new function.
29049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
29050         (GLIBC_2.17): Likewise.
29051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
29052         (GLIBC_2.17): Likewise.
29053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
29054         (GLIBC_2.17): Likewise.
29055         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
29056
29057 2012-09-25  Alan Modra  <amodra@gmail.com>
29058
29059         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
29060         Add release barrier before setting once_control to say
29061         initialisation is done.  Add hints on lwarx.  Use macro in
29062         place of isync.
29063         (clear_once_control): Add release barrier.
29064
29065 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
29066
29067         [BZ #13629]
29068         * math/s_clog.c (__clog): Handle more values close to |z| = 1
29069         specially.
29070         * math/s_clog10.c (__clog10): Likewise.
29071         * math/s_clog10f.c (__clog10f): Likewise.
29072         * math/s_clog10l.c (__clog10l): Likewise.
29073         * math/s_clogf.c (__clogf): Likewise.
29074         * math/s_clogl.c (__clogl): Likewise.
29075         * math/Makefile (libm-calls): Add x2y2m1.
29076         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
29077         (__x2y2m1): Likewise.
29078         (__x2y2m1l): Likewise.
29079         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
29080         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
29081         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
29082         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
29083         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
29084         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
29085         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
29086         * sysdeps/i386/fpu/libm-test-ulps: Update.
29087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
29088
29089         [BZ #14621]
29090         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
29091         int as type of variable DEPTH.
29092         (glob): Use size_t instead of int as type of variables NEWCOUNT
29093         and OLD_PATHC.
29094
29095 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29096
29097         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
29098         Add s_sincosf-sse2.
29099         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
29100         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
29101         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
29102         macros for using routine as __sincosf_ia32.
29103         Use macro for function declaration and weak_alias.
29104         * sysdeps/i386/fpu/libm-test-ulps: Update.
29105
29106         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
29107         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29108
29109         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
29110         subnormal argument.
29111         * math/s_cexpf.c (__cexpf): Likewise.
29112         * math/s_csinf.c (__csinf): Likewise.
29113         * math/s_csinhf.c (__csinhf): Likewise.
29114         * math/s_ctanf.c (__ctanf): Likewise.
29115         * math/s_ctanhf.c (__ctanhf): Likewise.
29116         * math/s_ccosh.c (__ccoshf): Likewise.
29117         * math/s_cexp.c (__cexpl): Likewise.
29118         * math/s_csin.c (__csin): Likewise.
29119         * math/s_csinh.c (__csinh): Likewise.
29120         * math/s_ctan.c (__ctan): Likewise.
29121         * math/s_ctanh.c (ctanh): Likewise.
29122         * math/s_ccoshl.c (__ccoshl): Likewise.
29123         * math/s_cexpl.c (__cexpl): Likewise.
29124         * math/s_csinl.c (__csinl): Likewise.
29125         * math/s_csinhl.c (__csinhl): Likewise.
29126         * math/s_ctanl.c (__ctanl): Likewise.
29127         * math/s_ctanhl.c (__ctanhl): Likewise.
29128
29129 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
29130
29131         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
29132         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
29133         (_IO_off_t): Define to __off_t, not _G_off_t.
29134         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
29135         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
29136         (_IO_wint_t): Define to wint_t, not _G_wint_t.
29137         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
29138         type of __dummy and __dummy2 fields.
29139         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
29140         (_G_ssize_t): Likewise.
29141         (_G_off_t): Likewise.
29142         (_G_pid_t): Likewise.
29143         (_G_uid_t): Likewise.
29144         (_G_wchar_t): Likewise.
29145         (_G_wint_t): Likewise.
29146         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
29147         (_G_ssize_t): Likewise.
29148         (_G_off_t): Likewise.
29149         (_G_pid_t): Likewise.
29150         (_G_uid_t): Likewise.
29151         (_G_wchar_t): Likewise.
29152         (_G_wint_t): Likewise.
29153         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
29154         (_G_ssize_t): Likewise.
29155         (_G_off_t): Likewise.
29156         (_G_pid_t): Likewise.
29157         (_G_uid_t): Likewise.
29158         (_G_wchar_t): Likewise.
29159         (_G_wint_t): Likewise.
29160
29161 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29162
29163         * malloc/arena.c: Include malloc-sysdep.h.
29164         (shrink_heap): Use check_may_shrink_heap to decide if madvise
29165         is sufficient to shrink the heap or an unmap is needed.
29166         * sysdeps/generic/malloc-sysdep.h: New file.  Define
29167         new function check_may_shrink_heap.
29168         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
29169         new function check_may_shrink_heap.
29170
29171 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
29172
29173         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
29174         comments.
29175
29176 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
29177
29178         * catgets/test-gencat.sh: Add "set -e".
29179         * elf/tst-pathopt.sh: Likewise.
29180         * grp/tst_fgetgrent.sh: Likewise.
29181         * iconvdata/run-iconv-test.sh: Likewise.
29182         * intl/tst-gettext.sh: Likewise.
29183         * intl/tst-gettext2.sh: Likewise.
29184         * intl/tst-gettext4.sh: Likewise.
29185         * intl/tst-gettext6.sh: Likewise.
29186         * intl/tst-translit.sh: Likewise.
29187         * io/ftwtest-sh: Likewise.
29188         * libio/test-freopen.sh: Likewise.
29189         * malloc/tst-mtrace.sh: Likewise.
29190         * posix/globtest.sh: Likewise.
29191         * posix/tst-getconf.sh: Likewise.
29192         * posix/wordexp-tst.sh: Likewise.
29193         * stdio-common/tst-printf.sh: Likewise.
29194         * stdio-common/tst-unbputc.sh: Likewise.
29195         * stdlib/tst-fmtmsg.sh: Likewise.
29196         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
29197         * catgets/Makefile: Do not specify -e option when running
29198         testsuite shell scripts.
29199         * elf/Makefile: Likewise.
29200         * grp/Makefile: Likewise.
29201         * iconvdata/Makefile: Likewise.
29202         * intl/Makefile: Likewise.
29203         * io/Makefile: Likewise.
29204         * libio/Makefile: Likewise.
29205         * malloc/Makefile: Likewise.
29206         * posix/Makefile: Likewise.
29207         * stdio-common/Makefile: Likewise.
29208         * stdlib/Makefile: Likewise.
29209         * sysdeps/x86_64/Makefile: Likewise.
29210
29211         * io/ftwtest-sh: Add copyright header.
29212         * posix/globtest.sh: Likewise.
29213         * posix/tst-getconf.sh: Likewise.
29214         * posix/wordexp-tst.sh: Likewise.
29215         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
29216
29217 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
29218
29219         [BZ #13679]
29220         * Makeconfig (+link): Defined as $(+link-static) if
29221         $(build-shared) isn't yes.
29222         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
29223         isn't yes.
29224         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
29225
29226         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
29227
29228         [BZ #14562]
29229         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
29230         new chunk size with MALLOC_ALIGN_MASK.
29231
29232 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
29233
29234         [BZ #5044]
29235         * stdio-common/printf_fphex.c: Include <stdbool.h> and
29236         <rounding-mode.h>.
29237         (__printf_fphex): Determine rounding using get_rounding_mode and
29238         round_away.
29239         * stdio-common/tst-printf-round.c (struct hex_test): New
29240         structure.
29241         (hex_tests): New variable.
29242         (test_hex_in_one_mode): New function.
29243         (do_test): Also run tests for hex float output.
29244
29245 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
29246
29247         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
29248         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
29249         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
29250         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
29251         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
29252         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
29253         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
29254         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
29255
29256 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
29257
29258         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
29259         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
29260         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
29261         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
29262
29263 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
29264
29265         [BZ #14579]
29266         * elf/rtld.c (dl_main): Limit the check for self loading to normal
29267         mode only.
29268         * elf/tst-rtld-load-self.sh: New test.
29269         * elf/Makefile: Run it.
29270
29271 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
29272
29273         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
29274         (tst-writev-ENV): Remove.
29275         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
29276
29277 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
29278
29279         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
29280
29281 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
29282
29283         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
29284         unconditional.
29285         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
29286         Likewise.
29287         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
29288         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
29289         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
29290         Likewise.
29291
29292 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
29293
29294         [BZ #14587]
29295         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
29296         * config.make.in (have-cpp-asm-debuginfo): Removed.
29297         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
29298         * configure: Regenerated.
29299
29300 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
29301
29302         [BZ #5044]
29303         * stdio-common/printf_fp.c: Include <stdbool.h> and
29304         <rounding-mode.h>.
29305         (___printf_fp): Determine rounding using get_rounding_mode and
29306         round_away.
29307         * stdio-common/tst-printf-round.c: New file.
29308         * stdio-common/Makefile (tests): Add tst-printf-round.
29309         (link-libm): New variable.
29310         ($(objpfx)tst-printf-round): Depend in $(link-libm).
29311
29312 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
29313
29314         [BZ #14576]
29315         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
29316         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
29317         Likewise.
29318         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
29319         Likewise.
29320
29321 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
29322
29323         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
29324         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
29325         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
29326         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
29327
29328 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
29329
29330         [BZ #14518]
29331         * include/rounding-mode.h: New file.
29332         * sysdeps/generic/get-rounding-mode.h: Likewise.
29333         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
29334         * stdlib/strtod_l.c: Include <rounding-mode.h>.
29335         (MAX_VALUE): New macro.
29336         (MIN_VALUE): Likewise.
29337         (overflow_value): New function.
29338         (underflow_value): Likewise.
29339         (round_and_return): Use overflow_value and underflow_value to
29340         determine return values in overflow and underflow cases.  Use
29341         round_away to determine rounding depending on rounding mode.
29342         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
29343         determine return values in overflow and underflow cases.
29344         * stdlib/tst-strtod-round.c: Include <fenv.h>.
29345         (struct test_results): New structure.
29346         (struct test): Use struct test_results to store expected results
29347         for all rounding modes.
29348         (TEST): Include expected results for all rounding modes.
29349         (test_in_one_mode): New function.
29350         (do_test): Use test_in_one_mode to compute and check results.
29351         Check results for all rounding modes.
29352         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
29353         $(link-libm).
29354
29355 2012-12-09  Allan McRae  <allan@archlinux.org>
29356
29357         * sysdeps/i386/fpu/libm-test-ulps: Update
29358
29359 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
29360
29361         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
29362         (_G_int32_t): Likewise.
29363         (_G_uint16_t): Likewise.
29364         (_G_uint32_t): Likewise.
29365         (_G_HAVE_BOOL): Likewise.
29366         (_G_HAVE_ATEXIT): Likewise.
29367         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
29368         (_G_HAVE_IO_FILE_OPEN): Likewise.
29369         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
29370         (_G_int32_t): Likewise.
29371         (_G_uint16_t): Likewise.
29372         (_G_uint32_t): Likewise.
29373         (_G_HAVE_BOOL): Likewise.
29374         (_G_HAVE_ATEXIT): Likewise.
29375         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
29376         (_G_HAVE_IO_FILE_OPEN): Likewise.
29377         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
29378         (_G_int32_t): Likewise.
29379         (_G_uint16_t): Likewise.
29380         (_G_uint32_t): Likewise.
29381         (_G_HAVE_BOOL): Likewise.
29382         (_G_HAVE_ATEXIT): Likewise.
29383         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
29384         (_G_HAVE_IO_FILE_OPEN): Likewise.
29385
29386 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
29387
29388         * csu/libc-tls.c: Update copyright years.
29389
29390 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
29391
29392         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
29393         [!_G_USING_THUNKS]: Remove conditional code.
29394         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
29395         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
29396
29397         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
29398         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
29399         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
29400         (_G_VTABLE_LABEL_PREFIX): Likewise.
29401         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
29402         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
29403         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
29404         (_G_VTABLE_LABEL_PREFIX): Likewise.
29405         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
29406         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
29407         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
29408         (_G_VTABLE_LABEL_PREFIX): Likewise.
29409         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
29410
29411 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
29412
29413         * libio/Makefile: Include ../Makeconfig before tests.
29414         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
29415         only if $(build-shared) is yes.
29416
29417         * iconv/gconv_db.c: Update copyright years.
29418
29419 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29420
29421         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
29422         unwind info if defined PIC. Fix special cases description.
29423         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
29424
29425         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
29426         DP_HI_MASK entry.
29427         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
29428
29429 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
29430
29431         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
29432
29433         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
29434         is NULL.
29435
29436         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
29437         (LDLIBS-tst-chk4): This.
29438         (LDFLAGS-tst-chk5): Renamed to ...
29439         (LDLIBS-tst-chk5): This.
29440         (LDFLAGS-tst-chk6): Renamed to ...
29441         (LDLIBS-tst-chk6): This.
29442         (LDFLAGS-tst-lfschk4): Renamed to ...
29443         (LDLIBS-tst-lfschk4): This.
29444         (LDFLAGS-tst-lfschk5): Renamed to ...
29445         (LDLIBS-tst-lfschk5): This.
29446         (LDFLAGS-tst-lfschk6): Renamed to ...
29447         (LDLIBS-tst-lfschk6): This.
29448
29449         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
29450         on $(common-objpfx)soversions.mk.
29451
29452 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
29453
29454         [BZ #10014]
29455         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
29456         example host name.
29457
29458 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
29459
29460         * malloc/arena.c (arena_get_retry): New function that gets
29461         another arena for the caller to try its request on.
29462         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
29463         current arena cannot fulfill the request.
29464         (__libc_memalign): Likewise.
29465         (__libc_memalign): Likewise.
29466         (__libc_pvalloc): Likewise.
29467         (__libc_calloc): Likewise.
29468
29469 2012-09-05  John Tobey  <john.tobey@gmail.com>
29470
29471         [BZ #13542]
29472         * manual/arith.texi (Operations on Complex): Fix description
29473         of carg branch cut.
29474
29475 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
29476
29477         [BZ #10014]
29478         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
29479         host name.
29480
29481         [BZ #10038]
29482         * manual/memory.texi (Memory): Make order of menu items match
29483         order of sections.
29484
29485 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
29486
29487         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
29488         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
29489         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
29490
29491 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
29492
29493         * csu/libc-tls.c (static_dtv): Renamed to ...
29494         (_dl_static_dtv): This.  Make it global.
29495         (_dl_initial_dtv): Removed.
29496         (__libc_setup_tls): Updated.
29497         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
29498         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
29499         DL_INITIAL_DTV.
29500
29501 2012-09-06  Petr Machata  <pmachata@redhat.com>
29502
29503         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
29504         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
29505         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
29506         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
29507
29508 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
29509
29510         [BZ #14545]
29511         * csu/libc-tls.c (_dl_initial_dtv): New variable.
29512         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
29513         freeing dtv[-1].
29514
29515 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
29516
29517         [BZ #14544]
29518         * Makeconfig (link-static-before-libc): Replace $(+prector)
29519         with $(+prectorT).
29520         (link-static-after-libc): Replace $(+postctor) with
29521         $(+postctorT).
29522         (link-bounded): Replace $(+prector)/$(+postctor) with
29523         $(+prectorT)/$(+postctorT).
29524         (+prectorT): New macro.
29525         (+postctorT): Likewise.
29526
29527 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
29528
29529         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
29530         (round_str): Handle values above the maximum for IBM long double
29531         as inexact.
29532         * stdlib/tst-strtod-round.c (tests): Regenerated.
29533
29534 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29535
29536         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
29537         assembler flag.
29538         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
29539         zarch_nohighgprs around the zarch optimized routines.
29540         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
29541         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
29542         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
29543         for zarch.
29544
29545 2012-09-05  David S. Miller  <davem@davemloft.net>
29546
29547         * sysdeps/sparc/fpu/libm-test-ulps: Update.
29548
29549         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE)
29550         (HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
29551         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
29552         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
29553         entries.
29554
29555 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
29556
29557         * malloc/arena.c: Fold copyright years.
29558         * malloc/mcheck.c, malloc/memusage.c: Likewise.
29559
29560 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
29561
29562         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
29563
29564 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
29565
29566         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
29567
29568 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
29569
29570         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
29571         change internal state upon failure.
29572
29573 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
29574
29575         * malloc/mcheck.c (mcheck_check_all): Fix typo.
29576         * malloc/memusage.c (mmap): Likewise.
29577         (mmap64, mremap): Likewise.  Adjust name in comment.
29578
29579 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
29580
29581         * libio/fileops.c: Fix typos in comments.
29582         * libio/oldfileops.c: Likewise.
29583         * libio/wfileops.c: Likewise.
29584
29585 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
29586
29587         [BZ #1349]
29588         * malloc/Makefile (tests): Add tst-malloc-usable test case.
29589         (tst-malloc-usable-ENV): Set environment for test case.
29590         * malloc/hooks.c (malloc_check_get_size): New function to get
29591         requested size.
29592         * malloc/malloc.c (musable): Use malloc_check_get_size.
29593         * malloc/tst-malloc-usable.c: New test case.
29594
29595 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
29596
29597         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
29598
29599 2012-09-05  Allan McRae  <allan@archlinux.org>
29600
29601         [BZ #13966]
29602         * configure.in (CXX_SYSINCLUDES): Use compiler output to
29603         determine header location.
29604         * configure: Regenerated.
29605
29606 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
29607
29608         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
29609         float format.
29610         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
29611         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
29612         format.
29613         (test): Regenerate.
29614
29615 2012-09-04  David S. Miller  <davem@davemloft.net>
29616
29617         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
29618         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
29619         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
29620
29621 2012-09-04  Florian Weimer  <fweimer@redhat.com>
29622
29623         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
29624         failures.
29625
29626         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
29627
29628 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
29629
29630         [BZ #9914]
29631         * libio/iogetdelim.c: Include <limits.h>.
29632         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
29633         + len + 1 would overflow.
29634
29635 2012-09-03  Andreas Jaeger  <aj@suse.de>
29636
29637         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29638         * sysdeps/i386/fpu/libm-test-ulps: Update.
29639
29640 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29641
29642         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
29643         Add s_sinf-sse2, s_conf-sse2.
29644
29645         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
29646         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
29647         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
29648         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
29649
29650         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
29651         for using routine as __sinf_ia32.
29652         Use macro for function declaration and weak_alias.
29653         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
29654         for using routine as __cosf_ia32.
29655         Use macro for function declaration and weak_alias.
29656
29657         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
29658         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
29659
29660         * sysdeps/x86_64/fpu/s_sinf.S: New file.
29661         * sysdeps/x86_64/fpu/s_cosf.S: New file.
29662         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29663
29664         * math/libm-test.inc (cos_test): Add more test cases.
29665         (sin_test): Likewise.
29666         (sincos_test): Likewise.
29667
29668 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29669
29670         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
29671         (IFUNC_RESOLVE): Make pointers to the specialized implementations
29672         hidden.
29673         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
29674
29675 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
29676
29677         [BZ #14538]
29678         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
29679         first element of the GOT.
29680         (elf_machine_load_address): Return the difference between
29681         the runtime address of _DYNAMIC and elf_machine_dynamic ().
29682
29683 2012-09-01  Allan McRae  <allan@archlinux.org>
29684
29685         [BZ #13412]
29686         * configure.in (AWK): Require gawk version 3.0 or later.
29687         * configure: Regenerated.
29688
29689 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
29690
29691         * sysdeps/unix/sysv/linux/kernel-features.h
29692         (__ASSUME_POSIX_CPU_TIMERS): Remove.
29693         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
29694         [__NR_clock_getres]: Make code unconditional.
29695         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
29696         (clock_getcpuclockid): Remove code left unreachable by removal of
29697         conditionals.
29698         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
29699         code unconditional.
29700         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
29701         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
29702         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
29703         Make code unconditional.
29704         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
29705         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
29706         * sysdeps/unix/sysv/linux/clock_settime.c
29707         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
29708         conditional code.
29709         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
29710         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
29711
29712 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
29713
29714         [BZ #14476]
29715         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
29716         scripts/test-installation.pl.
29717
29718         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
29719         and $ld_so_version if it is set.
29720
29721 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
29722
29723         [BZ #14516]
29724         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
29725         failure if reading from procfs failed.
29726         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
29727
29728 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
29729
29730         * sysdeps/unix/sysv/linux/kernel-features.h
29731         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
29732         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
29733         Remove conditional code.
29734         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29735         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
29736         Remove conditional code.
29737         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29738         * sysdeps/unix/sysv/linux/i386/fxstat.c
29739         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
29740         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29741         * sysdeps/unix/sysv/linux/i386/fxstatat.c
29742         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
29743         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29744         * sysdeps/unix/sysv/linux/i386/lxstat.c
29745         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
29746         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29747         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
29748         Remove conditional code.
29749         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29750         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
29751         Remove conditional code.
29752         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29753         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
29754         <kernel-features.h>.
29755         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
29756         Remove.
29757         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
29758         Remove conditional code.
29759         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
29760         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
29761         Remove conditional.
29762
29763 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
29764
29765         [BZ #5400]
29766         * NEWS: Add fixed bug number.
29767
29768 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
29769
29770         [BZ #14519]
29771         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
29772         underflowing exponent in case of negative sign.
29773         * stdlib/tst-strtod-round-data: Add more tests.
29774         * stdlib/tst-strtod-round.c (tests): Regenerated.
29775
29776         [BZ #3479]
29777         * stdlib/strtod_l.c (NDIG): Remove.
29778         (HEXNDIG): Likewise.
29779         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
29780         smallest representable value.
29781         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
29782         lie within an exact representation of 1/2 ulp of the result.
29783         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
29784         unconditionally.
29785         (TENS_P9_IDX): Define unconditionally.
29786         (TENS_P9_SIZE): Likewise.
29787         (TENS_P10_IDX): Likewise.
29788         (TENS_P10_SIZE): Likewise.
29789         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
29790         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
29791         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
29792         entries for 10^2^13 and 10^2^14.
29793         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
29794         (TENS_P13_IDX): Define.
29795         (TENS_P13_SIZE): Likewise.
29796         (TENS_P14_IDX): Likewise.
29797         (TENS_P14_SIZE): Likewise.
29798         (_fpioconst_pow10): Change array size to
29799         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
29800         unconditional.
29801         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
29802         1024]: Add entries for 10^2^13 and 10^2^14.
29803         [LAST_POW10 > _LAST_POW10]: Remove #error.
29804         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
29805         (_fpioconst_pow10): Change array size to
29806         FPIOCONST_POW10_ARRAY_SIZE.
29807         * stdlib/gen-fpioconst.c: New file.
29808         * stdlib/gen-tst-strtod-round.c: Likewise.
29809         * stdlib/tst-strtod-round-data: Likewise.
29810         * stdlib/tst-strtod-round.c: Likewise.
29811         * stdlib/Makefile (tests): Add tst-strtod-round.
29812
29813         [BZ #14459]
29814         * stdlib/strtod_l.c: Include <stdint.h>.
29815         (NDEBUG): Do not define.
29816         (round_and_return): Change EXPONENT parameter to type intmax_t.
29817         Rearrange calculations to avoid internal overflow possibilities.
29818         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
29819         Rearrange calculations to avoid internal overflow possibilities.
29820         Assert that number fits inside MPNSIZE limbs.
29821         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
29822         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
29823         calculations and add assertions to avoid internal overflow
29824         possibilities.  Add casts to avoid signed/unsigned operations.
29825         * stdlib/tst-strtod-overflow.c: New file.
29826         * stdlib/Makefile (tests): Add tst-strtod-overflow.
29827
29828 2012-08-25  Marek Polacek  <polacek@redhat.com>
29829
29830         * time/time.h: Fix some typos in comments.
29831
29832 2012-08-23  Roland McGrath  <roland@hack.frob.com>
29833
29834         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
29835         * posix/tst-rfc3484-2.c: Likewise.
29836         * posix/tst-rfc3484-3.c: Likewise.
29837
29838 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
29839
29840         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
29841         (EF_ARM_ABI_FLOAT_HARD): Likewise.
29842
29843 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
29844
29845         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
29846         #include of fxstatat64.c.
29847
29848 2012-08-22  Roland McGrath  <roland@hack.frob.com>
29849
29850         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
29851         * shadow/getspent_r.c: Likewise.
29852         * shadow/getspnam.c: Likewise.
29853         * shadow/getspnam_r.c: Likewise.
29854         * gshadow/getsgent.c: Likewise.
29855         * gshadow/getsgent_r.c: Likewise.
29856         * gshadow/getsgnam.c: Likewise.
29857         * gshadow/getsgnam_r.c: Likewise.
29858         * inet/getnetbyad.c: Likewise.
29859         * inet/getnetbyad_r.c: Likewise.
29860         * inet/getnetbynm.c: Likewise.
29861         * inet/getnetbynm_r.c: Likewise.
29862         * inet/getnetent.c: Likewise.
29863         * inet/getnetent_r.c: Likewise.
29864         * inet/getproto.c: Likewise.
29865         * inet/getproto_r.c: Likewise.
29866         * inet/getprtent.c: Likewise.
29867         * inet/getprtent_r.c: Likewise.
29868         * inet/getprtname.c: Likewise.
29869         * inet/getprtname_r.c: Likewise.
29870         * inet/getrpcbyname.c: Likewise.
29871         * inet/getrpcbyname_r.c: Likewise.
29872         * inet/getrpcbynumber.c: Likewise.
29873         * inet/getrpcbynumber_r.c: Likewise.
29874         * inet/getrpcent.c: Likewise.
29875         * inet/getrpcent_r.c: Likewise.
29876         * inet/getaliasent.c: Likewise.
29877         * inet/getaliasent_r.c: Likewise.
29878         * inet/getaliasname.c: Likewise.
29879         * inet/getaliasname_r.c: Likewise.
29880         * nscd/getgrgid_r.c: Likewise.
29881         * nscd/getgrnam_r.c: Likewise.
29882         * nscd/gethstbyad_r.c: Likewise.
29883         * nscd/gethstbynm3_r.c: Likewise.
29884         * nscd/getpwnam_r.c: Likewise.
29885         * nscd/getpwuid_r.c: Likewise.
29886         * nscd/getsrvbynm_r.c: Likewise.
29887         * nscd/getsrvbypt_r.c: Likewise.
29888         * nscd/gai.c: Likewise.
29889
29890         * configure.in (build_nscd): New substituted variable, set
29891         by --disable-build-nscd and defaults to $use_nscd.
29892         * configure: Regenerated.
29893         * config.make.in (build-nscd): New substituted variable.
29894         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
29895         Change conditional to require [$(build-nscd) = yes] as well.
29896         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
29897
29898         [BZ# 13696]
29899         * configure.in (use_nscd): New substituted variable, set by
29900         --disable-nscd.  If enabled, define USE_NSCD.
29901         * configure: Regenerated.
29902         * config.h.in: Add USE_NSCD.
29903         * config.make.in (use-nscd): New substituted variable.
29904         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
29905         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
29906         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
29907         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
29908         (CFLAGS-getgrnam_r.c): Likewise.
29909         (CFLAGS-initgroups.c): Likewise.
29910         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
29911         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
29912         Variables removed.
29913         * inet/getnetgrent_r.c
29914         (nscd_setnetgrent): New function, broken out of ...
29915         (setnetgrent): ... here.  Call it.
29916         (innetgr): Conditionalize nscd bits on [USE_NSCD].
29917         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
29918         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
29919         * nscd/Makefile (routines, aux): Move definitions after include of
29920         Makeconfig.  Conditionalize on [$(use-nscd) != no].
29921         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
29922         Conditionalize on [USE_NSCD].
29923         (is_nscd, nscd_init_cb): Likewise.
29924         (nss_load_library): Conditionalize init callback on [USE_NSCD].
29925         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
29926         * nss/nss_db/db-init.c: Likewise.
29927         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
29928         [USE_NSCD].
29929         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
29930         (make_request): Use it.
29931         (cache_valid_p): New function.
29932         (__check_pf): Use it.
29933         * NEWS: Add item for --disable-nscd.
29934
29935 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
29936
29937         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
29938         to support sed >= 4.2.1-20-ga9bf076.
29939         * configure: Regenerated.
29940
29941 2012-08-22  Roland McGrath  <roland@hack.frob.com>
29942
29943         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
29944         Conditionalize whole body on [IREL].
29945
29946 2012-08-22  Jeff Law <law@redhat.com>
29947
29948         [BZ #14505]
29949         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
29950         if the family is PF_UNSPEC.
29951
29952 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
29953
29954         * Makerules (lib-version): Rename from V.
29955         (install-lib-nosubdir): Change V to lib-version.
29956
29957 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
29958
29959         [BZ #14252]
29960         * powerpc32/power6/wcschr.c: New file.
29961         * powerpc32/power6/wcscpy.c: New file.
29962         * powerpc32/power6/wcsrchr.c: New file.
29963         * powerpc64/power6/wcschr.c: New file.
29964         * powerpc64/power6/wcscpy.c: New file.
29965         * powerpc64/power6/wcsrchr.c: New file.
29966
29967 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
29968
29969         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
29970         (two_way_short_needle): Use it.
29971         * string/strstr.c (AVAILABLE1_USES_J): Define.
29972         * string/strcasestr.c: Likewise.
29973
29974         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
29975         array references.
29976         * string/strcasestr.c (TOLOWER): Make side-effect safe.
29977
29978         [BZ #11607]
29979         * NEWS: Add an entry.
29980         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
29981         define their defaults.
29982         (two_way_short_needle): Detect end-of-string on-the-fly.
29983         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
29984         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
29985         * string/bug-strcasestr1.c: New test.
29986         * string/Makefile: Run it.
29987
29988 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
29989
29990         [BZ #11607]
29991         * string/str-two-way.h (two_way_short_needle): Optimize matching of
29992         the first character.
29993
29994 2012-08-21  Roland McGrath  <roland@hack.frob.com>
29995
29996         * csu/elf-init.c (__libc_csu_irel): Function removed.
29997         * csu/libc-start.c (apply_irel): New function.
29998         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
29999
30000 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
30001
30002         * sysdeps/unix/sysv/linux/kernel-features.h
30003         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
30004         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
30005         <kernel-features.h>.
30006         [__NR_fadvise64_64]: Make code unconditional.
30007         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
30008         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
30009         !__NR_fadvise64_64)]: Likewise.
30010         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
30011         !__NR_fadvise64_64))]: Likewise.
30012         [__NR_fadvise64]: Make code unconditional.
30013         [!__NR_fadvise64]: Remove conditional code.
30014         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
30015         <kernel-features.h>.
30016         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
30017         unconditional.
30018         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
30019         conditional code.
30020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
30021         not include <kernel-features.h>.
30022         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
30023         unconditional.
30024         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
30025         conditional code.
30026         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
30027         include <kernel-features.h>.
30028         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
30029         unconditional.
30030         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
30031         conditional code.
30032
30033 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
30034
30035         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
30036         slight instruction rearrangements per scrollpipe analysis.
30037         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
30038
30039 2012-08-20  Roland McGrath  <roland@hack.frob.com>
30040
30041         * manual/syslog.texi (syslog; vsyslog, closelog):
30042         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
30043         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
30044
30045         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
30046         DSOCAPS to match condition on defining it.
30047
30048 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
30049
30050         * sysdeps/unix/sysv/linux/kernel-features.h
30051         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
30052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
30053         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
30054         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
30055         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
30056         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
30057         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
30058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
30059         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
30060         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
30061
30062         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
30063         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
30064
30065         * sysdeps/unix/sysv/linux/kernel-features.h
30066         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
30067         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
30068         unconditional.
30069         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
30070         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
30071         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
30072         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
30073         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
30074         Make code unconditional.
30075         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
30076         (__mmap64) [!__NR_mmap2]: Likewise.
30077         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
30078         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
30079         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
30080         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
30081         [__NR_mmap2]: Make code unconditional.
30082         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
30083         (__mmap64) [!__NR_mmap2]: Likewise.
30084
30085 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30086
30087         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
30088
30089 2012-08-18  Andreas Jaeger  <aj@suse.de>
30090
30091         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
30092
30093 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
30094
30095         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
30096         * include/unistd.h (__have_sock_cloexec): Likewise.
30097         (__have_pipe2): Likewise.
30098         (__have_dup3): Likewise.
30099
30100 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
30101
30102         [BZ #9685]
30103         * include/unistd.h (__have_pipe2): Change define into an extern int.
30104         (__have_dup3): Likewise.
30105         * socket/have_sock_cloexec.c: Include fcntl.h.
30106         (__have_pipe2): New variable.
30107         (__have_dup3): Likewise.
30108
30109 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
30110
30111         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
30112
30113 2012-08-17  Marek Polacek  <polacek@redhat.com>
30114
30115         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
30116         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
30117
30118 2012-08-17  Roland McGrath  <roland@hack.frob.com>
30119
30120         * configure.in: Add AC_SUBST for sysheaders.
30121         * configure: Regenerated.
30122         * config.make.in (sysheaders): New substituted variable.
30123
30124         * sysdeps/unix/mkfifo.c: Moved ...
30125         * sysdeps/posix/mkfifo.c: ... here.
30126         * sysdeps/unix/mkfifoat.c: Moved ...
30127         * sysdeps/posix/mkfifoat.c: ... here.
30128
30129         * sysdeps/unix/utime.c: Moved ...
30130         * sysdeps/posix/utime.c: ... here.
30131
30132         * sysdeps/unix/time.c: Moved ...
30133         * sysdeps/posix/time.c: ... here.
30134         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
30135         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
30136
30137         * sysdeps/unix/nice.c: Moved ...
30138         * sysdeps/posix/nice.c: ... here.
30139
30140         * sysdeps/unix/alarm.c: Moved ...
30141         * sysdeps/posix/alarm.c: ... here.
30142
30143         * intl/Makefile ($(codeset_mo)): Depend on the input file.
30144
30145 2012-08-17  Jeff Law <law@redhat.com>
30146
30147         * intl/Makefile (codeset_mo): New variable.
30148         ($(codeset_mo)): New target.
30149         (tst-codeset.out): Depend on that.  Remove explicit rule.
30150         (tst-gettext3.out, tst-gettext5.out): Likewise.
30151         (LOCPATH-ENV, tst-codeset-ENV): New variables.
30152         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
30153         * intl/tst-codeset.sh: Remove.
30154         * intl/tst-gettext3.sh: Likewise.
30155         * intl/tst-gettext5.sh: Likewise.
30156
30157 2012-08-17  Roland McGrath  <roland@hack.frob.com>
30158
30159         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
30160         * sysdeps/unix/syscalls.list: ... here.
30161
30162         * sysdeps/posix/getaddrinfo.c
30163         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
30164         (gaiconf_init, gaiconf_reload): Use them.
30165         [!_STATBUF_ST_NSEC]
30166         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
30167         Define using time_t rather than struct timespec.
30168
30169         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
30170         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
30171         Macros removed.
30172         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
30173         [!NO_THREADS].
30174         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
30175         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
30176         Likewise.
30177
30178         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
30179         __libc_cleanup_push argument.
30180
30181         * bits/param.h: New file.
30182         * misc/sys/param.h: New file.
30183         * include/sys/param.h: New file.
30184         * misc/Makefile (headers): Add bits/param.h.
30185         * sysdeps/generic/sys/param.h: File removed.
30186         * sysdeps/unix/sysv/linux/bits/param.h: New file.
30187         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
30188         * sysdeps/mach/hurd/bits/param.h: New file.
30189         * sysdeps/mach/hurd/sys/param.h: File removed.
30190
30191         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
30192         last change.
30193
30194         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
30195         [_IO_MTSAFE_IO].
30196         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
30197         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
30198         New macros.
30199
30200         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
30201         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
30202         rather than -D_IO_MTSAFE_IO conditionally.
30203         * stdio-common/Makefile (CPPFLAGS): Likewise.
30204         * wcsmbs/Makefile (CPPFLAGS): Likewise.
30205         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
30206         Use $(libio-mtsafe).
30207         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
30208         of -D_IO_MTSAFE_IO.
30209         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
30210         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
30211         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
30212         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
30213         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
30214         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
30215         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
30216         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
30217         (CFLAGS-fread_u_chk.c): Likewise.
30218         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
30219         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
30220         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
30221         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
30222         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
30223         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
30224         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
30225         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
30226         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
30227
30228         * libio/Makefile: Test [$(libc-reentrant) = yes]
30229         instead of [$(filter %REENTRANT, $(defines)) nonempty].
30230
30231         * Makeconfig
30232         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
30233         * sysdeps/pthread/configure: File removed.
30234         * sysdeps/pthread/Makeconfig: New file.
30235         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
30236         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
30237
30238 2012-08-16  Gary Benson  <gbenson@redhat.com>
30239
30240         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
30241         unmapping the first object in a namespace.
30242
30243 2012-08-16  Roland McGrath  <roland@hack.frob.com>
30244
30245         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
30246         (__internal_setnetgrent): ... this.  Add internal_function to
30247         definition.  Add libc_hidden_def.
30248         (setnetgrent): Update caller.
30249         (internal_endnetgrent): Renamed to ...
30250         (__internal_endnetgrent): ... this.  Add internal_function to
30251         definition.  Add libc_hidden_def.
30252         (endnetgrent): Update caller.
30253         (internal_getnetgrent_r): Renamed to ...
30254         (__internal_getnetgrent_r): ... this.  Add internal_function to
30255         definition.  Add libc_hidden_def.
30256         (__getnetgrent_r): Update caller.
30257         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
30258
30259 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
30260
30261         * stdlib/longlong.h: Update from GCC.
30262
30263 2012-08-16  Roland McGrath  <roland@hack.frob.com>
30264
30265         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
30266         on _QL, which is set by umul_ppmm but never used.
30267         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
30268         variables, which are set by GMP macros but never used.
30269         * stdio-common/_itowa.c (_itowa): Likewise.
30270         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
30271         * stdlib/mod_1.c (mpn_mod_1): Likewise.
30272
30273 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
30274
30275         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
30276         struct La_sh_regs is not constant.
30277         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
30278         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
30279         and struct La_sparc64_regs are not constant.
30280
30281 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
30282
30283         * sysdeps/unix/sysv/linux/kernel-features.h
30284         (__ASSUME_POSIX_TIMERS): Remove.
30285         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
30286         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
30287         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
30288         Make code unconditional.
30289         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
30290         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
30291         Make code unconditional.
30292         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
30293         * sysdeps/unix/sysv/linux/clock_nanosleep.c
30294         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
30295         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
30296         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
30297         Make code unconditional.
30298         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
30299         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
30300         (__libc_missing_posix_timers): Remove.
30301
30302 2012-08-15  Roland McGrath  <roland@hack.frob.com>
30303
30304         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
30305         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
30306
30307         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
30308
30309         * elf/dl-sym.c: Include <stdlib.h>.
30310
30311         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
30312         constants, which avoids warnings in 32-bit builds.
30313
30314         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
30315         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
30316
30317         * misc/lseek.c: File moved to ...
30318         * io/lseek.c: ... here.
30319
30320         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
30321
30322         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
30323         shifting LEN more than 31 bits at once.
30324
30325 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30326
30327         [BZ #14195]
30328         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
30329         segmentation fault for a case of two empty input strings.
30330         * string/test-strncasecmp.c (check1): Renamed to...
30331         (bz12205): ...this.
30332         (bz14195): Add new testcase for two empty input strings and N > 0.
30333         (test_main): Call new testcase, adapt for renamed function.
30334
30335 2012-08-15  Andreas Jaeger  <aj@suse.de>
30336
30337         [BZ #14090]
30338         * crypt/md5test2.c: New test, based on test supplied by Serge
30339         Belyshev <belyshev@depni.sinp.msu.ru>.
30340         * crypt/Makefile (xtests): Add md5test-giant..
30341         * crypt/Makefile ($(objpfx)md5test-giant): Add.
30342
30343 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
30344
30345         [BZ #14090]
30346         * crypt/md5.c (md5_process_block): Don't assume the buffer
30347         length is less than 2**32.
30348         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
30349         length is less than 2**64.
30350
30351 2012-08-15  Roland McGrath  <roland@hack.frob.com>
30352
30353         * string/str-two-way.h: Include <sys/param.h>.
30354         (MAX): Macro removed.
30355
30356         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
30357         Move #define and #undef of memmove to just before and after
30358         including <string.h>.
30359
30360         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
30361         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
30362         and after including <string.h>.  Move declarations of
30363         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
30364         to before #include "string/memmove.c".
30365
30366         * include/dirent.h: Declare __getdirentries.
30367
30368         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
30369         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
30370
30371 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
30372
30373         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
30374         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
30375         * sysdeps/i386/configure: Regenerated.
30376         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
30377         STABS_CURRENT_FILE, and STABS_FUN.
30378         (END): Remove call to STABS_FUN_END.
30379         (STABS_CURRENT_FILE1): Delete.
30380         (STABS_CURRENT_FILE): Likewise.
30381         (STABS_FUN): Likewise.
30382         (STABS_FUN_END): Likewise.
30383         (STABS_FUN2): Likewise.
30384         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
30385         * sysdeps/x86_64/configure: Regenerated.
30386
30387 2012-08-14  Roland McGrath  <roland@hack.frob.com>
30388
30389         * elf/dl-open.c: Include <atomic.h>.
30390         * elf/dl-lookup.c: Likewise.
30391
30392 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
30393
30394         * sysdeps/unix/sysv/linux/kernel-features.h
30395         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
30396         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
30397         unconditionally.
30398         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
30399         unconditionally.
30400         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
30401         condition on __ASSUME_CLONE_THREAD_FLAGS.
30402
30403 2012-08-14  Andreas Jaeger  <aj@suse.de>
30404
30405         * sysdeps/i386/fpu/libm-test-ulps: Update.
30406
30407 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
30408
30409         * include/atomic.h (atomic_exchange_and_add): Split into ...
30410         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
30411         New atomic macros.
30412
30413 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
30414
30415         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
30416
30417 2012-08-13  Jeff Law <law@redhat.com>
30418
30419         * manual/stdio.texi (snprintf): Clarify handling of the trailing
30420         null byte in the output string.
30421
30422 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
30423
30424         * sysdeps/unix/sysv/linux/kernel-features.h
30425         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
30426         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
30427         (__ASSUME_ARG_MAX_STACK_BASED): Define.
30428         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
30429         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
30430         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
30431         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
30432
30433 2012-08-09  Jeff Law <law@redhat.com>
30434
30435         [BZ #13939]
30436         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
30437         When avoid_arena is set, don't retry in the that arena.  Pick the
30438         next one, whatever it might be.
30439         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
30440         (arena_lock): Pass in new parameter to arena_get2.
30441         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
30442         arena_get2.
30443         (__libc_malloc): Unify retrying after main arena failure with
30444         __libc_memalign version.
30445         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
30446
30447 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
30448
30449         [BZ #14166]
30450         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
30451         to __redirect_strstr.
30452         (__strstr_sse42): Use typeof __redirect_strstr.
30453         (__strstr_ia32): Likewise.
30454         (__libc_strstr): New prototype.
30455         (strstr): Renamed to ...
30456         (__libc_strstr): This.
30457         (strstr): New strong alias of __libc_strstr.
30458         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
30459         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
30460         __redirect_time.
30461         Include <time.h>.
30462         (__libc_time): New prototype.
30463         (time_ifunc): Replace time with __libc_time.
30464         (time): New strong alias and hidden definition of __libc_time.
30465         (__GI_time): Remove strong alias.
30466         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
30467         Include <stddef.h>.
30468         (memmove): Redefined to __redirect_memmove.
30469         (__memmove_sse2): Use typeof __redirect_memmove.
30470         (__memmove_ssse3): Likewise.
30471         (__memmove_ssse3_back): Likewise.
30472         (__libc_memmove): New prototype.
30473         (memmove): Renamed to ...
30474         (__libc_memmove): This.
30475         (memmove): New strong alias of __libc_memmove.
30476
30477 2012-08-08  Mark Salter  <msalter@redhat.com>
30478
30479         * elf/elf.h
30480         (R_MN10300_TLS_GD): Define.
30481         (R_MN10300_TLS_LD): Likewise.
30482         (R_MN10300_TLS_LDO): Likewise.
30483         (R_MN10300_TLS_GOTIE): Likewise.
30484         (R_MN10300_TLS_IE): Likewise.
30485         (R_MN10300_TLS_LE): Likewise.
30486         (R_MN10300_TLS_DTPMOD): Likewise.
30487         (R_MN10300_TLS_DTPOFF): Likewise.
30488         (R_MN10300_TLS_TPOFF): Likewise.
30489         (R_MN10300_SYM_DIFF): Likewise.
30490         (R_MN10300_ALIGN): Likewise.
30491         (R_MN10300_NUM): Update.
30492
30493 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
30494
30495         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
30496         Remove.
30497
30498 2012-08-08  Roland McGrath  <roland@hack.frob.com>
30499
30500         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
30501
30502         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
30503         sysdeps/unix -> sysdeps/posix move.
30504         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
30505
30506 2012-08-07      Allan McRae     <allan@archlinux.org>
30507
30508         [BZ #14303]
30509         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
30510         (SUNOS_CPP): Likewise.
30511         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
30512         not found.
30513         (open_input): Call CPP using execvp.
30514
30515 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
30516
30517         * sysdeps/unix/sysv/linux/kernel-features.h
30518         (__ASSUME_PROT_GROWSUPDOWN): Remove.
30519         (__ASSUME_NO_CLONE_DETACHED): Likewise.
30520         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
30521         (__ASSUME_WAITID_SYSCALL): Likewise.
30522         * sysdeps/unix/sysv/linux/dl-execstack.c
30523         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
30524         code unconditional.
30525         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
30526         conditional code.
30527         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
30528         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
30529         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
30530         code.
30531         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
30532         unconditional.
30533         [__ASSUME_WAITID_SYSCALL]: Likewise.
30534         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
30535
30536 2012-08-07  Roland McGrath  <roland@hack.frob.com>
30537
30538         * sysdeps/unix/closedir.c: Renamed to ...
30539         * sysdeps/posix/closedir.c: ... here.
30540         * sysdeps/unix/dirfd.c: Renamed to ...
30541         * sysdeps/posix/dirfd.c: ... here.
30542         * sysdeps/unix/dirstream.h: Renamed to ...
30543         * sysdeps/posix/dirstream.h: ... here.
30544         * sysdeps/unix/fdopendir.c: Renamed to ...
30545         * sysdeps/posix/fdopendir.c: ... here.
30546         * sysdeps/unix/opendir.c: Renamed to ...
30547         * sysdeps/posix/opendir.c: ... here.
30548         * sysdeps/unix/readdir.c: Renamed to ...
30549         * sysdeps/posix/readdir.c: ... here.
30550         * sysdeps/unix/readdir_r.c: Renamed to ...
30551         * sysdeps/posix/readdir_r.c: ... here.
30552         * sysdeps/unix/rewinddir.c: Renamed to ...
30553         * sysdeps/posix/rewinddir.c: ... here.
30554         * sysdeps/unix/seekdir.c: Renamed to ...
30555         * sysdeps/posix/seekdir.c: ... here.
30556         * sysdeps/unix/telldir.c: Renamed to ...
30557         * sysdeps/posix/telldir.c: ... here.
30558         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
30559         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
30560         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
30561         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
30562
30563         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
30564         * bits/fcntl.h: ... here.
30565
30566         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
30567         not 0.
30568         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
30569         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
30570         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
30571         (struct flock): Move l_start, l_len to the beginning.
30572         Use __pid_t for l_pid.
30573         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
30574         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
30575         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
30576         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
30577         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
30578         [__USE_LARGEFILE64] (struct flock64): New type.
30579         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
30580
30581         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
30582         * bits/dirent.h: ... here.
30583
30584         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
30585         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
30586
30587 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
30588
30589         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30590         Change from 2.6.0 to 2.6.16.
30591         * sysdeps/unix/sysv/linux/configure: Regenerated.
30592         * sysdeps/unix/sysv/linux/kernel-features.h
30593         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
30594         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
30595         version.
30596         (__ASSUME_UTIMES): Likewise.
30597         (__ASSUME_CLONE_STOPPED): Remove.
30598         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
30599         architectures, not kernel version.
30600         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
30601         (__ASSUME_NO_CLONE_DETACHED): Likewise.
30602         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
30603         (__ASSUME_WAITID_SYSCALL): Likewise.
30604         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
30605         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
30606         * README: State 2.6.16 as minimum Linux kernel version.  Do not
30607         refer to older versions.
30608
30609 2012-08-06  Roland McGrath  <roland@hack.frob.com>
30610
30611         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
30612         Define alphasort64 as an alias.
30613         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
30614         Define versionsort64 as an alias.
30615         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
30616         Define scandir64 as an alias.
30617         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
30618         Define scandirat64 as an alias.
30619         * dirent/alphasort64.c (alphasort64):
30620         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
30621         * dirent/versionsort64.c: Likewise.
30622         * dirent/scandir64.c: Likewise.
30623         * dirent/scandirat64.c: Likewise.
30624         * sysdeps/wordsize-64/alphasort.c: File removed.
30625         * sysdeps/wordsize-64/alphasort64.c: File removed.
30626         * sysdeps/wordsize-64/scandir.c: File removed.
30627         * sysdeps/wordsize-64/scandir64.c: File removed.
30628         * sysdeps/wordsize-64/scandirat.c: File removed.
30629         * sysdeps/wordsize-64/scandirat64.c: File removed.
30630         * sysdeps/wordsize-64/versionsort.c: File removed.
30631         * sysdeps/wordsize-64/versionsort64.c: File removed.
30632         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
30633         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
30634         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
30635         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
30636         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
30637         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
30638         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
30639         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
30640
30641         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
30642         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
30643         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
30644         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30645         [defined __arch64__ || defined __sparcv9]
30646         (__INO_T_MATCHES_INO64_T): New macro.
30647         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
30648         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
30649         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
30650         * sysdeps/unix/sysv/linux/bits/dirent.h
30651         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
30652         (_DIRENT_MATCHES_DIRENT64): New macro.
30653
30654         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
30655         Define lockf64 as an alias.
30656         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
30657         Define fseeko64 as an alias.
30658         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
30659         Define ftello64 as an alias.
30660         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
30661         Define _IO_fgetpos64 and fgetpos64 as aliases.
30662         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
30663         Define _IO_fsetpos64 and fsetpos64 as aliases.
30664         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
30665         Conditionalize body on this.
30666         * libio/fseeko64.c: Likewise.
30667         * libio/ftello64.c: Likewise.
30668         * libio/iofgetpos64.c: Likewise.
30669         * libio/iofsetpos64.c: Likewise.
30670         * sysdeps/wordsize-64/lockf.c: File removed.
30671         * sysdeps/wordsize-64/lockf64.c: File removed.
30672         * sysdeps/wordsize-64/fseeko.c: File removed.
30673         * sysdeps/wordsize-64/fseeko64.c: File removed.
30674         * sysdeps/wordsize-64/ftello.c: File removed.
30675         * sysdeps/wordsize-64/ftello64.c: File removed.
30676         * sysdeps/wordsize-64/iofgetpos.c: File removed.
30677         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
30678         * sysdeps/wordsize-64/iofsetpos.c: File removed.
30679         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
30680         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
30681         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
30682         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
30683         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
30684         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
30685         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
30686         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
30687         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
30688         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
30689         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
30690
30691         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
30692         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
30693         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
30694         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
30695         [defined __arch64__ || defined __sparcv9]
30696         (__OFF_T_MATCHES_OFF64_T): New macro.
30697         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
30698         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
30699         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
30700         (__OFF_T_MATCHES_OFF64_T): New macro.
30701
30702 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
30703
30704         * stdlib/secure-getenv.c (__secure_getenv): Replace
30705         GLIBC_2_16 with GLIBC_2_17.
30706
30707 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
30708
30709         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
30710         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
30711
30712 2012-08-03  David S. Miller  <davem@davemloft.net>
30713
30714         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30715
30716 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
30717
30718         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
30719         Remove.
30720         (__ASSUME_CORRECT_SI_PID): Likewise.
30721         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
30722         (__ASSUME_TMPFS_NAME): Likewise.
30723         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
30724         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
30725         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
30726         (HAVE_AUX_SECURE): Make definition unconditional.
30727         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
30728         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
30729
30730 2012-08-03  Roland McGrath  <roland@hack.frob.com>
30731
30732         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
30733         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
30734         * sysdeps/mach/hurd/eloop-threshold.h: New file.
30735         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
30736         __eloop_threshold instead of SYMLOOP_MAX.
30737
30738         * sysdeps/generic/eloop-threshold.h: New file.
30739         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
30740         of MAXSYMLINKS.
30741         * elf/chroot_canon.c (chroot_canon): Likewise.
30742
30743 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
30744
30745         [BZ #13717]
30746         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
30747         Change to 2.6.0 everywhere.
30748         * sysdeps/unix/sysv/linux/configure: Regenerated.
30749         * sysdeps/unix/sysv/linux/kernel-features.h
30750         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
30751         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
30752         kernel versions.
30753         (__ASSUME_POSIX_TIMERS): Define unconditionally.
30754         (__ASSUME_FUTEX_REQUEUE): Remove.
30755         (__ASSUME_STATFS64): Define unconditionally.
30756         (__ASSUME_AT_SECURE): Likewise.
30757         (__ASSUME_CORRECT_SI_PID): Likewise.
30758         (__ASSUME_TGKILL): Define without depending on kernel version for
30759         i386.
30760         (__ASSUME_UTIMES): Likewise.
30761         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
30762         kernel version.
30763         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
30764         (__ASSUME_TMPFS_NAME): Likewise.
30765         * README: Update reference to Linux kernel versions.
30766
30767 2012-08-02  Marek Polacek  <polacek@redhat.com>
30768
30769         [BZ# 14150]
30770         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
30771         libc_cv_asm_type_prefix with %.
30772         * configure: Regenerated.
30773         * include/libc-symbols.h: Remove comment about
30774         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
30775         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
30776         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
30777         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
30778         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
30779         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
30780         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
30781         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
30782         * elf/tst-unique2mod1.c: Likewise.
30783         * elf/tst-unique1mod2.c: Likewise.
30784         * elf/tst-unique1mod1.c: Likewise.
30785         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
30786         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
30787         Replace ASM_TYPE_DIRECTIVE with .type.
30788         * sysdeps/s390/s390-64/sysdep.h: Likewise.
30789         * sysdeps/i386/sysdep.h: Likewise.
30790         * sysdeps/x86_64/sysdep.h: Likewise.
30791         * sysdeps/sh/sysdep.h: Likewise.
30792         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
30793         Do not define ASM_TYPE_DIRECTIVE.
30794         * sysdeps/powerpc/sysdep.h: Likewise.
30795         * sysdeps/powerpc/powerpc32/sysdep.h:
30796         Replace ASM_TYPE_DIRECTIVE with .type.
30797         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
30798         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
30799         * sysdeps/i386/fpu/e_powf.S: Likewise.
30800         * sysdeps/i386/fpu/e_expl.S: Likewise.
30801         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30802         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30803         * sysdeps/i386/fpu/e_pow.S: Likewise.
30804         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
30805         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30806         * sysdeps/i386/fpu/s_expm1.S: Likewise.
30807         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
30808         * sysdeps/i386/fpu/e_log2.S: Likewise.
30809         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30810         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30811         * sysdeps/i386/fpu/e_powl.S: Likewise.
30812         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30813         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
30814         * sysdeps/i386/fpu/e_logl.S: Likewise.
30815         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
30816         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
30817         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
30818         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30819         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30820         * sysdeps/i386/fpu/e_log.S: Likewise.
30821         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30822         * sysdeps/i386/fpu/e_logf.S: Likewise.
30823         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30824         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30825         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
30826         * sysdeps/i386/fpu/e_log10.S: Likewise.
30827         * sysdeps/i386/fpu/s_frexp.S: Likewise.
30828         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30829         * sysdeps/i386/fpu/s_asinh.S: Likewise.
30830         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
30831         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30832         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
30833         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
30834         * sysdeps/i386/i686/strtok.S: Likewise.
30835         * sysdeps/i386/i386-mcount.S: Likewise.
30836         * sysdeps/i386/strtok.S: Likewise.
30837         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
30838         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30839         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30840         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30841         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
30842         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30843         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
30844         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
30845         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30846         * sysdeps/x86_64/_mcount.S: Likewise.
30847         * sysdeps/x86_64/strtok.S: Likewise.
30848         * sysdeps/sh/_mcount.S: Likewise.
30849
30850 2012-08-01  Roland McGrath  <roland@hack.frob.com>
30851
30852         * libio/iofopen.c: Include <fcntl.h>.
30853         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
30854         (_IO_fopen64, fopen64): Define as aliases.
30855         * libio/iofopen64.c: Include <fcntl.h>.
30856         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
30857         Conditionalize body on this.
30858         * sysdeps/wordsize-64/iofopen.c: File removed.
30859         * sysdeps/wordsize-64/iofopen64.c: File removed.
30860
30861 2012-08-01  Marek Polacek  <polacek@redhat.com>
30862
30863         * libc/Makeconfig: Use elf in place of binfmt-subdir.
30864         Use dlfcn directly instead of a variable.
30865         (binfmt-subdir): Do not define.
30866         (dlfcn): Likewise.
30867
30868 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
30869
30870         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
30871         Remove all definitions.
30872         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
30873         <kernel-features.h>.
30874         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
30875         (miss_F_GETOWN_EX): Remove all definitions.
30876         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
30877         macro definition.
30878         [!__ASSUME_FCNTL64]: Remove conditional code.
30879         [__ASSUME_FCNTL64]: Make code unconditional.
30880         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
30881         <kernel-features.h>.
30882         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
30883         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
30884         (lockf64) [__NR_fcntl64]: Make code unconditional.
30885         (lockf64) [__ASSUME_FCNTL64]: Likewise.
30886
30887         * sysdeps/unix/sysv/linux/kernel-features.h
30888         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
30889         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
30890         Make code unconditional.
30891         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30892         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30893         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
30894         [__NR_vfork]: Make code unconditional.
30895         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30896         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30897         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
30898         [__NR_vfork]: Make code unconditional.
30899         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
30900         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
30901
30902 2012-08-01  Roland McGrath  <roland@hack.frob.com>
30903
30904         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
30905         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
30906
30907         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30908         Define mkstemp64 as an alias.
30909         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30910         Define mkstemps64 as an alias.
30911         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30912         Define mkostemp64 as an alias.
30913         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
30914         Define mkostemps64 as an alias.
30915         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
30916         Conditionalize body on this.
30917         * misc/mkostemp64.c: Likewise.
30918         * misc/mkostemps64.c: Likewise.
30919         * misc/mkstemps64.c: Likewise.
30920         * sysdeps/wordsize-64/mkstemp64.c: File removed.
30921         * sysdeps/wordsize-64/mkostemp64.c: File removed.
30922         * sysdeps/wordsize-64/mkostemp.c: File removed.
30923         * sysdeps/wordsize-64/mkstemp.c: File removed.
30924         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
30925         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
30926         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
30927         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
30928
30929         [BZ #14138]
30930         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
30931         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
30932         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
30933         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
30934
30935         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
30936         compat_symbol macros from <shlib-compat.h> rather than the underlying
30937         default_symbol_version and symbol_version macros, so that DEFAULT
30938         lines in shlib-versions are respected.
30939         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
30940
30941 2012-08-01  Florian Weimer  <fweimer@redhat.com>
30942
30943         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
30944         Declare with warn_unused_result.
30945         (setgid, setregid, setegid, setresgid): Likewise.
30946         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
30947         Likewise.
30948         * WUR-REPORT: Remove set*id functions.
30949
30950 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
30951
30952         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
30953
30954 2012-07-31  Roland McGrath  <roland@hack.frob.com>
30955
30956         [BZ #10191]
30957         * include/sys/socket.h (__libc_accept, __libc_accept4):
30958         Add attribute_hidden.
30959         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
30960
30961         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
30962         use of PTR_MANGLE.
30963         * inet/getnetgrent_r.c (setup): Likewise.
30964
30965         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
30966
30967 2012-07-31  David S. Miller  <davem@davemloft.net>
30968
30969         * sysdeps/sparc/fpu/libm-test-ulps: Update.
30970
30971 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
30972
30973         [BZ #13629]
30974         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
30975         value between 1.0 and 2.0 and smaller part has absolute value less
30976         than 1.0.
30977         * math/s_clog10.c (__clog10): Likewise.
30978         * math/s_clog10f.c (__clog10f): Likewise.
30979         * math/s_clog10l.c (__clog10l): Likewise.
30980         * math/s_clogf.c (__clogf): Likewise.
30981         * math/s_clogl.c (__clogl): Likewise.
30982         * math/libm-test.inc (clog_test): Add more tests.
30983         (clog10_test): Likewise.
30984         * sysdeps/i386/fpu/libm-test-ulps: Update.
30985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
30986
30987 2012-07-31  Florian Weimer  <fweimer@redhat.com>
30988
30989         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
30990         Exit with zero in case no suitable GID is found, and write a
30991         message to standard error.
30992
30993 2012-07-30  Roland McGrath  <roland@hack.frob.com>
30994
30995         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
30996         rather than to 1.
30997         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
30998         (MAXPATHLEN): Removed.
30999         (NOGROUP, NODEV): New macros.
31000         (setbit, clrbit, isset, isclr): New macros.
31001         (howmany, roundup, powerof2): New macros.
31002         (DEV_BSIZE): New macro.
31003
31004         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
31005         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
31006
31007         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
31008         definition on [!__NO_LONG_DOUBLE_MATH].
31009
31010         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
31011         PTR_MANGLE and PTR_DEMANGLE.
31012
31013         * socket/accept4.c (accept4): Rename to __libc_accept4.
31014         Define accept4 as a weak alias.
31015
31016         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
31017         on [_DIRENT_HAVE_D_TYPE].
31018         * io/ftw.c (ftw_dir): Likewise.
31019
31020         * io/xmknod.c (__xmknod): Don't check PATH for being null.
31021
31022         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
31023
31024         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
31025         Use the BSD numbers rather than the arbitrary ones we had.
31026         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
31027         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
31028         (SIGXCPU, SIGXFSZ): New macros.
31029         (_NSIG): Now 32.
31030
31031         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
31032         initializer on [_LIBC_REENTRANT].
31033
31034         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
31035         definitions inside [_POSIX_MAPPED_FILES].
31036
31037         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
31038
31039         * dirent/opendir.c: Include <fcntl.h>.
31040
31041         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
31042         (__libc_getspecific): Likewise.
31043         (__libc_key_create): Likewise.
31044
31045         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
31046         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
31047         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
31048         (tmpfile64): Define as alias.
31049         * sysdeps/wordsize-64/tmpfile.c: File removed.
31050         * sysdeps/wordsize-64/tmpfile64.c: File removed.
31051         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
31052         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
31053
31054         * stdio-common/vfscanf.c: Include <stdbool.h>.
31055         * nss/makedb.c: Likewise.
31056         * stdio-common/_i18n_number.h: Likewise.
31057         * argp/argp-help.c: Likewise.
31058         * posix/wordexp.c: Likewise.
31059         * sysdeps/posix/spawni.c: Likewise.
31060         * nss/nss_files/files-initgroups.c: Likewise.
31061         * stdio-common/reg-modifier.c: Include <stdlib.h>.
31062         * nss/nss_files/files-initgroups.c: Likewise.
31063         * nss/nss_db/db-netgrp.c: Likewise.
31064         * nss/nss_db/db-initgroups.c: Likewise.
31065         * io/fchmodat.c: Include <sys/stat.h>.
31066
31067         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
31068         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
31069
31070         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
31071         [HAVE_MMAP].
31072
31073         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
31074         Add multiple inclusion protection.
31075
31076 2012-07-27  David S. Miller  <davem@davemloft.net>
31077
31078         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31079
31080 2012-07-27  Gary Benson  <gbenson@redhat.com>
31081
31082         [BZ #14298]
31083         * elf/rtld.c: Include <stap-probe.h>.
31084         (dl_main): Added static probes "init_start" and "init_complete".
31085         * elf/dl-load.c: Include <stap-probe.h>.
31086         (lose): Take new parameter "nsid".
31087         Added static probe "map_failed".
31088         (_dl_map_object_from_fd): Pass namespace id to lose.
31089         Added static probe "map_start".
31090         (open_verify): Pass namespace id to lose.
31091         * elf/dl-open.c: Include <stap-probe.h>.
31092         (dl_open_worker) Added static probes "map_complete", "reloc_start"
31093         and "reloc_complete".
31094         * elf/dl-close.c: Include <stap-probe.h>.
31095         (_dl_close_worker): Added static probes "unmap_start" and
31096         "unmap_complete".
31097         * elf/rtld-debugger-interface.txt: New file documenting the above.
31098
31099 2012-07-26  Roland McGrath  <roland@hack.frob.com>
31100
31101         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
31102         rather than a string variable.
31103         * sunrpc/rpc_main.c (h_output): Likewise.
31104         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
31105
31106 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
31107
31108         * inet/check_native.c: New file.
31109
31110 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
31111
31112         [BZ #13629]
31113         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
31114         if larger part has absolute value 1.0.
31115         * math/s_clog10.c (__clog10): Likewise.
31116         * math/s_clog10f.c (__clog10f): Likewise.
31117         * math/s_clog10l.c (__clog10l): Likewise.
31118         * math/s_clogf.c (__clogf): Likewise.
31119         * math/s_clogl.c (__clogl): Likewise.
31120         * math/libm-test.inc (clog_test): Add more tests.
31121         (clog10_test): Likewise.
31122         * sysdeps/i386/fpu/libm-test-ulps: Update.
31123         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31124
31125         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
31126         (pltexit): Likewise.
31127         (La_regs): Likewise.
31128         (La_retval): Likewise.
31129         (int_retval): Likewise.
31130         Update #error for removed macros to refer only to definitions in
31131         tst-audit.h.
31132         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
31133         macro.
31134         (pltexit): Likewise.
31135         (La_regs): Likewise.
31136         (La_retval): Likewise.
31137         (int_retval): Likewise.
31138         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
31139         macro.
31140         (pltexit): Likewise.
31141         (La_regs): Likewise.
31142         (La_retval): Likewise.
31143         (int_retval): Likewise.
31144         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
31145         macro.
31146         (pltexit): Likewise.
31147         (La_regs): Likewise.
31148         (La_retval): Likewise.
31149         (int_retval): Likewise.
31150         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
31151         macro.
31152         (pltexit): Likewise.
31153         (La_regs): Likewise.
31154         (La_retval): Likewise.
31155         (int_retval): Likewise.
31156         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
31157         macro.
31158         (pltexit): Likewise.
31159         (La_regs): Likewise.
31160         (La_retval): Likewise.
31161         (int_retval): Likewise.
31162         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
31163         macro.
31164         (pltexit): Likewise.
31165         (La_regs): Likewise.
31166         (La_retval): Likewise.
31167         (int_retval): Likewise.
31168         * sysdeps/generic/tst-audit.h: Update comment to refer only to
31169         macro definitions in tst-audit.h.
31170         * sysdeps/i386/tst-audit.h: New file.
31171         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
31172         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
31173         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
31174         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
31175         * sysdeps/sh/tst-audit.h: Likewise.
31176         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
31177         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
31178         * sysdeps/x86_64/tst-audit.h: Likewise.
31179
31180 2012-07-26  Andreas Jaeger  <aj@suse.de>
31181
31182         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
31183         ptrace.
31184
31185         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
31186         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
31187         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
31188         PTRACE_O_MASK.
31189         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
31190         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
31191         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
31192
31193         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
31194         value.
31195
31196         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
31197         _sigsys.
31198         (si_call_addr, si_syscall, si_arch): Define new macro.
31199         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
31200         _sigsys.
31201         (si_call_addr, si_syscall, si_arch): Define new marcro.
31202         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
31203         _sigsys.
31204         (si_call_addr, si_syscall, si_arch): Define new macro.
31205         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
31206         _sigsys.
31207         (si_call_addr, si_syscall, si_arch): Define new macro.
31208
31209 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
31210
31211         [BZ #13717]
31212         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
31213         Change to 2.4.21 where previously 2.4.1.
31214         * sysdeps/unix/sysv/linux/configure: Regenerated.
31215         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
31216         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
31217         Linux kernel version.
31218         (__ASSUME_STD_AUXV): Remove.
31219         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
31220         kernel version.
31221         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
31222         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
31223         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
31224         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
31225         (__ASSUME_NETLINK_SUPPORT): Likewise.
31226         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
31227         (__no_netlink_support): Remove conditional definition.
31228         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
31229         Remove.
31230         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
31231         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
31232         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
31233         (if_nameindex_ioctl): Remove.
31234         (if_nameindex_netlink): Do not handle __no_netlink_support.
31235         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
31236         code.
31237         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
31238         Remove conditional code.
31239         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
31240         code.
31241         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
31242         unconditional.
31243         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
31244         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
31245         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
31246         Remove.
31247         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
31248         [!__ASSUME_STD_AUXV]: Remove conditional code.
31249         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
31250         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
31251         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
31252         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
31253         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
31254         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
31255         code.
31256         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
31257         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
31258         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
31259         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
31260         conditional code.
31261         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
31262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
31263         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
31264         code.
31265         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
31266         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
31267         conditional code.
31268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
31269         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
31270         code unconditional.
31271         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
31272         conditional code.
31273         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
31274         unconditional.
31275         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
31276         conditional code.
31277         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
31278         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
31279         unconditional.
31280         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
31281         conditional code.
31282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
31283         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
31284         code unconditional.
31285         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
31286         conditional code.
31287         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
31288         unconditional.
31289         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
31290         conditional code.
31291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
31292         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
31293         code unconditional.
31294         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
31295         conditional code.
31296         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
31297         unconditional.
31298         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
31299         conditional code.
31300
31301 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
31302
31303         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
31304         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
31305         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
31306         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
31307         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
31308         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
31309         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
31310         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
31311         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
31312         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
31313         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
31314         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
31315         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
31316         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
31317         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
31318         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
31319         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
31320         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
31321         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
31322         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
31323         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
31324         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
31325         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
31326
31327 2012-07-25  Florian Weimer  <fweimer@redhat.com>
31328
31329         * Versions.def: Add GLIBC_2.17.
31330         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
31331         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
31332         Introduce __libc_secure_getenv.
31333         * stdlib/Versions (2.17): Add secure_getenv
31334         (GLIBC_PRIVATE): Add __libc_secure_getenv.
31335         * stdlib/secure-getenv.c: Rename __secure_getenv to
31336         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
31337         symbol __secure_getenv for GLIBC_2.0.
31338         * stdlib/tst-secure-getenv.c: New.
31339         * stdlib/Makefile (tests): Add testcase.
31340         * manual/startup.texi (Environment Access): Document
31341         secure_getenv.
31342         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
31343         __libc_secure_getenv.
31344         * inet/ruserpass.c (ruserpass): Likewise.
31345         * malloc/mtrace.c (mtrace): Likewise.
31346         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
31347         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
31348         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
31349         * sysdeps/posix/tempname.c: Likewise.  Evaluate
31350         HAVE_SECURE_GETENV.
31351         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
31352         __secure_getenv to __libc_secure_getenv.
31353         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
31354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
31355         Likewise.
31356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
31357         Likewise.
31358         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
31359         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
31360         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
31361         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
31362         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
31363         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
31364         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
31365
31366 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
31367
31368         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
31369         (struct La_i86_retval): Likewise.
31370         (struct La_x86_64_regs): Likewise.
31371         (struct La_x86_64_retval): Likewise.
31372         (struct La_x32_regs): Likewise.
31373         (struct La_x32_retval): Likewise.
31374         (struct La_ppc32_regs): Likewise.
31375         (struct La_ppc32_retval): Likewise.
31376         (struct La_ppc64_regs): Likewise.
31377         (struct La_ppc64_retval): Likewise.
31378         (struct La_sh_regs): Likewise.
31379         (struct La_sh_retval): Likewise.
31380         (struct La_s390_32_regs): Likewise.
31381         (struct La_s390_32_retval): Likewise.
31382         (struct La_s390_64_regs): Likewise.
31383         (struct La_s390_64_retval): Likewise.
31384         (struct La_sparc32_regs): Likewise.
31385         (struct La_sparc32_retval): Likewise.
31386         (struct La_sparc64_regs): Likewise.
31387         (struct La_sparc64_retval): Likewise.
31388         (struct audit_ifaces): Remove architecture-specific pltenter and
31389         pltexit members.
31390         * sysdeps/i386/ldsodefs.h: New file.
31391         * sysdeps/powerpc/ldsodefs.h: Likewise.
31392         * sysdeps/s390/ldsodefs.h: Likewise.
31393         * sysdeps/sh/ldsodefs.h: Likewise.
31394         * sysdeps/sparc/ldsodefs.h: Likewise.
31395         * sysdeps/x86_64/ldsodefs.h: Likewise.
31396
31397 2012-07-25  Marek Polacek  <polacek@redhat.com>
31398
31399         [BZ #6808]
31400         * math/libm-test.inc (yn_test): Add another test.
31401         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
31402         to ERANGE when the result is +-Inf.
31403         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
31404         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
31405         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
31406         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
31407
31408 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
31409
31410         * conform/data/time.h-data (NULL): Use macro-constant.  Require
31411         equal to 0.
31412         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
31413         clock_t.
31414         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
31415
31416 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
31417
31418         * configure.in <sysdeps resolving>: Correct printing
31419         Implies_before.
31420         * configure: Regenerate.
31421
31422 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
31423
31424         * math/w_ilogb.c: Include <limits.h>.
31425         * math/w_ilogbl.c: Likewise.
31426
31427 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
31428
31429         * manual/lang.texi (__va_copy): Document primarily as ISO C99
31430         va_copy.  Document allowing for unavailable va_copy only as
31431         pre-C99 compatibility.
31432         * manual/string.texi (Copying and Concatenation): Use va_copy
31433         instead of __va_copy in concat example.
31434
31435 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
31436
31437         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
31438         (__sendto): Use create_address_port.  Initialize APORT and deallocate
31439         it if not null.
31440
31441         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
31442         with O_NOLINK passed to __file_name_lookup.
31443
31444         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
31445         with O_NOLINK passed to __file_name_lookup.
31446
31447         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
31448         negative N or less than NGIDS.
31449
31450         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
31451         type to string_t.  Set ERANGE as errno and return it if NAME is not big
31452         enough.  Use memcpy instead of strncpy.
31453
31454 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
31455
31456         * elf/Makefile (check-data): Remove.
31457         (localplt.data): New vpath directive.
31458         ($(objpfx)check-localplt.out): Use localplt.data from vpath
31459         instead of $(check-data).
31460         * scripts/data/localplt-generic.data: Move to ...
31461         * sysdeps/generic/localplt.data: ... here.
31462         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
31463         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
31464         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
31465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
31466         ... here.
31467         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
31468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
31469         ... here.
31470         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
31471         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
31472         ... here.
31473         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
31474         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
31475         ... here.
31476         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
31477         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
31478         ... here.
31479         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
31480         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
31481         ... here.
31482
31483 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31484
31485         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
31486         PPC32 and PPC64 files.
31487         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
31488         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
31489
31490 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31491
31492         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
31493         __makecontext_ret to ...
31494         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
31495         ... here and call exit if uc_link is NULL.  New file.
31496         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
31497         __makecontext_ret.S.
31498         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
31499         __makecontext_ret to ...
31500         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
31501         ... here and call exit if uc_link is NULL.  New file.
31502         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
31503         __makecontext_ret.S.
31504
31505 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31506
31507         * elf/elf.h (R_390_IRELATIVE): New definition.
31508         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
31509         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
31510         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
31511         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
31512         (elf_machine_lazy_rel): Likewise.
31513         * sysdeps/s390/dl-irel.h: New file.
31514         * sysdeps/s390/s390-64/memcpy.S: New asm code.
31515         * sysdeps/s390/s390-64/memset.S: New asm code.
31516         * sysdeps/s390/s390-64/memcmp.S: New asm code.
31517         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
31518         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
31519         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
31520         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
31521         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
31522         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
31523         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
31524         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
31525         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
31526         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
31527         * sysdeps/s390/s390-32/memcpy.S: New asm code.
31528         * sysdeps/s390/s390-32/memset.S: New asm code.
31529         * sysdeps/s390/s390-32/memcmp.S: New asm code.
31530
31531 2012-07-17  Marek Polacek  <polacek@redhat.com>
31532
31533         [BZ #14349]
31534         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
31535         * sysdeps/s390/s390-64/configure.in: Likewise.
31536         * sysdeps/sparc/configure.in: Likewise.
31537         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
31538         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
31539         * sysdeps/i386/configure.in: Likewise.
31540         * sysdeps/x86_64/configure.in: Likewise.
31541         * sysdeps/sh/configure.in: Likewise.
31542         * sysdeps/s390/s390-32/configure: Regenerated.
31543         * sysdeps/s390/s390-64/configure: Likewise.
31544         * sysdeps/x86_64/configure: Likewise.
31545         * sysdeps/sh/configure: Likewise.
31546         * sysdeps/powerpc/powerpc64/configure: Likewise.
31547         * sysdeps/powerpc/powerpc32/configure: Likewise.
31548         * sysdeps/sparc/configure: Likwise.
31549         * sysdeps/i386/configure: Likewise.
31550
31551         * elf/dl-open.c: Comment fixes.
31552
31553 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
31554
31555         * Makefile [CXX] (check-data): Remove.
31556         [CXX] (c++-types.data): New vpath directive.
31557         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
31558         vpath.  Do not allow for C++ type data being missing.
31559         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
31560         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
31561         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
31562         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
31563         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
31564         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
31565         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
31566         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
31567         ... here.
31568         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
31569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
31570         ... here.
31571         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
31572         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
31573         ... here.
31574         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
31575         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
31576         ... here.
31577         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
31578         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
31579         ... here.
31580         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
31581         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
31582         ... here.
31583         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
31584         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
31585         ... here.
31586         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
31587         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
31588
31589         * elf/tls-macros.h (TLS_LE): Move architecture-specific
31590         definitions to architecture-specific files.
31591         (TLS_IE): Likewise.
31592         (TLS_LD): Likewise.
31593         (TLS_GD): Likewise.
31594         * sysdeps/i386/tls-macros.h: New file.
31595         * sysdeps/powerpc/tls-macros.h: Likewise.
31596         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
31597         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
31598         * sysdeps/sh/tls-macros.h: Likewise.
31599         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
31600         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
31601         * sysdeps/x86_64/tls-macros.h: Likewise.
31602
31603 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
31604
31605         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
31606         zero value for regular exit case.
31607
31608         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
31609         (__start_context): Preserve zero value for regular exit case.
31610
31611 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
31612             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31613
31614         * manual/setjmp.texi (setcontext): Clarify normal process
31615         termination when uc_link is the null pointer.
31616         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
31617         exit call.
31618
31619 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
31620
31621         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
31622         preprocessor.  Test for each exception mask separately.
31623
31624 2012-07-16  Andreas Jaeger  <aj@suse.de>
31625
31626         * po/ru.po: Update from translation team.
31627
31628 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
31629
31630         * conform/data/string.h-data (NULL): Use macro-constant.  Require
31631         equal to 0.
31632         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
31633         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
31634         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
31635         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
31636         [ISO || ISO99 || ISO11] (*_t): Do not allow.
31637
31638 2012-07-13  Andreas Jaeger  <aj@suse.de>
31639
31640         * po/fr.po: Update from translation team.
31641
31642 2012-07-12  Marek Polacek  <polacek@redhat.com>
31643
31644         [BZ #14173]
31645         * math/libm-test.inc (yn_test): Add test for BZ #14173.
31646         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
31647         loop condition.
31648
31649 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
31650
31651         [BZ #13717]
31652         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
31653         Change to 2.4.1 where previously 2.4.0.
31654         * sysdeps/unix/sysv/linux/configure: Regenerated.
31655         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
31656         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
31657         version.
31658         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
31659         (__ASSUME_AT_CLKTCK): Remove.
31660         (__ASSUME_AT_PAGESIZE): Likewise.
31661         (__ASSUME_AT_XID): Likewise.
31662         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
31663         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
31664         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
31665         unconditionally.
31666         (HAVE_AUX_PAGESIZE): Likewise.
31667         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
31668         [__ASSUME_AT_CLKTCK]: Make code unconditional.
31669         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
31670
31671 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
31672
31673         [BZ #14307]
31674         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
31675         the temporary buffer used to invoke __gethostbyname2_r,
31676         __gethostbyaddr_r and gethostbyname4_r to make room for struct
31677         host_data / struct gaih_addrtuple.
31678         * resolv/nss_dns/dns-host.c (global scope): Move definition of
31679         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
31680         header file nss/nsswitch.h.
31681         * nss/nsswitch.h (global scope): Add definition of implementation
31682         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
31683         resolv/nss_dns/dns-host.c).
31684
31685 2012-07-11  Andreas Jaeger  <aj@suse.de>
31686
31687         * po/fr.po: Update from translation team.
31688
31689         * po/sv.po: Update from translation team
31690         * po/fr.po: Another update from translation team.
31691
31692 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31693
31694         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
31695         for subnormals or multiply small sinh result by itself.
31696         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
31697         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
31698
31699 2012-07-11  David S. Miller  <davem@davemloft.net>
31700
31701         * sysdeps/sparc/fpu/libm-test-ulps: Update.
31702
31703 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
31704
31705         [BZ #14347]
31706         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
31707         (INTERNAL_MARK): Shift it here.
31708
31709 2012-07-10  Marek Polacek  <polacek@redhat.com>
31710
31711         [BZ #14151]
31712         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
31713         libc_cv_asm_global_directive with .globl.
31714         * configure: Regenerated.
31715         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
31716         with .globl.
31717         * sysdeps/i386/configure: Regenerated.
31718         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
31719         with .globl.
31720         * sysdeps/x86_64/configure: Regenerated.
31721         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
31722         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
31723         * elf/tst-unique2mod2.c: Likewise.
31724         * elf/tst-unique2mod1.c: Likewise.
31725         * elf/tst-unique1mod2.c: Likewise.
31726         * elf/tst-unique1mod1.c: Likewise.
31727         * sysdeps/s390/s390-32/sysdep.h: Likewise.
31728         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
31729         * sysdeps/s390/s390-64/sysdep.h: Likewise.
31730         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
31731         * sysdeps/mach/sysdep.h: Likewise.
31732         * sysdeps/i386/sysdep.h: Likewise.
31733         * sysdeps/i386/i386-mcount.S: Likewise.
31734         * sysdeps/x86_64/_mcount.S: Likewise.
31735         * sysdeps/x86_64/sysdep.h: Likewise.
31736         * sysdeps/sh/_mcount.S: Likewise.
31737         * sysdeps/sh/sysdep.h: Likewise.
31738         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
31739         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
31740         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
31741         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
31742         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
31743         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
31744         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
31745         * locale/localeinfo.h: Likewise.
31746         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
31747         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
31748
31749 2012-07-09  Roland McGrath  <roland@hack.frob.com>
31750
31751         [BZ #14336]
31752         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
31753         system".
31754         * manual/message.texi (The Uniforum approach): Likewise.
31755         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
31756         (glibc iconv Implementation): Likewise.
31757
31758 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
31759
31760         [BZ #14337]
31761         * math/s_clog.c (__clog): Avoid scaling a value down where that
31762         could result in underflow.
31763         * math/s_clog10.c (__clog10): Likewise.
31764         * math/s_clog10f.c (__clog10f): Likewise.
31765         * math/s_clog10l.c (__clog10l): Likewise.
31766         * math/s_clogf.c (__clogf): Likewise.
31767         * math/s_clogl.c (__clogl): Likewise.
31768         * math/libm-test.inc (clog_test): Add more tests.
31769         (clog10_test): Likewise.
31770         * sysdeps/i386/fpu/libm-test-ulps: Update.
31771         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31772
31773 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
31774
31775         [BZ #14283]
31776         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
31777         by 7 not 8 to examine high bit of fractional part.
31778
31779         [BZ #14042]
31780         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
31781         for call to __mcount_internal.
31782         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
31783         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
31784         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
31785
31786 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
31787
31788         [BZ #14154]
31789         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
31790         approximation for values within 0x1p-13f of an odd multiple of
31791         pi/4.
31792         * math/libm-test.inc (tan_test): Do not allow spurious underflow
31793         exception.  Add more tests.
31794         * sysdeps/i386/fpu/libm-test-ulps: Update.
31795
31796         [BZ #6778]
31797         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
31798         inputs and return -1 for them.  Do not check for +Inf in case not
31799         reachable for +Inf.
31800         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
31801         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
31802         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
31803         and return -1 for them.  Do not check for +Inf in case not
31804         reachable for +Inf.
31805         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
31806         define.
31807         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
31808         and return -1 for them.  Do not check for +Inf in case not
31809         reachable for +Inf.
31810         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
31811         spurious underflow.
31812         * sysdeps/i386/fpu/libm-test-ulps: Update.
31813         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31814
31815 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
31816
31817         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
31818
31819 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
31820
31821         [BZ #14157]
31822         [BZ #14331]
31823         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
31824         could result in spurious underflow.  Scale down values above
31825         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
31826         * math/s_csqrtf.c (__csqrtf): Likewise.
31827         * math/s_csqrtl.c (__csqrtl): Likewise.
31828         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
31829         spurious underflow.
31830         * sysdeps/i386/fpu/libm-test-ulps: Update.
31831         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31832
31833 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
31834
31835         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
31836         xopen-msg.sed.
31837         * catgets/xopen-msg.awk: New file.
31838         * catgets/xopen-msg.sed: Removed.
31839
31840         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
31841         po2text.sed.
31842         * intl/po2test.awk: New file.
31843         * intl/po2test.sed: Removed.
31844
31845 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
31846
31847         [BZ #14328]
31848         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
31849         or multiply small sinh result by itself.
31850         * math/s_ctanf.c (__ctanf): Likewise.
31851         * math/s_ctanh.c (__ctanh): Likewise.
31852         * math/s_ctanhf.c (__ctanhf): Likewise.
31853         * math/s_ctanhl.c (__ctanhl): Likewise.
31854         * math/s_ctanl.c (__ctanl): Likewise.
31855         * math/libm-test.inc (ctan_test_tonearest): New function.
31856         (ctan_test_towardzero): Likewise.
31857         (ctan_test_downward): Likewise.
31858         (ctan_test_upward): Likewise.
31859         (ctanh_test_tonearest): Likewise.
31860         (ctanh_test_towardzero): Likewise.
31861         (ctanh_test_downward): Likewise.
31862         (ctanh_test_upward): Likewise.
31863         (main): Call these new functions.
31864         * sysdeps/i386/fpu/libm-test-ulps: Update.
31865         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
31866
31867 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
31868
31869         * .gitignore: Delete /ports entry.
31870
31871 2012-07-03  Andreas Jaeger  <aj@suse.de>
31872
31873         * po/bg.po: Update from translation team.
31874         * po/cs.po: Likewise.
31875         * po/de.po: Likewise.
31876         * po/hr.po: Likewise.
31877         * po/nl.pl: Likewise.
31878         * po/pl.po: Likewise.
31879         * po/vi.po: Likewise.
31880
31881 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
31882
31883         * Makeconfig [!+link] (+link-before-libc): New variable.
31884         [!+link] (+link-after-libc): Likewise.
31885         [!+link] (+link-tests): Likewise.
31886         [!+link] (+link): Define in terms of $(+link-before-libc) and
31887         $(+link-after-libc).
31888         [!+link-static] (+link-static-before-libc): New variable.
31889         [!+link-static] (+link-static-after-libc): Likewise.
31890         [!+link-static] (+link-static-tests): Likewise.
31891         [!+link-static] (+link-static): Define in terms of
31892         $(+link-static-before-libc) and $(+link-static-after-libc).
31893         [build-shared] (link-libc-before-gnulib): New variable.
31894         [build-shared] (link-libc-tests): Likewise.
31895         [build-shared] (link-libc): Define in terms of
31896         $(link-libc-before-gnulib).
31897         [!build-shared] (link-libc-tests): New variable.
31898         (link-libc-static-tests): New variable.
31899         [!gnulib] (gnulib-arch): New variable.
31900         [!gnulib] (gnulib-tests): Likewise.
31901         [!gnulib] (static-gnulib-arch): Likewise.
31902         [!gnulib] (static-gnulib-tests): Likewise.
31903         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
31904         Define with "=" instead of ":=".
31905         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
31906         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
31907         * Rules (binaries-all-notests): New variable.
31908         (binaries-all-tests): Likewise.
31909         (binaries-static-notests): Likewise.
31910         (binaries-static-tests): Likewise.
31911         (binaries-all): Define using $(binaries-all-notests) and
31912         $(binaries-all-tests).
31913         (binaries-static): Define using $(binaries-static-notests) and
31914         $(binaries-static-tests).
31915         (binaries-shared-tests): New variable.
31916         (binaries-shared-notests): Likewise.
31917         (binaries-shared): Remove variable.
31918         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
31919         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
31920         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
31921         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
31922         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
31923         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
31924         * elf/Makefile (sln-modules): New variable.
31925         (extra-objs): Add $(sln-modules:=.o).
31926         (ldconfig-modules): Add static-stubs.
31927         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
31928         * elf/static-stubs.c: New file.
31929
31930         [BZ #14283]
31931         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
31932         by 7 not 8 to examine high bit of fractional part.  Use volatile
31933         variables when splitting into final array of floats if
31934         __FLT_EVAL_METHOD__ != 0.
31935         * math/libm-test.inc (cos_test): Add another test.
31936         (sin_test): Likewise.
31937         * sysdeps/i386/fpu/libm-test-ulps: Update.
31938
31939         [BZ #14273]
31940         * math/libm-test.inc (cosh_test): Add more tests.
31941
31942         * version.h (RELEASE): Set to "development".
31943         (VERSION): Set to "2.16.90".
31944
31945 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
31946
31947         * NEWS: Update copyright. Remove last-updated date.
31948         Mention math library bug fixes and timezone data changes.
31949         * README: Mention GNU/Hurd, x32, and HPPA support status.
31950
31951 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
31952
31953         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
31954
31955 2012-06-27  Andreas Jaeger  <aj@suse.de>
31956
31957         * manual/contrib.texi (Contributors): Add Samuel Thibault.
31958
31959 2012-06-25  Andreas Jaeger  <aj@suse.de>
31960
31961         * sysdeps/s390/fpu/libm-test-ulps: Update.
31962
31963 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
31964             Thomas Schwinge  <thomas@codesourcery.com>
31965
31966         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
31967         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
31968         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
31969         fanotify_mark.
31970
31971 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
31972
31973         * sysdeps/mach/start.c: Remove file.
31974         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
31975         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
31976         * sysdeps/sh/init-first.c: Likewise.
31977
31978         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
31979         registers for frame unwinding purposes, add CFI directives.
31980         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
31981         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
31982         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
31983         Likewise.
31984
31985         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
31986         __fortify_fail returning.
31987         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
31988
31989         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
31990         sysdeps/sh/____longjmp_chk.S.
31991         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
31992         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
31993         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
31994         (gen-as-const-headers): Append sigaltstack-offsets.sym.
31995
31996         * sysdeps/sh/abort-instr.h: New file.
31997         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
31998         process in case exit returns.
31999
32000         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
32001         initialize the GOT register before use.
32002
32003         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
32004         calculation of ARGC > 4.
32005
32006         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
32007         meaningful names to some local labels.
32008
32009 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
32010             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
32011
32012         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
32013         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
32014         (__arch_compare_and_exchange_val_16_acq): Likewise.
32015         (__arch_compare_and_exchange_val_32_acq): Likewise.
32016         (atomic_exchange_and_add): Fix gUSA sequence.
32017         (atomic_add): Likewise.
32018         (atomic_add_negative): Likewise.
32019         (atomic_add_zero): Likewise.
32020         (atomic_bit_test_set): Likewise.
32021
32022 2012-06-22  Andreas Schwab  <schwab@redhat.com>
32023
32024         [BZ #13579]
32025         * include/link.h (struct link_map): Add l_free_initfini.
32026         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
32027         l_initfini.
32028         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
32029         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
32030         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
32031         set.
32032
32033 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
32034
32035         * configure.in: Use AC_LANG_SOURCE.
32036         * configure: Regenerate.
32037
32038 2012-06-22  Roland McGrath  <roland@hack.frob.com>
32039
32040         * configure.in (libc_cv_localstatedir): New substituted variable.
32041         * configure: Regenerated.
32042         * config.make.in (localstatedir): New variable, substituted from
32043         libc_cv_localstatedir.
32044         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
32045         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
32046         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
32047         * sysdeps/gnu/configure: Regenerated.
32048
32049 2012-06-21  Jeff Law  <law@redhat.com>
32050
32051         [BZ #14277]
32052         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
32053         free.  Simplify list management for _LIBC case.
32054
32055 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
32056
32057         [BZ #14273]
32058         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
32059         Clear sign bit of 64-bit integer value before comparing against
32060         overflow value.
32061
32062         * sysdeps/mach/configure: Regenerated.
32063
32064 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
32065
32066         [BZ #14278]
32067         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
32068
32069 2012-06-21  Jeff Law  <law@redhat.com>
32070
32071         [BZ #13882]
32072         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
32073         uint16_t for elements in the "seen" array to avoid char overflows.
32074         * elf/dl-fini.c (_dl_sort_fini): Likewise.
32075         * elf/dl-open.c (dl_open_worker): Likewise.
32076
32077 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
32078
32079         * scripts/list-sources.sh: Scan PORTS for translations.
32080         * po/libc.pot: Regenerated.
32081
32082 2012-06-21  Andreas Jaeger  <aj@suse.de>
32083
32084         [BZ #12194]
32085         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
32086         warning.
32087         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
32088         * bits/byteswap-16.h (__bswap_16): Likewise.
32089         * bits/byteswap.h (__bswap_constant_16): Likewise.
32090
32091 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
32092
32093         [BZ #14117]
32094         * sysdeps/i386/fpu_control.h: Removed.
32095         * sysdeps/x86_64/fpu_control.h: Moved to ...
32096         * sysdeps/x86/fpu_control.h: Here.
32097
32098         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
32099         (_FPU_SETCW): Likewise.
32100
32101 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
32102
32103         [BZ #14117]
32104         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
32105         * sysdeps/x86/fpu/bits/mathinline.h: This.
32106         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
32107
32108         [BZ #14050]
32109         [BZ #14117]
32110         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
32111         functions if __x86_64__ is defined.
32112
32113 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
32114
32115         * string/endian.h: Add !__ASSEMBLER__ condition for including
32116         conversion interfaces.
32117
32118 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
32119
32120         [BZ #14241]
32121         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
32122         of ABS(x) in calculating zero to negative powers other than odd
32123         integers.
32124         * math/libm-test.inc (pow_test): Add more tests.
32125
32126 2012-06-15  Andreas Jaeger  <aj@suse.de>
32127
32128         * manual/contrib.texi (Contributors): Update entry of Liubov
32129         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
32130         Machado Filho.
32131
32132 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
32133
32134         * string/string.h: Add __wur to GNU version of strerror_r.
32135
32136 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
32137
32138         [BZ #14229]
32139         * string/Makefile (tests): Add tst-strtok_r.
32140         * string/tst-strtok_r.c: New file.
32141         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
32142         RAX_LP/RDX_LP on SAVE_PTR.
32143
32144 2012-06-14  Roland McGrath  <roland@hack.frob.com>
32145
32146         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
32147
32148 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
32149
32150         * libm_test.inc (csqrt_test): Allow more spurious underflow
32151         exceptions.
32152         (j0_test): Likewise.
32153         (j1_test): Likewise.
32154         (y0_test): Likewise.
32155         (y1_test): Likewise.
32156
32157 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
32158
32159         * po/Makefile (libc.pot): Use UTF-8 charset.
32160
32161 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
32162
32163         [BZ #14210]
32164         Suppress sign-conversion warning from FD_SET.
32165         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
32166         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
32167         not unsigned long int.
32168         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
32169
32170 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
32171
32172         [BZ #14050]
32173         [BZ #14117]
32174         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
32175         __extern_always_inline instead of __extern_inline.
32176         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
32177         (__signbit): Likewise.
32178         (__signbitl): Support C++ namespace.
32179         (lrintf): New inline function.
32180         (lrint): Likewise.
32181         (llrintf): Likewise.
32182         (llrint): Likewise.
32183         (fmaxf): Likewise.
32184         (fmax): Likewise.
32185         (fminf): Likewise.
32186         (fmin): Likewise.
32187         (rint): Likewise.
32188         (rintf): Likewise.
32189         (ceil): Likewise.
32190         (ceilf): Likewise.
32191         (floor): Likewise.
32192         (floorf): Likewise.
32193         (nearbyint): Likewise.
32194         (nearbyintf): Likewise.
32195
32196 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
32197
32198         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
32199         non-default versions.
32200
32201 2012-06-11  Roland McGrath  <roland@hack.frob.com>
32202
32203         [BZ #14218]
32204         * manual/argp.texi (Argp): Reword argp_parse description slightly.
32205
32206 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
32207
32208         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
32209         (FE_UPWARD, FE_DOWNWARD): Don't define.
32210         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
32211         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
32212
32213         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
32214         reading it.
32215         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
32216         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
32217
32218 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
32219
32220         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
32221         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
32222         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
32223         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
32224
32225 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
32226
32227         [BZ #14117]
32228         * sysdeps/i386/fpu/bits/fenv.h: Removed.
32229         * sysdeps/i386/fpu/Implies: New file.
32230         * sysdeps/x86_64/fpu/Implies: Likewise.
32231         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
32232         * sysdeps/x86/fpu/bits/fenv.h: This.
32233
32234         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
32235         __SSE_MATH__.
32236
32237 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
32238
32239         [BZ #14134]
32240         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
32241         character 0xffff that matches the last element of the
32242         conversion table.
32243
32244 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32245
32246         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
32247         fmodl commit.
32248
32249 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32250
32251         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
32252         values higher than 25.6283.
32253
32254 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32255
32256         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
32257         subnormal exponent extraction and add some __builtin_expect.
32258         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
32259         Fix for subnormal mantissa calculation.
32260
32261 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
32262
32263         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
32264         cpu2 is -1 and errno is not ENOSYS.
32265
32266 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
32267
32268         [BZ #14117]
32269         * sysdeps/i386/i486/bits/string.h: Renamed to ...
32270         * sysdeps/x86/bits/string.h: This.
32271         * sysdeps/x86_64/bits/string.h: Removed.
32272
32273         * sysdeps/i386/i486/bits/string.h: Define inline functions only
32274         if not compiling for x86-64, but compiling for >= i486.
32275
32276         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
32277         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
32278
32279         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
32280         New macro from Linux kernel 3.4.0.
32281         (FP_XSTATE_MAGIC2): Likewise.
32282         (FP_XSTATE_MAGIC2_SIZE): Likewise.
32283         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
32284         (struct _fpx_sw_bytes): New struct.
32285         (struct _xsave_hdr): Likewise.
32286         (struct _ymmh_state): Likewise.
32287         (struct _xstate): Likewise.
32288
32289         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
32290         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
32291         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
32292         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
32293         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
32294         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
32295
32296         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
32297         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
32298         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
32299         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
32300         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
32301         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
32302
32303 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
32304
32305         [BZ #13743]
32306         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
32307         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
32308         (sysdep_headers): Include sys/platform/ppc.h.
32309         * sysdeps/powerpc/test-gettimebase.c: Test for
32310         __ppc_get_timebase() to catch future ISA opcode/insn changes.
32311         * manual/Makefile (appendices): Include platform.texi.
32312         * manual/contrib.texi (Contributors): Update @node pointers.
32313         * manual/maint.texi (Maintenance): Likewise.
32314         (Platform): New node.
32315         * manual/platform.texi: New file.  Document the new features.
32316
32317 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
32318             Jakub Jelinek  <jakub@redhat.com>
32319
32320         [BZ #14188]
32321         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
32322         where __builtin_expect is unavailable.
32323
32324 2012-06-03  David S. Miller  <davem@davemloft.net>
32325
32326         * stdlib/longlong.h: Updated from GCC.
32327
32328 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
32329
32330         [BZ #14042]
32331         * sysdeps/powerpc/powerpc32/mcount.c: New file.
32332         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
32333         __mcount_internal.
32334         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
32335         (GLIBC_2.16): Likewise.
32336
32337 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
32338
32339         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
32340
32341 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
32342
32343         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
32344         (default-abi): New variable.
32345         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
32346         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
32347         variable.
32348         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
32349         Likewise.
32350         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
32351         Likewise.
32352         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
32353         Likewise.
32354
32355         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
32356         definition.  Document in comment.
32357
32358 2012-06-01  David S. Miller  <davem@davemloft.net>
32359
32360         * stdlib/longlong.h: Updated from GCC.
32361
32362 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
32363
32364         [BZ #14117]
32365         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
32366         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
32367         sys/debugreg.h sys/io.h here.
32368         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
32369         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
32370         sys/io.h.
32371         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
32372         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
32373         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
32374         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
32375         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
32376         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
32377
32378         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
32379         Define only if __x86_64__ is defined.
32380
32381 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
32382
32383         [BZ #14048]
32384         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
32385         Use int64_t for variable i.
32386         * math/libm-test.inc (fmod_test): Add more tests.
32387
32388         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
32389         z computation is not scheduled after fetestexcept.
32390         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
32391         Use math_force_eval instead of asm to ensure calculation scheduled
32392         before exception test.
32393         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
32394         Ensure a1 + u.d computation is not scheduled after fetestexcept.
32395
32396 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
32397
32398         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
32399         computation is not scheduled after fetestexcept.
32400
32401 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
32402
32403         [BZ #14117]
32404         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
32405         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
32406
32407 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
32408
32409         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
32410         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
32411
32412 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
32413
32414         [BZ #14117]
32415         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
32416         <bits/wordsize.h>.
32417         (__WCHAR_MIN): Support __WORDSIZE == 64.
32418         (__WCHAR_MAX): Likewise.
32419
32420         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
32421         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
32422
32423         [BZ #14183]
32424         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
32425         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
32426
32427         [BZ #14117]
32428         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
32429         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
32430
32431         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
32432         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
32433
32434         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
32435         Defined to 1 if __x86_64__ isn't defined.
32436         (_STAT_VER_LINUX_OLD): New.
32437         (st_atime): Remove duplicate.
32438         (st_mtime): Likewise.
32439         (st_ctime): Likewise.
32440
32441 2012-05-31  David S. Miller  <davem@davemloft.net>
32442
32443         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
32444         entries.
32445
32446 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
32447
32448         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
32449         gen-libm-test.pl.
32450
32451         [BZ #14132]
32452         * elf/dl-reloc.c: Include <_itoa.h>.
32453         (_dl_reloc_bad_type): Remove use of INTUSE.
32454         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
32455         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
32456         * stdio-common/psiginfo.c (psiginfo): Likewise.
32457         * stdio-common/psignal.c (psignal): Likewise.
32458         * string/strsignal.c (strsignal): Likewise.
32459         * include/signal.h (_sys_siglist): Declare hidden proto.
32460         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
32461         INTVARDEF with libc_hidden_data_def.
32462         * stdio-common/itoa-udigits.c: Likewise.
32463         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
32464         (_itoa_lower_digits_internal): Remove declaration.
32465         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
32466         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
32467         (_sys_sigabbrev_internal): Remove aliases.
32468         (_sys_siglist): Define hidden alias.
32469
32470 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
32471
32472         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
32473         bits/sysctl.h.
32474
32475 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
32476
32477         [BZ #14117]
32478         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
32479         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
32480
32481         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
32482         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
32483         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
32484         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
32485         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
32486         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
32487
32488         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
32489         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
32490         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
32491
32492         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
32493         with __addr.
32494         (insw): Likewise.
32495         (insl): Likewise.
32496         (outsb): Likewise.
32497         (outsw): Likewise.
32498         (outsl): Likewise.
32499
32500         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
32501         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
32502         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
32503
32504         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
32505         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
32506         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
32507         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
32508         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
32509         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
32510
32511         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
32512         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
32513
32514         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
32515         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
32516
32517         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
32518         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
32519         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
32520
32521         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
32522         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
32523         to ...
32524         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
32525
32526         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
32527         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
32528         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
32529
32530         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
32531         for x86-64.
32532         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
32533
32534 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
32535
32536         * math/math.h (M_El): Use two more decimal places.
32537         (M_LOG2El): Likewise.
32538         (M_LOG10El): Likewise.
32539         (M_LN2l): Likewise.
32540         (M_LN10l): Likewise.
32541         (M_PIl): Likewise.
32542         (M_PI_2l): Likewise.
32543         (M_PI_4l): Likewise.
32544         (M_1_PIl): Likewise.
32545         (M_2_PIl): Likewise.
32546         (M_2_SQRTPIl): Likewise.
32547         (M_SQRT2l): Likewise.
32548         (M_SQRT1_2l): Likewise.
32549
32550 2012-05-31  David S. Miller  <davem@davemloft.net>
32551
32552         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
32553         values between float registers.
32554         * sysdeps/sparc/sparc64/memset.S: Likewise.
32555         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
32556
32557 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
32558
32559         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
32560         -D_FORTIFY_SOURCE=1.
32561         (CPPFLAGS-tst-longjmp_chk.c): Define.
32562         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
32563         (CPPFLAGS-tst-longjmp_chk2.c): Define.
32564         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
32565         CFLAGS-tst-wchar-h.c.
32566
32567 2012-05-31  Marek Polacek  <polacek@redhat.com>
32568
32569         [BZ #14132]
32570         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
32571         __endmntent_internal): Remove declaration.
32572         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
32573         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
32574         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
32575
32576 2012-05-30  David S. Miller  <davem@davemloft.net>
32577
32578         * sysdeps/sparc/sparc32/soft-fp/q_util.c
32579         (___Q_simulate_exceptions): Use real FP ops rather than writing
32580         into the %fsr.
32581         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
32582         Likewise.
32583
32584 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
32585
32586         [BZ #14117]
32587         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
32588         * sysdeps/x86/bits/xtitypes.h: This.
32589
32590         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
32591         * sysdeps/x86/bits/wordsize.h: This.
32592
32593         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
32594         * sysdeps/x86/bits/huge_vall.h: This.
32595
32596         * sysdeps/i386/bits/select.h: Removed.
32597         * sysdeps/x86_64/bits/select.h: Renamed to ...
32598         * sysdeps/x86/bits/select.h: This.
32599
32600         * sysdeps/i386/bits/setjmp.h: Removed.
32601         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
32602         * sysdeps/x86/bits/setjmp.h: This.
32603
32604         * sysdeps/i386/bits/mathdef.h: Removed.
32605         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
32606         * sysdeps/x86/bits/mathdef.h: This.
32607
32608 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
32609
32610         [BZ #14132]
32611         * include/sys/socket.h (__connect_internal)
32612         (__libc_sa_len_internal): Remove declaration.
32613         (__connect, __libc_sa_len): Declare hidden_proto.
32614         (SA_LEN): Remove use of INTUSE.
32615         * socket/connect.c: Add libc_hidden_def.
32616         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
32617         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
32618         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
32619         alias.
32620         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
32621         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
32622         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
32623         of adding _internal alias.
32624
32625 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
32626
32627         [BZ #14117]
32628         * sysdeps/i386/bits/link.h: Removed.
32629         * sysdeps/i386/bits/linkmap.h: Likewise.
32630         * sysdeps/x86_64/bits/link.h: Renamed to ...
32631         * sysdeps/x86/bits/link.h: This.
32632         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
32633         * sysdeps/x86/bits/linkmap.h: This.
32634
32635         * sysdeps/i386/bits/endian.h: Removed.
32636         * sysdeps/x86_64/bits/endian.h: Renamed to ...
32637         * sysdeps/x86/bits/endian.h: This.
32638
32639         * sysdeps/i386/bits/byteswap.h: Removed.
32640         * sysdeps/i386/bits/byteswap-16.h: Likewise.
32641         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
32642         * sysdeps/x86/bits/byteswap.h: This.
32643         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
32644         * sysdeps/x86/bits/byteswap-16.h: This.
32645         * sysdeps/i386/Implies: Add x86.
32646         * sysdeps/x86_64/Implies: Likewise.
32647
32648 2012-05-30  David S. Miller  <davem@davemloft.net>
32649
32650         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
32651         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
32652         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
32653         (FP_TRAPPING_EXCEPTIONS): Define.
32654         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
32655         (FP_TRAPPING_EXCEPTIONS): Define.
32656         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
32657         subnormals only when inexact has been signalled or underflow
32658         exceptions are enabled.
32659         (_FP_PACK_CANONICAL): Likewise.
32660
32661 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
32662
32663         [BZ #14183]
32664         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
32665         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
32666
32667 2012-05-30  Richard Henderson  <rth@twiddle.net>
32668
32669         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
32670         with #ifndef NOT_IN_libc.
32671
32672         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
32673         marked to avoid plt entry.
32674
32675 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
32676
32677         [BZ #14112]
32678         * Makeconfig (default-abi): New macro.
32679         (abi-includes): Likewise.
32680         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
32681         $(abi-$(default-abi)-lib-soname) for soname if defined.
32682         ($(common-objpfx)gnu/lib-names.stmp): Generate from
32683         abi-variants.
32684         * Makefile (installed-stubs): Likewise.
32685         * include/stubs-biarch.h: Removed.
32686         * scripts/lib-names.awk: Only handle one library at a time.
32687         * scripts/soversions.awk: Remove WORDSIZE support.
32688         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
32689         entries.
32690         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
32691         Removed.
32692         (syscall-list-default-condition): Likewise.
32693         (syscall-list-default-condition): Likewise.
32694         (syscall-list-includes): Likewise.
32695         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
32696         syscall-list-* with abi-*.  Handle undefined abi-variants.
32697         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
32698         * sysdeps/unix/sysv/linux/i386/Implies: New file.
32699         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
32700         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
32701         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
32702         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
32703         Removed.
32704         (syscall-list-32-options): Likewise.
32705         (syscall-list-32-condition): Likewise.
32706         (syscall-list-64-options): Likewise.
32707         (syscall-list-64-condition): Likewise.
32708         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
32709         macro.
32710         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
32711         Renamed to ...
32712         (abi-*): This.
32713         (abi-64-ld-soname): New macro.
32714         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
32715         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
32716         Renamed to ...
32717         (abi-*): This.
32718         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
32719         * sysdeps/x86_64/x32/shlib-versions: Likewise.
32720
32721 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
32722
32723         * sysdeps/unix/sysv/linux/kernel-features.h
32724         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
32725         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
32726         include <kernel-features.h>.
32727         [!__NR_ftruncate64]: Remove conditional code.
32728         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32729         [__NR_ftruncate64]: Make code unconditional.
32730         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32731         * sysdeps/unix/sysv/linux/truncate64.c: Do not
32732         include <kernel-features.h>.
32733         [!__NR_ftruncate64]: Remove conditional code.
32734         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32735         [__NR_ftruncate64]: Make code unconditional.
32736         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
32738         include <kernel-features.h>.
32739         [!__NR_ftruncate64]: Remove conditional code.
32740         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32741         [__NR_ftruncate64]: Make code unconditional.
32742         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
32744         include <kernel-features.h>.
32745         [!__NR_ftruncate64]: Remove conditional code.
32746         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32747         [__NR_ftruncate64]: Make code unconditional.
32748         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
32749
32750         * configure.in (libc_cv_fpie): Weaken to a compile test using
32751         LIBC_TRY_CC_OPTION.
32752         * configure: Regenerated.
32753
32754 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32755
32756         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
32757         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
32758         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
32759         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
32760         Refreshed.
32761         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
32762         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
32763         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
32764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
32765         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
32766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
32767         Refreshed.
32768
32769 2012-05-27  David S. Miller  <davem@davemloft.net>
32770
32771         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
32772         (___Q_zero): New.
32773         (__Q_simulate_exceptions): Return void.  Change to simulate
32774         exceptions by writing into the %fsr.
32775         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
32776         (__Qp_handle_exceptions): Likewise.
32777         (numbers): Delete.
32778         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
32779         __Qp_handle_exceptions.
32780         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
32781         __Qp_handle_exceptions.
32782         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
32783         as unused and give dummy FP_RND_NEAREST initializer.
32784         (FP_INHIBIT_RESULTS): Define.
32785         (___Q_simulate_exceptions): Update declaration.
32786         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
32787         formatting.
32788         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
32789         as unused and give dummy FP_RND_NEAREST initializer.
32790         (__Qp_handle_exceptions): Update declaration.
32791         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
32792         formatting.
32793
32794 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
32795
32796         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
32797         the temporary FPU control word.
32798         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
32799         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
32800         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
32801         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
32802         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
32803         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
32804         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
32805         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
32806         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
32807         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
32808         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
32809
32810 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
32811
32812         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
32813         fields.
32814
32815 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
32816
32817         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
32818         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
32819         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
32820         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
32821         Likewise.
32822         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
32823         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
32824         Likewise.
32825
32826 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
32827
32828         * po/h.po: Update from translation team.
32829
32830 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
32831
32832         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
32833
32834         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
32835         handling of denormals.
32836         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
32837         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
32838         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
32839         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
32840         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
32841         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
32842         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
32843         Likewise.
32844
32845 2012-05-26  Marek Polacek  <polacek@redhat.com>
32846
32847         [BZ #14152]
32848         * math/libm-test.inc (fma_test): Don't always expect underflow
32849         exception.
32850
32851 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
32852
32853         [BZ #12416]
32854         * elf/tst-execstack.c: Include stackinfo.h.
32855         (do_test): Adjust test case to ensure that pthread_getattr_np
32856         behaviour remains the same after marking stack executable.
32857
32858 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
32859
32860         * sysdeps/unix/sysv/linux/kernel-features.h
32861         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
32862         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
32863         kernel-features.h.
32864         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
32865         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
32866         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
32867         kernel-features.h.
32868         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
32869         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
32870
32871 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
32872
32873         * configure.in: Define the default includes to being none.
32874         * configure: Regenerated.
32875
32876 2012-05-25  Roland McGrath  <roland@hack.frob.com>
32877
32878         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
32879         * sysdeps/x86_64/setjmp.S: Likewise.
32880         * sysdeps/i386/bsd-setjmp.S: Likewise.
32881         * sysdeps/i386/bsd-_setjmp.S: Likewise.
32882         * sysdeps/i386/setjmp.S: Likewise.
32883         * sysdeps/i386/__longjmp.S: Likewise.
32884         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
32885         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
32886
32887         * include/stap-probe.h: New file.
32888         * configure.in: Handle --enable-systemtap.
32889         * configure: Regenerated.
32890         * config.h.in (USE_STAP_PROBE): New #undef.
32891         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
32892         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
32893         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
32894
32895 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
32896
32897         [BZ #13717]
32898         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
32899         to 2.4.0 where earlier.
32900         * sysdeps/unix/sysv/linux/configure: Regenerated.
32901         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
32902         <kernel-features.h>.
32903         [__ASSUME_32BITUIDS]: Make code unconditional.
32904         [!__ASSUME_32BITUIDS]: Remove conditional code.
32905         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
32906         <kernel-features.h>.
32907         [__ASSUME_32BITUIDS]: Make code unconditional.
32908         [!__ASSUME_32BITUIDS]: Remove conditional code.
32909         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
32910         [__ASSUME_32BITUIDS]: Make code unconditional.
32911         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
32912         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
32913         <kernel-features.h>.
32914         [__ASSUME_32BITUIDS]: Make code unconditional.
32915         [!__ASSUME_32BITUIDS]: Remove conditional code.
32916         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
32917         <kernel-features.h>.
32918         [__ASSUME_32BITUIDS]: Make code unconditional.
32919         [!__ASSUME_32BITUIDS]: Remove conditional code.
32920         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
32921         <kernel-features.h>.
32922         [__ASSUME_32BITUIDS]: Make code unconditional.
32923         [!__ASSUME_32BITUIDS]: Remove conditional code.
32924         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
32925         <kernel-features.h>.
32926         [__ASSUME_32BITUIDS]: Make code unconditional.
32927         [!__ASSUME_32BITUIDS]: Remove conditional code.
32928         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
32929         <kernel-features.h>.
32930         [__ASSUME_32BITUIDS]: Make code unconditional.
32931         [!__ASSUME_32BITUIDS]: Remove conditional code.
32932         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
32933         <kernel-features.h>.
32934         [__ASSUME_32BITUIDS]: Make code unconditional.
32935         [!__ASSUME_32BITUIDS]: Remove conditional code.
32936         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
32937         <kernel-features.h>.
32938         [__ASSUME_32BITUIDS]: Make code unconditional.
32939         [!__ASSUME_32BITUIDS]: Remove conditional code.
32940         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
32941         <kernel-features.h>.
32942         [__ASSUME_32BITUIDS]: Make code unconditional.
32943         [!__ASSUME_32BITUIDS]: Remove conditional code.
32944         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
32945         <kernel-features.h>.
32946         [__ASSUME_32BITUIDS]: Make code unconditional.
32947         [!__ASSUME_32BITUIDS]: Remove conditional code.
32948         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
32949         <kernel-features.h>.
32950         [__ASSUME_32BITUIDS]: Make code unconditional.
32951         [!__ASSUME_32BITUIDS]: Remove conditional code.
32952         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
32953         <kernel-features.h>.
32954         [__NR_setresgid] (__setresgid): Do not declare.
32955         [__ASSUME_32BITUIDS]: Make code unconditional.
32956         [!__ASSUME_32BITUIDS]: Remove conditional code.
32957         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
32958         <kernel-features.h>.
32959         [__NR_setresuid] (__setresuid): Do not declare.
32960         [__ASSUME_32BITUIDS]: Make code unconditional.
32961         [!__ASSUME_32BITUIDS]: Remove conditional code.
32962         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
32963         <kernel-features.h>.
32964         [__ASSUME_32BITUIDS]: Make code unconditional.
32965         [!__ASSUME_32BITUIDS]: Remove conditional code.
32966         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
32967         <kernel-features.h>.
32968         [__ASSUME_32BITUIDS]: Make code unconditional.
32969         [!__ASSUME_32BITUIDS]: Remove conditional code.
32970         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
32971         <kernel-features.h>.
32972         [__ASSUME_32BITUIDS]: Make code unconditional.
32973         [!__ASSUME_32BITUIDS]: Remove conditional code.
32974         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
32975         <kernel-features.h>.
32976         [__ASSUME_32BITUIDS]: Make code unconditional.
32977         [!__ASSUME_32BITUIDS]: Remove conditional code.
32978         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
32979         <kernel-features.h>.
32980         [__ASSUME_32BITUIDS]: Make code unconditional.
32981         [!__ASSUME_32BITUIDS]: Remove conditional code.
32982         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
32983         <kernel-features.h>.
32984         [__ASSUME_32BITUIDS]: Make code unconditional.
32985         [!__ASSUME_32BITUIDS]: Remove conditional code.
32986         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
32987         <kernel-features.h>.
32988         [__ASSUME_32BITUIDS]: Make code unconditional.
32989         [!__ASSUME_32BITUIDS]: Remove conditional code.
32990         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
32991         <kernel-features.h>.
32992         [__ASSUME_32BITUIDS]: Make code unconditional.
32993         [!__ASSUME_32BITUIDS]: Remove conditional code.
32994         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
32995         <kernel-features.h>.
32996         [__ASSUME_32BITUIDS]: Make code unconditional.
32997         [!__ASSUME_32BITUIDS]: Remove conditional code.
32998         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
32999         <kernel-features.h>.
33000         [__ASSUME_32BITUIDS]: Make code unconditional.
33001         [!__ASSUME_32BITUIDS]: Remove conditional code.
33002         * sysdeps/unix/sysv/linux/kernel-features.h
33003         (__ASSUME_SETRESUID_SYSCALL): Remove.
33004         (__ASSUME_SETRESGID_SYSCALL): Likewise.
33005         (__ASSUME_32BITUIDS): Likewise.
33006         (__ASSUME_LDT_WORKS): Likewise.
33007         (__ASSUME_O_DIRECTORY): Likewise.
33008         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
33009         architecture but not kernel version.
33010         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
33011         (__ASSUME_MMAP2_SYSCALL): Likewise.
33012         (__ASSUME_STAT64_SYSCALL): Likewise.
33013         (__ASSUME_IPC64): Likewise.
33014         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
33015         <kernel-features.h>.
33016         [__ASSUME_32BITUIDS]: Make code unconditional.
33017         [!__ASSUME_32BITUIDS]: Remove conditional code.
33018         * sysdeps/unix/sysv/linux/opendir.c: Do not include
33019         <kernel-features.h>.
33020         [__ASSUME_O_DIRECTORY]: Make code unconditional.
33021         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
33022         132096]: Remove conditional code.
33023         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
33024         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
33025         <kernel-features.h>.
33026         [__ASSUME_32BITUIDS]: Make code unconditional.
33027         [!__ASSUME_32BITUIDS]: Remove conditional code.
33028         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
33029         <kernel-features.h>.
33030         [__ASSUME_32BITUIDS]: Make code unconditional.
33031         [!__ASSUME_32BITUIDS]: Remove conditional code.
33032         * sysdeps/unix/sysv/linux/setegid.c: Do not include
33033         <kernel-features.h>.
33034         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
33035         unconditional.
33036         (__setresgid): Do not declare.
33037         [__ASSUME_32BITUIDS]: Make code unconditional.
33038         [!__ASSUME_32BITUIDS]: Remove conditional code.
33039         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
33040         <kernel-features.h>.
33041         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
33042         unconditional.
33043         (__setresuid): Do not declare.
33044         [__ASSUME_32BITUIDS]: Make code unconditional.
33045         [!__ASSUME_32BITUIDS]: Remove conditional code.
33046         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
33047         <kernel-features.h>.
33048         [__ASSUME_32BITUIDS]: Make code unconditional.
33049         [!__ASSUME_32BITUIDS]: Remove conditional code.
33050         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
33051         <kernel-features.h>.
33052         [__ASSUME_32BITUIDS]: Make code unconditional.
33053         [!__ASSUME_32BITUIDS]: Remove conditional code.
33054
33055 2012-05-25  Richard Henderson  <rth@twiddle.net>
33056
33057         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
33058         dl_hwcap to ifunc resolver.
33059         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
33060         elf_ifunc_invoke.
33061         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
33062         dl_hwcap to ifunc resolver.
33063         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
33064
33065 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
33066
33067         [BZ #14153]
33068         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
33069         for |x| <= 2**-26, not 2**-57.
33070         * math/libm-test.inc (acos_test): Do not allow spurious underflow
33071         exception.
33072
33073 2012-05-24  Jeff Law  <law@redhat.com>
33074
33075         * stdio-common/Makefile (tests): Add bug25.
33076         * stdio-common/bug25.c: New test.
33077
33078 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
33079
33080         [BZ #13576]
33081         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
33082         multiple of MALLOC_ALIGNMENT in size.
33083         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
33084
33085 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
33086
33087         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
33088         Require >= 256.
33089         (FILENAME_MAX): Use macro-int-constant.
33090         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
33091         (_IOFBF): Use macro-int-constant.
33092         (_IOLBF): Likewise.
33093         (_IONBF): Likewise.
33094         (SEEK_CUR): Likewise.
33095         (SEEK_END): Likewise.
33096         (SEEK_SET): Likewise.
33097         (TMP_MAX): Likewise.
33098         (EOF): Use macro-int-constant.  Require < 0.
33099         (NULL): Use macro-constant.  Require == 0.
33100         (stdin): Require type to be FILE *.
33101         (stdout): Likewise.
33102         (stderr): Likewise.
33103         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
33104         macro-int-constant.
33105         (EXIT_SUCCESS): Likewise.
33106         (NULL): Use macro-constant.  Require == 0.
33107         (RAND_MAX): Use macro-int-constant.
33108         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
33109         [C99-based standards] (strtof): Require function.
33110         [C99-based standards] (strtold): Likewise.
33111         [C99-based standards] (strtoll): Likewise.
33112         [C99-based standards] (strtoull): Likewise.
33113         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
33114         [ISO || ISO99 || ISO11] (limits.h): Likewise.
33115         [ISO || ISO99 || ISO11] (math.h): Likewise.
33116         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
33117         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
33118         [ISO || ISO99 || ISO11] (*_t): Do not allow.
33119
33120 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
33121
33122         [BZ #14132]
33123         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
33124         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
33125         * intl/dgettext.c (DCGETTEXT): Likewise.
33126         * intl/gettext.c (DCGETTEXT): Likewise.
33127         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
33128         * posix/regex_internal.h (gettext): Likewise.
33129         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
33130         Remove declaration.
33131         * include/argz.h (__argz_count_internal)
33132         (__argz_stringify_internal): Remove declaration.
33133         (__argz_count, __argz_stringify): Declare hidden proto.
33134         * intl/dcgettext.c: Remove use of INTDEF.
33135         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
33136         * string/argz-stringify.c: Likewise.
33137         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
33138         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
33139         Declare hidden proto.
33140         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
33141         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
33142         Declare hidden proto.
33143         * include/stdio.h (__asprintf_internal): Don't declare.
33144         (__asprintf): Don't define as macro.  Declare hidden proto.
33145         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
33146         (__fsetlocking): Declare hidden proto.
33147         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
33148         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
33149         hidden proto.
33150         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
33151         (_IO_setlinebuf): Remove use of INTUSE.
33152         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
33153         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
33154         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
33155         Remove declaration.
33156         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
33157         (_IO_do_flush): Remove use of INTUSE.
33158         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
33159         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
33160         (_IO_adjust_column, _IO_least_wmarker)
33161         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
33162         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
33163         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
33164         (_IO_default_doallocate, _IO_wdefault_doallocate)
33165         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
33166         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
33167         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
33168         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
33169         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
33170         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
33171         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
33172         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
33173         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
33174         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
33175         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
33176         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
33177         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
33178         proto.
33179         (_IO_flush_all_internal, _IO_adjust_column_internal)
33180         (_IO_default_uflow_internal, _IO_default_finish_internal)
33181         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
33182         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
33183         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
33184         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
33185         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
33186         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
33187         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
33188         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
33189         (_IO_file_close_internal, _IO_file_close_it_internal)
33190         (_IO_file_underflow_internal, _IO_file_overflow_internal)
33191         (_IO_file_init_internal, _IO_file_attach_internal)
33192         (_IO_file_fopen_internal, _IO_file_read_internal)
33193         (_IO_file_sync_internal, _IO_file_seek_internal)
33194         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
33195         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
33196         (_IO_str_underflow_internal, _IO_str_overflow_internal)
33197         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
33198         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
33199         (_IO_list_all_internal, _IO_link_in_internal)
33200         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
33201         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
33202         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
33203         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
33204         (_IO_do_write_internal, _IO_padn_internal)
33205         (_IO_getline_info_internal, _IO_getline_internal)
33206         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
33207         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
33208         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
33209         (_IO_vfscanf_internal, _IO_vfprintf_internal)
33210         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
33211         (_IO_init_internal, _IO_un_link_internal): Don't declare.
33212         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
33213         with libc_hidden_ver, remove use of INTUSE.
33214         * libio/genops.c: Likewise.
33215         * libio/freopen.c: Likewise.
33216         * libio/freopen64.c: Likewise.
33217         * libio/iofclose.c: Likewise.
33218         * libio/iofdopen.c: Likewise.
33219         * libio/iofflush.c: Likewise.
33220         * libio/iofflush_u.c: Likewise.
33221         * libio/iofgets.c: Likewise.
33222         * libio/iofgets_u.c: Likewise.
33223         * libio/iofopen.c: Likewise.
33224         * libio/iofopncook.c: Likewise.
33225         * libio/iofread.c: Likewise.
33226         * libio/iofread_u.c: Likewise.
33227         * libio/ioftell.c: Likewise.
33228         * libio/iofwrite.c: Likewise.
33229         * libio/iogetline.c: Likewise.
33230         * libio/iogets.c: Likewise.
33231         * libio/iogetwline.c: Likewise.
33232         * libio/iopadn.c: Likewise.
33233         * libio/iopopen.c: Likewise.
33234         * libio/ioseekoff.c: Likewise.
33235         * libio/ioseekpos.c: Likewise.
33236         * libio/iosetbuffer.c: Likewise.
33237         * libio/iosetvbuf.c: Likewise.
33238         * libio/ioungetc.c: Likewise.
33239         * libio/ioungetwc.c: Likewise.
33240         * libio/iovdprintf.c: Likewise.
33241         * libio/iovsprintf.c: Likewise.
33242         * libio/iovsscanf.c: Likewise.
33243         * libio/memstream.c: Likewise.
33244         * libio/obprintf.c: Likewise.
33245         * libio/oldfileops.c: Likewise.
33246         * libio/oldiofclose.c: Likewise.
33247         * libio/oldiofdopen.c: Likewise.
33248         * libio/oldiofopen.c: Likewise.
33249         * libio/oldiopopen.c: Likewise.
33250         * libio/oldstdfiles.c: Likewise.
33251         * libio/putc.c: Likewise.
33252         * libio/setbuf.c: Likewise.
33253         * libio/setlinebuf.c: Likewise.
33254         * libio/stdfiles.c: Likewise.
33255         * libio/strops.c: Likewise.
33256         * libio/vasprintf.c: Likewise.
33257         * libio/vscanf.c: Likewise.
33258         * libio/vsnprintf.c: Likewise.
33259         * libio/vswprintf.c: Likewise.
33260         * libio/wfiledoalloc.c: Likewise.
33261         * libio/wfileops.c: Likewise.
33262         * libio/wgenops.c: Likewise.
33263         * libio/wmemstream.c: Likewise.
33264         * libio/wstrops.c: Likewise.
33265         * libio/__fpurge.c: Likewise.
33266         * libio/__fsetlocking.c: Likewise.
33267         * assert/assert.c: Likewise.
33268         * debug/fgets_chk.c: Likewise.
33269         * debug/fgets_u_chk.c: Likewise.
33270         * debug/fread_chk.c: Likewise.
33271         * debug/fread_u_chk.c: Likewise.
33272         * debug/gets_chk.c: Likewise.
33273         * debug/obprintf_chk.c: Likewise.
33274         * debug/vasprintf_chk.c: Likewise.
33275         * debug/vdprintf_chk.c: Likewise.
33276         * debug/vsnprintf_chk.c: Likewise.
33277         * debug/vsprintf_chk.c: Likewise.
33278         * malloc/mtrace.c: Likewise.
33279         * misc/error.c: Likewise.
33280         * misc/syslog.c: Likewise.
33281         * stdio-common/asprintf.c: Likewise.
33282         * stdio-common/fxprintf.c: Likewise.
33283         * stdio-common/getw.c: Likewise.
33284         * stdio-common/isoc99_fscanf.c: Likewise.
33285         * stdio-common/isoc99_scanf.c: Likewise.
33286         * stdio-common/isoc99_vfscanf.c: Likewise.
33287         * stdio-common/isoc99_vscanf.c: Likewise.
33288         * stdio-common/isoc99_vsscanf.c: Likewise.
33289         * stdio-common/printf-prs.c: Likewise.
33290         * stdio-common/printf_fp.c: Likewise.
33291         * stdio-common/printf_fphex.c: Likewise.
33292         * stdio-common/printf_size.c: Likewise.
33293         * stdio-common/putw.c: Likewise.
33294         * stdio-common/scanf.c: Likewise.
33295         * stdio-common/sprintf.c: Likewise.
33296         * stdio-common/tmpfile.c: Likewise.
33297         * stdio-common/vfprintf.c: Likewise.
33298         * stdio-common/vfscanf.c: Likewise.
33299         * stdlib/strfmon_l.c: Likewise.
33300         * sunrpc/openchild.c: Likewise.
33301         * sunrpc/xdr_stdio.c: Likewise.
33302         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
33303         * sysdeps/mach/hurd/tmpfile.c: Likewise.
33304
33305 2012-05-24  Roland McGrath  <roland@hack.frob.com>
33306
33307         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
33308
33309         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
33310         in the third column, to generate for the shared library an IFUNC
33311         that uses _dl_vdso_vsym.
33312         * Makerules (COMPILE.c, compile-stdin.c): New variables.
33313         * Makeconfig (object-suffixes-noshared): New variable.
33314
33315         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
33316         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
33317         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
33318         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
33319
33320         [BZ #14132]
33321         * include/sys/time.h (__gettimeofday): Remove macro.
33322         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
33323         * time/gettimeofday.c (__gettimeofday): Remove #undef.
33324         Remove INTDEF.
33325         (__gettimeofday): Add libc_hidden_def.
33326         (gettimeofday): Add libc_hidden_weak.
33327         * sysdeps/mach/gettimeofday.c: Likewise.
33328         * sysdeps/posix/gettimeofday.c: Likewise.
33329         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
33330         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
33331         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
33332         (__gettimeofday_internal): Remove strong_alias.
33333         (__gettimeofday): Add libc_hidden_def.
33334         (gettimeofday): Add libc_hidden_weak.
33335         * sysdeps/unix/syscalls.list (gettimeofday):
33336         Remove __gettimeofday_internal alias.
33337
33338 2012-05-24  Daniel Jacobowitz  <drow@false.org>
33339             H.J. Lu  <hongjiu.lu@intel.com>
33340
33341         [BZ #12495]
33342         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
33343         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
33344         (largebin_index_32_big): New.
33345         (largebin_index): Use it for 16-byte alignment.
33346         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
33347         correction with front_misalign.
33348
33349 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
33350
33351         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
33352         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
33353         Likewise.
33354         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
33355         Likewise.
33356         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
33357         Likewise.
33358         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
33359         Likewise.
33360         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
33361         Likewise.
33362         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
33363         Likewise.
33364         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
33365         Likewise.
33366         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
33367         Likewise.
33368         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
33369         Likewise.
33370         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
33371         Likewise.
33372         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
33373         Likewise.
33374         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
33375         Likewise.
33376
33377         * scripts/data/c++-types-x32-linux-gnu.data: New file.
33378         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
33379
33380 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
33381
33382         [BZ #10846]
33383         [BZ #14036]
33384         * math/libm-test.inc (exp_test): Add test from bug 14036.
33385         (pow_test): Add test from bug 10846.
33386
33387         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
33388         and other flags.
33389         (special_function): Do not include flags in test name.
33390         (parse_args): Likewise.
33391         * sysdeps/i386/fpu/libm-test-ulps: Update.
33392         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
33393         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
33394         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
33395         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33396
33397         * math/gen-libm-test.pl (%beautify): Add entries for underflow
33398         exceptions.
33399         * math/libm-test.inc ("Philosophy"): Update comment about
33400         exception testing.
33401         (UNDERFLOW_EXCEPTION): New macro.
33402         (UNDERFLOW_EXCEPTION_OK): Likewise.
33403         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
33404         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
33405         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
33406         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
33407         (INVALID_EXCEPTION_OK): Update value.
33408         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
33409         (OVERFLOW_EXCEPTION_OK): Likewise.
33410         (IGNORE_ZERO_INF_SIGN): Likewise.
33411         (test_exceptions): Handle underflow exceptions.
33412         (acos_test): Update for underflow exception expectations.
33413         (cexp_test): Likewise.
33414         (clog_test): Likewise.
33415         (clog10_test): Likewise.
33416         (csqrt_test): Likewise.
33417         (ctan_test): Likewise.
33418         (ctanh_test): Likewise.
33419         (exp_test): Likewise.
33420         (exp10_test): Likewise.
33421         (exp2_test): Likewise.
33422         (expm1_test): Likewise.
33423         (fma_test): Likewise.
33424         (j0_test): Likewise.
33425         (jn_test): Likewise.
33426         (nexttoward_test): Likewise.
33427         (pow_test): Likewise.
33428         (scalbn_test): Likewise.
33429         (scalbln_test): Likewise.
33430         (tan_test): Likewise.
33431         (y1_test): Likewise.
33432         * sysdeps/i386/fpu/libm-test-ulps: Update.
33433         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33434
33435 2012-05-23  David S. Miller  <davem@davemloft.net>
33436
33437         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
33438         (__libc_sigaction): Remove unused local variables.
33439
33440 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
33441
33442         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
33443
33444 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
33445
33446         mktime: avoid signed integer overflow
33447         * time/mktime.c (__mktime_internal): Do not mishandle the case
33448         where diff == INT_MIN.
33449
33450         mktime: simplify computation of average
33451         * time/mktime.c (ranged_convert): Use new time_t_avg function
33452         instead of rolling our own (probably-slower) code.
33453
33454         mktime: do not assume signed right shift propagates sign bit
33455         * time/mktime.c (isdst_differ): New static function.
33456         (__mktime_internal): No need to normalize tm_isdst now.
33457         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
33458         tm_isdst values.
33459
33460         mktime: merge another wrapv change from gnulib
33461         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
33462         from some compilers.
33463
33464         mktime: remove incorrect attempt at unusual arithmetics
33465         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
33466         The code didn't really work on such machines anyway.
33467         (TYPE_MINIMUM): Assume two's complement.
33468         (twos_complement_arithmetic): Verify that long_int and time_t
33469         are two's complement (or unsigned, in the latter case).
33470
33471         mktime: check signed shifts on long_int and time_t, too
33472         * time/mktime.c (SHR): Check that shifts work as desired
33473         on the types long_int and time_t too, as SHR is used on
33474         such types.
33475
33476         mktime: do not assume 'long' is wide enough
33477         * time/mktime.c (verify): Move decl up.
33478         (long_int): New type.
33479         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
33480         to remove assumption in the code that 'long' is wide enough to
33481         store year values.  This assumption is not true on x32 and on
33482         some non-glibc platforms.
33483
33484         mktime: merge wrapv change from gnulib
33485         * time/mktime.c (WRAPV): New macro.
33486         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
33487         (guess_time_tm, __mktime_internal): Do not assume that signed
33488         integer overflow wraps around; modern compilers generate code
33489         where this assumption is no longer valid.
33490
33491 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
33492
33493         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
33494         Replace "jmp L(pseudo_end)" with "ret".
33495         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
33496         Likewise.
33497
33498 2012-05-23  Andreas Jaeger  <aj@suse.de>
33499
33500         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
33501         * sysdeps/unix/sysv/linux/poll.c: Remove file.
33502
33503 2012-05-23  Andreas Jaeger  <aj@suse.de>
33504             Maximilian Attems  <max@stro.at>
33505
33506         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
33507         New macros.
33508
33509 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
33510
33511         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
33512         code so that pseudo_end is just ret and the stack pointer is
33513         correct also for static library in error case.
33514
33515 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
33516
33517         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
33518         move to syscalls.list.
33519         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
33520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
33521         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
33522         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
33523
33524         * manual/install.texi (Running make install): Do not mention Linux
33525         kernel version for which pt_chown is not needed.
33526         (Linux): Do not mention problems with nscd with 2.0 kernels.
33527         * INSTALL: Regenerated.
33528
33529 2012-05-23  Andreas Jaeger  <aj@suse.de>
33530
33531         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
33532         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
33533         macro.
33534         * sysdeps/unix/sysv/linux/s390/bits/mman.h
33535         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
33536         * sysdeps/unix/sysv/linux/sh/bits/mman.h
33537         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
33538         * sysdeps/unix/sysv/linux/i386/bits/mman.h
33539         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
33540         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
33541         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
33542         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
33543         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
33544         * sysdeps/unix/sysv/linux/bits/in.h
33545         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
33546
33547 2012-05-22  Roland McGrath  <roland@hack.frob.com>
33548
33549         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
33550         (PREPARE_VERSION): Just use assert instead, it will be elided
33551         under [NDEBUG] anyway.
33552
33553 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
33554
33555         * sysdeps/unix/sysv/linux/Makefile: Include
33556         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
33557         (sysdep_routines): Remove sysctl.
33558         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
33559         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
33560         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
33561         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
33562         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
33563
33564 2012-05-22  Andreas Jaeger  <aj@suse.de>
33565
33566         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
33567         that pseudo_end is just ret and the stack pointer is correct also
33568         for static library in error case.
33569
33570 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
33571
33572         [BZ #14122]
33573         * nss/nsswitch.c (defconfig_entries): New variable.
33574         (__nss_database_lookup): Don't leak defconfig entries.
33575         (nss_parse_service_list): Don't leak on error paths.
33576         (free_database_entries): New function.
33577         (free_defconfig): New function.
33578         (free_mem): Move common code to free_database_entries.
33579
33580 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
33581
33582         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
33583         Add arch_prctl.
33584         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
33585
33586         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
33587         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
33588         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
33589         New macro.
33590         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
33591         (INTERNAL_SYSCALL_TYPES): Likewise.
33592         (LOAD_ARGS_TYPES_[1-6]): Likewise.
33593         (LOAD_REGS_TYPES_[1-6]): Likewise.
33594         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
33595         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
33596
33597 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33598
33599         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
33600         copysignl for GLIBC_2_0.
33601         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
33602         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
33603         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
33604         logbl for GLIBC_2_0.
33605         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
33606         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
33607
33608 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
33609
33610         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
33611         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
33612
33613         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
33614         Use "neg %eax".
33615
33616         * time/mktime.c: Update copyright years.
33617
33618 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
33619
33620         mktime: merge comment-quoting-style change from gnulib
33621         * time/mktime.c: Quote 'like this' in comments.
33622         The GNU coding standards suggest that we no longer quote `like this',
33623         as "`" and "'" are typically rendered asymmetrically nowadays.
33624         The typical gnulib style is to quote 'like this' when quoting
33625         code, and "like this" when quoting English.
33626
33627         * time/mktime.c (compile-command): Add "-I.".
33628
33629         mktime: merge mktime-internal.h change from gnulib
33630         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
33631
33632         mktime: merge time_r change from gnulib
33633         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
33634
33635         mktime: merge DEBUG change from gnulib
33636         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
33637         case system <time.h> has a #define.
33638
33639         mktime: merge <sys/types.h> change from gnulib
33640         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
33641         since <time.t> is now guaranteed to define time_t.
33642
33643         mktime: merge HAVE_CONFIG_H change from gnulib
33644         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
33645
33646 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
33647
33648         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
33649         Use "neg %eax".
33650
33651         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
33652         __rlim_t cast.
33653         (struct rusage): Use anonymous union to pad each field to
33654         __syscall_slong_t.
33655
33656 2012-05-21  David S. Miller  <davem@davemloft.net>
33657
33658         * Makefules (o-iterator): Remove .s cases.
33659         (compile-command.s): Delete.
33660         (COMPILE.s): Delete.
33661         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
33662
33663 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
33664
33665         * configure.in (libc_cv_predef_stack_protector): Only consider
33666         "foobar" and "__stack_chk_fail" lines in libc_undefs.
33667         * configure: Regenerated.
33668
33669 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
33670
33671         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
33672         New macro.  Use R*LP on int and pointer.
33673         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
33674         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
33675         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
33676         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
33677
33678         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
33679         [__WORDSIZE_TIME64_COMPAT32] instead of
33680         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
33681         (struct utmp): Likewise.
33682         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
33683         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
33684         Renamed to ...
33685         (__WORDSIZE_TIME64_COMPAT32): This.
33686         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
33687         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
33688         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
33689         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
33690         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
33691         (__WORDSIZE_TIME64_COMPAT32): New macro.
33692
33693 2012-05-21  Andreas Jaeger  <aj@suse.de>
33694
33695         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
33696         only if [SHARED]. Add prototype for __wcschr_ia32.
33697
33698 2012-05-21  Roland McGrath  <roland@hack.frob.com>
33699
33700         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
33701         of %rbp unmolested in the jmp_buf while mangling the low bits.
33702         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
33703         unmolested high bits of %rbp while demangling the low bits.
33704         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
33705
33706 2012-05-21  Andreas Jaeger  <aj@suse.de>
33707
33708         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
33709         * sunrpc/svc_simple.c: Use it for registerrpc.
33710         * sunrpc/xcrypt.c: Use it for passwd2des.
33711
33712         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
33713
33714 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
33715
33716         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
33717         Don't define if [__SYSCALL_WORDSIZE != 32].
33718         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
33719         New macro.
33720
33721 2012-05-21  Bruno Haible  <bruno@clisp.org>
33722             Andreas Jaeger  <aj@suse.de>
33723
33724         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
33725         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
33726         inptr and inend for must_buffer_ch.
33727         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
33728         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
33729         * stdio-common/Makefile (tests): Remove bug15.
33730         (bug15-ENV): Remove macro.
33731         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
33732         anymore.
33733
33734 2012-05-19  Andreas Jaeger  <aj@suse.de>
33735             Roland McGrath  <roland@hack.frob.com>
33736
33737         * manual/contrib.texi: Completely rewritten. It contains now an
33738         alphabetical list of contributors and their contributions.
33739
33740 2012-05-21  Richard Henderson  <rth@twiddle.net>
33741
33742         * misc/getauxval.c (__getauxval): Use unsigned long int.
33743         * misc/sys/auxv.h: Include <sys/cdefs.h>.
33744         (getauxval): Use unsigned long int.
33745
33746 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
33747
33748         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
33749
33750 2012-05-21  Roland McGrath  <roland@hack.frob.com>
33751
33752         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
33753         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
33754         __alignof__ (long double).
33755
33756 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33757
33758         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33759
33760 2012-05-20  Richard Henderson  <rth@twiddle.net>
33761
33762         * misc/getauxval.c: New file.
33763         * misc/sys/auxv.h: New file.
33764         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
33765         (routines): Add getauxval.
33766         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
33767         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
33768         * elf/dl-sysdep.c (_dl_auxv): Remove.
33769         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
33770         * elf/dl-support.c (_dl_auxv): New variable.
33771         (_dl_aux_init): Initialize it.
33772         * manual/startup.texi (Auxiliary Vector): New node.
33773         * sysdeps/generic/bits/hwcap.h: New file.
33774         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
33775         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
33776         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
33777         * sysdeps/sparc/sysdep.h: ... here.  Include it.
33778         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
33779         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
33780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
33781         Update.
33782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
33783         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
33784         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
33785         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
33786         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
33787         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
33788         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
33789         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
33790
33791 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
33792
33793         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
33794
33795 2012-05-19  David S. Miller  <davem@davemloft.net>
33796
33797         * sysdeps/sparc/fpu/libm-test-ulps: Update.
33798
33799 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
33800
33801         [BZ #14123]
33802         * math/s_ccosh.c: Include <float.h>
33803         (__ccosh): Avoid internal overflow calculating sinh and cosh
33804         values before multiplying by sin and cos values.
33805         * math/s_ccoshf.c: Likewise.
33806         * math/s_ccoshl.c: Likewise.
33807         * math/s_csin.c: Likewise.
33808         * math/s_csinf.c: Likewise.
33809         * math/s_csinl.c: Likewise.
33810         * math/s_csinh.c: Likewise.
33811         * math/s_csinhf.c: Likewise.
33812         * math/s_csinhl.c: Likewise.
33813         * math/libm-test.inc (ccos_test): Add more tests.
33814         (ccosh_test): Likewise.
33815         (csin_test): Likewise.
33816         (csinh_test): Likewise.
33817         * sysdeps/i386/fpu/libm-test-ulps: Update.
33818         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
33819
33820 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
33821
33822         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
33823         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
33824
33825         * sysdeps/x86_64/x32/_itoa.h: Add comment.
33826
33827 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
33828
33829         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
33830         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
33831         * sysdeps/powerpc/soft-fp/Versions: Likewise.
33832         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
33833         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
33834         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
33835         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
33836         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
33837         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
33838         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
33839         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
33840         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
33841         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
33842         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
33843         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
33844         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
33845         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
33846         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
33847         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
33848         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
33849         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
33850         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
33851         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
33852         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
33853         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
33854         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
33855         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
33856         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
33857         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
33858         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
33859         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
33860
33861 2012-05-18  Andreas Jaeger  <aj@suse.de>
33862
33863         * csu/.gitignore: Delete.
33864
33865 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33866
33867         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
33868         (timex): Use __syscall_slong_t.
33869
33870 2012-05-18  Andreas Jaeger  <aj@suse.de>
33871             Carlos O'Donell  <carlos_odonell@mentor.com>
33872
33873         * manual/install.texi (Configuring and compiling): Update
33874         description about files modified in the source directory.
33875         * INSTALL: Regenerated.
33876
33877 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33878
33879         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
33880         value.  Use "or" to set return value to -1.
33881         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
33882         negate return value.
33883
33884 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
33885
33886         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c)
33887         (CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
33888         failure if the compiler has Graphite support disabled.
33889         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
33890         Likewise.
33891         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c)
33892         (CFLAGS-memmove.c): Likewise.
33893         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
33894         Likewise.
33895
33896 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
33897
33898         * sysdeps/x86_64/x32/_itoa.h: New file.
33899
33900         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
33901         getdents system call only if kernel and user dirents have the
33902         same d_ino and d_off.
33903
33904         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
33905         LLONG_MAX != LONG_MAX.
33906         (_itoa_word): Use _ITOA_WORD_TYPE on value.
33907         (_fitoa_word): Likewise.
33908
33909         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
33910         years.
33911         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
33912         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
33913         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
33914
33915         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
33916         include <bits/wordsize.h>.  Check __x86_64__ instead of
33917         __WORDSIZE.
33918         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
33919         if __x86_64__ is defined.  Use anonymous union on fpstate.
33920
33921         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
33922         anonymous union.
33923
33924 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
33925
33926         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
33927         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
33928         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
33929         Refer to _rtld_local_ro instead of _rtld_global_ro.
33930         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
33931         Likewise.
33932         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
33933         Likewise.
33934         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
33935         Likewise.
33936         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
33937         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
33938         of _rtld_global, and rtld_progname instead of _dl_argv[0].
33939
33940         * sysdeps/powerpc/powerpc32/dl-machine.c
33941         (__elf_machine_runtime_setup) [PROF]: Don't reference
33942         _dl_prof_resolve.
33943
33944 2012-05-18  Andreas Jaeger  <aj@suse.de>
33945
33946         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
33947         function only available for GCCs before 3.4 since GCC 3.4
33948         introduced a builtin.
33949         (lrint): Likewise.
33950         (llrintf): Likewise.
33951         (llrint): Likewise.
33952         (fmaxf): Likewise.
33953         (fmax): Likewise.
33954         (fminf): Likewise.
33955         (fmin): Likewise.
33956         (rint): Likewise.
33957         (rintf): Likewise.
33958         (nearbyint): Likewise.
33959         (nearbyintf): Likewise.
33960         (ceil): Likewise.
33961         (ceilf): Likewise.
33962         (floor): Likewise.
33963         (floorf): Likewise.
33964
33965 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33966
33967         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
33968         on both fields and cast pointer to __syscall_ulong_t.
33969
33970         * bits/types.h (__fsword_t): New type.
33971         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
33972         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
33973         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
33974         (__FSWORD_T_TYPE): Likewise.
33975         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
33976         (__FSWORD_T_TYPE): Likewise.
33977         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
33978         (__FSWORD_T_TYPE): Likewise.
33979         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
33980         (__FSWORD_T_TYPE): Likewise.
33981         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
33982         __SWORD_TYPE with __fsword_t.
33983         (statfs64): Likewise.
33984
33985 2012-05-17  David S. Miller  <davem@davemloft.net>
33986
33987         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
33988
33989 2012-05-17  Andreas Jaeger  <aj@suse.de>
33990
33991         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
33992         warning.
33993
33994 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
33995
33996         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
33997
33998 2012-05-17  Andreas Jaeger  <aj@suse.de>
33999
34000         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
34001         when it is used.
34002
34003 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
34004
34005         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
34006
34007 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
34008
34009         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
34010         * sysdeps/x86_64/tst-mallocalign1.c: New file.
34011
34012 2012-05-17  Andreas Jaeger  <aj@suse.de>
34013             Carlos O'Donell  <carlos_odonell@mentor.com>
34014
34015         [BZ #14059]
34016         * sysdeps/x86_64/multiarch/init-arch.h
34017         (bit_YMM_Usable): Rename to...
34018         (bit_AVX_Usable): ... this.
34019         (bit_FMA4_Usable): New macro.
34020         (bit_XMM_state): New macro.
34021         (bit_YMM_state): New macro.
34022         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
34023         [__ASSEMBLER__] (index_AVX_Usable): ... this.
34024         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
34025         (CPUID_OSXSAVE): New macro.
34026         (CPUID_AVX): New macro.
34027         (CPUID_FMA4): New macro.
34028         (index_YMM_Usable): Rename to...
34029         (index_AVX_Usable): ... this.
34030         (HAS_AVX): Use HAS_ARCH_FEATURE.
34031         (HAS_FMA4): Likewise.
34032         (HAS_YMM_USABLE): Remove.
34033         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34034         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
34035         are present.
34036         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
34037         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
34038         * sysdeps/x86_64/multiarch/Makefile: Likewise.
34039         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
34040         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
34041
34042 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
34043
34044         * math/libm-test.c: Support platforms without multiple rounding modes.
34045         * math/bug-nextafter.c: Support platforms without FP exceptions.
34046         * math/bug-nexttoward.c: Likewise.
34047         * math/test-fenv.c: Likewise.
34048         * math/test-misc.c: Likewise.
34049         * stdlib/bug-getcontext.c: Likewise.
34050
34051 2012-05-17  Andreas Jaeger  <aj@suse.de>
34052
34053         * manual/examples/search.c (critter_cmp): Change signature to
34054         avoid warnings.
34055         * manual/string.texi (Collation Functions): Likewise.
34056
34057 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34058
34059         * bits/types.h: Fold copyright years.
34060         * bits/typesizes.h: Likewise.
34061         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
34062         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
34063         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
34064         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
34065         * time/time.h: Likewise.
34066
34067 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
34068
34069         [BZ #208]
34070         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
34071         in instead of returning them.  Return void.
34072         (__libc_mallinfo): Accumulate over all arenas.
34073         (__malloc_stats): Adjust for change in int_mallinfo interface.
34074
34075 2012-05-16  Roland McGrath  <roland@hack.frob.com>
34076
34077         [BZ #10375]
34078         * configure.in (NM): Add AC_CHECK_TOOL for it.
34079         (libc_extra_cflags): New substituted variable.
34080         Check for -fstack-protector being used implicitly.
34081         * configure: Regenerated.
34082         * config.make.in (config-extra-cflags): New variable,
34083         gets @libc_extra_cflags@.
34084         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
34085
34086         [BZ #10375]
34087         * configure.in: Check for _FORTIFY_SOURCE being predefined.
34088         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
34089         * configure: Regenerated.
34090         * config.make.in (CPPUNDEFS): New substituted variable.
34091         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
34092         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
34093         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
34094
34095 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34096
34097         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
34098         (mq_attr): Use __syscall_slong_t.
34099
34100 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34101
34102         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
34103         Check __x86_64__ instead of __WORDSIZE.
34104         (_STAT_VER_LINUX): Likewise.
34105         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
34106         __syscall_ulong_t and __syscall_slong_t.
34107         (stat64): Likewise.
34108
34109 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34110
34111         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
34112
34113 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34114
34115         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
34116
34117 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34118
34119         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
34120         __syscall_ulong_t.
34121
34122         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
34123         include <bits/wordsize.h>.  Check __x86_64__ instead of
34124         __WORDSIZE.
34125         (greg_t): Use "__extension__ long long int" if __x86_64__ is
34126         defined.
34127         (mcontext_t): Replace "unsigned long" with "unsigned long long".
34128
34129         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
34130         include <bits/wordsize.h>.  Check __x86_64__ instead of
34131         __WORDSIZE.
34132         (user_regs_struct): Use "__extension__ unsigned long long"
34133         instead of "unsigned long" if __x86_64__ is defined.
34134         (user): Likewise.  Pad after pointer field if __ILP32__ is
34135         defined.
34136
34137 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
34138
34139         * configure.in (makeinfo): Require version 4.5 or later.  Allow
34140         versions 5 to 9.
34141         * configure: Regenerated.
34142         * manual/install.texi (texinfo): Increase version requirement to
34143         4.5 or later.
34144         * INSTALL: Regenerated.
34145
34146         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
34147
34148 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
34149
34150         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
34151
34152         * sysdeps/x86_64/x32/ffs.c: New file.
34153
34154         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
34155         __syscall_ulong_t.
34156         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
34157         defined.  Use __syscall_ulong_t.
34158         (shminfo): Use __syscall_ulong_t.
34159         (shm_info): Likewise.
34160
34161         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
34162         __syscall_ulong_t.
34163
34164         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
34165         <bits/wordsize.h>.
34166         (msgqnum_t): Use __syscall_ulong_t.
34167         (msglen_t): Likewise.
34168         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
34169         __syscall_ulong_t.
34170
34171         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
34172         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
34173
34174         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
34175
34176         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
34177         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
34178
34179         * sysvipc/sys/msg.h (msgbuf): Replace long int with
34180         __syscall_slong_t.
34181
34182         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
34183         include <bits/wordsize.h>.  Check __x86_64__ instead of
34184         __WORDSIZE.
34185
34186         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
34187         "unsigned long long int" if __x86_64__ is defined.
34188         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
34189
34190         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
34191         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
34192         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
34193
34194         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
34195         <stdint.h>.
34196         (GET_PC): Cast to uintptr_t first.
34197         (GET_FRAME): Likewise.
34198         (GET_STACK): Likewise.
34199
34200         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
34201         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
34202         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
34203         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
34204         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
34205         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
34206         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
34207         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
34208         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
34209         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
34210         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
34211         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
34212         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
34213         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
34214         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
34215         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
34216         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
34217         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
34218         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
34219         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
34220         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
34221         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
34222         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
34223         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
34224         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
34225         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
34226         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
34227         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
34228         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
34229
34230 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
34231
34232         * Makerules (+depfiles): Also collect depfiles from .oS in
34233         $(extra-objs).
34234         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
34235         .oS, $(libnldbl-routines)).
34236
34237         * Makerules (native-compile-mkdep-flags): Define.
34238         * sunrpc/Makefile (extra-objs): Add $(addprefix
34239         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
34240         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
34241         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
34242         calling $(make-target-directory).
34243
34244 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34245
34246         * bits/types.h (__snseconds_t): Removed.
34247         * time/time.h (struct timespec): Replace __snseconds_t with
34248         __syscall_slong_t.
34249         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
34250         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
34251         Likewise.
34252         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
34253         (__SNSECONDS_T_TYPE): Likewise.
34254         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
34255         (__SNSECONDS_T_TYPE): Likewise.
34256         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
34257         (__SNSECONDS_T_TYPE): Likewise.
34258
34259 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34260
34261         * sysdeps/mach/hurd/bits/typesizes.h
34262         (__SYSCALL_SLONG_TYPE): New macro.
34263         (__SYSCALL_ULONG_TYPE): Likewise.
34264
34265 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34266
34267         * bits/types.h (__syscall_slong_t): New type.
34268         (__syscall_ulong_t): Likewise.
34269
34270         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
34271         (__SYSCALL_ULONG_TYPE): Likewise.
34272         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
34273         (__SYSCALL_SLONG_TYPE): Likewise.
34274         (__SYSCALL_ULONG_TYPE): Likewise.
34275         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
34276         (__SYSCALL_SLONG_TYPE): Likewise.
34277         (__SYSCALL_ULONG_TYPE): Likewise.
34278         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
34279         (__SYSCALL_SLONG_TYPE): Likewise.
34280         (__SYSCALL_ULONG_TYPE): Likewise.
34281
34282 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34283
34284         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
34285         Add sigaltstack-offsets.sym.
34286         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
34287         <sigaltstack-offsets.h>.
34288         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
34289         longjmp_msg pointer.
34290         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
34291         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
34292         signal stack.
34293         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
34294
34295 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
34296
34297         * elf/stackguard-macros.h: Remove file.
34298         * sysdeps/generic/stackguard-macros.h: New file.
34299         * sysdeps/i386/stackguard-macros.h: Likewise.
34300         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
34301         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
34302         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
34303         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
34304         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
34305         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
34306         * sysdeps/x86_64/stackguard-macros.h: Likewise.
34307         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
34308         <elf/stackguard-macros.h>.
34309
34310         [BZ #14109]
34311         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
34312         __aligned__ in attribute.
34313         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
34314         (gregset_t): Likewise.
34315
34316 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34317
34318         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
34319         * sysdeps/x86_64/64/Implies-after: Here.  New file.
34320         * sysdeps/x86_64/x32/Implies-after: New file.
34321
34322 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34323
34324         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
34325         and access return value for _dl_profile_fixup.  Use R10_LP to
34326         load frame size.
34327
34328 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34329
34330         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
34331
34332 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34333
34334         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
34335         * sysdeps/x86_64/x32/sysdep.h: New file.
34336
34337 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34338
34339         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
34340         * sysdeps/x86_64/setjmp.S: Likewise.
34341
34342 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34343
34344         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
34345         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
34346         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
34347         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
34348         remove unused global constant.
34349
34350 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
34351
34352         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
34353         include of <not-cancel.h>.
34354
34355 2012-05-15  Roland McGrath  <roland@hack.frob.com>
34356
34357         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
34358
34359 2012-05-15  Jeff Law  <law@redhat.com>
34360             Andreas Jaeger  <aj@suse.de>
34361
34362         [BZ #13594]
34363         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
34364         out from...
34365         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
34366         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
34367         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
34368         code changing __hst_map_handle.map.
34369
34370 2012-05-15  Roland McGrath  <roland@hack.frob.com>
34371
34372         * configure.in (sysnames): Look for Implies-before and Implies-after
34373         files.
34374         * configure: Regenerated.
34375
34376 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34377
34378         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
34379         8-byte data alignment with LP_SIZE alignment.
34380
34381 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34382
34383         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
34384         into R10_LP.
34385
34386 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34387
34388         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
34389
34390 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34391
34392         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
34393         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
34394         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
34395         Likewise.
34396         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
34397
34398 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34399
34400         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
34401         (stackinfo_sub_sp): Likewise.
34402
34403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34404
34405         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
34406         RAX_LP.
34407
34408 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34409
34410         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
34411         into R*_LP.
34412
34413 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34414
34415         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
34416         sizes into R*_LP.
34417
34418 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34419
34420         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
34421
34422 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34423
34424         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
34425         into R11_LP and load __x86_64_shared_cache_size_half into
34426         R8_LP.
34427
34428 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
34429
34430         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
34431         R8_LP.
34432
34433 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
34434
34435         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
34436         logb for POWER7.
34437         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
34438         logbf for POWER7.
34439         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
34440         logbl for POWER7.
34441         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
34442         powerpc32/power7/fpu/s_logb.c via #include.
34443         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
34444         powerpc32/power7/fpu/s_logbf.c via #include.
34445         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
34446         powerpc32/power7/fpu/s_logbl.c via #include.
34447
34448 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
34449
34450         * README.libm: Remove file.
34451
34452 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34453
34454         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
34455         count for x32.  Use R*_LP and omit operand-size suffix.
34456
34457 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34458
34459         * shlib-versions: Move x86_64-.*-linux.* entries to ...
34460         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
34461         * sysdeps/x86_64/x32/shlib-versions: New file.
34462
34463 2012-05-14  Roland McGrath  <roland@hack.frob.com>
34464
34465         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
34466         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
34467         Use _dl_fatal_printf instead.
34468
34469 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
34470
34471         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
34472         set if not set by the user.  Do not allow for being unset.
34473         * sysdeps/unix/sysv/linux/configure: Regenerated.
34474
34475 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34476
34477         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
34478         the `q' suffix from lea and replace .quad with ASM_ADDR.
34479
34480 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34481
34482         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
34483         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
34484         instead of $17.
34485         (PTR_DEMANGLE): Likewise.
34486
34487 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34488
34489         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
34490         (LP_OP): Likewise.
34491         (ASM_ADDR): Likewise.
34492         (RAX_LP): Likewise.
34493         (RBP_LP): Likewise.
34494         (RBX_LP): Likewise.
34495         (RCX_LP): Likewise.
34496         (RDI_LP): Likewise.
34497         (RSI_LP): Likewise.
34498         (RSP_LP): Likewise.
34499         (R8_LP): Likewise.
34500         (R9_LP): Likewise.
34501         (R10_LP): Likewise.
34502         (R10_LP): Likewise.
34503         (R11_LP): Likewise.
34504         (R12_LP): Likewise.
34505         (R13_LP): Likewise.
34506         (R14_LP): Likewise.
34507         (R15_LP): Likewise.
34508
34509 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34510
34511         * sysdeps/x86_64/x32/dl-machine.h: New file.
34512
34513 2012-05-14  Andreas Jaeger  <aj@suse.de>
34514
34515         * manual/Makefile (subdir): Remove export of subdir.
34516         (all): Remove target.
34517         (.PHONY): Remove all from list.
34518         (mkinstalldirs): Remove.
34519         (.PHONY): Remove installdirs from list.
34520         ($(inst_infodir)/libc.info): Use make-target-directory.
34521         (installdirs): Remove.
34522         (subdir_%): Remove.
34523         (glibc-targets): Remove.
34524         (lib): Remove.
34525         (stubs): Remove.
34526         ($(objpfx)stubs ../po/manual.pot): Remove.
34527         ($(objpfx)stamp%): Remove.
34528         (make-target-directory): Remove.
34529         (subdir_install): Remove.
34530         (routines): Remove.
34531         (aux): Remove.
34532         (sources): Remove.
34533         (objects): Remove.
34534         (headers): Remove.
34535
34536         [BZ #13750]
34537         * manual/.gitignore: Remove, it's not needed anymore.
34538         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
34539         all files in it.
34540         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
34541         directory.
34542         (texis): Renamed to $(objpfx)texis.
34543         (texis-path): New, contains path to generated files.
34544         (chapters.%): Use texis-path for complete path, add extra argument
34545         libc-texinfo.sh.
34546         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
34547         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
34548         (summary,texi, stamp-summary): Use complete path of
34549         files. Generate files in build dir.
34550         (dir-add.texi): Build in build dir.
34551         (libm-err.texi,stamp-libm-err): Likewise.
34552         (version.texi, stamp-version): Likewise.
34553         (.%c.texi): Likewise.
34554         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
34555         (mostlyclean): Remove target.
34556         (realclean): Remove target.
34557         (generated): Add new variable with contents from mostlyclean and
34558         realclean, remove entries duplicated in common-mostlyclean, add
34559         stamp-libm-err and stamp-version.
34560         (generated-dirs): Add libc directory.
34561         ($(inst_infodir)/libc.info): Install files from build dir.
34562
34563         * manual/install.texi (Configuring and compiling): Adjust since
34564         the info files are not part of the tar ball anymore.
34565
34566 2012-05-14  Andreas Jaeger  <aj@suse.de>
34567
34568         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
34569         variable.
34570
34571 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
34572
34573         [BZ #13717]
34574         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
34575         to 2.2.0 where earlier.
34576         * sysdeps/unix/sysv/linux/configure: Regenerated.
34577         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
34578         Remove conditional code.
34579         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
34580         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
34581         Remove conditional code.
34582         [!__NR_lchown]: Likewise.
34583         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
34584         [__NR_lchown]: Likewise.
34585         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
34586         comment referencing __ASSUME_LCHOWN_SYSCALL.
34587         * sysdeps/unix/sysv/linux/i386/sigaction.c
34588         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
34589         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
34590         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
34591         Remove conditional code.
34592         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
34593         (__protocol_available): Remove #if 0 code.
34594         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
34595         conditional code.
34596         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
34597         * sysdeps/unix/sysv/linux/kernel-features.h
34598         (__ASSUME_GETCWD_SYSCALL): Don't define.
34599         (__ASSUME_REALTIME_SIGNALS): Likewise.
34600         (__ASSUME_PREAD_SYSCALL): Likewise.
34601         (__ASSUME_PWRITE_SYSCALL): Likewise.
34602         (__ASSUME_POLL_SYSCALL): Likewise.
34603         (__ASSUME_LCHOWN_SYSCALL): Likewise.
34604         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
34605         non-SPARC.
34606         (__ASSUME_SIOCGIFNAME): Don't define.
34607         (__ASSUME_MSG_NOSIGNAL): Likewise.
34608         (__ASSUME_SENDFILE): Define unconditionally.
34609         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
34610         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
34611         conditional code.
34612         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
34613         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
34614         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
34615         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
34616         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
34617         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
34618         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
34619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
34620         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
34621         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34622         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
34623         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
34624         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34625         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
34626         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
34627         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34628         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
34629         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
34630         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34631         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
34632         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
34633         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
34635         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
34636         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
34638         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
34639         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
34641         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
34642         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34643         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
34644         Remove conditional code.
34645         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34646         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
34647         Remove conditional code.
34648         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34649         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
34650         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
34651         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
34652         Remove conditional code.
34653         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34654         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
34655         Remove conditional code.
34656         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34657         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
34658         Remove conditional code.
34659         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34660         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
34661         Remove conditional code.
34662         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
34663         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
34664         Remove conditional code.
34665         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34666         * sysdeps/unix/sysv/linux/sh/pwrite64.c
34667         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
34668         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
34669         * sysdeps/unix/sysv/linux/sigaction.c
34670         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
34671         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
34672         * sysdeps/unix/sysv/linux/sigpending.c
34673         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
34674         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
34675         * sysdeps/unix/sysv/linux/sigprocmask.c
34676         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
34677         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
34678         * sysdeps/unix/sysv/linux/sigsuspend.c
34679         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
34680         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
34681         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
34682         (__libc_missing_rt_sigs): Remove.
34683         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
34684         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
34685         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
34686         Remove conditional code.
34687         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
34688         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
34689         return 1.
34690         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
34691         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
34692         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
34693         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
34694
34695 2012-05-14  Andreas Jaeger  <aj@suse.de>
34696
34697         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
34698         it's not used in glibc.
34699         (__coshm1): Likewise.
34700         (__acosh1p): Likewise.
34701         (__sgn): Likewise.
34702
34703         * manual/string.texi (Copying and Concatenation): Add missing
34704         variable in concat example.
34705         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
34706
34707 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34708
34709         [BZ #14103]
34710         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
34711         __builtin_clzl with __builtin_clzll.
34712
34713 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
34714
34715         [BZ #14104]
34716         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
34717         libc_freeres_ptr.
34718
34719 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
34720
34721         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
34722         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
34723         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
34724         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
34725
34726 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
34727
34728         * NEWS: Update ia64 info.
34729
34730 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
34731
34732         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
34733         used as bcopy.
34734
34735 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
34736
34737         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
34738         * sysdeps/unix/syscalls.list (dup3): Likewise.
34739         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
34740         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
34741
34742 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
34743
34744         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
34745         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
34746
34747 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
34748
34749         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
34750         thread pointer.
34751         (TLS_IE): Use mov/add instead of movq/addq to load thread
34752         pointer.
34753         (TLS_GD_PREFIX): New.
34754         (TLS_GD): Use it.
34755
34756 2012-05-11  David S. Miller  <davem@davemloft.net>
34757
34758         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
34759         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
34760         (_FPU_SETCW): Likewise.
34761
34762 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34763
34764         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
34765         is 32-byte aligned.
34766
34767 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
34768
34769         [BZ #11837]
34770         * iconvdata/gb18030.c: Update tables.
34771         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
34772         characters specially.
34773         (BODY for TO_LOOP): Add encoding of missing ranges.
34774
34775 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
34776
34777         [BZ #13673]
34778         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
34779         * sysdeps/mach/hurd/dup3.c: Likewise.
34780         * sysdeps/mach/hurd/readlinkat.c: Likewise.
34781         * sysdeps/powerpc/memmove.c:: Likewise.
34782
34783 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34784
34785         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
34786         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
34787
34788 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
34789
34790         * elf/elf.h (R_X86_64_RELATIVE64): New.
34791         (R_X86_64_NUM): Updated.
34792         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
34793         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
34794         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
34795         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
34796         tst-quad1pie tst-quad2pie
34797         (modules-names): Add tst-quadmod1 tst-quadmod2.
34798         ($(objpfx)tst-quad1): New dependency.
34799         ($(objpfx)tst-quad2): Likewise.
34800         ($(objpfx)tst-quad1pie): Likewise.
34801         ($(objpfx)tst-quad2pie): Likewise.
34802         * sysdeps/x86_64/tst-quad1.c: New file.
34803         * sysdeps/x86_64/tst-quad1pie.c: New file.
34804         * sysdeps/x86_64/tst-quad2.c: Likewise.
34805         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
34806         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
34807         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
34808         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
34809         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
34810
34811 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34812
34813         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
34814         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
34815         * streams/stropts.h (t_scalar_t): Define type.
34816
34817         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
34818         (_PATH_PRESERVE): Set to "/var/lib".
34819         (_PATH_RWHODIR): Set to "/var/spool/rwho".
34820
34821         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
34822         instead of int.
34823
34824         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
34825         if __dir_mkfile succeeded.
34826
34827         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
34828         checking for _hurd_dtablesize.  Unlock it right after having
34829         finished _hurd_dtable allocation.
34830
34831 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34832
34833         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
34834         * sysdeps/mach/hurd/configure: Regenerated.
34835         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
34836         special-casing to...
34837         * sysdeps/gnu/configure.in: ... this new file.
34838         * sysdeps/unix/sysv/linux/configure: Regenerated.
34839         * sysdeps/gnu/configure: New generated file.
34840
34841         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
34842         for Linux: use nsec instead of usec, as well as:
34843         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
34844         members of type struct timespec.
34845         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
34846         New macros.
34847         (struct stat64): Likewise.
34848         (_STATBUF_ST_NSEC): New macro.
34849         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
34850
34851         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
34852         __strtoul_internal rather than strtoul.
34853
34854 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34855
34856         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
34857         and reject them.
34858
34859 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34860
34861         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
34862         which preserves existing values.
34863         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
34864
34865 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34866
34867         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
34868         TIMEOUT values.  Return EINVAL for NFDS values either negative or
34869         greater than FD_SETSIZE.
34870
34871 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34872
34873         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
34874         allocated, call __vm_protect to finish enabling the existing space, and
34875         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
34876         allocate the remainder.
34877
34878 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34879
34880         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
34881         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
34882
34883 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34884
34885         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
34886         sysdeps/mach/hurd/readlink.c.
34887
34888         * posix/tst-sysconf.c (posix_options): Only use
34889         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
34890         _POSIX_SYNCHRONIZED_IO when they are defined
34891         * sysdeps/mach/hurd/bits/posix_opt.h:
34892         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
34893         (_XOPEN_REALTIME): Undefine macro.
34894         (_XOPEN_REALTIME_THREADS): Undefine macro.
34895         (_XOPEN_SHM): Undefine macro.
34896         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
34897         macro to -1.
34898         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
34899         macro to -1.
34900         (_POSIX_ASYNC_IO): Undefine macro.
34901         (_POSIX_PRIORITIZED_IO): Undefine macro.
34902         (_POSIX_SPIN_LOCKS): Define macro to -1.
34903
34904         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
34905         SA_NODEFER, SA_RESETHAND.
34906         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
34907         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
34908         F_DUPFD_CLOEXEC.
34909
34910 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34911
34912         * elf/Makefile (pldd-modules): Define unconditionally.
34913
34914 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34915
34916         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
34917
34918 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34919
34920         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
34921         Return ENOENT when name is empty.
34922         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
34923
34924 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34925
34926         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
34927
34928         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
34929
34930 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34931
34932         Fix mlock in all cases except non-readable pages.
34933         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
34934         instead of VM_PROT_ALL as parameter to __vm_wire function.
34935
34936         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
34937         (__mkdir): When path is `/', just fail with EEXIST.
34938         * sysdeps/mach/hurd/mkdirat.c: Likewise.
34939
34940 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34941
34942         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
34943         <sys/uio.h> (for writev).
34944         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
34945         and <sys/param.h> (for MIN).
34946
34947 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
34948
34949         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
34950         REQUESTED_TIME.  Properly set the remaining time and return EINTR
34951         if interrupted.
34952
34953 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34954
34955         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
34956         Depend on against $(link-rpcuserlibs).
34957
34958 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34959
34960         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
34961         (__libc_stack_end): Do not use attribute_relro.
34962         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
34963         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
34964         to libthread-provided value.
34965         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
34966         attribute_relro.
34967
34968 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34969
34970         [BZ #3748]
34971         * bits/libc-lock.h (__libc_once_get): New macro.
34972         * sysdeps/mach/bits/libc-lock.h: Likewise.
34973         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
34974         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
34975         instead of using implementation details.
34976
34977         * libio/fileops.c: Unconditionally include <kernel-features.h>.
34978         * libio/freopen.c: Likewise.
34979         * libio/freopen64.c: Likewise.
34980         * misc/syslog.c: Likewise.
34981         * nscd/connections.c: Likewise.
34982         * nscd/netgroupcache.c: Likewise.
34983         * sysdeps/posix/getcwd.c: Likewise.
34984
34985 2012-05-10  Roland McGrath  <roland@hack.frob.com>
34986
34987         * math/w_ilogbf.c: Add #include <limits.h>.
34988
34989 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34990
34991         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
34992         path instead of returning without unlocking.
34993
34994         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
34995         immediate-write ioctls.
34996         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
34997
34998 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
34999
35000         * sysdeps/mach/hurd/i386/init-first.c (init): Use
35001         __builtin_frame_address instead of making assumptions about the
35002         location of the return address relative to DATA.  Force early load of
35003         the return address.
35004         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
35005         __builtin_frame_address.
35006
35007         dup3 for GNU Hurd.
35008         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
35009         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
35010         implement dup3 and do some further code clean-ups.
35011         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
35012         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
35013
35014 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35015
35016         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
35017
35018         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
35019         HURD_CRITICAL_END around holding _hurd_dtable_lock.
35020         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
35021         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
35022         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
35023         d->port.lock.
35024
35025         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
35026         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
35027         when handler == SIG_ERR, not when handler != SIG_ERR.
35028
35029 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
35030
35031         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
35032         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
35033         definitions.
35034
35035         accept4 for GNU Hurd.
35036         * include/sys/socket.h (__libc_accept4): New prototype.
35037         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
35038         to implement __libc_accept4.
35039         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
35040         __libc_accept4.
35041         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
35042
35043         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
35044         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
35045         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
35046         signal-defines.sym.
35047
35048 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35049
35050         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
35051
35052 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
35053
35054         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
35055         assertion on O_CLOEXEC flag.
35056         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
35057         * hurd/intern-fd.c: Likewise.
35058         * hurd/port2fd.c: Likewise.
35059
35060 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35061
35062         [BZ #3906]
35063         * bits/in.h (IPV6_PKTINFO): Define new macro.
35064         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
35065
35066 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35067
35068         [BZ #13954]
35069         [BZ #13955]
35070         [BZ #13956]
35071         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
35072         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
35073         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
35074         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
35075         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
35076         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
35077         * math/libm-test.inc (logb_test) : Additional logb tests.
35078
35079 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
35080             Andreas Jaeger  <aj@suse.de>
35081
35082         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
35083         * configure: Regenerated.
35084         * config.h.in (LINK_OBSOLETE_RPC): New macro.
35085         * config.make.in (link-obsolete-rpc): New substituted variable.
35086         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
35087         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
35088         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
35089         (shared-only-routines): Don't set it under [link-obsolete-rpc],
35090         so that libc.a contains the symbols.
35091         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
35092         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
35093         * sunrpc/auth_none.c: Likewise.
35094         * sunrpc/auth_unix.c: Likewise.
35095         * sunrpc/authdes_prot.c: Likewise.
35096         * sunrpc/authuxprot.c: Likewise.
35097         * sunrpc/clnt_gen.c: Likewise.
35098         * sunrpc/clnt_perr.c: Likewise.
35099         * sunrpc/clnt_raw.c: Likewise.
35100         * sunrpc/clnt_simp.c: Likewise.
35101         * sunrpc/clnt_tcp.c: Likewise.
35102         * sunrpc/clnt_udp.c: Likewise.
35103         * sunrpc/clnt_unix.c: Likewise.
35104         * sunrpc/des_crypt.c: Likewise.
35105         * sunrpc/des_soft.c: Likewise.
35106         * sunrpc/get_myaddr.c: Likewise.
35107         * sunrpc/key_call.c: Likewise.
35108         * sunrpc/key_prot.c: Likewise.
35109         * sunrpc/netname.c: Likewise.
35110         * sunrpc/pm_getmaps.c: Likewise.
35111         * sunrpc/pm_getport.c: Likewise.
35112         * sunrpc/pmap_clnt.c: Likewise.
35113         * sunrpc/pmap_prot.c: Likewise.
35114         * sunrpc/pmap_prot2.c: Likewise.
35115         * sunrpc/pmap_rmt.c: Likewise.
35116         * sunrpc/publickey.c: Likewise.
35117         * sunrpc/rpc_cmsg.c: Likewise.
35118         * sunrpc/rpc_common.c: Likewise.
35119         * sunrpc/rpc_dtable.c: Likewise.
35120         * sunrpc/rpc_prot.c: Likewise.
35121         * sunrpc/rpc_thread.c: Likewise.
35122         * sunrpc/rtime.c: Likewise.
35123         * sunrpc/svc.c: Likewise.
35124         * sunrpc/svc_auth.c: Likewise.
35125         * sunrpc/svc_raw.c: Likewise.
35126         * sunrpc/svc_run.c: Likewise.
35127         * sunrpc/svc_tcp.c: Likewise.
35128         * sunrpc/svc_udp.c: Likewise.
35129         * sunrpc/svc_unix.c: Likewise.
35130         * sunrpc/svcauth_des.c: Likewise.
35131         * sunrpc/xcrypt.c: Likewise.
35132         * sunrpc/xdr.c: Likewise.
35133         * sunrpc/xdr_array.c: Likewise.
35134         * sunrpc/xdr_float.c: Likewise.
35135         * sunrpc/xdr_intXX_t.c: Likewise.
35136         * sunrpc/xdr_mem.c: Likewise.
35137         * sunrpc/xdr_rec.c: Likewise.
35138         * sunrpc/xdr_ref.c: Likewise.
35139         * sunrpc/xdr_sizeof.c: Likewise.
35140         * sunrpc/xdr_stdio.c: Likewise.
35141
35142 2012-05-10  Roland McGrath  <roland@hack.frob.com>
35143
35144         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
35145         change.  Update copyright years.
35146
35147 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
35148
35149         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
35150
35151 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
35152             Joseph Myers  <joseph@codesourcery.com>
35153             Paul Pluzhnikov  <ppluzhnikov@google.com>
35154
35155         [BZ #14012]
35156         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
35157         requiring rpcgen.
35158         [cross-compiling] (extra-libs): Likewise.
35159         [cross-compiling] (extra-libs-others): Likewise.
35160         [cross-compiling] (librpcsvc-routines): Likewise.
35161         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
35162         [cross-compiling] (omit-deps): Likewise.
35163         (sunrpc-CPPFLAGS): New variable.
35164         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
35165         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
35166         (cross-rpcgen-objs): New variable.
35167         (extra-objs): Append $(cross-rpcgen-objs).
35168         ($(cross-rpcgen-objs)): New rule.
35169         ($(objpfx)cross-rpcgen): Likewise.
35170         (rpcgen-cmd): Define to use $(built-program-file).  Expand
35171         comment.
35172         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
35173         ($(objpfx)x%.stmp): Likewise.
35174         * sunrpc/proto.h [IS_IN_build] (_): Define.
35175         [IS_IN_build] (_libc_intl_domainname): Likewise.
35176
35177 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
35178
35179         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
35180         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
35181         and R_X86_64_TPOFF64.
35182
35183 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
35184
35185         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
35186         sysdeps/unix/sysv/syscalls.list.
35187         (stime): Likewise.
35188         (utime): Likewise.
35189         * sysdeps/unix/sysv/syscalls.list: Remove file.
35190
35191 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35192
35193         [BZ #3440]
35194         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
35195         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
35196         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
35197         (__LC_IDENTIFICATION): Make these macros useful in #if
35198         expressions, as required by C99.
35199
35200 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
35201
35202         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
35203         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
35204         after this.
35205
35206 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
35207
35208         * stdlib/longlong.h: Updated from GCC.
35209
35210 2012-05-09  Andreas Jaeger  <aj@suse.de>
35211
35212         * nscd/nscd.c (run_modes): Make named enum, reorder so that
35213         default is first entry.
35214         (run_mode): Set type.
35215         (main): Remove informal message about syslog.
35216         (options): Fix typo.
35217
35218         [BZ #14053]
35219         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
35220         to asm.
35221         (lrint): Likewise.
35222         (llrintf): Likewise.
35223         (llrint): Likewise.
35224         (rint): Likewise.
35225         (rintf): Likewise.
35226         (nearbyint): Likewise.
35227         (nearbyintf): Likewise.
35228
35229 2012-05-09  Andreas Jaeger  <aj@suse.de>
35230             Pedro Alves  <palves@redhat.com>
35231
35232         * nscd/nscd.c (run_mode): Use enum.
35233         (main): Cleanup coding style issue.
35234
35235 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
35236             Andreas Jaeger  <aj@suse.de>
35237
35238         * nscd/nscd.c (go_background): Replaced with...
35239         (run_mode): ... this.
35240         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
35241         (options): Add -F --foreground.
35242         (main): Implement it.
35243         (parse_opt): Parse it.
35244
35245 2012-05-09  Andreas Jaeger  <aj@suse.de>
35246
35247         [BZ #14083]
35248         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
35249         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
35250         -Wconversion warning.
35251         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
35252         Likewise.
35253
35254 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
35255
35256         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
35257         == 0.
35258         (LC_ALL): Use macro-int-constant.
35259         (LC_COLLATE): Likewise.
35260         (LC_CTYPE): Likewise.
35261         (LC_MESSAGES): Likewise.
35262         (LC_MONETARY): Likewise.
35263         (LC_NUMERIC): Likewise.
35264         (LC_TIME): Likewise.
35265         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
35266         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
35267         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35268         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
35269         Specify type.
35270         [C99-based standards] (float_t): Expect type.
35271         [C99-based standards] (double_t): Expect type.
35272         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
35273         type.
35274         [C99-based standards] (HUGE_VALL): Likewise.
35275         [C99-based standards] (INFINITY): Likewise.
35276         [C99-based standards] (NAN): Likewise.
35277         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
35278         [C99-based standards] (FP_NAN): Likewise.
35279         [C99-based standards] (FP_NORMAL): Likewise.
35280         [C99-based standards] (FP_SUBNORMAL): Likewise.
35281         [C99-based standards] (FP_ZERO): Likewise.
35282         [C99-based standards] (FP_FAST_FMA): Use
35283         optional-macro-int-constant.  Specify type.  Require == 1.
35284         [C99-based standards] (FP_FAST_FMAF): Likewise.
35285         [C99-based standards] (FP_FAST_FMAL): Likewise.
35286         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
35287         [C99-based standards] (FP_ILOGBNAN): Likewise.
35288         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
35289         Specify type.
35290         [C99-based standards] (MATH_ERREXCEPT): Likewise.
35291         [C99-based standards] (math_errhandling): Specify type.
35292         [ISO99 || ISO11] (signgam): Do not allow.
35293         [non-C99-based standards] (copysignf): Do not allow.
35294         [non-C99-based standards] (exp2f): Likewise.
35295         [non-C99-based standards] (log2f): Likewise.
35296         [non-C99-based standards] (modff): Allow.
35297         [non-C99-based standards] (erff): Do not allow.
35298         [non-C99-based standards] (erfcf): Likewise.
35299         [non-C99-based standards] (gammaf): Likewise.
35300         [non-C99-based standards] (hypotf): Likewise.
35301         [non-C99-based standards] (j0f): Likewise.
35302         [non-C99-based standards] (j1f): Likewise.
35303         [non-C99-based standards] (jnf): Likewise.
35304         [non-C99-based standards] (lgammaf): Likewise.
35305         [non-C99-based standards] (tgammaf): Likewise.
35306         [non-C99-based standards] (y0f): Likewise.
35307         [non-C99-based standards] (y1f): Likewise.
35308         [non-C99-based standards] (ynf): Likewise.
35309         [non-C99-based standards] (isnanf): Likewise.
35310         [non-C99-based standards] (acoshf): Likewise.
35311         [non-C99-based standards] (asinhf): Likewise.
35312         [non-C99-based standards] (atanhf): Likewise.
35313         [non-C99-based standards] (cbrtf): Likewise.
35314         [non-C99-based standards] (expm1f): Likewise.
35315         [non-C99-based standards] (ilogbf): Likewise.
35316         [non-C99-based standards] (log1pf): Likewise.
35317         [non-C99-based standards] (logbf): Likewise.
35318         [non-C99-based standards] (nextafterf): Likewise.
35319         [non-C99-based standards] (remainderf): Likewise.
35320         [non-C99-based standards] (rintf): Likewise.
35321         [non-C99-based standards] (scalbf): Likewise.
35322         [non-C99-based standards] (copysignl): Likewise.
35323         [non-C99-based standards] (exp2l): Likewise.
35324         [non-C99-based standards] (log2l): Likewise.
35325         [non-C99-based standards] (modfl): Allow.
35326         [non-C99-based standards] (erfl): Do not allow.
35327         [non-C99-based standards] (erfcl): Likewise.
35328         [non-C99-based standards] (gammal): Likewise.
35329         [non-C99-based standards] (hypotl): Likewise.
35330         [non-C99-based standards] (j0l): Likewise.
35331         [non-C99-based standards] (j1l): Likewise.
35332         [non-C99-based standards] (jnl): Likewise.
35333         [non-C99-based standards] (lgammal): Likewise.
35334         [non-C99-based standards] (tgammal): Likewise.
35335         [non-C99-based standards] (y0l): Likewise.
35336         [non-C99-based standards] (y1l): Likewise.
35337         [non-C99-based standards] (ynl): Likewise.
35338         [non-C99-based standards] (isnanl): Likewise.
35339         [non-C99-based standards] (acoshl): Likewise.
35340         [non-C99-based standards] (asinhl): Likewise.
35341         [non-C99-based standards] (atanhl): Likewise.
35342         [non-C99-based standards] (cbrtl): Likewise.
35343         [non-C99-based standards] (expm1l): Likewise.
35344         [non-C99-based standards] (ilogbl): Likewise.
35345         [non-C99-based standards] (log1pl): Likewise.
35346         [non-C99-based standards] (logbl): Likewise.
35347         [non-C99-based standards] (nextafterl): Likewise.
35348         [non-C99-based standards] (remainderl): Likewise.
35349         [non-C99-based standards] (rintl): Likewise.
35350         [non-C99-based standards] (scalbl): Likewise.
35351         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35352         [non-C99-based standards] (FP_*): Do not allow.
35353         [C99-based standards] (FP_*): Change to
35354         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
35355         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
35356         allow.
35357         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
35358         (SIG_ERR): Likewise.
35359         [X/Open-based standards] (SIG_HOLD): Likewise.
35360         (SIG_IGN): Likewise.
35361         (SIGABRT): Use macro-int-constant.  Specify type.  Require
35362         positive value.
35363         (SIGFPE): Likewise.
35364         (SIGILL): Likewise.
35365         (SIGINT): Likewise.
35366         (SIGSEGV): Likewise.
35367         (SIGTER): Likewise.
35368         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
35369         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
35370         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
35371         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
35372         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
35373         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
35374         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
35375         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
35376         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
35377         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
35378         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
35379         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
35380         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
35381         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
35382         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
35383         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
35384         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
35385         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
35386         [X/Open-based standards] (SIGTRAP): Likewise.
35387         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
35388         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
35389         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
35390         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
35391         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
35392         allow.
35393
35394 2012-05-08  Ian Wienand  <ianw@vmware.com>
35395
35396         [BZ #14080]
35397         * time/tzset.c (__tzset_parse_tz): Update default rules for
35398         daylight time changes in the Energy Policy Act of 2005.
35399
35400 2012-05-09  Andreas Jaeger  <aj@suse.de>
35401
35402         [BZ #13983]
35403         * elf/ldconfig.c (parse_conf): Change string to make clear that
35404         ldconfig only issued a warning if ld.so.conf does not exist.
35405
35406 2012-05-08  David S. Miller  <davem@davemloft.net>
35407
35408         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
35409         movxtod instead of popping the value on the stack.
35410
35411         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35412
35413 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
35414
35415         * config.h.in: Add HAVE_ARM_PCS_VFP.
35416
35417 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
35418
35419         [BZ #13979]
35420         * include/features.h: Warn if user requests __FORTIFY_SOURCE
35421         checking but the checks are disabled for any reason.
35422
35423 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
35424
35425         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
35426         and ELF64_R_TYPE with ELFW(R_TYPE).
35427
35428 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
35429
35430         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
35431         (ulimit): Likewise.
35432
35433         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
35434         (settimeofday): Likewise.
35435
35436 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
35437
35438         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
35439         a struct th_u2 inside the union, and move tu_block/tu_code into
35440         a new th_u3 union of tu_block/tu_code inside of that.  Move
35441         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
35442         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
35443         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
35444         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
35445         (th_stuff): Change to th_u1.tu_stuff.
35446         (th_data): Define.
35447         (th_msg): Change to th_u1.th_u2.tu_data.
35448
35449 2012-05-07  David S. Miller  <davem@davemloft.net>
35450
35451         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35452
35453         [BZ #14074]
35454         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
35455         (SETUP_PIC_REG): Use it.
35456         (SETUP_PIC_REG_LEAF): Use it.
35457
35458 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
35459
35460         [BZ #13885]
35461         [BZ #13923]
35462         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
35463         USE_AS_EXPM1L.
35464         (EXPL_FINITE): Likewise.
35465         (FLDLOG): Likewise.
35466         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
35467         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
35468         e_expl.S.
35469         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
35470         USE_AS_EXPM1L.
35471         (EXPL_FINITE): Likewise.
35472         (FLDLOG): Likewise.
35473         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
35474         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
35475         e_expl.S.
35476         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
35477         test of -max_value argument for long double.
35478         * sysdeps/i386/fpu/libm-test-ulps: Update.
35479         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
35480
35481 2012-05-06  David S. Miller  <davem@davemloft.net>
35482
35483         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
35484         quad soft-float symbols whose references which are compiler
35485         generated.
35486         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
35487
35488 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
35489
35490         [BZ #13884]
35491         [BZ #13914]
35492         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
35493         USE_AS_EXP10L.
35494         (EXPL_FINITE): Likewise.
35495         (FLDLOG): Likewise.
35496         (c0): Likewise.
35497         (c1): Likewise.
35498         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
35499         Adjust comments for base varying.
35500         (__expl_finite): Change alias to EXPL_FINITE.
35501         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
35502         e_expl.S.
35503         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
35504         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
35505         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
35506         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
35507         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
35508         USE_AS_EXP10L.
35509         (EXPL_FINITE): Likewise.
35510         (FLDLOG): Likewise.
35511         (c0): Likewise.
35512         (c1): Likewise.
35513         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
35514         Adjust comments for base varying.
35515         (__expl_finite): Change alias to EXPL_FINITE.
35516         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
35517         tests for bugs.
35518         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
35519
35520         [BZ #14064]
35521         * math/libm-test.inc (check_float_internal): Correct ulp
35522         calculation for subnormal expected results.
35523
35524 2012-05-06  Andreas Jaeger  <aj@suse.de>
35525
35526         * Makeconfig (+math-flags): New, set to -frounding-math.
35527         (+cflags): Add +math-flags so that all of glibc gets compiled with
35528         it.
35529
35530         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
35531
35532 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
35533
35534         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
35535         Disable one test.
35536
35537         [BZ #13787]
35538         [BZ #13922]
35539         [BZ #14036]
35540         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
35541         (__ieee754_expl): Allow for and saturate large arguments.
35542         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
35543         (u_threshold): Likewise.
35544         (__exp): Call __ieee754_exp before checking for overflow and
35545         underflow.
35546         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
35547         (u_threshold): Likewise.
35548         (__expf): Call __ieee754_expf before checking for overflow and
35549         underflow.
35550         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
35551         (u_threshold): Likewise.
35552         (__expl): Call __ieee754_expl before checking for overflow and
35553         underflow.
35554         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
35555         (__ieee754_expl): Allow for and saturate large arguments.
35556         * math/libm-test.inc (exp_test): Add another test.  Do not allow
35557         missing overflow exception on overflow.
35558         (expm1_test): Do not allow missing overflow exception on overflow.
35559
35560         * sysdeps/i386/fpu/e_expl.c: Move to ...
35561         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
35562         rather than using inline asm.
35563         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
35564         * sysdeps/x86_64/fpu/e_expl.S: Copy from
35565         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
35566
35567         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
35568         (nice): Likewise.
35569         (poll): Likewise.
35570         (signal): Likewise.
35571         (time): Likewise.
35572         (times): Likewise.
35573
35574 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
35575
35576         * sysdeps/unix/syscalls.list (adjtime): Add entry from
35577         sysdeps/unix/common/syscalls.list.
35578         (fchmod): Likewise.
35579         (fchown): Likewise.
35580         (ftruncate): Likewise.
35581         (getrusage): Likewise.
35582         (gettimeofday): Likewise.
35583         (setpgid): Likewise.
35584         (setregid): Likewise.
35585         (setreuid): Likewise.
35586         (sigaction): Likewise.
35587         (truncate): Likewise.
35588         (vhangup): Likewise.
35589         * sysdeps/unix/common/syscalls.list: Remove file.
35590         * sysdeps/unix/bsd/Implies: Don't include unix/common.
35591         * sysdeps/unix/sysv/linux/Implies: Likewise.
35592
35593 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
35594
35595         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
35596         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
35597         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
35598         Moved to ...
35599         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
35600         Here.
35601         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
35602         to ...
35603         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
35604         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
35605         to ...
35606         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
35607         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
35608         to ...
35609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
35610         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
35611         to ...
35612         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
35613         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
35614         to ...
35615         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
35616         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
35617         to ...
35618         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
35619         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
35620         to ...
35621         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
35622         Here.
35623         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
35624         to ...
35625         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
35626         Here.
35627         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
35628         to ...
35629         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
35630         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
35631         Moved to ...
35632         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
35633         Here.
35634         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
35635         to ...
35636         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
35637
35638 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
35639
35640         * sysdeps/unix/common/bits/dirent.h: Remove file.
35641         * sysdeps/unix/common/bits/fcntl.h: Likewise.
35642
35643         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
35644         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
35645         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
35646         * sysdeps/unix/bsd/isatty.c: Likewise.
35647         * sysdeps/unix/bsd/tcdrain.c: Likewise.
35648         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
35649         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
35650
35651 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35652
35653         [BZ #13563]
35654         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
35655         long double comparison inaccuracies.
35656         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
35657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
35658
35659 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
35660
35661         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
35662         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
35663
35664 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
35665
35666         [BZ #14049]
35667         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
35668         nonzero digits before rounding a hex value.
35669         * stdlib/tst-strtod.c (tests): Add another test.
35670
35671 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35672
35673         * sysdeps/s390/fpu/libm-test-ulps: Update.
35674
35675 2012-05-03  Andreas Jaeger  <aj@suse.de>
35676
35677         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
35678         does not get optimized out.
35679         (malloc_opt_barrier): New.
35680
35681 2012-05-03  Andreas Jaeger  <aj@suse.de>
35682             Roland McGrath  <roland@hack.frob.com>
35683
35684         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
35685         intermediate file deletion.
35686         (generated): Add .symlist files.
35687
35688 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
35689
35690         [BZ #13775]
35691         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
35692         Redirect under this condition.
35693         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
35694         [__USE_GNU] (__dprintf_chk): Not under this condition.
35695         [__USE_GNU] (__vdprintf_chk): Likewise.
35696         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
35697         under this condition.
35698         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
35699         [__USE_XOPEN2K8] (dprintf): Define under this condition.
35700         [__USE_XOPEN2K8] (vdprintf): Likewise.
35701         [__USE_GNU] (__dprintf_chk): Not under this condition.
35702         [__USE_GNU] (__vdprintf_chk): Likewise.
35703         [__USE_GNU] (dprintf): Likewise.
35704         [__USE_GNU] (vdprintf): Likewise.
35705
35706 2012-05-03  Roland McGrath  <roland@hack.frob.com>
35707
35708         * elf/Makefile (common-generated): Set this instead of generated for
35709         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
35710         $(all-built-dso)-derived lists.
35711
35712 2012-05-03  Andreas Jaeger  <aj@suse.de>
35713
35714         * sysdeps/i386/fpu/libm-test-ulps: Update.
35715
35716         * FAQ: Removed.
35717         * FAQ.in: Likewise.
35718         * scripts/gen-FAQ.pl: Likewise.
35719         * manual/install.texi (Installation): Point to online location of
35720         FAQ.
35721         * Makefile (files-for-dist): Remove FAQ.
35722         (FAQ): Remove.
35723
35724 2012-05-02  Allan McRae  <allan@archlinux.org>
35725
35726         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
35727         (LDFLAGS-reldepmod5.so): Likewise.
35728         (LDFLAGS-reldep6mod1.so): Likewise.
35729         (LDFLAGS-reldep6mod4.so): Likewise.
35730         (LDFLAGS-reldep8mod3.so): Likewise.
35731         (LDFLAGS-unload4mod1.so): Likewise.
35732         (LDFLAGS-unload4mod2.so): Likewise.
35733         (LDFLAGS-tst-initorder): Likewise.
35734         (LDFLAGS-tst-initordera2.so): Likewise.
35735         (LDFLAGS-tst-initordera3.so): Likewise.
35736         (LDFLAGS-tst-initordera4.so): Likewise.
35737         (LDFLAGS-tst-initorderb2.so): Likewise.
35738         (LDFLAGS-noload): Likewise.
35739         (LDFLAGS-next): Likewise.
35740         (LDFLAGS-order2mod1.so): Likewise.
35741         (LDFLAGS-order2mod2.so): Likewise.
35742         (LDFLAGS-tst-initorder2): Likewise.
35743         (LDFLAGS-tst-initorder2a.so): Likewise.
35744         (LDFLAGS-tst-initorder2b.so): Likewise.
35745         (LDFLAGS-tst-initorder2c.so): Likewise.
35746         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
35747
35748 2012-05-02  David S. Miller  <davem@davemloft.net>
35749
35750         * sysdeps/sparc/fpu/libm-test-ulps: Update.
35751
35752 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
35753
35754         [BZ #14055]
35755         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
35756
35757 2012-05-02  Andreas Jaeger  <aj@suse.de>
35758
35759         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
35760         since we manipulate rounding mode.
35761         (CPPFLAGS-test-idouble.c): Likewise.
35762         (CPPFLAGS-test-ifloat.c): Likewise.
35763         (CFLAGS-test-ldouble.c): Likewise.
35764         (CFLAGS-test-double.c): Likewise.
35765         (CFLAGS-test-float.c): Likewise.
35766         (CFLAGS-test-misc.c): Likewise.
35767         (CFLAGS-test-test-fenv.c): Likewise.
35768
35769 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
35770
35771         [BZ #2550]
35772         [BZ #2570]
35773         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
35774         comparisons to determine direction to adjust input.
35775
35776 2012-05-01  Roland McGrath  <roland@hack.frob.com>
35777
35778         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
35779         output to the target.
35780
35781         * scripts/localplt.awk: New file.
35782         * elf/Makefile ($(objpfx)check-localplt): Target removed.
35783         (check-localplt-CFLAGS): Variable removed.
35784         ($(all-built-dso:=.jmprel)): New static pattern rule.
35785         (generated): Add those targets.
35786         (localplt-built-dso): New variable.
35787         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
35788
35789         * elf/check-localplt.c: File removed.
35790
35791         * scripts/check-execstack.awk: New file.
35792         * elf/Makefile ($(objpfx)check-execstack): Target removed.
35793         (check-execstack-CFLAGS): Variable removed.
35794         ($(objpfx)check-execstack.h): Target removed.
35795         ($(objpfx)execstack-default): New target.
35796         (generated): Add that instead of check-execstack.h.
35797         ($(all-built-dso:=.phdr)): New static pattern rule.
35798         (generated): Add those targets.
35799         * elf/check-execstack.c: File removed.
35800
35801         * scripts/check-textrel.awk: New file.
35802         * elf/Makefile ($(objpfx)check-textrel): Target removed.
35803         (check-textrel-CFLAGS): Variable removed.
35804         (all-built-dso): Use := to define.o
35805         ($(all-built-dso:=.dyn)): New static pattern rule.
35806         (generated): Add those targets.
35807         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
35808         * config.make.in (READELF): New substituted variable.
35809         * elf/check-textrel.c: File removed.
35810
35811 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
35812
35813         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
35814         allow.
35815         * conform/data/ctype.h-data [C99-based standards] (isblank):
35816         Expect function.
35817         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
35818         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
35819         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35820         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
35821         Specify type.  Require positive value.
35822         (EILSEQ): Likewise.
35823         (ERANGE): Likewise.
35824         [ISO || POSIX] (EILSEQ): Do not expect.
35825         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
35826         Specify type.  Require positive value.
35827         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
35828         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
35829         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
35830         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
35831         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
35832         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
35833         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
35834         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
35835         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
35836         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
35837         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
35838         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
35839         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
35840         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
35841         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
35842         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
35843         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
35844         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
35845         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
35846         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
35847         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
35848         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
35849         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
35850         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
35851         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
35852         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
35853         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
35854         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
35855         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
35856         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
35857         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
35858         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
35859         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
35860         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
35861         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
35862         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
35863         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
35864         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
35865         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
35866         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
35867         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
35868         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
35869         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
35870         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
35871         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
35872         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
35873         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
35874         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
35875         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
35876         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
35877         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
35878         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
35879         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
35880         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
35881         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
35882         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
35883         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
35884         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
35885         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
35886         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
35887         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
35888         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
35889         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
35890         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
35891         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
35892         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
35893         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
35894         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
35895         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
35896         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
35897         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
35898         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
35899         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
35900         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
35901         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
35902         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
35903         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
35904         Require >= 2.
35905         (FLT_ROUNDS): Expect as macro, not constant.
35906         (FLT_MANT_DIG): Use macro-int-constant.
35907         (DBL_MANT_DIG): Likewise.
35908         (LDBL_MANT_DIG): Likewise.
35909         (FLT_DIG): Likewise.
35910         (DBL_DIG): Likewise.
35911         (LDBL_DIG): Likewise.
35912         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
35913         (DBL_MIN_EXP): Likewise.
35914         (LDBL_MIN_EXP): Likewise.
35915         (FLT_MAX_EXP): Use macro-int-constant.
35916         (DBL_MAX_EXP): Likewise.
35917         (LDBL_MAX_EXP): Likewise.
35918         (FLT_MAX_10_EXP): Likewise.
35919         (DBL_MAX_10_EXP): Likewise.
35920         (LDBL_MAX_10_EXP): Likewise.
35921         (FLT_MAX): Use macro-constant.
35922         (DBL_MAX): Likewise.
35923         (LDBL_MAX): Likewise.
35924         (FLT_EPSILON): Use macro-constant.  Give upper bound.
35925         (DBL_EPSILON): Likewise.
35926         (LDBL_EPSILON): Likewise.
35927         (FLT_MIN): Likewise.
35928         (DBL_MIN): Likewise.
35929         (LDBL_MIN): Likewise.
35930         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
35931         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
35932         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
35933         [ISO11] (FLT_HAS_SUBNORM): Likewise.
35934         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
35935         [ISO11] (DBL_DECIMAL_DIG): Likewise.
35936         [ISO11] (FLT_DECIMAL_DIG): Likewise.
35937         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
35938         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
35939         [ISO11] (FLT_TRUE_MIN): Likewise.
35940         [ISO11] (LDBL_TRUE_MIN): Likewise.
35941         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35942         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
35943         (SCHAR_MIN): Use macro-int-constant.  Specify type.
35944         (SCHAR_MAX): Likewise.
35945         (UCHAR_MAX): Likewise.
35946         (CHAR_MIN): Likewise.
35947         (CHAR_MAX): Likewise.
35948         (MB_LEN_MAX): Use macro-int-constant.
35949         (SHRT_MIN): Use macro-int-constant.  Specify type.
35950         (SHRT_MAX): Likewise.
35951         (USHRT_MAX): Likewise.
35952         (INT_MAX): Likewise.
35953         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
35954         bound negative.
35955         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35956         bound with "U".
35957         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35958         bound with "L".
35959         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
35960         bound negative.  Suffix upper bound with "L".
35961         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
35962         bound with "UL".
35963         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
35964         Specify type.
35965         [C99-based standards] (LLONG_MAX): Likewise.
35966         [C99-based standards] (ULLONG_MAX): Likewise.
35967         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
35968         == 0.
35969         [ISO11] (max_align_t): Require type.
35970         [ISO || ISO99 || ISO11] (*_t): Do not allow.
35971
35972         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
35973         from $CFLAGS, without defining away __attribute__ calls.
35974         (checknamespace): Use $CFLAGS_namespace.
35975
35976         * conform/conformtest.pl (@keywords): Only include C99 keywords
35977         for standards based on C99 or C11.
35978
35979         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
35980         Disable tests.
35981         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
35982         UNIX98]: Likewise.
35983
35984         * conform/conformtest.pl: Handle "macro-int-constant" and test for
35985         usability of symbols in #if.
35986
35987         * conform/conformtest.pl: If macro or constant types start
35988         "promoted:", expect the symbol to be of the following type
35989         promoted by the integer promotions.
35990
35991         * conform/conformtest.pl: Parse all "constant" and "macro" lines
35992         in one place.  Also handle "macro-constant".
35993
35994         * conform/conformtest.pl: Only accept expected macro values with
35995         "==".  Parse all "macro" lines in one place.
35996         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
35997
35998         * conform/conformtest.pl: Handle braced types on "constant" lines
35999         instead of handling "typed-constant".
36000         * conform/data/signal.h-data: Use "constant" instead of
36001         "typed-constant".
36002
36003         * conform/conformtest.pl: Handle "optional-" at start of lines in
36004         one place rather than duplicating several cases.  Handle each
36005         format of "macro" line with initial "optional-".
36006
36007         * conform/conformtest.pl: Only accept expected constant or
36008         optional-constant values with "==".  Parse all "constant" lines in
36009         one place.  Parse all "optional-constant" lines in one place.
36010         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
36011         * conform/data/fmtmsg.h-data: Likewise.
36012         * conform/data/netinet/in.h-data: Likewise.
36013         * conform/data/tar.h-data: Likewise.
36014         * conform/data/limits.h-data: Use "==" form on "constant" and
36015         "optional-constant" lines.
36016
36017         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
36018         Use -std=c99 for XOPEN2K.
36019         (@knownproblems): Remove.
36020         (newtoken): Don't check %isknown.
36021
36022         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
36023         Do not expect macro.
36024         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
36025         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
36026         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
36027         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
36028         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
36029         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
36030         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
36031         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
36032         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
36033         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
36034         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
36035         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
36036         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
36037         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
36038         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
36039         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
36040         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
36041         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
36042         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
36043         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
36044         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
36045         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
36046         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
36047         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
36048         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
36049         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
36050         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
36051         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
36052         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
36053         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
36054         [XPG3] (acosh): Likewise.
36055         [XPG3] (asinh): Likewise.
36056         [XPG3] (atanh): Likewise.
36057         [XPG3] (cbrt): Likewise.
36058         [XPG3] (expm1): Likewise.
36059         [XPG3] (ilogb): Likewise.
36060         [XPG3] (log1p): Likewise.
36061         [XPG3] (logb): Likewise.
36062         [XPG3] (nextafter): Likewise.
36063         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
36064         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
36065         [XPG3] (remainder): Likewise.
36066         [XPG3] (rint): Likewise.
36067         [XPG3 || XPG4 || UNIX98] (round): Likewise.
36068         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
36069         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
36070         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
36071         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
36072         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
36073         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
36074         [UNIX98 || XOPEN2K] (scalb): Expect.
36075         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
36076         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
36077         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
36078         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
36079         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
36080         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
36081         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
36082         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
36083         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
36084         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
36085         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
36086         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
36087         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
36088         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
36089         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
36090         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
36091         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
36092         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
36093         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
36094         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
36095         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
36096         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
36097         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
36098         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
36099         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
36100         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
36101         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
36102         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
36103         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
36104         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
36105         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
36106         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
36107         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
36108         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
36109         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
36110         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
36111         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
36112         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
36113         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
36114         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
36115         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
36116         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
36117         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
36118         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
36119         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
36120         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
36121         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
36122         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
36123         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
36124         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
36125         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
36126         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
36127         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
36128         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
36129         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
36130         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
36131         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
36132         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
36133         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
36134         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
36135         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
36136         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
36137         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
36138         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
36139         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
36140         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
36141         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
36142         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
36143         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
36144         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
36145         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
36146         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
36147         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
36148         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
36149         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
36150         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
36151         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
36152         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
36153         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
36154         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
36155         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
36156         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
36157         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
36158         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
36159         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
36160         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
36161         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
36162         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
36163         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
36164         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
36165         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
36166         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
36167         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
36168         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
36169         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
36170         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
36171         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
36172         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
36173         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
36174         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
36175         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
36176         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
36177         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
36178         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
36179         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
36180         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
36181         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
36182         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
36183         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
36184         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
36185         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
36186         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
36187         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
36188         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
36189         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
36190         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
36191         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
36192         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
36193         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
36194         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
36195         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
36196         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
36197         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
36198         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
36199         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
36200         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
36201         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
36202         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
36203         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
36204         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
36205         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
36206         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
36207         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
36208         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
36209         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
36210         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
36211         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
36212
36213         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
36214         _XOPEN_SOURCE_EXTENDED for XPG4.
36215
36216         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
36217
36218         * Makeconfig (localtime): Remove variable.
36219         (inst_localtime-file): Likewise.
36220
36221 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
36222
36223         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
36224         Update.
36225         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
36226         Update.
36227         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
36228         Update.
36229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
36230         Update.
36231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
36232         Update.
36233         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
36234         Update.
36235         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
36236         Update.
36237         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
36238         Update.
36239         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36240         Update.
36241
36242 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
36243
36244         [BZ #2550]
36245         [BZ #2570]
36246         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
36247         comparisons to determine direction to adjust input.
36248         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
36249         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
36250         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
36251         Likewise.
36252         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
36253         Likewise.
36254         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
36255         Likewise.
36256         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
36257         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
36258         Likewise.
36259         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
36260         Likewise.
36261         * math/libm-test.inc (nexttoward_test): Add more tests.
36262
36263 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
36264
36265         [BZ #14040]
36266         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
36267         in version GLIBC_2.1, not GLIBC_2.0.
36268         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
36269         Likewise.
36270
36271 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
36272
36273         [BZ #13942]
36274         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
36275         (1 - x) * (1 + x).
36276         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
36277         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
36278         * math/libm-test.inc (acos_test): Add more tests.
36279         (asin_test): Likewise.
36280         * sysdeps/i386/fpu/libm-test-ulps: Update.
36281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
36282
36283         [BZ #14034]
36284         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
36285         of square root.
36286         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
36287         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
36288         * math/libm-test.inc (acos_test_tonearest): New function.
36289         (acos_test_towardzero): Likewise.
36290         (acos_test_downward): Likewise.
36291         (acos_test_upward): Likewise.
36292         (asin_test_tonearest): Likewise.
36293         (asin_test_towardzero): Likewise.
36294         (asin_test_downward): Likewise.
36295         (asin_test_upward): Likewise.
36296         (main): Call the new functions.
36297         * sysdeps/i386/fpu/libm-test-ulps: Update.
36298         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36299
36300         [BZ #13884]
36301         [BZ #13924]
36302         * math/e_exp10.c: Include <float.h>.
36303         (__ieee754_exp10): Handle underflow here rather than multiplying
36304         large negative argument by M_LN10.
36305         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
36306         of __ieee754_expf.
36307         * math/e_exp10l.c: Include <float.h>.
36308         (__ieee754_exp10l): Handle underflow here rather than multiplying
36309         large negative argument by M_LN10l.
36310         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
36311         spurious overflow exception on underflow.
36312
36313 2012-04-29  Marek Polacek  <polacek@redhat.com>
36314
36315         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
36316         (__fortify_function): New macro.
36317         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
36318         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
36319         __extern_always_inline.
36320         * libio/bits/stdio2.h: Likewise.
36321         * libio/bits/stdio.h: Likewise.
36322         * string/string.h: Likewise.
36323         * string/bits/string3.h: Likewise.
36324         * include/stdio.h: Likewise.
36325         * stdlib/bits/stdlib.h: Likewise.
36326         * stdlib/stdlib.h: Likewise.
36327         * rt/bits/mqueue2.h: Likewise.
36328         * rt/mqueue.h: Likewise.
36329         * posix/bits/unistd.h: Likewise.
36330         * posix/unistd.h: Likewise.
36331         * io/bits/poll2.h: Likewise.
36332         * io/bits/fcntl2.h: Likewise.
36333         * io/fcntl.h: Likewise.
36334         * io/sys/poll.h: Likewise.
36335         * misc/bits/syslog.h: Likewise.
36336         * misc/bits/syslog-ldbl.h: Likewise.
36337         * misc/sys/syslog.h: Likewise.
36338         * socket/bits/socket2.h: Likewise.
36339         * socket/sys/socket.h: Likewise.
36340         * debug/tst-chk1.c: Likewise.
36341         * wcsmbs/bits/wchar2.h: Likewise.
36342         * wcsmbs/bits/wchar-ldbl.h: Likewise.
36343         * wcsmbs/wchar.h: Likewise.
36344
36345 2012-04-29  Andreas Jaeger  <aj@suse.de>
36346
36347         * Makerules (tests): Remove enable-check-abi protection.
36348         (check-abi-warn): Remove.
36349         (check-abi-%): Remove check-abi-warn usage.
36350
36351         * configure.in: Remove check-abi configure option.
36352         * configure: Regenerated.
36353         * config.make.in (enable-check-abi): Remove.
36354
36355 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
36356
36357         [BZ #14033]
36358         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
36359         double functions to double *_finite functions.
36360
36361         [BZ #13941]
36362         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
36363         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
36364         LDBL_MIN_EXP.
36365         * stdio-common/Makefile (tests): Add tst-sprintf3.
36366         * stdio-common/tst-sprintf3.c: New file.
36367
36368         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
36369         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
36370
36371 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
36372
36373         * conform/conformtest.pl: Remove duplicate typed-constant
36374         handling.
36375
36376 2012-04-28  David S. Miller  <davem@davemloft.net>
36377
36378         * Makerules (%.abilist): Add vpath on sysdep_dirs.
36379         (check-abi-%): Remove AWK script prerequisite and explicit
36380         abilist directory.
36381         (check-abi): Rewrite to just diff the symlist with the abilist.
36382         (config-tls, config-abi-config): Delete, no longer used.
36383         (update-abi-%): Remove AWK script and explicit abilist directory.
36384         (update-abi): Rewrite to simply compare and conditionally copy the
36385         symlist and the sysdep abilist file.  Remove update-abi-config
36386         checks.
36387         * abilist/ld.abilist: Remove.
36388         * abilist/libBrokenLocale.abilist: Remove.
36389         * abilist/libanl.abilist: Remove.
36390         * abilist/libcrypt.abilist: Remove.
36391         * abilist/libdl.abilist: Remove.
36392         * abilist/librt.abilist: Remove.
36393         * abilist/libthread_db.abilist: Remove.
36394         * abilist/libutil.abilist: Remove.
36395         * scripts/extract-abilist.awk: Remove.
36396         * scripts/merge-abilist.awk: Remove.
36397         * sysdeps/generic/libcidn.abilist: New file.
36398         * sysdeps/generic/libnss_compat.abilist: New file.
36399         * sysdeps/generic/libnss_db.abilist: New file.
36400         * sysdeps/generic/libnss_dns.abilist: New file.
36401         * sysdeps/generic/libnss_files.abilist: New file.
36402         * sysdeps/generic/libnss_hesiod.abilist: New file.
36403         * sysdeps/generic/libnss_nis.abilist: New file.
36404         * sysdeps/generic/libnss_nisplus.abilist: New file.
36405         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
36406         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
36407         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
36408         file.
36409         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
36410         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
36411         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
36412         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
36413         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
36414         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
36415         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
36416         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
36417         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
36418         file.
36419         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
36420         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
36421         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
36422         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
36423         file.
36424         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
36425         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
36426         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
36427         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
36428         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
36429         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
36430         file.
36431         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
36432         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
36433         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
36434         file.
36435         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
36436         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
36437         New file.
36438         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
36439         New file.
36440         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
36441         New file.
36442         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
36443         New file.
36444         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
36445         New file.
36446         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
36447         New file.
36448         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
36449         New file.
36450         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
36451         New file.
36452         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
36453         New file.
36454         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
36455         New file.
36456         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
36457         New file.
36458         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
36459         New file.
36460         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
36461         New file.
36462         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
36463         file.
36464         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
36465         New file.
36466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
36467         New file.
36468         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
36469         file.
36470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
36471         New file.
36472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
36473         New file.
36474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
36475         file.
36476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
36477         New file.
36478         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
36479         New file.
36480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
36481         New file.
36482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
36483         New file.
36484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
36485         New file.
36486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
36487         New file.
36488         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
36489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
36490         file.
36491         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
36492         New file.
36493         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
36494         file.
36495         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
36496         file.
36497         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
36498         file.
36499         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
36500         file.
36501         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
36502         file.
36503         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
36504         New file.
36505         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
36506         file.
36507         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
36508         file.
36509         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
36510         New file.
36511         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
36512         file.
36513         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
36514         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
36515         file.
36516         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
36517         New file.
36518         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
36519         file.
36520         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
36521         file.
36522         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
36523         file.
36524         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
36525         file.
36526         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
36527         file.
36528         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
36529         New file.
36530         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
36531         file.
36532         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
36533         file.
36534         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
36535         New file.
36536         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
36537         file.
36538         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
36539         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
36540         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
36541         file.
36542         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
36543         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
36544         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
36545         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
36546         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
36547         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
36548         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
36549         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
36550         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
36551         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
36552         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
36553         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
36554         file.
36555         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
36556         New file.
36557         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
36558         file.
36559         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
36560         file.
36561         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
36562         file.
36563         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
36564         file.
36565         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
36566         file.
36567         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
36568         New file.
36569         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
36570         New file.
36571         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
36572         file.
36573         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
36574         New file.
36575         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
36576         file.
36577         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
36578         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
36579         file.
36580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
36581         New file.
36582         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
36583         file.
36584         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
36585         file.
36586         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
36587         file.
36588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
36589         file.
36590         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
36591         file.
36592         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
36593         New file.
36594         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
36595         New file.
36596         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
36597         file.
36598         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
36599         New file.
36600         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
36601         file.
36602
36603 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
36604
36605         * conform/conformtest.pl: Fix typo in handling typed-constant from
36606         allow-header.
36607
36608 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
36609
36610         * README: Cut down references to pre-2.6 Linux kernels and
36611         Linuxthreads.  Update lists of configurations in libc and ports
36612         and sort alphabetically.  Say "or newer" with Linux kernel version
36613         requirements.
36614
36615         * config.h.in [IS_IN_build]: Allow compiling without optimization.
36616
36617 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
36618
36619         [BZ #887]
36620         * math/libm-test.inc (logb_test_downward): New test to expose
36621         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
36622         rounding mode.
36623
36624 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
36625
36626         [BZ #14027]
36627         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
36628         to be done.
36629         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
36630         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
36631
36632 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
36633
36634         * sysdeps/unix/i386/brk.S: Remove file.
36635         * sysdeps/unix/i386/dl-brk.S: Likewise.
36636         * sysdeps/unix/i386/pipe.S: Likewise.
36637         * sysdeps/unix/i386/sigreturn.S: Likewise.
36638         * sysdeps/unix/i386/syscall.S: Likewise.
36639         * sysdeps/unix/i386/vfork.S: Likewise.
36640         * sysdeps/unix/i386/wait.S: Likewise.
36641
36642         * sysdeps/unix/common/tcsendbrk.c: Move to ...
36643         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
36644
36645         * configure.in (arm*-none*): Do not allow without
36646         --enable-hacker-mode.
36647         (netbsd*): Remove case setting base_os.
36648         (386bsd*): Likewise.
36649         (freebsd*): Likewise.
36650         (bsdi*): Likewise.
36651         (osf*): Likewise.
36652         (sunos*): Likewise.
36653         (ultrix*): Likewise.
36654         (newsos*): Likewise.
36655         (dynix*): Likewise.
36656         (*bsd*): Likewise.
36657         (sysv*): Likewise.
36658         (isc*): Likewise.
36659         (esix*): Likewise.
36660         (sco*): Likewise.
36661         (minix*): Likewise.
36662         (irix4*): Likewise.
36663         (irix6*): Likewise.
36664         (solaris[2-9]*): Likewise.
36665         (none): Likewise.
36666         * configure: Regenerated.
36667
36668 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36669
36670         [BZ #11521]
36671         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
36672         overflow or cancellation in calculating denominator.
36673         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
36674         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
36675         down expression to avoid unexpected rounding in newer GCCs.
36676         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
36677
36678 2012-04-26  David S. Miller  <davem@davemloft.net>
36679
36680         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
36681         long-double compat symbols.
36682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
36683         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
36684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
36685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
36686         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
36687         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
36688         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
36689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
36690         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
36691         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
36692         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
36693         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
36694         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
36695
36696 2012-04-25  David S. Miller  <davem@davemloft.net>
36697
36698         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
36699         HWCAP_* values only after the memory barriers have been defined.
36700         (atomic_full_barrier): Define.
36701         (atomic_read_barrier): Define.
36702         (atomic_write_barrier): Define.
36703
36704 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
36705
36706         * shlib-versions: Add libgcc_s version information.
36707         * sysdeps/generic/libgcc_s.h: Remove.
36708         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
36709         libgcc_s.h.
36710         * sysdeps/gnu/unwind-resume.c: Likewise.
36711         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
36712
36713 2012-04-25  David S. Miller  <davem@davemloft.net>
36714
36715         * sysdeps/unix/sparc/brk.S: Delete.
36716         * sysdeps/unix/sparc/dl-brk.S: Delete.
36717         * sysdeps/unix/sparc/pipe.S: Delete.
36718         * sysdeps/unix/sparc/sysdep.S: Delete.
36719         * sysdeps/unix/sparc/sysdep.h: Delete.
36720         * sysdeps/unix/sparc/vfork.S: Delete.
36721         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG)
36722         (SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
36723         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO)
36724         (ret_ERRVAL, r0, r1, MOVE): Define.
36725         (JUMPTARGET): Remove.
36726         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
36727         sysdeps/unix/sparc/sysdep.h
36728         (ENTRY, END): Remove.
36729         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
36730
36731 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
36732
36733         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
36734         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
36735         -DIS_IN_build.
36736
36737         * timezone/README: Update upstream location and email address for
36738         tzcode and tzdata.
36739         * timezone/zdump.c: Update from tzcode 2012b.
36740         * timezone/zic.c: Likewise.
36741
36742         * configure.in (libc_cv_as_needed): Remove test.
36743         * configure: Regenerated.
36744         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
36745         conditional definition.
36746         [$(have-as-needed) != yes] (no-as-needed): Likewise.
36747         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
36748         * config.make.in (have-as-needed): Remove variable.
36749
36750 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
36751             Paul Pluzhnikov  <ppluzhnikov@google.com>
36752
36753         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
36754         strings correctly.
36755
36756 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
36757
36758         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
36759         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
36760         * sysdeps/sh/strlen.S: Likewise.
36761
36762 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
36763
36764         * sysdeps/unix/fork.S: Remove file.
36765         * sysdeps/unix/i386/fork.S: Likewise.
36766         * sysdeps/unix/sparc/fork.S: Likewise.
36767
36768         * sysdeps/unix/system.c: Remove file.
36769         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
36770
36771         * sysdeps/unix/getegid.S: Remove file.
36772         * sysdeps/unix/geteuid.S: Likewise.
36773
36774 2012-04-24  Roland McGrath  <roland@hack.frob.com>
36775
36776         * scripts/check-localplt.awk: New file.
36777         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
36778         of diff.
36779         * scripts/data/localplt-generic.data: Add a comment.
36780
36781         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
36782         NODE when __dir_mkfile failed.
36783         * sysdeps/mach/hurd/symlinkat.c: Likewise.
36784         Reported by Ludovic Courtès <ludo@gnu.org>.
36785
36786 2012-04-24  Andreas Jaeger  <aj@suse.de>
36787
36788         * Makerules (common-clean): Also remove gen-as-const-headers
36789         files.
36790
36791 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
36792
36793         * Makerules (native-compile): Do not change working directory for
36794         build.  Use $(OUTPUT_OPTION) in command.
36795         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
36796
36797 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
36798
36799         [BZ #13886]
36800         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
36801         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
36802         * math/libm-test.inc (floor_test): Add more tests.
36803         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
36804
36805 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
36806
36807         * sysdeps/unix/getdents.c: Remove file.
36808         * sysdeps/unix/sysv/getdents.c: Likewise.
36809         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
36810
36811         * sysdeps/unix/syscalls.list (madvise): Add syscall from
36812         sysdeps/unix/mman/syscalls.list.
36813         (mmap): Likewise.
36814         (mprotect): Likewise.
36815         (msync): Likewise.
36816         (munmap): Likewise.
36817         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
36818         * sysdeps/unix/mman/syscalls.list: Remove.
36819         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
36820
36821         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
36822         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
36823         * configure: Regenerated.
36824         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
36825         $(libgcc_s_suffix).
36826         * config.make.in (libgcc_s_suffix): Remove variable.
36827
36828 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
36829
36830         * sysdeps/unix/sysv/gethostname.c: Move to ...
36831         * sysdeps/posix/gethostname.c: ... here.
36832
36833         * sysdeps/unix/execve.S: Remove file.
36834
36835         * sysdeps/unix/_exit.S: Remove file.
36836
36837 2012-04-23  Andreas Jaeger  <aj@suse.de>
36838
36839         [BZ #13739]
36840         * manual/Makefile: Remove make dist support, there's no
36841         need for a stand-alone documentation tar ball.
36842         (TEXI2DVI): Define always, it's not in Makeconfig.
36843         (dist): Removed.
36844         (tar-it): Removed.
36845         (edition): Removed.
36846         (glibc-doc-$(edition).tar): Removed
36847         (%.Z): Removed.
36848         (%.gz): Removed.
36849         (%.uu): Removed.
36850         (ETAGS): Remove, it's in Makeconfig.
36851         (move-if-change): Remove, it's in Makeconfig.
36852
36853 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
36854
36855         [BZ #13970]
36856         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
36857         (strtod, strtof, strtold, strtol, strtoul, strtoq)
36858         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
36859         (strtod_l, strtof_l, strtold_l): Remove __wur.
36860         It is not necessarily an error to ignore strtol's return value.
36861         One can reliably look at the stored endptr to decide whether
36862         the number had valid syntax.
36863
36864 2012-04-21  Andreas Jaeger  <aj@suse.de>
36865
36866         [BZ #13739]
36867         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
36868
36869 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
36870
36871         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
36872         * sysdeps/unix/sysv/Versions: Remove file.
36873
36874 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
36875
36876         [BZ #13927]
36877         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
36878
36879 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
36880
36881         [BZ #7064]
36882         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
36883         version from __vm86.
36884
36885 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
36886
36887         * sysdeps/unix/common/lxstat.c: Remove file.
36888         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
36889
36890         * sysdeps/unix/sysv/Makefile: Remove file.
36891
36892         * sysdeps/unix/sysv/direct.h: Remove file.
36893
36894         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
36895         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
36896         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
36897         * sysdeps/unix/sysv/bits/signum.h: Likewise.
36898         * sysdeps/unix/sysv/bits/stat.h: Likewise.
36899         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
36900         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
36901
36902         * sysdeps/unix/sysv/setrlimit.c: Remove file.
36903
36904         * sysdeps/unix/xmknod.c: Remove file.
36905         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
36906
36907         * sysdeps/unix/sysv/settimeofday.c: Remove file.
36908
36909         * sysdeps/unix/sysv/i386/time.S: Remove file.
36910
36911         * sysdeps/unix/fxstat.c: Remove file.
36912         * sysdeps/unix/xstat.c: Likewise.
36913         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
36914
36915         * sysdeps/unix/sysv/sigaction.c: Remove file.
36916
36917         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
36918         (sysdep_headers): Remove variable.
36919         [termio.h not in sysdep_headers] (generated): Likewise.
36920         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
36921         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
36922         * sysdeps/unix/sysv/tcdrain.c: Likewise.
36923         * sysdeps/unix/sysv/tcflow.c: Likewise.
36924         * sysdeps/unix/sysv/tcflush.c: Likewise.
36925         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
36926         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
36927         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
36928         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
36929         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
36930
36931         * sysdeps/unix/siglist.c: Remove file.
36932
36933         * sysdeps/unix/getppid.S: Remove file.
36934
36935         * sysdeps/unix/mkdir.c: Remove file.
36936         * sysdeps/unix/rmdir.c: Likewise.
36937
36938 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
36939
36940         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
36941         ERR_MAX value.
36942         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
36943         errlist-compat value.
36944
36945 2012-04-18  David S. Miller  <davem@davemloft.net>
36946
36947         * sysdeps/generic/memcopy.h (reg_char): Delete.
36948         * debug/strcat_chk.c: Use char, not reg_char.
36949         * debug/strcpy_chk.c: Likewise.
36950         * debug/strncat_chk.c: Likewise.
36951         * debug/strncpy_chk.c: Likewise.
36952         * string/memchr.c: Likewise.
36953         * string/memrchr.c: Likewise.
36954         * string/rawmemchr.c: Likewise.
36955         * string/strcat.c: Likewise.
36956         * string/strchr.c: Likewise.
36957         * string/strchrnul.c: Likewise.
36958         * string/strcmp.c: Likewise.
36959         * string/strcpy.c: Likewise.
36960         * string/strncat.c: Likewise.
36961         * string/strncmp.c: Likewise.
36962         * string/strncpy.c: Likewise.
36963
36964 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36965
36966         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
36967         __builtin_memcopy is called when src and dest ranges are known to not
36968         overlap.
36969
36970 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36971
36972         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
36973         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
36974         fwd_align_merge macro call.
36975         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
36976         bwd_align_merge macro call.
36977         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
36978
36979 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
36980
36981         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
36982         bwd_align_merge macros.
36983         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
36984         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
36985         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
36986
36987 2012-04-18  David S. Miller  <davem@davemloft.net>
36988
36989         * sysdeps/sparc/sparc64/memcopy.h: Delete.
36990
36991 2012-04-18  Andreas Jaeger  <aj@suse.de>
36992
36993         [BZ# 6794]
36994         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
36995         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
36996         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
36997
36998         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
36999         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
37000         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
37001
37002         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
37003         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
37004         Adjust for changed ldbl-128 files.
37005
37006         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
37007         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
37008         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
37009
37010 2012-04-17  David S. Miller  <davem@davemloft.net>
37011
37012         * sysdeps/sparc/sparc32/memcopy.h: Delete.
37013
37014 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
37015
37016         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
37017         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
37018         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
37019         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
37020         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
37021         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
37022
37023 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
37024
37025         [BZ #6794]
37026         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
37027         * math/libm-test.inc: Add ilogb errno and exception tests.
37028         * math/w_ilogb.c: New file: ilogb wrapper.
37029         * math/w_ilogbf.c: New file: ilogbf wrapper.
37030         * math/w_ilogbl.c: New file: ilogbl wrapper.
37031         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
37032         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
37033         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
37034         exception being thrown with 0.0 as argument.
37035         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
37036         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
37037         exception being thrown with 0.0 as argument.
37038         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
37039         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
37040         exception being thrown with 0.0 as argument.
37041         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
37042         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
37043         exception being thrown with 0.0 as argument.
37044         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
37045         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
37046         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
37047         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
37048         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
37049         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
37050         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
37051         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
37052         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
37053
37054 2012-04-17  Petr Baudis  <pasky@ucw.cz>
37055
37056         * include/sys/uio.h: Change __vector to __iovec to avoid clash
37057         with altivec.
37058
37059 2012-04-16  Marek Polacek  <polacek@redhat.com>
37060
37061         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
37062
37063 2012-04-16  Marek Polacek  <polacek@redhat.com>
37064
37065         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
37066         operands of fdivp instruction.
37067
37068 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
37069
37070         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
37071         * elf/tst-auditmod3b.c: Likewise.
37072         * elf/tst-auditmod4b.c: Likewise.
37073         * elf/tst-auditmod5b.c: Likewise.
37074         * elf/tst-auditmod6b.c: Likewise.
37075         * elf/tst-auditmod6c.c: Likewise.
37076         * elf/tst-auditmod7b.c: Likewise.
37077         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
37078         * sysdeps/x86_64/preconfigure.in: Likewise.
37079         * sysdeps/x86_64/preconfigure: Regenerated.
37080
37081 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
37082
37083         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
37084         __ILP32__.
37085
37086 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
37087
37088         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
37089         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
37090
37091 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
37092
37093         [BZ #13973]
37094         * locale/iso-639.def: Fix gl language name. Spotted by
37095         Yaron Shahrabani.
37096
37097 2012-04-12  Roland McGrath  <roland@hack.frob.com>
37098
37099         [BZ #2074]
37100         * libio/libio.h (__io_write_fn): Update comment.
37101
37102 2012-04-12  Petr Baudis  <pasky@ucw.cz>
37103
37104         [BZ #2074]
37105         * stdio.texi (Hook Functions): The user provided writer function
37106         is not allowed to return -1.
37107
37108 2012-04-11  David S. Miller  <davem@davemloft.net>
37109
37110         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37111
37112 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
37113
37114         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
37115         Add a leading slash to rtkaio.
37116
37117 2012-04-11  Jim Meyering  <meyering@redhat.com>
37118
37119         [BZ #11959]
37120         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
37121         It is not necessarily an error to ignore fwrite's return
37122         value.  One can reliably use ferror to test for errors after
37123         the fact.
37124
37125 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
37126
37127         * bits/types.h (__snseconds_t): New type.
37128         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
37129
37130         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
37131         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
37132         (__SNSECONDS_T_TYPE): Likewise.
37133         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
37134         (__SNSECONDS_T_TYPE): Likewise.
37135         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
37136         (__SNSECONDS_T_TYPE): Likewise.
37137
37138 2012-04-10  Andreas Jaeger  <aj@suse.de>
37139
37140         [BZ #2636]
37141         * manual/time.texi (Processor Time): Return type of times is
37142         elapsed real time since an arbitrary point in the past.
37143         (CPU Time): Move CLK_TCK from here...
37144         (Processor Time): ...to here.  Correct description.
37145         * manual/conf.texi (Constants for Sysconf): Correct description of
37146         _SC_CLK_TCK.
37147
37148 2012-04-10  David S. Miller  <davem@davemloft.net>
37149
37150         [BZ #13967]
37151         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
37152         where the is a gap between DT_REL(A) and DT_JMPREL.
37153
37154 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
37155
37156         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
37157         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
37158         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
37159
37160 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
37161
37162         * elf/dl-support.c (_dl_inhibit_cache): New variable.
37163         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
37164         (dl_main): Handle --inhibit-cache.
37165         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
37166         _dl_inhibit_cache.
37167         * elf/dl-load.c (_dl_map_object): Use it.
37168         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
37169
37170 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
37171
37172         [BZ #13872]
37173         * sysdeps/i386/fpu/e_powl.S (p78): New object.
37174         (__ieee754_powl): Saturate large exponents rather than testing for
37175         overflow of y*log2(x).
37176         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
37177         * math/libm-test.inc (pow_test): Do not permit spurious overflow
37178         exceptions.
37179
37180         [BZ #11521]
37181         * math/s_ctan.c: Include <float.h>.
37182         (__ctan): Avoid internal overflow or cancellation in calculating
37183         denominator.
37184         * math/s_ctanf.c: Likewise.
37185         * math/s_ctanl.c: Likewise.
37186         * math/s_ctanh.c: Likewise.
37187         * math/s_ctanhf.c: Likewise.
37188         * math/s_ctanhl.c: Likewise.
37189         * math/libm-test.inc (ctan_test): Add more tests.
37190         (ctanh_test): Likewise.
37191         * sysdeps/i386/fpu/libm-test-ulps: Update.
37192         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37193
37194 2012-04-09  Andreas Jaeger  <aj@suse.de>
37195
37196         [BZ #6894]
37197         * manual/filesys.texi (Directory Entries): Mention that d_namlen
37198         is an optional BSD extension.
37199
37200         [BZ #10254]
37201         * manual/stdio.texi (Opening Streams): Document additional fopen
37202         parameters.
37203
37204 2012-04-09  Roland McGrath  <roland@hack.frob.com>
37205
37206         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
37207         %eax without telling the compiler.
37208
37209 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
37210
37211         [BZ # 13963]
37212         * manual/install.texi: Use sourceware.org.
37213
37214 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
37215
37216         [BZ #13873]
37217         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
37218         (__ieee754_pow): Generate overflow and underflow using huge*huge
37219         and tiny*tiny rather than just returning constant infinity or zero
37220         for large exponents.
37221         * math/libm-test.inc (pow_test): Require overflow exceptions for
37222         applicable cases of large exponents.
37223
37224         [BZ #706]
37225         * sysdeps/i386/fpu/e_pow.S (p10): New object.
37226         (__ieee754_pow): Use iterative multiplication algorithm only for
37227         integer exponents with absolute value below 1024.  Check for odd
37228         integer exponents when using algorithm for real exponents.
37229         * math/libm-test.inc (pow_test): Add more tests.
37230         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
37231
37232 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
37233
37234         [BZ #13705]
37235         * math/libm-test.inc (exp_test): Do not allow overflow exception
37236         on underflow test.
37237
37238 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
37239
37240         [BZ #13705]
37241         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
37242         instead of __kernel_standard_f.
37243
37244 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
37245
37246         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
37247         * sysdeps/x86_64/memset_chk.S: Likewise.
37248
37249 2012-04-08  Andreas Jaeger  <aj@suse.de>
37250
37251         [BZ #10153]
37252         * manual/startup.texi (Environment Access): Describe return value
37253         for putenv and setenv.
37254
37255         [BZ #6895]
37256         * manual/filesys.texi (Directory Entries): Add description for
37257         DT_LNK.
37258
37259         [BZ #6890]
37260         * manual/filesys.texi (Directory Entries): Clarify that it's file
37261         system not operating system in the description of DT_UNKNOWN.
37262
37263         [BZ #6578]
37264         * manual/syslog.texi (closelog): Fix reference, it's openlog.
37265
37266 2012-04-08  Stephen Compall  <s11@member.fsf.org>
37267
37268         [BZ #6649]
37269         * manual/llio.texi (Opening and Closing Files): Add cross
37270         reference to explain mode argument.
37271
37272 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
37273
37274         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
37275         * sysdeps/x86_64/memset_chk.S: Likewise.
37276
37277 2012-04-07  David S. Miller  <davem@davemloft.net>
37278
37279         * elf/elf.h (R_SPARC_WDISP10): Define.
37280         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
37281         R_SPARC_SIZE32.
37282         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
37283         R_SPARC_SIZE64 and R_SPARC_H34.
37284
37285 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
37286
37287         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
37288         conditions and remove no longer applicable assertion.
37289
37290 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
37291
37292         * bits/byteswap.h: Include <features.h>.
37293         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
37294         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
37295
37296 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
37297
37298         * bits/byteswap.h (__bswap_16): Removed.
37299         Include <bits/byteswap-16.h> to get __bswap_16.
37300         * sysdeps/i386/bits/byteswap.h: Likewise.
37301         * sysdeps/s390/bits/byteswap.h: Likewise.
37302         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37303         * bits/byteswap-16.h: New file.
37304         * sysdeps/i386/bits/byteswap-16.h: Likewise.
37305         * sysdeps/s390/bits/byteswap-16.h: Likewise.
37306         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
37307         * string/Makefile (headers): Add bits/byteswap-16.h.
37308
37309 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
37310
37311         [BZ #13895]
37312         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
37313         extra indirection.
37314         * nss/Makefile (tests-static, tests): Add tst-nss-static.
37315         * nss/tst-nss-static.c: New.
37316
37317 2012-04-06  Robert Millan  <rmh@gnu.org>
37318
37319         [BZ #6486]
37320         * manual/llio.texi (File Position Primitive): lseek
37321         refers to WHENCE when it really means OFFSET.
37322
37323 2012-04-06  Andreas Jaeger  <aj@suse.de>
37324
37325         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
37326         strncmp declarations.
37327
37328         * abilist/libc.abilist: Add __poll and __ppoll.
37329
37330 2012-04-05  David S. Miller  <davem@davemloft.net>
37331
37332         * scripts/check-local-headers.sh: Accept a host triplet in the
37333         path matched by the exclude regexp.
37334
37335         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
37336         definition.
37337         * sysdeps/powerpc/powerpc32/dl-machine.h
37338         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
37339         * sysdeps/s390/s390-32/dl-machine.h
37340         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
37341         * sysdeps/sparc/sparc32/dl-machine.h
37342         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
37343         * sysdeps/sparc/sparc64/dl-machine.h
37344         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
37345
37346         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
37347         lazy binding.
37348         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
37349         undefined symbol errors.
37350
37351         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
37352         DT_NEEDED entries.
37353
37354 2012-04-05  Michael Matz  <matz@suse.de>
37355
37356         [BZ #13592]
37357         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
37358
37359 2012-04-05  Andreas Jaeger  <aj@suse.de>
37360
37361         [BZ #13908]
37362         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
37363         comment.
37364
37365 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37366
37367         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
37368         which ROUND is no valid rounding mode.
37369
37370 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37371
37372         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
37373         read again.
37374         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
37375
37376 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37377
37378         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
37379         an exception using FPU order intentionally.
37380
37381 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
37382
37383         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
37384         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
37385         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
37386         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
37387
37388 2012-04-05  Simon Josefsson  <simon@josefsson.org>
37389
37390         [BZ #12340]
37391         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
37392         EINVAL when BUFLEN is too smal.
37393
37394 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
37395
37396         [BZ #13553]
37397         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
37398         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
37399
37400 2012-04-03  Andreas Jaeger  <aj@suse.de>
37401
37402         [BZ #13938]
37403         * manual/setjmp.texi (System V contexts): Fix sentence.
37404
37405         [BZ #13926]
37406         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
37407         New macro for this case.
37408         [!__GNUC__] (__bswap_64): New inline function for this case.
37409         * sysdeps/x86_64/bits/byteswap.h: Likewise.
37410         * bits/byteswap.h: Likewise.
37411         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
37412         ull, guard with __GLIBC_HAVE_LONG_LONG.
37413
37414         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
37415         __GLIBC_HAVE_LONG_LONG.
37416
37417         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
37418         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
37419
37420 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
37421
37422         [BZ #13691]
37423         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
37424         inptr and inend, rather than using last_ch.
37425
37426 2012-04-02  David S. Miller  <davem@davemloft.net>
37427
37428         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
37429         * stdio-common/printf-parse.h (read_int): Change return type to
37430         'int', return -1 on INT_MAX overflow.
37431         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
37432         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
37433         overflows INT_MAX.  Check for overflow of in-format-string precision
37434         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
37435         SIZE_MAX not INT_MAX for integer overflow test.
37436         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
37437         skip the construct in the format string but do not record anything.
37438         * stdio-common/bug22.c: Adjust to test both width/prevision
37439         INT_MAX overflow as well as total length INT_MAX overflow.  Check
37440         explicitly for proper errno values.
37441
37442 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
37443
37444         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
37445         CHAR_MAX.
37446         * string/test-strcmp.c [! WIDE]: Likewise.
37447         * time/tst-mktime2.c: Likewise for INT_MAX.
37448         * string/test-string.h: #include <sys/param.h> for MIN.
37449
37450         * csu/init-first.c (__libc_init_first): Call __ctype_init.
37451         * sysdeps/i386/init-first.c (init): Likewise.
37452         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
37453         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
37454         * sysdeps/sh/init-first.c (init): Likewise.
37455
37456 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
37457
37458         * po/ru.po: Update from translation team.
37459         * po/vi.po: Likewise.
37460
37461 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
37462
37463         * resolv/nss_dns/dns-host.c: Merge copyright years.
37464
37465 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
37466
37467         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
37468         Optimize memcpy with prefetch if
37469         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
37470         src, dst pointers have unequal 16 byte alignments.
37471
37472 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
37473
37474         [BZ #13928]
37475         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
37476         from a CNAME entry and return the minimum ttl for the query.
37477         (gaih_getanswer_slice): Likewise.
37478
37479 2012-03-30  Jeff Law  <law@redhat.com>
37480
37481         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
37482         due to long keys.
37483         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
37484         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
37485
37486         * resolv/nss_dns/dns-host.c: Update copyright year.
37487
37488 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
37489
37490         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
37491         requests to save a system call.  Fix check that all bytes are sent.
37492
37493         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
37494         comments for sendmmsg.
37495
37496 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
37497
37498         [BZ #13691]
37499         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
37500         with only 1 character between 0x0041 and 0x01b0.
37501         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
37502         * wcsmbs/tst-mbsnrtowcs.c: New file.
37503
37504 2012-03-29  David S. Miller  <davem@davemloft.net>
37505
37506         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
37507         small copies by hand.
37508
37509 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
37510
37511         [BZ #13761]
37512         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss)
37513         (_nss_compat_initgroups_dyn): Fall back to malloc/free for large
37514         group memberships.
37515
37516 2012-03-28  David S. Miller  <davem@davemloft.net>
37517
37518         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
37519         that branches into memcpy.
37520         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
37521         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
37522         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
37523         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
37524         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
37525         bits.
37526         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
37527         implementation too.
37528         * sysdeps/sparc/mempcpy.S: New file.
37529
37530         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
37531         the IFUNC routine in the libc case.
37532         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
37533
37534         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
37535         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
37536         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
37537         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
37538         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
37539         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
37540         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
37541         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
37542
37543         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
37544         loop to 256 bytes instead of 64 bytes and fix test signedness.
37545
37546         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
37547         * sysdeps/sparc/sparc32/Makefile: rather than here...
37548         * sysdeps/sparc/sparc64/Makefile: and here.
37549
37550 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
37551
37552         * malloc/mallocbug.c: Avoid warnings about unused variables.
37553
37554 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
37555
37556         [BZ #13760]
37557         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
37558         in the right place. Discard and retry query if response is
37559         larger than input buffer size.
37560
37561 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
37562
37563         [BZ #369]
37564         [BZ #2678]
37565         [BZ #3866]
37566         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
37567         x for large integer exponent.
37568         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
37569         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
37570         sign of result as needed afterwards.
37571         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
37572         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
37573         result for underflowing pow the same as for overflow.
37574         (__kernel_standard_l): Handle powl overflow and underflow here
37575         rather than calling __kernel_standard.
37576         * math/libm-test.inc (pow_test): Add more tests.
37577
37578         [BZ #3868]
37579         [BZ #13879]
37580         [BZ #13910]
37581         [BZ #13911]
37582         [BZ #13912]
37583         [BZ #13913]
37584         [BZ #13915]
37585         [BZ #13916]
37586         [BZ #13917]
37587         [BZ #13918]
37588         [BZ #13919]
37589         [BZ #13920]
37590         [BZ #13921]
37591         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
37592         * sysdeps/ieee754/k_standard.c: Include <float.h>.
37593         (__kernel_standard_l): New function.
37594         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
37595         __kernel_standard.
37596         * math/w_acosl.c (__acosl): Likewise.
37597         * math/w_asinl.c (__asinl): Likewise.
37598         * math/w_atan2l.c (__atan2l): Likewise.
37599         * math/w_atanhl.c (__atanhl): Likewise.
37600         * math/w_coshl.c (__coshl): Likewise.
37601         * math/w_exp10l.c (__exp10l): Likewise.
37602         * math/w_exp2l.c (__exp2l): Likewise.
37603         * math/w_fmodl.c (__fmodl): Likewise.
37604         * math/w_hypotl.c (__hypotl): Likewise.
37605         * math/w_j0l.c (__j0l, __y0l): Likewise.
37606         * math/w_j1l.c (__j1l, __y1l): Likewise.
37607         * math/w_jnl.c (__jnl, __ynl): Likewise.
37608         * math/w_lgammal.c (__lgammal): Likewise.
37609         * math/w_log10l.c (__log10l): Likewise.
37610         * math/w_log2l.c (__log2l): Likewise.
37611         * math/w_logl.c (__logl): Likewise.
37612         * math/w_powl.c (__powl): Likewise.
37613         * math/w_remainderl.c (__remainderl): Likewise.
37614         * math/w_scalbl.c (sysv_scalbl): Likewise.
37615         * math/w_sinhl.c (__sinhl): Likewise.
37616         * math/w_sqrtl.c (__sqrtl): Likewise.
37617         * math/w_tgammal.c (__tgammal): Likewise.
37618         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
37619         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
37620         * math/libm-test.inc (acos_test): Add more tests.
37621         (acosh_test): Likewise.
37622         (asin_test): Likewise.
37623         (atanh_test): Likewise.
37624         (exp_test): Likewise.
37625         (exp10_test): Likewise.
37626         (exp2_test): Likewise.
37627         (expm1_test): Likewise.
37628         (lgamma_test): Likewise.
37629         (log_test): Likewise.
37630         (log10_test): Likewise.
37631         (log1p_test): Likewise.
37632         (log2_test): Likewise.
37633         (pow_test): Do not allow some spurious overflow exceptions.
37634         (sqrt_test): Add more tests.
37635         (tgamma_test): Likewise.
37636         (y0_test): Likewise.
37637         (y1_test): Likewise.
37638         (yn_test): Likewise.
37639
37640 2012-03-27  Anton Blanchard  <anton@samba.org>
37641
37642         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
37643         MAP_HUGETLB.
37644         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
37645         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
37646         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
37647
37648 2012-03-27  David S. Miller  <davem@davemloft.net>
37649
37650         * conform/Makefile: Run run-conformtest.sh using $(BASH).
37651
37652         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
37653         have-as-vis3 check.
37654
37655 2012-03-27  Andreas Jaeger  <aj@suse.de>
37656
37657         * sysdeps/x86_64/elf/configure.in: Moved to ...
37658         * sysdeps/x86_64/configure.in: ... here.
37659         * sysdeps/x86_64/elf/start.S: Moved to ...
37660         * sysdeps/x86_64/start.S: ... here.
37661         * sysdeps/x86_64/elf/configure: Delete.
37662
37663         * sysdeps/x86_64/configure.in: Merge contents from
37664         sysdeps/i386/configure.in (without i686 check).
37665
37666         * sysdeps/i386/elf/Versions: Merge into ...
37667         * sysdeps/i386/Versions: ... this.
37668         * sysdeps/i386/elf/Versions: Delete file.
37669         * sysdeps/i386/elf/start.S: Moved to ...
37670         * sysdeps/i386/start.S: ...here.
37671         * sysdeps/i386/elf/configure.in: Merge into...
37672         * sysdeps/i386/configure.in: ...here.
37673         * sysdeps/i386/elf/configure.in: Delete file.
37674         * sysdeps/i386/elf/configure: Delete file.
37675
37676         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
37677         * debug/backtracesyms.c: ... here.
37678         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
37679         * debug/backtracesymsfd.c: ... here.
37680         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
37681         * sysdeps/generic/ifunc-sel.h: ... here.
37682
37683         * sysdeps/unix/i386/start.c: Delete file.
37684         * sysdeps/unix/sparc/start.c: Delete file.
37685         * sysdeps/unix/start.c: Delete file.
37686
37687         * sysdeps/sh/elf/configure.in: Moved to ...
37688         * sysdeps/sh/configure.in: ... here.
37689         * sysdeps/sh/elf/start.S: Moved to ...
37690         * sysdeps/sh/start.S: ... here.
37691         * sysdeps/sh/elf/configure: Delete file.
37692
37693         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
37694         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
37695         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
37696         * sysdeps/powerpc/powerpc64/entry.h: ... here.
37697         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
37698         * sysdeps/powerpc/powerpc64/start.S: here.
37699         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
37700         * sysdeps/powerpc/powerpc64/Makefile: ... this.
37701         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
37702         * sysdeps/powerpc/powerpc64/configure.in: ... this.
37703         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
37704
37705         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
37706         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
37707         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
37708         * sysdeps/powerpc/powerpc32/start.S: ... here.
37709         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
37710         * sysdeps/powerpc/powerpc32/configure.in: ... this.
37711         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
37712
37713         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
37714         * sysdeps/powerpc/ifunc-sel.h: ... here.
37715         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
37716         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
37717
37718         * sysdeps/sparc/elf/configure.in: Moved to ...
37719         * sysdeps/sparc/configure.in: ... here.
37720         * sysdeps/sparc/elf/configure: Delete file.
37721         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
37722         * sysdeps/sparc/sparc32/start.S: ... here.
37723         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
37724         * sysdeps/sparc/sparc64/start.S: ... here.
37725         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
37726         * sysdeps/sparc/sparc32/Makefile: ... this.
37727         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
37728         * sysdeps/sparc/sparc64/Makefile: ... this.
37729
37730         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
37731         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
37732         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
37733         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
37734         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
37735         * sysdeps/s390/s390-32/setjmp.S: ... here.
37736         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
37737         * sysdeps/s390/s390-32/configure.in: ... here.
37738         * sysdeps/s390/s390-32/elf/configure: Delete file.
37739         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
37740         * sysdeps/s390/s390-32/start.S: ... here.
37741
37742         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
37743         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
37744         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
37745         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
37746         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
37747         * sysdeps/s390/s390-64/setjmp.S: ... here.
37748         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
37749         * sysdeps/s390/s390-64/configure.in: ... here
37750         * sysdeps/s390/s390-64/elf/configure: Delete file.
37751         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
37752         * sysdeps/s390/s390-64/start.S: ... here.
37753         * sysdeps/s390/s390-64/elf/configure: Delete.
37754
37755         * configure.in: Remove support for elf directories in sysdeps.
37756
37757         * configure: Regenerated.
37758         * sysdeps/i386/configure: Regenerated.
37759         * sysdeps/powerpc/powerpc32/configure: Regenerated.
37760         * sysdeps/powerpc/powerpc64/configure: Regenerated.
37761         * sysdeps/s390/s390-32/configure: Regenerated.
37762         * sysdeps/s390/s390-64/configure: Regenerated.
37763         * sysdeps/sh/configure: Regenerated.
37764         * sysdeps/sparc/configure: Regenerated.
37765         * sysdeps/x86_64/configure: Regenerated.
37766
37767 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
37768
37769         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37770
37771         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
37772         denormal result into account.
37773
37774 2012-03-25  Roland McGrath  <roland@hack.frob.com>
37775
37776         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
37777         Reported by Allan McRae <allan@archlinux.org>.
37778
37779 2012-03-23  Jeff Law  <law@redhat.com>
37780
37781         * nss/getnssent.c (__nss_getent): Fix typo.
37782
37783 2012-03-23  David S. Miller  <davem@davemloft.net>
37784
37785         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37786
37787 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
37788
37789         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
37790         to pad to uint64_t for each field.
37791         (dl_tls_index): Replace unsigned long with uint64_t.
37792
37793 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
37794         Paul Pluzhnikov  <ppluzhnikov@google.com>
37795
37796         [BZ #6528]
37797         * grp/Makefile (otherlibs): Don't set it.
37798         * inet/Makefile (otherlibs): Likewise.
37799         * login/Makefile (otherlibs): Likewise.
37800         * nscd/Makefile (otherlibs): Likewise.
37801         * posix/Makefile (otherlibs): Likewise.
37802         * pwd/Makefile (otherlibs): Likewise.
37803         * rt/Makefile (otherlibs): Likewise.
37804         * sunrpc/Makefile (otherlibs): Likewise.
37805         * nss/Makefile (otherlibs): Likewise.
37806         Add libnss_files to routines and static-only-routines.
37807         ($(objpfx)getent): Remove rule.
37808         * resolv/Makefile: Add libnss_dns and libresolv to routines and
37809         static-only-routines.
37810
37811 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
37812
37813         [BZ #13892]
37814         * math/s_cexp.c: Include <float.h>.
37815         (__cexp): Handle exp result overflowing not necessarily
37816         overflowing both real and imaginary parts of result.
37817         * math/s_cexpf.c: Likewise.
37818         * math/s_cexpl.c: Likewise.
37819         * math/libm-test.inc (cexp_test): Add more tests.
37820         * sysdeps/i386/fpu/libm-test-ulps: Update.
37821         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37822
37823 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37824
37825         * include/link.h (ELFW): New macro.
37826         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
37827         Replace ELF64_R_TYPE with ELFW(R_TYPE).
37828
37829 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37830
37831         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
37832         with uint64_t.
37833
37834 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37835
37836         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
37837         declaration.
37838         (struct La_x32_retval): Likewise.
37839
37840 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
37841
37842         * sysdeps/x86_64/preconfigure.in: New file.
37843         * sysdeps/x86_64/preconfigure: New generated file.
37844
37845 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
37846
37847         [BZ #13824]
37848         * math/e_exp2l.c: Include <float.h>.
37849         (__ieee754_exp2l): Handle overflow and underflow cases
37850         separately.  Only pass fractional part of argument to
37851         __ieee754_expl.
37852         * math/libm-test.inc (exp2_test): Add more tests.
37853
37854         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
37855         negating x to take absolute value.
37856         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
37857         Likewise.
37858         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
37859         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
37860         Likewise.
37861         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
37862         computing low part if x was negated.
37863         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
37864
37865 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37866
37867         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
37868         la_x32_gnu_pltexit.
37869         (pltexit): Cast int_retval to ptrdiff_t.
37870         * elf/tst-auditmod3b.c: Likewise.
37871         * elf/tst-auditmod4b.c: Likewise.
37872         * elf/tst-auditmod5b.c: Likewise.
37873         * elf/tst-auditmod6b.c: Likewise.
37874         * elf/tst-auditmod6c.c: Likewise.
37875         * elf/tst-auditmod7b.c: Likewise.
37876
37877         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
37878         and x32_gnu_pltexit.
37879
37880         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
37881         __ELF_NATIVE_CLASS.
37882         (La_x32_regs): New macro.
37883         (La_x32_retval): Likewise.
37884         (la_x32_gnu_pltenter): New function prototype.
37885         (la_x32_gnu_pltexit): Likewise.
37886
37887 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
37888
37889         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
37890         exponent.
37891
37892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
37893
37894         * configure.in (libc_cv_cc_nofma): Check for option to disable
37895         generation of FMA instructions.
37896         * configure: Regenerate.
37897         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
37898         * sysdeps/ieee754/dbl-64/Makefile: New file.
37899         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
37900         Remove brandred-fma4.
37901         (CFLAGS-brandred-fma4.c): Remove.
37902         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
37903         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
37904         define.
37905         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
37906         define.
37907
37908 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37909
37910         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
37911         LLONG_MAX != LONG_MAX.
37912         (_itoa_word): Use _ITOA_WORD_TYPE on value.
37913         (_fitoa_word): Likewise.
37914         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
37915         LLONG_MAX != LONG_MAX.
37916         * stdio-common/_itowa.h: Include <_itoa.h>.
37917         (_itowa_word): Use _ITOA_WORD_TYPE on value.
37918         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
37919         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
37920         only if not defined.
37921         (_ITOA_WORD_TYPE): Likewise.
37922         (_itoa_word): Use _ITOA_WORD_TYPE on value.
37923         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
37924
37925 2012-03-21  David S. Miller  <davem@davemloft.net>
37926
37927         * sysdeps/sparc/fpu/libm-test-ulps: Update.
37928
37929 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
37930
37931         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
37932         of x86_64 when setting libc_cv_slibdir, libdir and
37933         libc_cv_localedir.
37934         * sysdeps/unix/sysv/linux/configure: Regenerated.
37935
37936 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37937
37938         * manual/lang.texi (Old Varargs): Remove section.
37939         (How Variadic): Update menu.
37940         (va_start): Do not mention varargs.h.
37941
37942 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
37943             Joseph Myers  <joseph@codesourcery.com>
37944
37945         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
37946         link test.
37947         * configure: Regenerated.
37948
37949 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
37950
37951         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
37952         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
37953         conformtest.pl
37954
37955 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37956
37957         * NOTES: Remove.
37958         * Makefile (files-for-dist): Remove NOTES.
37959         (NOTES): Remove rule.
37960         * README: Don't refer to NOTES.
37961         * manual/creature.texi: Don't include macros.texi.
37962         * manual/intro.texi (creature.texi): Remove comment referring to
37963         NOTES.
37964
37965         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
37966         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
37967         * configure: Regenerated.
37968         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
37969         LIBC_TRY_CC_OPTION.
37970         (libc_cv_as_i686): Likewise.
37971         (libc_cv_cc_avx): Likewise.
37972         (libc_cv_cc_sse2avx): Likewise.
37973         (libc_cv_cc_fma4): Likewise.
37974         (libc_cv_cc_novzeroupper): Likewise.
37975         * sysdeps/i386/configure: Regenerated.
37976
37977         [BZ #13883]
37978         * sysdeps/i386/fpu/s_cexp.S: Remove.
37979         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
37980         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
37981         * math/libm-test.inc (cexp_test): Add more tests.
37982         * sysdeps/i386/fpu/libm-test-ulps: Update.
37983         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
37984
37985 2012-03-21  Allan McRae  <allan@archlinux.org>
37986
37987         * timezone/Makefile: Do not install iso3166.tab and zone.tab
37988
37989 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
37990
37991         [BZ #13871]
37992         * math/w_exp2.c: Do not include <float.h>.
37993         (o_threshold, u_threshold): Remove.
37994         (__exp2): Calculate result before checking finiteness and calling
37995         __kernel_standard.
37996         * math/w_exp2f.c: Likewise.
37997         * math/w_exp2l.c: Likewise.
37998         * math/libm-test.inc (exp2_test): Require overflow exception for
37999         1e6 input.
38000
38001         [BZ #3866]
38002         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
38003         range of signed 64-bit integers before using fistpll.  Remove
38004         checks for whether integers fit in mantissa bits.
38005         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
38006         the range of signed 32-bit integers before using fistpl.  Remove
38007         checks for whether integers fit in mantissa bits.
38008         * sysdeps/i386/fpu/e_powl.S (p64): New object.
38009         (__ieee754_powl): Test for y outside the range of signed 64-bit
38010         integers before using fistpll.  Reduce 64-bit values to 63-bit
38011         ones as needed.
38012         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
38013         divide-by-zero is raised for zero to large negative powers.
38014         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
38015         (__ieee754_powl): Test for y outside the range of signed 64-bit
38016         integers before using fistpll.  Reduce 64-bit values to 63-bit
38017         ones as needed.
38018         * math/libm-test.inc (pow_test): Add more tests.
38019
38020 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
38021
38022         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
38023         <stdio-common/_itoa.h>.
38024         * debug/segfault.c: Likewise.
38025         * elf/dl-cache.c: Likewise.
38026         * elf/dl-minimal.c: Likewise.
38027         * elf/dl-misc.c: Likewise.
38028         * elf/dl-sysdep.c: Likewise.
38029         * elf/dl-version.c: Likewise.
38030         * elf/rtld.c: Likewise.
38031         * hurd/hurdsock.c: Likewise.
38032         * hurd/lookup-retry.c: Likewise.
38033         * malloc/malloc.c: Likewise.
38034         * malloc/mtrace.c: Likewise.
38035         * nscd/nscd_getgr_r.c: Likewise.
38036         * nscd/nscd_getpw_r.c: Likewise.
38037         * nscd/nscd_getserv_r.c: Likewise.
38038         * posix/getopt_init.c: Likewise.
38039         * posix/wordexp.c: Likewise.
38040         * stdio-common/_itoa.c: Likewise.
38041         * stdio-common/printf_fphex.c: Likewise.
38042         * stdio-common/vfprintf.c: Likewise.
38043         * string/_strerror.c: Likewise.
38044         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
38045         * sysdeps/i386/i686/hp-timing.h: Likewise.
38046         * sysdeps/mach/_strerror.c: Likewise.
38047         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
38048         * sysdeps/mach/hurd/sethostid.c: Likewise.
38049         * sysdeps/mach/hurd/xmknodat.c: Likewise.
38050         * sysdeps/mach/xpg-strerror.c: Likewise.
38051         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
38052         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
38053         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
38054         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
38055         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
38056         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
38057         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
38058         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
38059         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
38060         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
38061         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
38062         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
38063         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
38064         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
38065         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
38066         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
38067         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
38068         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
38069         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
38070         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
38071         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
38072
38073         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
38074
38075         * stdio-common/_itoa.h: Moved to ...
38076         * sysdeps/generic/_itoa.h: Here.
38077
38078         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
38079
38080         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
38081         instead of "_itoa.h" and "_itowa.h".
38082         * stdio-common/vfprintf.: Likewise.
38083
38084 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
38085
38086         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
38087         <bits/wordsize.h>.
38088         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
38089         (__signbit): Likwise.
38090         (llrintf): Likwise.
38091         (llrint): Likwise.
38092
38093 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
38094
38095         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
38096         __WORDSIZE != 64.
38097
38098 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
38099
38100         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
38101         OVERFLOW_EXCEPTION_OK.
38102         * math/libm-test.inc ("Philosophy"): Update comment about
38103         exception testing.
38104         (OVERFLOW_EXCEPTION): Define.
38105         (OVERFLOW_EXCEPTION_OK): Likewise.
38106         (INVALID_EXCEPTION_OK): Renumber.
38107         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
38108         (IGNORE_ZERO_INF_SIGN): Likewise.
38109         (test_exceptions): Handle FE_OVERFLOW.
38110         (exp10_test): Expect overflow exceptions.
38111         (exp2_test): Likewise.
38112         (expm1_test): Likewise.
38113         (nextafter_test): Likewise.
38114         (pow_test): Likewise.
38115         (scalbn_test): Likewise.
38116         (scalbln_test): Likewise.
38117
38118 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
38119
38120         * sysdeps/x86_64/bits/atomic.h
38121         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
38122         64bit integer.
38123         (atomic_exchange_acq): Likewise.
38124         (__arch_exchange_and_add_body): Likewise.
38125         (__arch_add_body): Likewise.
38126         (atomic_add_negative): Likewise.
38127         (atomic_add_zero): Likewise.
38128
38129 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
38130
38131         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
38132         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
38133
38134 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
38135
38136         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
38137         Check __x86_64__ instead of __WORDSIZE.
38138
38139 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
38140
38141         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
38142
38143 2012-03-19  David S. Miller  <davem@davemloft.net>
38144
38145         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38146
38147         * sysdeps/sparc/fpu/fenv_private.h: New file.
38148         * sysdeps/sparc/fpu/math_private.h: Use it.
38149         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
38150         Remove.
38151         (libc_feholdexcept_setround, libc_feholdexcept_setroundf)
38152         (libc_feholdexcept_setroundl): Remove.
38153         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
38154         Remove.
38155         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
38156         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
38157
38158 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
38159
38160         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
38161         int64_t instead of long int.
38162         (INSERT_WORDS64): Likwise.
38163
38164 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
38165
38166         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
38167         _Unwind_GetCFA return to _Unwind_Ptr first.
38168
38169 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
38170
38171         [BZ #13629]
38172         * math/s_clog.c: Include <float.h>.
38173         (__clog): Scale large or subnormal inputs.
38174         * math/s_clogf.c: Likewise.
38175         * math/s_clogl.c: Likewise.
38176         * math/s_clog10.c: Include <float.h>.
38177         (M_LOG10_2): Define.
38178         (__clog10): Scale large or subnormal inputs.
38179         * math/s_clog10f.c: Likewise.
38180         * math/s_clog10l.c: Likewise.
38181         * math/libm-test.inc (clog_test): Add more tests.
38182         (clog10_test): Likewise.
38183         * sysdeps/i386/fpu/libm-test-ulps: Update.
38184         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38185
38186         [BZ #11451]
38187         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
38188         x and y.
38189         * math/libm-test.inc (atan2_test): Add another test.
38190
38191         * Makerules (common-objdir-compile): Remove.
38192         * sysdeps/unix/Makefile (config-generated): Do not add
38193         $(unix-generated) to variable.
38194         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
38195         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
38196         Remove rule.
38197         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
38198         Likewise.
38199         [generic bits/local_lim.h] (before-compile): Do not append to
38200         variable.
38201         [generic bits/local_lim.h] (common-generated): Likewise.
38202         [generic sys/param.h] (before-compile): Do not append to variable.
38203         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
38204         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
38205         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
38206         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
38207         include.
38208         [generic sys/param.h] (sys/param.h-includes): Remove variable.
38209         [generic sys/param.h] (sys/param.h-includes): Remove rule.
38210         [generic sys/param.h] ($(addprefix
38211         $(common-objpfx),$(sys/param.h-includes))): Likewise.
38212         [generic sys/param.h] (common-generated): Do not append to
38213         variable.
38214         [generic sys/param.h] (sysdep_headers): Likewise.
38215         [generic bits/errno.h] (before-compile): Do not append to
38216         variable.
38217         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
38218         rule.
38219         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
38220         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
38221         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
38222         [generic bits/errno.h] (common-generated): Do not append to
38223         variable.
38224         [generic bits/ioctls.h] (before-compile): Do not append to
38225         variable.
38226         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
38227         rule.
38228         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
38229         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
38230         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
38231         rule.
38232         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
38233         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
38234         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
38235         [generic bits/ioctls.h] (common-generated): Do not append to
38236         variable.
38237         [generic sys/syscall.h] (syscall.h): Remove variable.
38238         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
38239         rule.
38240         [generic sys/syscall.h] (before-compile): Do not append to
38241         variable.
38242         [generic sys/syscall.h] (common-generated): Likewise.
38243         * sysdeps/unix/errnos-tmpl.c: Remove file.
38244         * sysdeps/unix/errnos.awk: Likewise.
38245         * sysdeps/unix/ioctls-tmpl.c: Likewise.
38246         * sysdeps/unix/ioctls.awk: Likewise.
38247         * sysdeps/unix/mk-local_lim.c: Likewise.
38248         * sysdeps/unix/snarf-ioctls: Likewise.
38249
38250 2012-03-19  Richard Henderson  <rth@twiddle.net>
38251
38252         * sysdeps/i386/fpu/fenv_private.h: New file.
38253         * sysdeps/i386/fpu/math_private.h: Use it.
38254         (math_opt_barrier, math_force_eval): Remove.
38255         (libc_feholdexcept_setround_53bit): Remove.
38256         (libc_feupdateenv_53bit): Remove.
38257         * sysdeps/x86_64/fpu/math_private.h: Likewise.
38258         (math_opt_barrier, math_force_eval): Remove.
38259         (libc_feholdexcept): Remove.
38260         (libc_feholdexcept_setround): Remove.
38261         (libc_fetestexcept, libc_fesetenv): Remove.
38262         (libc_feupdateenv_test): Remove.
38263         (libc_feupdateenv, libc_feholdsetround): Remove.
38264         (libc_feresetround): Remove.
38265
38266         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
38267         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
38268
38269         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
38270         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
38271         (libc_feupdateenv_testl): New.
38272         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
38273         (libc_feupdateenv_testf): New.
38274         (libc_feupdateenv): Use libc_feupdateenv_test.
38275         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
38276         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
38277
38278         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
38279         (libc_feholdsetroundf, libc_feholdsetroundl): New.
38280         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
38281         (libc_feresetround_noex): New.
38282         (libc_feresetround_noexf): New.
38283         (libc_feresetround_noexl): New.
38284         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
38285         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
38286         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
38287         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
38288         SET_RESTORE_ROUND.
38289         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
38290         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
38291         (__cos): Likewise.
38292         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
38293         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
38294         SET_RESTORE_ROUND_NOEX.
38295         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
38296         SET_RESTORE_ROUND_NOEXF.
38297         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
38298         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
38299         (libc_feholdsetroundf): New.
38300         (libc_feresetround, libc_feresetroundf): New.
38301
38302         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
38303         (libc_feholdexcept_setround_53bit): Convert from macro to function.
38304         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
38305
38306         * sysdeps/generic/math_private.h: Include <fenv.h>.
38307         (default_libc_feholdexcept): New.
38308         (default_libc_feholdexcept_setround): New.
38309         (default_libc_fesetenv, default_libc_feupdateenv): New.
38310         (libc_feholdexcept): Only define if undefined.
38311         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
38312         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
38313         (libc_feholdexcept_setroundl): Likewise.
38314         (libc_feholdexcept_setround_53bit): Likewise.
38315         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
38316         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
38317         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
38318         (libc_feupdateenv_53bit): Likewise.
38319         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
38320         (libc_feholdexcept): Convert from macro to inline function.
38321         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
38322         (libc_fesetenv, libc_feupdateenv): Likewise.
38323
38324         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
38325         not previously defined.
38326         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
38327         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
38328         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
38329         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
38330         * sysdeps/ieee754/flt-32/math_private.h: New file.
38331         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
38332         math_private.h below SET_FLOAT_WORD.
38333         (__isnan, __isinf_ns, __finite): Remove.
38334         (__isnanf, __isinf_nsf, __finitef): Remove.
38335
38336 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
38337
38338         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38339
38340 2012-03-17  David S. Miller  <davem@davemloft.net>
38341
38342         [BZ #6471]
38343         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
38344         for 2.16.
38345
38346 2012-03-16  David S. Miller  <davem@davemloft.net>
38347
38348         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
38349         warnings.
38350
38351         [BZ #6471]
38352         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
38353         properly.
38354         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
38355         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
38356         sysdep_routines when subdir is sysvipc.
38357         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
38358         __getshmlba helper.
38359
38360         * sysdeps/sparc/fpu/libm-test/ulps: Update.
38361
38362 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
38363
38364         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
38365         [__LP64__].
38366
38367 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
38368
38369         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
38370         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
38371         (__lround): Renamed to ...
38372         (__llround): This.  Replace long int with long long int.
38373         Define lround functions as aliases of llround functions.
38374         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
38375
38376 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
38377
38378         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
38379         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
38380         adresses to uintptr_t.  Replace "long int" and "unsigned long
38381         int" with "greg_t" on va_arg.
38382
38383 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
38384
38385         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
38386         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
38387
38388         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
38389         Move e_machine check before EI_CLASS check.  Handle x32
38390         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
38391         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
38392         SKIP_EM_IA_64 and include
38393         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
38394
38395         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
38396         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
38397         (add_system_dir): New macro.
38398
38399         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
38400         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
38401
38402 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
38403
38404         [BZ #2551]
38405         [BZ #2552]
38406         [BZ #2553]
38407         [BZ #2554]
38408         [BZ #2562]
38409         [BZ #2563]
38410         [BZ #2565]
38411         [BZ #2566]
38412         [BZ #2576]
38413         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
38414         (y0): Likewise.
38415         * math/w_j0f.c (j0f): Likewise.
38416         (y0f): Likewise.
38417         * math/w_j0l.c (__j0l): Likewise.
38418         (__y0l): Likewise.
38419         * math/w_j1.c (j1): Likewise.
38420         (y1): Likewise.
38421         * math/w_j1f.c (j1f): Likewise.
38422         (y1f): Likewise.
38423         * math/w_j1l.c (__j1l): Likewise.
38424         (__y1l): Likewise.
38425         * math/w_jn.c (jn): Likewise.
38426         (yn): Likewise.
38427         * math/w_jnf.c (jnf): Likewise.
38428         (ynf): Likewise.
38429         * math/w_jnl.c (__jnl): Likewise.
38430         (__ynl): Likewise.
38431         * math/libm-test.inc (j0_test): Add more tests.
38432         (j1_test): Likewise.
38433         (jn_test): Likewise.  Add trailing semicolon to existing test.
38434         (y0_test): Likewise.
38435         (y1_test): Likewise.
38436         * sysdeps/i386/fpu/libm-test-ulps: Update.
38437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38438
38439         [BZ #13851]
38440         [BZ #13854]
38441         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
38442         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
38443         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
38444         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
38445         (__tanl): Set errno for infinite argument.
38446         * sysdeps/i386/fpu/mptan.c: Remove.
38447         * sysdeps/i386/fpu/s_tan.S: Likewise.
38448         * sysdeps/i386/fpu/s_tanl.S: Likewise.
38449         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
38450         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
38451         * math/libm-test.inc (tan_test): Add more tests and enable more
38452         tests for double and long double.
38453         * sysdeps/i386/fpu/libm-test-ulps: Update.
38454         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38455
38456 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
38457
38458         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
38459         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
38460
38461 2012-03-16  Roland McGrath  <roland@hack.frob.com>
38462
38463         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
38464         * configure.in: Use it for both main tree and add-ons.
38465         * configure: Regenerated.
38466
38467 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
38468
38469         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
38470
38471 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
38472
38473         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
38474         in comment.
38475
38476         [BZ #13851]
38477         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
38478         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
38479         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
38480         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
38481         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
38482         infinite argument.
38483         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
38484         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
38485         != 0 for prec == 2.
38486         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
38487         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
38488         * sysdeps/i386/fpu/s_cosl.S: Likewise.
38489         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
38490         * sysdeps/i386/fpu/s_sinl.S: Likewise.
38491         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
38492         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
38493         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
38494         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
38495         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
38496         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
38497         * math/libm-test.inc (cos_test): Add more tests and enable more
38498         tests for long double.
38499         (sin_test): Likewise.
38500         (sincos_test): Likewise.
38501         * sysdeps/i386/fpu/libm-test-ulps: Update.
38502         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38503
38504 2012-03-16  David S. Miller  <davem@davemloft.net>
38505
38506         * sysdeps/sparc/fpu/math_private.h: New file.
38507
38508 2012-03-15  David S. Miller  <davem@davemloft.net>
38509
38510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
38511         file.
38512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
38513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
38514         file.
38515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
38516         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
38517         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
38518         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
38519         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
38520         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
38521         sysdep routines.
38522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
38523
38524         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
38525         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
38526
38527         * sysdeps/sparc/sparc-ifunc.h: New file.
38528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
38529         sparc-ifunc.h
38530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
38531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
38532         Likewise.
38533         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
38534         Likewise.
38535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
38536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
38537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
38538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
38539         Likewise.
38540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
38541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
38542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
38543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
38544         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
38545         Likewise.
38546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
38547         Likewise.
38548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
38549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
38550         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
38551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
38552         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
38553         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
38554         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
38555         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
38556         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
38557         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
38558         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
38559         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
38560         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
38561         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
38562         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
38563         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
38564         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
38565         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
38566         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
38567         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
38568         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
38569         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
38570         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
38571         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
38572
38573 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
38574
38575         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
38576         scaling.
38577         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38578
38579 2012-03-15  Andreas Jaeger  <aj@suse.de>
38580
38581         [BZ #13852]
38582         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
38583         ieee754/flt-32 implementation for sin, cos and sincos.
38584         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
38585         * sysdeps/i386/fpu/s_cosf.S: Likewise.
38586         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
38587         * sysdeps/i386/fpu/s_sinf.S: Likewise.
38588         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
38589         ieee754/flt-32 implementation for tan.
38590
38591         * math/libm-test.inc (cos_test): Enable some large input tests for
38592         float as well
38593         (sin_test): Likewise.
38594         (sincos_test): Likewise.
38595         (tan_test): Add tests for large input.
38596
38597         * sysdeps/i386/fpu/libm-test-ulps: Update.
38598
38599 2012-03-15  Andreas Jaeger  <aj@suse.de>
38600
38601         [BZ #13658]
38602         * math/libm-test.inc (cos_test): Add more test cases.
38603         (sin_test): Likewise.
38604         (sincos_test): Likewise.
38605
38606 2012-03-15  Andreas Jaeger  <aj@suse.de>
38607
38608         [BZ #13837]
38609         * math/libm-test.inc (cos_test): Add a test case for large input
38610         value.
38611         (sin_test): Likewise.
38612         (sincos_test): Likewise.
38613
38614 2012-03-15  Andreas Jaeger  <aj@suse.de>
38615             Joseph Myers  <joseph@codesourcery.com>
38616
38617         [BZ #13658]
38618         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
38619         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
38620         * sysdeps/i386/fpu/branred.c: Likewise.
38621         * sysdeps/i386/fpu/dosincos.c: Likewise.
38622         * sysdeps/i386/fpu/mpa.c: Likewise.
38623         * sysdeps/i386/fpu/s_cos.S: Likewise.
38624         * sysdeps/i386/fpu/s_sin.S: Likewise.
38625         * sysdeps/i386/fpu/s_sincos.S: Likewise.
38626         * sysdeps/i386/fpu/sincos32.c: Likewise.
38627
38628         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
38629         Define.
38630         (libc_feupdateenv_53bit): Define.
38631         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
38632         Define.
38633         (libc_feupdateenv_53bit): Define.
38634
38635         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
38636         53 bit (without extend i386 double precision).
38637
38638         * math/libm-test.inc (sincos_test): Add tests for large input.
38639         (sin): Likewise.
38640         (cos): Likewise.
38641
38642         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
38643
38644 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
38645
38646         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38647
38648 2012-03-15  David S. Miller  <davem@davemloft.net>
38649
38650         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
38651         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
38652         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
38653         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
38654         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
38655         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
38656         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
38657         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
38658         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
38659         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
38660         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
38661         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
38662         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
38663         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
38664         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
38665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
38666         file.
38667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
38668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
38669         file.
38670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
38671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
38672         file.
38673         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
38674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
38675         file.
38676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
38677         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
38678         fmin/fmax sysdep routines.
38679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
38680
38681 2012-03-14  David S. Miller  <davem@davemloft.net>
38682
38683         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
38684         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
38685         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
38686         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
38687         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
38688         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
38689         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
38690         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
38691         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
38692         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
38693         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
38694         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
38695         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
38696         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
38697         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
38698         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
38699         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
38700         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
38701         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
38702         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
38703         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
38704         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
38705         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
38706         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
38707         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
38708         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
38709         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
38710         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
38711         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
38712         routines.
38713         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
38714         file.
38715         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
38716         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
38717         file.
38718         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
38719         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
38720         file.
38721         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
38722         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
38723         file.
38724         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
38725         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
38726         file.
38727         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
38728         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
38729         file.
38730         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
38731         file.
38732         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
38733         file.
38734         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
38735         file.
38736         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
38737         New file.
38738         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
38739         file.
38740         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
38741         file.
38742         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
38743         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
38744         file.
38745         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
38746         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
38747         file.
38748         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
38749         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
38750         file.
38751         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
38752         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
38753         VIS3 routines.
38754
38755         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
38756         New file.
38757
38758         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38759
38760         * sysdeps/sparc/configure.in: New file.
38761         * sysdeps/sparc/configure: Generate.
38762         * configure.in (libc_cv_sparc_as_vis3): Substitute.
38763         * configure: Regenerate.
38764         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
38765         * config.make.in (have-as-vis3): New.
38766         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
38767         available use -Av9d instead of -Av9a.
38768         * sysdeps/sparc/sparc64/Makefile: Likewise.
38769         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
38770         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
38771         New file.
38772         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
38773         file.
38774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
38775         New file.
38776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
38777         file.
38778         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
38779         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
38780         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
38781         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
38782         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
38783
38784         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
38785         fzeros/fnegs to load 0x80000000 into a float register instead of
38786         using the stack.
38787         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
38788
38789 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
38790
38791         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
38792         bits/syscall.h.
38793         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
38794         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
38795         ($(inst_includedir)/bits/syscall.h): Remove rule.
38796         ($(objpfx)bits/syscall.d): Include instead of
38797         $(objpfx)syscall-list.d.
38798         (generated): Change syscall-list.h and syscall-list.d to
38799         bits/syscall.h and bits/syscall.d.
38800
38801 2012-03-14  Roland McGrath  <roland@hack.frob.com>
38802
38803         [BZ #13846]
38804         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
38805
38806 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
38807
38808         [BZ #13841]
38809         * math/s_csqrt.c: Include <float.h>.
38810         (__csqrt): Scale large or subnormal inputs.
38811         * math/s_csqrtf.c: Likewise.
38812         * math/s_csqrtl.c: Likewise.
38813         * math/libm-test.inc (csqrt_test): Add more tests.
38814         * sysdeps/i386/fpu/libm-test-ulps: Update.
38815         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
38816
38817         [BZ #13840]
38818         * math/libm-test.inc (hypot_test): Add more tests.
38819
38820 2012-03-13  David S. Miller  <davem@davemloft.net>
38821
38822         [BZ #13840]
38823         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
38824         double-precision for the calculation instead of scaling.
38825
38826 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
38827
38828         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
38829         manipulate bits before adding and subtracting TWO52[sx].
38830         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
38831         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
38832         Likewise.
38833         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
38834
38835 2012-03-13  David S. Miller  <davem@davemloft.net>
38836
38837         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
38838         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
38839         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
38840         rtld-global-offsets.h
38841         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
38842
38843         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
38844         large parameters.
38845
38846         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
38847
38848         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
38849         'err' in the ifdef scope in which it is actually used.
38850
38851         * nss/nss_db/db-init.c: Include string.h
38852
38853 2012-03-12  David S. Miller  <davem@davemloft.net>
38854
38855         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
38856         masking out of the most significant byte of random value used.
38857         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38858         Fix coding style in previous change.
38859
38860         * sysdeps/unix/sysv/linux/kernel-features.h
38861         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
38862         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
38863         expression.
38864         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
38865         later.
38866
38867 2012-03-11  David S. Miller  <davem@davemloft.net>
38868
38869         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
38870         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
38871         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
38872         for 'resultvar' otherwise things get truncated on 64-bit.
38873
38874         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
38875         Fix masking out of the most significant byte of random value used.
38876
38877         * sysdeps/sparc/fpu/libm-test-ulps: Update.
38878
38879 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
38880
38881         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
38882
38883 2012-03-09  David S. Miller  <davem@davemloft.net>
38884
38885         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
38886         variables with appropriate CPP guards.
38887         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr
38888         from the frame pointer, not the stack pointer.  Correct layout
38889         comments.  Fix test on resulting framesize and the management of
38890         the outregs buffer for pltexit.  Preserve floating point return
38891         values across _dl_call_pltexit call.
38892         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
38893         framesize and the management of the outregs buffer for pltexit.
38894         Preserve floating point return values across _dl_call_pltexit
38895         call.
38896         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter)
38897         (la_sparc64_gnu_pltenter, la_sparc32_gnu_pltexit)
38898         (la_sparc64_gnu_pltexit): New functions.
38899         (print_exit): Fix format string for return register value.
38900
38901 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
38902
38903         * sunrpc/Makefile (others): Add rpcgen.
38904         ($(objpfx)rpcgen): Remove special build rule and dependency on
38905         libc.
38906         * sunrpc/rpcgen.c: New file.
38907
38908 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
38909
38910         [BZ #13673]
38911         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
38912         * stdio-common/bug-vfprintf-nargs.c: Likewise.
38913         * sysdeps/i386/crti.S: Likewise.
38914         * sysdeps/i386/crtn.S: Likewise.
38915         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
38916         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
38917         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
38918         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
38919         * sysdeps/sh/crti.S: Likewise.
38920         * sysdeps/sh/crtn.S: Likewise.
38921         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
38922
38923         [BZ #13673]
38924         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
38925         with URL.
38926         * locale/programs/locfile-kw.gperf: Likewise.
38927         * locale/programs/charmap-kw.h: Regenerated.
38928         * locale/programs/locfile-kw.h: Likewise.
38929
38930         [BZ #13673]
38931         * intl/plural.y: Replace FSF snail mail address with URL.
38932         * intl/plural.c: Regenerated.
38933
38934 2012-03-09  Richard Henderson  <rth@twiddle.net>
38935
38936         * include/math_private.h: Remove file.
38937         * math/math_private.h: Move file ...
38938         * sysdeps/generic/math_private.h: ... here.
38939
38940         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
38941         * sysdeps/powerpc/fpu/math_private.h: Likewise.
38942         * sysdeps/x86_64/fpu/math_private.h: Likewise.
38943
38944         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
38945         and <math_private.h>.
38946         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
38947         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
38948         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
38949         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
38950         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
38951         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
38952         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
38953         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
38954         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
38955         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
38956         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
38957         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
38958         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
38959         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
38960         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
38961         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
38962         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
38963         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
38964         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
38965         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
38966         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
38967         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
38968         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
38969         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
38970         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
38971         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
38972         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
38973         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
38974         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
38975         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
38976         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
38977         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
38978         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
38979         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
38980         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
38981         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
38982         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
38983         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
38984         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
38985         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
38986         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
38987         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
38988         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
38989         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
38990         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
38991         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
38992         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
38993         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
38994         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
38995         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
38996         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
38997         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
38998         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
38999         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
39000         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
39001         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
39002         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
39003         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
39004         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
39005         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
39006         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
39007         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
39008         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
39009         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
39010         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
39011         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
39012         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
39013         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
39014         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
39015         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
39016         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
39017         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
39018         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
39019         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
39020         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
39021         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
39022         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
39023         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
39024         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
39025         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
39026         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
39027         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
39028         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
39029         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
39030         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
39031         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
39032         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
39033         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
39034         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
39035         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
39036         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
39037         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
39038         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
39039         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
39040         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
39041         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
39042         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
39043         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
39044         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
39045         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
39046         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
39047         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
39048         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
39049         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
39050         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
39051         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
39052         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
39053         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
39054         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
39055         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
39056         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
39057         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
39058         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
39059         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
39060         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
39061         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
39062         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
39063         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
39064         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
39065         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
39066         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
39067         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
39068         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
39069         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
39070         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
39071         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
39072         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
39073         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
39074         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
39075         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
39076         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
39077         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
39078         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
39079         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
39080         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
39081         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
39082         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
39083         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
39084         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
39085         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
39086         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
39087         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
39088         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
39089         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
39090         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
39091         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
39092         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
39093         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
39094         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
39095         * sysdeps/ieee754/k_standard.c: Likewise.
39096         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
39097         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
39098         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
39099         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
39100         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
39101         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
39102         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
39103         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
39104         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
39105         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
39106         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
39107         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
39108         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
39109         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
39110         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
39111         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
39112         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
39113         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
39114         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
39115         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
39116         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
39117         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
39118         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
39119         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
39120         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
39121         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
39122         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
39123         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
39124         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
39125         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
39126         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
39127         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
39128         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
39129         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
39130         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
39131         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
39132         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
39133         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
39134         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
39135         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
39136         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
39137         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
39138         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
39139         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
39140         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
39141         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
39142         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
39143         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
39144         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
39145         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
39146         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
39147         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
39148         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
39149         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
39150         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
39151         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
39152         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
39153         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
39154         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
39155         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
39156         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
39157         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
39158         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
39159         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
39160         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
39161         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
39162         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
39163         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
39164         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
39165         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
39166         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
39167         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
39168         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
39169         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
39170         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
39171         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
39172         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
39173         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
39174         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
39175         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
39176         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
39177         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
39178         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
39179         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
39180         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
39181         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
39182         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
39183         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
39184         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
39185         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
39186         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
39187         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
39188         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
39189         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
39190         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
39191         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
39192         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
39193         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
39194         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
39195         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
39196         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
39197         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
39198         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
39199         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
39200         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
39201         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
39202         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
39203         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
39204         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
39205         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
39206         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
39207         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
39208         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
39209         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
39210         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
39211         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
39212         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
39213         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
39214         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
39215         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
39216         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
39217         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
39218         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
39219         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
39220         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
39221         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
39222         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
39223         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
39224         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
39225         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
39226         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
39227         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
39228         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
39229         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
39230         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
39231         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
39232         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
39233         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
39234         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
39235         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
39236         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
39237         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
39238         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
39239         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
39240         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
39241         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
39242         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
39243         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
39244         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
39245         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
39246         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
39247         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
39248         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
39249         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
39250         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
39251         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
39252         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
39253         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
39254         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
39255         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
39256         * sysdeps/ieee754/s_lib_version.c: Likewise.
39257         * sysdeps/ieee754/s_matherr.c: Likewise.
39258         * sysdeps/ieee754/s_signgam.c: Likewise.
39259         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
39260         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
39261         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
39262         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
39263         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
39264         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
39265         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
39266         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
39267         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
39268         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
39269         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
39270         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
39271         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
39272         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
39273         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
39274         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
39275         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
39276         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
39277         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
39278         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
39279         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
39280
39281 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
39282
39283         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
39284         * sunrpc/rpc_main.c: Likewise.
39285         * sunrpc/rpc_svcout.c: Likewise.
39286
39287 2012-03-09  David S. Miller  <davem@davemloft.net>
39288
39289         * include/math_private.h: New file.
39290
39291 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
39292
39293         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
39294         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
39295         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
39296         from <bits/socket_type.h>.
39297         (enum __socket_type): Don't define here.
39298         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
39299         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
39300         bits/socket_type.h.
39301
39302         [BZ #13566]
39303         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
39304         checking __USE_GNU.
39305
39306         * Makerules ($(inst_includedir)/%.h): New rule.
39307         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
39308         (install-others): Remove variable setting.
39309         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
39310
39311 2012-03-08  Richard Henderson  <rth@twiddle.net>
39312
39313         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
39314         from macro to inline function; merge with the
39315         !__LIBC_INTERNAL_MATH_INLINES version.
39316         (__ieee754_sqrtf): Likewise.
39317
39318         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
39319         to inline function.
39320         (__rintf, __floor, __floorf): Likewise.
39321
39322         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
39323         macro to inline function.
39324         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
39325
39326         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
39327         not <math/math_private.h>.
39328
39329 2012-03-08  David S. Miller  <davem@davemloft.net>
39330
39331         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
39332         copyright year.
39333         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
39334
39335 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
39336
39337         * resolv/gai_misc.c (handle_requests): Fix struct timespec
39338         normalization.
39339         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
39340         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
39341
39342 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
39343
39344         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
39345         be defined individually, they must be defined as a block.  Define
39346         S for printing a string instead of hidint the different by using a
39347         macro for adding the 'l'.
39348         * stdio-common/tst-fphex-wide.c: Adjust.
39349
39350 2012-03-07  Marek Polacek  <polacek@redhat.com>
39351
39352         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
39353
39354 2012-03-08  Marek Polacek  <polacek@redhat.com>
39355
39356         [BZ #13806]
39357         * stdio-common/Makefile (tests): Add tst-fphex-wide.
39358         * stdio-common/tst-fphex.c: Define a few macros to make the
39359         test reusable.  Use them.
39360         * stdio-common/tst-fphex-wide.c: New file.
39361
39362 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
39363
39364         [BZ #6911]
39365         * manual/macros.texi (gnusystems): New macro.
39366         (nongnusystems): Likewise.
39367         (gnulinuxhurdsystems): Likewise.
39368         (gnuhurdsystems): Likewise..
39369         (gnulinuxsystems): Likewise.
39370         * manual/charset.texi: Use new macros or @theglibc{} to refer to
39371         variants of the GNU system, not "GNU system".
39372         * manual/conf.texi: Likewise.
39373         * manual/errno.texi: Likewise.  Update example of errno macro
39374         expansion.
39375         * manual/filesys.texi: Likewise.
39376         (getumask): Document as specific to GNU/Hurd.
39377         * manual/install.texi: Likewise.  Reword some references to
39378         GNU/Linux.
39379         * manual/intro.texi: Likewise.
39380         * manual/io.texi: Likewise.
39381         (File Name Portability): Detail which constraints are inapplicable
39382         to all GNU systems and which are only inapplicable to GNU/Hurd.
39383         * manual/job.texi: Likewise.
39384         * manual/llio.texi: Likewise.
39385         (O_NOCTTY): Document as present on GNU/Linux.
39386         * manual/maint.texi: Likewise.
39387         * manual/memory.texi: Likewise.
39388         * manual/pattern.texi: Likewise.
39389         * manual/pipe.texi: Likewise.
39390         * manual/process.texi: Likewise.
39391         * manual/resource.texi: Likewise.
39392         (RUSAGE_CHILDREN): Remove statement about specifying a particular
39393         child on GNU/Hurd.
39394         * manual/setjmp.texi: Likewise.
39395         * manual/signal.texi: Likewise.
39396         * manual/startup.texi: Likewise.
39397         * manual/stdio.texi: Likewise.
39398         * manual/terminal.texi: Likewise.
39399         (ONLCR): Document as POSIX.
39400         (OXTABS): Document availability on GNU/Linux as XTABS.
39401         (ONOEOT): Document availability separately from other bits.
39402         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
39403         * manual/time.texi: Likewise.
39404         * manual/users.texi: Likewise.
39405         * INSTALL: Regenerated.
39406         * sysdeps/gnu/errlist.c: Regenerated.
39407
39408         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
39409         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
39410         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
39411         puts.
39412         * configure: Regenerated.
39413
39414 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
39415
39416         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
39417         default includes instead of AC_HEADER_CHECK.
39418         * sysdeps/i386/configure: Regenerated.
39419
39420         [BZ #10716]
39421         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
39422         * math/s_cacoshf.c (__cacoshf): Likewise.
39423         * math/s_cacoshl.c (__cacoshl): Likewise.
39424         * math/s_casinh.c (__casinh): Set signs of result from argument.
39425         * math/s_casinhf.c (__casinhf): Likewise.
39426         * math/s_casinhl.c (__casinhl): Likewise.
39427         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
39428         (casinh_test): Add more tests.
39429         * sysdeps/i386/fpu/libm-test-ulps: Update.
39430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39431
39432 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
39433
39434         * po/zh_TW.po: Update from translation team.
39435
39436         * login/Makefile (distribute): Remove variable.
39437         * catgets/Makefile: Likewise.
39438         * mach/Makefile: Likewise.
39439         * malloc/Makefile: Likewise.
39440         * misc/Makefile: Likewise.
39441         * iconv/Makefile: Likewise.
39442         * nscd/Makefile: Likewise.
39443         * hurd/Makefile: Likewise.
39444         * manual/Makefile: Likewise.
39445         * locale/Makefile: Likewise.
39446         * intl/Makefile: Likewise.
39447         * conform/Makefile: Likewise.
39448         * nss/Makefile: Likewise.
39449         * time/Makefile: Likewise.
39450         * soft-fp/Makefile: Likewise.
39451         * dirent/Makefile: Likewise.
39452         * gmon/Makefile: Likewise.
39453         * po/Makefile: Likewise.
39454         * rt/Makefile: Likewise.
39455         * socket/Makefile: Likewise.
39456         * math/Makefile: Likewise.
39457         * signal/Makefile: Likewise.
39458         * debug/Makefile: Likewise.
39459         * elf/Makefile: Likewise.
39460         * timezone/Makefile: Likewise.
39461         * stdlib/Makefile: Likewise.
39462         * iconvdata/Makefile: Likewise.
39463         * sunrpc/Makefile: Likewise.
39464         * io/Makefile: Likewise.
39465         * argp/Makefile: Likewise.
39466         * inet/Makefile: Likewise.
39467         * hesiod/Makefile: Likewise.
39468         * grp/Makefile: Likewise.
39469         * csu/Makefile: Likewise.
39470         * wctype/Makefile: Likewise.
39471         * crypt/Makefile: Likewise.
39472         * libio/Makefile: Likewise.
39473         * string/Makefile: Likewise.
39474         * nis/Makefile: Likewise.
39475         * resolv/Makefile: Likewise.
39476         * stdio-common/Makefile: Likewise.
39477         * wcsmbs/Makefile: Likewise.
39478         * dlfcn/Makefile: Likewise.
39479         * posix/Makefile: Likewise.
39480
39481         [BZ #6959]
39482         * timezone/Makefile: Don't install timezone files, just the programs
39483         and scripts.
39484
39485 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
39486
39487         * nss/databases.def: Add missing gshadow entry.
39488
39489         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
39490
39491 2012-03-06  Marek Polacek  <polacek@redhat.com>
39492
39493         [BZ #13726]
39494         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
39495         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
39496         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
39497         * stdio-common/tst-long-dbl-fphex.c: New file.
39498
39499 2012-03-06  David S. Miller  <davem@davemloft.net>
39500
39501         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
39502         (set_obp_int): New function.
39503         (get_obp_int): New function.
39504         (__get_clockfreq_via_dev_openprom): Likewise.
39505         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
39506         Avoid unused variable warnings on 'val' and use builtin_expect.
39507         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
39508         __builtin_expect.
39509         (INLINE_CLONE_SYSCALL): Likewise.
39510
39511 2012-03-05  David S. Miller  <davem@davemloft.net>
39512
39513         * sysdeps/sparc/fpu/libm-test-ulps: Update.
39514
39515 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
39516
39517         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39518
39519         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
39520         only for |x| >= 40.
39521         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
39522
39523 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
39524
39525         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
39526         Replace gettimeofday with __vdso_gettimeofday.
39527
39528         * sysdeps/unix/sysv/linux/x86_64/init-first.c
39529         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
39530         __vdso_clock_gettime and __vdso_getcpu.
39531
39532         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
39533         time with __vdso_time.
39534
39535 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
39536
39537         * manual/lang.texi (size_t): Note types to which size_t may be
39538         equivalent with the GNU C Library, but do not describe when
39539         differences between them are significant.
39540
39541 2012-03-05  Andreas Jaeger  <aj@suse.de>
39542
39543         * sysdeps/i386/fpu/libm-test-ulps: Update.
39544
39545 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
39546
39547         [BZ #3976]
39548         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
39549         (__ieee754_pow): Save and restore rounding mode and use
39550         round-to-nearest for main computations.
39551         * math/libm-test.inc (pow_test_tonearest): New function.
39552         (pow_test_towardzero): Likewise.
39553         (pow_test_downward): Likewise.
39554         (pow_test_upward): Likewise.
39555         (main): Call the new functions.
39556         * sysdeps/i386/fpu/libm-test-ulps: Update.
39557         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39558
39559         [BZ #3976]
39560         * math/libm-test.inc (cosh_test_tonearest): New function.
39561         (cosh_test_towardzero): Likewise.
39562         (cosh_test_downward): Likewise.
39563         (cosh_test_upward): Likewise.
39564         (sinh_test_tonearest): Likewise.
39565         (sinh_test_towardzero): Likewise.
39566         (sinh_test_downward): Likewise.
39567         (sinh_test_upward): Likewise.
39568         (main): Call the new functions.
39569         * sysdeps/i386/fpu/libm-test-ulps: Update.
39570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39571
39572 2012-03-05  Tom de Vries  <tom@codesourcery.com>
39573
39574         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
39575         default stack guard is set in last bytes.
39576         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
39577
39578 2012-03-05  Kees Cook  <keescook@chromium.org>
39579
39580         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
39581
39582         [BZ #13656]
39583         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
39584         possibly allocate from heap instead of stack.
39585         * stdio-common/bug-vfprintf-nargs.c: New file.
39586         * stdio-common/Makefile (tests): Add nargs overflow test.
39587
39588 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
39589
39590         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
39591
39592 2012-03-03  Marek Polacek  <polacek@redhat.com>
39593
39594         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
39595         * math/math_private.h: Likewise.
39596         * stdlib/tst-strtod.c: Likewise.
39597         * sysdeps/i386/i486/bits/atomic.h: Likewise.
39598         * sysdeps/x86_64/bits/atomic.h: Likewise.
39599
39600 2012-03-02  David S. Miller  <davem@davemloft.net>
39601
39602         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
39603         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
39604         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
39605         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
39606         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
39607         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
39608         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
39609         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
39610
39611 2012-03-02  Roland McGrath  <roland@hack.frob.com>
39612
39613         [BZ #13792]
39614         * manual/examples/README: New file, says the example source files
39615         can be used under GPL>=2.
39616         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
39617         line containing just "*/".
39618         * manual/examples/add.c: Add copyright header (GPL>=2).
39619         * manual/examples/argp-ex1.c: Likewise.
39620         * manual/examples/argp-ex2.c: Likewise.
39621         * manual/examples/argp-ex3.c: Likewise.
39622         * manual/examples/argp-ex4.c: Likewise.
39623         * manual/examples/atexit.c: Likewise.
39624         * manual/examples/db.c: Likewise.
39625         * manual/examples/dir.c: Likewise.
39626         * manual/examples/dir2.c: Likewise.
39627         * manual/examples/execinfo.c: Likewise.
39628         * manual/examples/filecli.c: Likewise.
39629         * manual/examples/filesrv.c: Likewise.
39630         * manual/examples/fmtmsgexpl.c: Likewise.
39631         * manual/examples/genpass.c: Likewise.
39632         * manual/examples/inetcli.c: Likewise.
39633         * manual/examples/inetsrv.c: Likewise.
39634         * manual/examples/isockad.c: Likewise.
39635         * manual/examples/longopt.c: Likewise.
39636         * manual/examples/memopen.c: Likewise.
39637         * manual/examples/memstrm.c: Likewise.
39638         * manual/examples/mkfsock.c: Likewise.
39639         * manual/examples/mkisock.c: Likewise.
39640         * manual/examples/mygetpass.c: Likewise.
39641         * manual/examples/pipe.c: Likewise.
39642         * manual/examples/popen.c: Likewise.
39643         * manual/examples/rprintf.c: Likewise.
39644         * manual/examples/search.c: Likewise.
39645         * manual/examples/select.c: Likewise.
39646         * manual/examples/setjmp.c: Likewise.
39647         * manual/examples/sigh1.c: Likewise.
39648         * manual/examples/sigusr.c: Likewise.
39649         * manual/examples/stpcpy.c: Likewise.
39650         * manual/examples/strdupa.c: Likewise.
39651         * manual/examples/strftim.c: Likewise.
39652         * manual/examples/strncat.c: Likewise.
39653         * manual/examples/subopt.c: Likewise.
39654         * manual/examples/swapcontext.c: Likewise.
39655         * manual/examples/termios.c: Likewise.
39656         * manual/examples/testopt.c: Likewise.
39657         * manual/examples/testpass.c: Likewise.
39658         * manual/examples/timeval_subtract.c: Likewise.
39659
39660         [BZ #13792]
39661         * manual/time.texi (Elapsed Time): Move timeval_subtract example
39662         function to ...
39663         * manual/timeval_subtract.c.texi: ... here, new file.
39664
39665 2012-03-02  David S. Miller  <davem@davemloft.net>
39666
39667         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
39668
39669 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
39670
39671         [BZ #3976]
39672         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
39673         (__sin): Save and restore rounding mode and use round-to-nearest
39674         for all computations.
39675         (__cos): Save and restore rounding mode and use round-to-nearest
39676         for all computations.
39677         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
39678         <fenv.h>.
39679         (tan): Save and restore rounding mode and use round-to-nearest for
39680         all computations.
39681         * math/libm-test.inc (cos_test_tonearest): New function.
39682         (cos_test_towardzero): Likewise.
39683         (cos_test_downward): Likewise.
39684         (cos_test_upward): Likewise.
39685         (sin_test_tonearest): Likewise.
39686         (sin_test_towardzero): Likewise.
39687         (sin_test_downward): Likewise.
39688         (sin_test_upward): Likewise.
39689         (tan_test_tonearest): Likewise.
39690         (tan_test_towardzero): Likewise.
39691         (tan_test_downward): Likewise.
39692         (tan_test_upward): Likewise.
39693         (main): Call the new functions.
39694         * sysdeps/i386/fpu/libm-test-ulps: Update.
39695         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39696
39697         [BZ #10135]
39698         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
39699         small n, then large n, before computing and testing k+n.
39700         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
39701         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
39702         Likewise.
39703         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
39704         Likewise.
39705         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
39706         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
39707         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
39708         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
39709         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
39710         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
39711         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
39712         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
39713         * math/libm-test.inc (scalbn_test): Add more tests.
39714         (scalbln_test): Likewise.
39715
39716         * manual/filesys.texi (mode_t): Describe constraints on size and
39717         signedness, not exact equivalence to a particular type.
39718         (ino_t): Likewise.
39719         (ino64_t): Likewise.
39720         (dev_t): Likewise.
39721         (nlink_t): Likewise.
39722         (blkcnt_t): Likewise.
39723         (blkcnt64_t): Likewise.
39724         * manual/llio.texi (off_t): Likewise.
39725
39726         [BZ #3976]
39727         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
39728         (__ieee754_exp): Save and restore rounding mode and use
39729         round-to-nearest for all computations.
39730         * math/libm-test.inc (exp_test_tonearest): New function.
39731         (exp_test_towardzero): Likewise.
39732         (exp_test_downward): Likewise.
39733         (exp_test_upward): Likewise.
39734         (main): Call the new functions.
39735         * sysdeps/i386/fpu/libm-test-ulps: Update.
39736         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39737
39738 2012-03-01  Chris Demetriou  <cgd@google.com>
39739
39740         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
39741         have predictable order.
39742
39743 2012-03-01  David S. Miller  <davem@davemloft.net>
39744
39745         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
39746
39747         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
39748         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
39749         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
39750         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
39751
39752         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
39753         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
39754         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
39755         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
39756         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
39757         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
39758         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
39759         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
39760         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
39761
39762         * sysdeps/sparc/fpu/libm-test-ulps: Update.
39763
39764         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
39765         * sysdeps/sparc/fpu/libm-test-ulps: to here.
39766         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
39767
39768         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
39769         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
39770         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
39771         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
39772         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
39773         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
39774         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
39775         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
39776         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
39777         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
39778         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
39779         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
39780         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
39781         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
39782         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
39783         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
39784         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
39785         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
39786         * sysdeps/sparc/elf/configure: Regenerated.
39787
39788 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
39789
39790         * configure.in (AS, LD): Require binutils 2.20 or later.
39791         * configure: Regenerated.
39792         * manual/install.texi (Tools for Compilation): Give binutils 2.20
39793         as required minimum version.
39794         * INSTALL: Regenerated.
39795
39796         [BZ #2541]
39797         [BZ #4108]
39798         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
39799         before squaring exponent.
39800         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
39801         bottom long double and 27 bits of top long double before squaring
39802         exponent.
39803         * math/libm-test.inc (erfc_test): Add more tests.
39804         * sysdeps/i386/fpu/libm-test-ulps: Update.
39805         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
39806         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39807
39808 2012-03-01  Kai Tietz  <ktietz@redhat.com>
39809
39810         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
39811         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
39812         containing bit-fields.
39813         * soft-fp/extended.h (_FP_UNION_E): Likewise.
39814         * soft-fp/single.h (_FP_UNION_S): Likewise.
39815         * soft-fp/double.h (_FP_UNION_D): Likewise.
39816
39817 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
39818
39819         [BZ #13786]
39820         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
39821         not include ../strcmp.S.
39822         [USE_AS_STRNCASECMP_L]: Likewise.
39823         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
39824         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
39825         * sysdeps/i386/i686/multiarch/strncase_l-c.c
39826         (__strncasecmp_l_ia32): Define as alias to
39827         __strncasecmp_l_nonascii.
39828
39829         [BZ #5794]
39830         * math/libm-test.inc (expm1_test): Add test for bug 5794.
39831         * sysdeps/i386/fpu/libm-test-ulps: Update.
39832         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39833
39834         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
39835         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
39836
39837 2012-02-29  Jeff Law  <law@redhat.com>
39838
39839         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
39840         out of bounds read.
39841
39842 2012-02-29  Marek Polacek  <polacek@redhat.com>
39843
39844         [BZ #13706]
39845         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
39846         * elf/Makefile: Add rules to run tst-unused-dep.out.
39847
39848 2012-02-28  David S. Miller  <davem@davemloft.net>
39849
39850         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
39851         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
39852         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
39853         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
39854         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
39855         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
39856
39857 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
39858
39859         * math/libm-test.inc (llround_test): Move one test from
39860         lround_test.  Use TEST_f_L in moved test.
39861         (lround_test): Move misplaced test to llround_test.  Add testcase
39862         from bug 2561.
39863
39864 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
39865
39866         * sysdeps/x86_64/fpu/e_expf.S: New file.
39867         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
39868
39869 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
39870
39871         [BZ #13637]
39872         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
39873         of remain_len that may cause incomplete multi-byte character and
39874         false match.
39875         * posix/bug-regex33.c: New file.
39876         * posix/Makefile (tests): Add bug-regex33.
39877
39878 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
39879
39880         * manual/macros.texi: New file.
39881         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
39882         * manual/libc.texinfo: Include macros.texi.
39883         * manual/creatute.texi: Likewise.
39884         * manual/install.texi: Likewise.
39885         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
39886         @glibcadj{} in references to the GNU C Library.
39887         * manual/charset.texi: Likewise.
39888         * manual/conf.texi: Likewise.
39889         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
39890         when not using those macros.
39891         * manual/creature.texi: Likewise.
39892         * manual/crypt.texi: Likewise.
39893         * manual/errno.texi: Likewise.
39894         * manual/filesys.texi: Likewise.
39895         * manual/header.texi: Likewise.
39896         * manual/install.texi: Likewise.
39897         * manual/intro.texi: Likewise.
39898         * manual/io.texi: Likewise.
39899         * manual/job.texi: Likewise.
39900         * manual/lang.texi: Likewise.
39901         * manual/libc.texiinfo: Likewise.
39902         * manual/llio.texi: Likewise.
39903         * manual/locale.texi: Likewise.
39904         * manual/maint.texi: Likewise.
39905         * manual/math.texi: Likewise.
39906         * manual/memory.texi: Likewise.
39907         * manual/message.texi: Likewise.
39908         * manual/nss.texi: Likewise.
39909         * manual/pattern.texi: Likewise.
39910         * manual/process.texi: Likewise.
39911         * manual/resource.texi: Likewise.
39912         * manual/search.texi: Likewise.
39913         * manual/setjmp.texi: Likewise.
39914         * manual/signal.texi: Likewise.
39915         * manual/socket.texi: Likewise.
39916         * manual/startup.texi: Likewise.
39917         * manual/stdio.texi: Likewise.
39918         * manual/string.texi: Likewise.
39919         * manual/sysinfo.texi: Likewise.
39920         * manual/syslog.texi: Likewise.
39921         * manual/terminal.texi: Likewise.
39922         * manual/time.texi: Likewise.
39923         * manual/users.texi: Likewise.
39924         * INSTALL: Regenerated.
39925         * NOTES: Regenerated.
39926         * sysdeps/gnu/errlist.c: Regenerated.
39927
39928 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
39929
39930         * include/dirent.h: Include <dirstream.h> before
39931         <dirent/dirent.h>.
39932
39933 2012-02-28  David S. Miller  <davem@davemloft.net>
39934
39935         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
39936         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
39937         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
39938         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
39939
39940 2012-02-27  David S. Miller  <davem@davemloft.net>
39941
39942         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
39943         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
39944         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
39945         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
39946
39947         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
39948         frame pointer instead of stack pointer relative arg slot.
39949         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
39950         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
39951         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
39952
39953 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
39954
39955         [BZ #3992]
39956         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
39957
39958 2012-02-27  David S. Miller  <davem@davemloft.net>
39959
39960         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
39961         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
39962         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
39963         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
39964         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
39965         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
39966         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
39967         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
39968
39969 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
39970
39971         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
39972         later.  Allow versions 5-9.
39973         * configure: Regenerated.
39974         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
39975         required minimum version and 4.6 as recommended version.  Do not
39976         mention bugs in GCC 2.7 and 2.8.
39977         * INSTALL: Regenerated.
39978
39979 2012-02-27  David S. Miller  <davem@davemloft.net>
39980
39981         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
39982         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
39983         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
39984         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
39985         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
39986         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
39987         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
39988         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
39989
39990         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
39991         manipulate bits before adding and subtracting TWO112[sx].
39992         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
39993
39994 2012-02-27  Roland McGrath  <roland@hack.frob.com>
39995
39996         [BZ #13775]
39997         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
39998         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
39999         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
40000         being in POSIX, because they are in 1003.1-2008.
40001
40002         * rt/tst-aio.c: Include <fcntl.h>.
40003         * rt/tst-aio7.c: Likewise.
40004         * rt/tst-aio64.c: Likewise.
40005
40006         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
40007
40008 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
40009
40010         * manual/install.texi (--with-headers): Describe headers as
40011         interface headers, not private headers.
40012         (Specific advice for GNU/Linux systems): Describe use of headers
40013         from "make headers_install", not private headers from older
40014         kernels.
40015         * INSTALL: Regenerated.
40016         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
40017         Change to 2.6.19.
40018         * sysdeps/unix/sysv/linux/configure: Regenerated.
40019
40020         * manual/llio.texi (fclean): Remove documentation.
40021
40022         * manual/Makefile (libc-texi-generated): New variable.  Include
40023         version.texi.
40024         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
40025         $(libc-texi-generated), not duplicated list of files.
40026         (version.texi, stamp-version): New rules.
40027         (realclean): Remove $(libc-texi-generated), not individual files
40028         from that list.  Do not remove dir-add.texinfo.
40029         * manual/libc.texinfo: Comment out uses of edition numbers and
40030         references to printed manual.  Remove last-updated dates.
40031         (EDITION): Comment out.
40032         (ISBN): Likewise.
40033         (VERSION, UPDATED): Remove.
40034         (version.texi): Include.
40035
40036 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
40037
40038         * sysdeps/posix/spawni.c: Include <signal.h>.
40039         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
40040         * sysdeps/pthread/aio_fsync.c: Likewise.
40041
40042 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
40043
40044         * conform/Makefile (tests): Run only when not cross-compiling and
40045         when fast-check is not defined.
40046
40047         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
40048         * conform/data/limits.h-data: Fixes for POSIX2008.
40049         * conform/run-conformtest.sh: Run all tests.
40050         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
40051         headers.
40052         * include/bits/dlfcn.h: Likewise.
40053         * include/langinfo.h: Likewise.
40054         * include/monetary.h: Likewise.
40055         * include/sys/poll.h: Likewise.
40056
40057         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
40058         for __USE_GNU.
40059         * posix/spawn.h: Define __need_sigset_t.
40060         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
40061         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
40062         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
40063         to get sigevent_t only.
40064         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
40065         only for __USE_GNU.
40066         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
40067         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
40068         process_vm_writev only for __USE_GNU.
40069         * termios/termios.h: Declare tcgetsid also for POSIX2008.
40070
40071         * conform/Makefile: For now ignore errors from run-conformtest.
40072         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
40073         POSIX to avoid namespace pollution.  Don't prepend headers.
40074         * conform/data/aio.h-data: Fixes for POSIX testing.
40075         * conform/data/fcntl.h-data: Likewise.
40076         * conform/data/glob.h-data: Likewise.
40077         * conform/data/grp.h-data: Likewise.
40078         * conform/data/pthread.h-data: Likewise.
40079         * conform/data/pwd.h-data: Likewise.
40080         * conform/data/signal.h-data: Likewise.
40081         * conform/data/spawn.h-data: Likewise.
40082         * conform/data/stdio.h-data: Likewise.
40083         * conform/data/stdlib.h-data: Likewise.
40084         * conform/data/stropts.h-data: Likewise.
40085         * conform/data/sys/mman.h-data: Likewise.
40086         * conform/data/sys/stat.h-data: Likewise.
40087         * conform/data/sys/types.h-data: Likewise.
40088         * conform/data/sys/wait.h-data: Likewise.
40089         * conform/data/time.h-data: Likewise.
40090         * conform/data/unistd.h-data: Likewise.
40091         * conform/data/utime.h-data: Likewise.
40092
40093         * io/sys/stat.h: fchmod was always in POSIX.
40094         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
40095         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
40096         * rt/aio.h: Define __need_timespec before including <time.h>.
40097         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
40098         struct.  Add forward declaration of pthread_attr_t and use it in
40099         sigevent.
40100         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
40101         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
40102         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
40103         always remove CLK_TCK definition.
40104
40105 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
40106
40107         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
40108
40109 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
40110
40111         * conform/run-conformtest.sh: New file.
40112         * conform/Makefile: Run run-conformtest for tests.
40113         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
40114         support.
40115
40116         * conform/data/uchar.h-data: New file.
40117         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
40118         * conform/data/arpa/inet.h-data: Likewise.
40119         * conform/data/assert.h-data: Likewise.
40120         * conform/data/complex.h-data: Likewise.
40121         * conform/data/cpio.h-data: Likewise.
40122         * conform/data/ctype.h-data: Likewise.
40123         * conform/data/dirent.h-data: Likewise.
40124         * conform/data/dlfcn.h-data: Likewise.
40125         * conform/data/errno.h-data: Likewise.
40126         * conform/data/fcntl.h-data: Likewise.
40127         * conform/data/float.h-data: Likewise.
40128         * conform/data/fmtmsg.h-data: Likewise.
40129         * conform/data/fnmatch.h-data: Likewise.
40130         * conform/data/ftw.h-data: Likewise.
40131         * conform/data/glob.h-data: Likewise.
40132         * conform/data/grp.h-data: Likewise.
40133         * conform/data/iconv.h-data: Likewise.
40134         * conform/data/inttypes.h-data: Likewise.
40135         * conform/data/langinfo.h-data: Likewise.
40136         * conform/data/libgen.h-data: Likewise.
40137         * conform/data/limits.h-data: Likewise.
40138         * conform/data/locale.h-data: Likewise.
40139         * conform/data/math.h-data: Likewise.
40140         * conform/data/monetary.h-data: Likewise.
40141         * conform/data/mqueue.h-data: Likewise.
40142         * conform/data/ndbm.h-data: Likewise.
40143         * conform/data/net/if.h-data: Likewise.
40144         * conform/data/netdb.h-data: Likewise.
40145         * conform/data/netinet/in.h-data: Likewise.
40146         * conform/data/nl_types.h-data: Likewise.
40147         * conform/data/poll.h-data: Likewise.
40148         * conform/data/pthread.h-data: Likewise.
40149         * conform/data/pwd.h-data: Likewise.
40150         * conform/data/regex.h-data: Likewise.
40151         * conform/data/sched.h-data: Likewise.
40152         * conform/data/search.h-data: Likewise.
40153         * conform/data/semaphore.h-data: Likewise.
40154         * conform/data/setjmp.h-data: Likewise.
40155         * conform/data/signal.h-data: Likewise.
40156         * conform/data/spawn.h-data: Likewise.
40157         * conform/data/stdarg.h-data: Likewise.
40158         * conform/data/stdio.h-data: Likewise.
40159         * conform/data/stdlib.h-data: Likewise.
40160         * conform/data/string.h-data: Likewise.
40161         * conform/data/strings.h-data: Likewise.
40162         * conform/data/stropts.h-data: Likewise.
40163         * conform/data/sys/ipc.h-data: Likewise.
40164         * conform/data/sys/mman.h-data: Likewise.
40165         * conform/data/sys/msg.h-data: Likewise.
40166         * conform/data/sys/resource.h-data: Likewise.
40167         * conform/data/sys/select.h-data: Likewise.
40168         * conform/data/sys/sem.h-data: Likewise.
40169         * conform/data/sys/shm.h-data: Likewise.
40170         * conform/data/sys/socket.h-data: Likewise.
40171         * conform/data/sys/stat.h-data: Likewise.
40172         * conform/data/sys/statvfs.h-data: Likewise.
40173         * conform/data/sys/time.h-data: Likewise.
40174         * conform/data/sys/timeb.h-data: Likewise.
40175         * conform/data/sys/times.h-data: Likewise.
40176         * conform/data/sys/types.h-data: Likewise.
40177         * conform/data/sys/uio.h-data: Likewise.
40178         * conform/data/sys/un.h-data: Likewise.
40179         * conform/data/sys/utsname.h-data: Likewise.
40180         * conform/data/sys/wait.h-data: Likewise.
40181         * conform/data/syslog.h-data: Likewise.
40182         * conform/data/tar.h-data: Likewise.
40183         * conform/data/termios.h-data: Likewise.
40184         * conform/data/utime.h-data: Likewise.
40185         * conform/data/utmpx.h-data: Likewise.
40186         * conform/data/varargs.h-data: Likewise.
40187         * conform/data/wchar.h-data: Likewise.
40188         * conform/data/wctype.h-data: Likewise.
40189         * conform/data/wordexp.h-data: Likewise.
40190
40191         * include/stropts.h: New file.
40192         * include/uchar.h: New file.
40193         * include/aio.h: Changes to allow conformtest.pl to use the headers.
40194         * include/assert.h: Likewise.
40195         * include/ctype.h: Likewise.
40196         * include/dirent.h: Likewise.
40197         * include/dlfcn.h: Likewise.
40198         * include/fcntl.h: Likewise.
40199         * include/fnmatch.h: Likewise.
40200         * include/glob.h: Likewise.
40201         * include/grp.h: Likewise.
40202         * include/libio.h: Likewise.
40203         * include/locale.h: Likewise.
40204         * include/math.h: Likewise.
40205         * include/net/if.h: Likewise.
40206         * include/netdb.h: Likewise.
40207         * include/netinet/in.h: Likewise.
40208         * include/pthread.h: Likewise.
40209         * include/pwd.h: Likewise.
40210         * include/regex.h: Likewise.
40211         * include/sched.h: Likewise.
40212         * include/search.h: Likewise.
40213         * include/setjmp.h: Likewise.
40214         * include/signal.h: Likewise.
40215         * include/stdio.h: Likewise.
40216         * include/stdlib.h: Likewise.
40217         * include/string.h: Likewise.
40218         * include/sys/cdefs.h: Likewise.
40219         * include/sys/mman.h: Likewise.
40220         * include/sys/msg.h: Likewise.
40221         * include/sys/resource.h: Likewise.
40222         * include/sys/select.h: Likewise.
40223         * include/sys/socket.h: Likewise.
40224         * include/sys/stat.h: Likewise.
40225         * include/sys/statvfs.h: Likewise.
40226         * include/sys/time.h: Likewise.
40227         * include/sys/times.h: Likewise.
40228         * include/sys/uio.h: Likewise.
40229         * include/sys/utsname.h: Likewise.
40230         * include/sys/wait.h: Likewise.
40231         * include/termios.h: Likewise.
40232         * include/time.h: Likewise.
40233         * include/ulimit.h: Likewise.
40234         * include/unistd.h: Likewise.
40235         * include/utime.h: Likewise.
40236         * include/wchar.h: Likewise.
40237         * include/wctype.h: Likewise.
40238         * include/wordexp.h: Likewise.
40239
40240         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
40241
40242         * time/time.h: TIME_UTC must be a macro.
40243         Make timespec_get available for ISO C11 only as well.
40244
40245 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
40246
40247         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
40248         Reported by Peng Haitao <penght@cn.fujitsu.com>.
40249
40250 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
40251
40252         * configure.in: Use -o not -a in test for unsupported multi-arch.
40253
40254 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
40255
40256         * manual/texinfo.tex: Update to version 2012-01-19.16.
40257
40258 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
40259
40260         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
40261
40262 2012-02-24  Roland McGrath  <roland@hack.frob.com>
40263
40264         [BZ #13738]
40265         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
40266         * manual/fdl-1.3.texi: New file.
40267         * manual/fdl-1.1.texi: File removed.
40268
40269         [BZ #13738]
40270         * manual/libc.texinfo (FDL_VERSION): New @set.
40271         Use it for mention of FDL in cover text.
40272         (Documentation License): Use it in @include file name.
40273
40274 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
40275             Roland McGrath  <roland@hack.frob.com>
40276
40277         [BZ #5461]
40278         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN)
40279         (not LONG_LONG_MAX and LONG_LONG_MIN.
40280         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
40281         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
40282         name.
40283         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
40284
40285 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
40286
40287         [BZ #2547]
40288         [BZ #11365]
40289         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
40290         manipulate bits before adding and subtracting TWO23[sx].
40291         * math/libm-test.inc (nearbyint_test): Add more tests.
40292
40293 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
40294
40295         [BZ #2548]
40296         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
40297         bits before adding and subtracting TWO23[sx].
40298         * math/libm-test.inc (rint_test): Add more tests.
40299         (rint_test_tonearest): Likewise.
40300         (rint_test_towardzero): Likewise.
40301         (rint_test_downward): Likewise.
40302         (rint_test_upward: Likewise.
40303
40304 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
40305
40306         [BZ #10110]
40307         * include/stdc-predef.h: New file.  Extracted from features.h.
40308         * include/features.h: Include stdc-predef.h.
40309         * Makefile (headers): Add stdc-predef.h.
40310         * CONFORMANCE (Compiler limitations): Update.
40311
40312 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
40313
40314         * manual/libc.texinfo (VERSION, UPDATED): Revert.
40315
40316 2012-02-21  David S. Miller  <davem@davemloft.net>
40317
40318         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
40319         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
40320
40321 2012-02-20  David S. Miller  <davem@davemloft.net>
40322
40323         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
40324         using a normal save/restore sequence, rather than allocating a
40325         dummy stack frame just to store a frame pointer and restore.
40326         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
40327
40328 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
40329
40330         * manual/install.texi: Fix stray word in line-wrapped comment.
40331
40332 2012-02-20  David S. Miller  <davem@davemloft.net>
40333
40334         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
40335         both binutils and gcc support GOTDATA.
40336
40337         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
40338         "rd %pc" in the PIC register setup sequences.
40339
40340         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
40341         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
40342         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
40343         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
40344         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
40345         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
40346         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
40347         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
40348         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
40349         (SYSCALL_ERROR_HANDLER): Likewise.
40350         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
40351         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
40352         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
40353         (SYSCALL_ERROR_HANDLER): Likewise.
40354
40355         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
40356         (HAVE_GCC_GOTDATA): New.
40357         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
40358         relocation support in both binutils and gcc.
40359         * sysdeps/sparc/elf/configure: Regenerate.
40360
40361         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
40362         * sysdeps/sparc/sparc32/elf/configure: Delete.
40363         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
40364         * sysdeps/sparc/sparc64/elf/configure: Delete.
40365         * sysdeps/sparc/elf/configure.in: New file.
40366         * sysdeps/sparc/elf/configure: Generate.
40367
40368         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
40369         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
40370         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
40371         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
40372         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
40373
40374 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
40375
40376         * manual/install.texi: Do not mention specific glibc version
40377         numbers.
40378         * manual/libc.texinfo (VERSION, UPDATED): Update.
40379         (@copying): Use @copyright{} and range of years.
40380
40381 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
40382
40383         [BZ #13695]
40384         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
40385         [crti.S not in sysdirs] (generated): Do not append.
40386         [crti.S not in sysdirs] (omit-deps): Likewise.
40387         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
40388         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
40389         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
40390         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
40391         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
40392         Likewise.
40393         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
40394         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
40395         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
40396         * csu/defs.awk: Remove file.
40397         * sysdeps/generic/initfini.c: Likewise.
40398         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
40399         variable.
40400         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
40401         Likewise.
40402
40403 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
40404
40405         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
40406         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
40407         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
40408         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
40409         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
40410         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
40411         <bits/epoll.h>.
40412         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
40413         (__EPOLL_PACKED): Define to empty if not defined by
40414         <bits/epoll.h>.
40415         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
40416         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
40417         bits/epoll.h.
40418
40419 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
40420
40421         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
40422         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
40423         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
40424         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
40425         <bits/timerfd.h>.
40426         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
40427         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
40428         bits/timerfd.h.
40429
40430 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
40431
40432         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
40433         in C locale.
40434         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
40435         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
40436         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
40437         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40438
40439 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
40440
40441         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40442         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
40443
40444 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
40445
40446         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
40447         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
40448         defined.
40449         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
40450         Likewise.
40451         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
40452         entry for 2.16.
40453
40454 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
40455
40456         * math/w_acos.c: Use non-signaling floating-point comparisons.
40457         * math/w_acosf.c: Likewise.
40458         * math/w_acosh.c: Likewise.
40459         * math/w_acoshf.c: Likewise.
40460         * math/w_acoshl.c: Likewise.
40461         * math/w_acosl.c: Likewise.
40462         * math/w_asin.c: Likewise.
40463         * math/w_asinf.c: Likewise.
40464         * math/w_asinl.c: Likewise.
40465         * math/w_atanh.c: Likewise.
40466         * math/w_atanhf.c: Likewise.
40467         * math/w_atanhl.c: Likewise.
40468         * math/w_exp2.c: Likewise.
40469         * math/w_exp2f.c: Likewise.
40470         * math/w_exp2l.c: Likewise.
40471         * math/w_j0.c: Likewise.
40472         * math/w_j0f.c: Likewise.
40473         * math/w_j0l.c: Likewise.
40474         * math/w_j1.c: Likewise.
40475         * math/w_j1f.c: Likewise.
40476         * math/w_j1l.c: Likewise.
40477         * math/w_jn.c: Likewise.
40478         * math/w_jnf.c: Likewise.
40479         * math/w_log.c: Likewise.
40480         * math/w_log10.c: Likewise.
40481         * math/w_log10f.c: Likewise.
40482         * math/w_log10l.c: Likewise.
40483         * math/w_log2.c: Likewise.
40484         * math/w_log2f.c: Likewise.
40485         * math/w_log2l.c: Likewise.
40486         * math/w_logf.c: Likewise.
40487         * math/w_logl.c: Likewise.
40488         * math/w_sqrt.c: Likewise.
40489         * math/w_sqrtf.c: Likewise.
40490         * math/w_sqrtl.c: Likewise.
40491         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
40492         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
40493         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
40494         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
40495         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
40496
40497 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
40498
40499         [BZ #9739]
40500         * manual/string.texi (strnlen): Use correct parameter name in
40501         equivalent expression.
40502
40503 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
40504
40505         [BZ #11174]
40506         * manual/users.texi (seteuid): Consistently use neweuid for
40507         argument name.
40508
40509 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
40510
40511         [BZ #13704]
40512         * manual/nss.texi (Services in the NSS configuration): Correct
40513         list of services in example configuration file.
40514
40515 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
40516
40517         [BZ #11322]
40518         * manual/arith.texi: Remove statements about negative zero
40519         behaving identically to zero.
40520
40521 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
40522
40523         [BZ #5993]
40524         * manual/install.texi: Do not document upgrading from libc5.
40525
40526 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
40527
40528         [BZ #4596]
40529         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
40530
40531 2012-02-18  David S. Miller  <davem@davemloft.net>
40532
40533         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
40534         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
40535         %o7 across the call.
40536         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
40537         instead.
40538         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
40539         SETUP_PIC_REG_LEAF.
40540         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
40541         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
40542         * sysdeps/sparc/crtn.S: Likewise.
40543
40544 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
40545
40546         * aout/Makefile: Remove.
40547
40548 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
40549
40550         [BZ #13058]
40551         * manual/examples/argp-ex1.c (main): Format definition in GNU
40552         style.
40553         * manual/examples/argp-ex2.c (main): Likewise.
40554         * manual/examples/argp-ex3.c (main): Likewise.
40555         * manual/examples/argp-ex4.c (main): Likewise.
40556         * manual/examples/longopt.c (main): Use new-style prototype
40557         definition.
40558         * manual/examples/strncat.c (main): Specify return type and use
40559         (void) for arguments.
40560         * manual/examples/subopt.c (main): Use char **argv argument.
40561
40562 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
40563
40564         [BZ #5077]
40565         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
40566         rounding modes.
40567
40568 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
40569
40570         [BZ #6907]
40571         * manual/string.texi (strchr): Change when strchrnul is
40572         recommended.
40573
40574 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
40575
40576         [BZ #174]
40577         * manual/locale.texi (setlocale): Document LOCPATH.
40578
40579 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
40580
40581         [BZ #10210]
40582         * manual/process.texi (execle): Move @dots{} before last argument.
40583
40584 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
40585
40586         [BZ #12047]
40587         * manual/charset.texi (Generic Charset Conversion): Fix typo
40588         (LC_TYPE -> LC_CTYPE).
40589
40590 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
40591
40592         [BZ #5805]
40593         * manual/arith.texi (scalbn): Use @var{} on parameter names.
40594         (scalbnf): Likewise.
40595         (scalbnl): Likewise.
40596         (scalbln): Likewise.
40597         (scalblnf): Likewise.
40598         (scalblnl): Likewise.
40599         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
40600         (vwarnx): Likewise.
40601         (verr): Likewise.
40602         (verrx): Likewise.
40603         * manual/filesys.texi (telldir): Use braces around return type.
40604         * manual/llio.texi (mmap): Add space after comma.
40605         (mmap64): Likewise.
40606         * manual/math.texi (jn): Use @var{} on parameter names.
40607         (jnf): Likewise.
40608         (jnl): Likewise.
40609         (yn): Likewise.
40610         (ynf): Likewise.
40611         (ynl): Likewise.
40612         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
40613         line.
40614         * manual/resource.texi (ulimit): Use @dots{} instead of literal
40615         "...".
40616         (sched_get_priority_min): Remove semicolon on @deftypefun line.
40617         (sched_get_priority_max): Likewise.
40618         * manual/signal.texi (sigvec): Add space after comma.
40619         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
40620         names.
40621         (if_indextoname): Likewise.
40622         (if_freenameindex): Likewise.
40623         (sendto): Use ',' instead of '.' in prototype.
40624         * manual/startup.texi (syscall): Use @dots{} instead of literal
40625         "...".
40626         * manual/stdio.texi (__fpending): Separate initial words of
40627         paragraph from @deftypefun line.
40628         * manual/syslog.texi (syslog): Use @dots{} instead of literal
40629         "...".
40630         (vsyslog): Use @var{} on parameter names.
40631         * manual/terminal.texi (stty): Use @var{} on parameter names.
40632         * manual/users.texi (getutmp): Use @var{} on parameter names.
40633         (getutmpx): Likewise.
40634
40635 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
40636
40637         [BZ #6884]
40638         * manual/stdio.texi (fopen): Fix typos in description of
40639         ",ccs=STRING".
40640
40641 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
40642
40643         [BZ #4026]
40644         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
40645         get clock_id definition.
40646
40647 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
40648
40649         [BZ #4822]
40650         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
40651         (madvise): Cast every argument to void on its own.
40652
40653 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
40654
40655         [BZ #9902]
40656         * manual/startup.texi (Exit Status): Fix typo.
40657
40658 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
40659
40660         [BZ #10140]
40661         * manual/examples/argp-ex1.c: Include <stdlib.h>.
40662         * manual/examples/argp-ex2.c: Likewise.
40663         * manual/examples/argp-ex3.c: Likewise.
40664
40665 2012-02-16  Richard Henderson  <rth@redhat.com>
40666
40667         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
40668         * sysdeps/s390/s390-32/initfini.c: Remove.
40669         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
40670         * sysdeps/s390/s390-64/initfini.c: Remove.
40671
40672 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
40673
40674         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
40675         compiler output for sysdeps/generic/initfini.c.
40676         * sysdeps/sh/elf/initfini.c: Remove file.
40677
40678 2012-02-16  David S. Miller  <davem@davemloft.net>
40679
40680         [BZ #11494]
40681         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
40682
40683         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
40684         * sysdeps/sparc/crti.S: New file.
40685         * sysdeps/sparc/crtn.S: New file.
40686         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
40687         * sysdeps/sparc/sparc64/Makefile: Likewise.
40688
40689 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
40690
40691         [BZ #3335]
40692         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
40693
40694 2012-02-15  Roland McGrath  <roland@hack.frob.com>
40695
40696         [BZ #4822]
40697         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
40698
40699         * mach/devstream.c (cookie_io_functions_t): Macro removed.
40700         (write, read, close): Likewise.
40701         Patch by Aurelien Jarno <aurelien@aurel32.net>.
40702
40703 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
40704
40705         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
40706         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
40707         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
40708         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
40709         <bits/signalfd.h>.
40710         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
40711         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
40712         bits/signalfd.h.
40713
40714 2012-02-14  Marek Polacek  <polacek@redhat.com>
40715
40716         * sysdeps/x86_64/crti.S: New file.
40717         * sysdeps/x86_64/crtn.S: New file.
40718         * sysdeps/x86_64/elf/initfini.c: Remove file.
40719
40720 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
40721
40722         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
40723         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
40724         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
40725         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
40726         <bits/inotify.h>.
40727         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
40728         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
40729         bits/inotify.h.
40730
40731 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
40732
40733         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
40734         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
40735         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
40736         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
40737         <bits/eventfd.h>.
40738         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
40739         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
40740         bits/eventfd.h.
40741
40742 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
40743
40744         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
40745         __feraiseexcept instead of feraiseexcept.
40746
40747         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
40748         nanosleep invocations.
40749         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
40750         strings, and add error checking for a nanosleep invocations.
40751
40752 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
40753
40754         Replace FSF snail mail address with URLs, as per GNU coding standards.
40755         Most of the snail mail addresses were wrong anyway, and omitting
40756         them makes the source code easier to maintain.  Almost all of the
40757         changes are to license notices and to locale LC_IDENTIFICATION
40758         addresses, except for this one:
40759         * manual/libc.texinfo: In "Published by", give the FSF's URL,
40760         not its snail mail address.
40761
40762 2012-02-09  Richard Henderson  <rth@twiddle.net>
40763
40764         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
40765         of kernel-features.h.
40766
40767         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
40768
40769 2012-02-08  Marek Polacek  <polacek@redhat.com>
40770
40771         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
40772         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
40773         * sysdeps/gnu/_G_config.h: Likewise.
40774         * sysdeps/generic/_G_config.h: Likewise.
40775
40776 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
40777
40778         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
40779         tests.
40780         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
40781
40782         * sysdeps/powerpc/powerpc32/crti.S: New file.
40783         * sysdeps/powerpc/powerpc32/crtn.S: New file.
40784         * sysdeps/powerpc/powerpc64/crti.S: New file.
40785         * sysdeps/powerpc/powerpc64/crtn.S: New file.
40786
40787         * Makeconfig (have-initfini): Don't set.
40788         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
40789         * configure.in (nopic_initfini): Don't substitute.
40790         * config.h.in (HAVE_INITFINI): Don't #undef.
40791         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
40792         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
40793
40794 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
40795
40796         Support crti.S and crtn.S provided directly by architectures.
40797         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
40798         [crti.S in sysdirs] (omit-deps): Likewise.
40799         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
40800         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
40801         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
40802         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
40803         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
40804         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
40805         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
40806         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
40807         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
40808         compiler output for sysdeps/generic/initfini.c.
40809         * sysdeps/i386/elf/Makefile: Remove file.
40810         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
40811
40812 2012-02-07  Marek Polacek  <polacek@redhat.com>
40813
40814         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
40815         * sysdeps/gnu/_G_config.h: Likewise.
40816         * sysdeps/mach/hurd/_G_config.h: Likewise.
40817
40818 2012-02-07  Marek Polacek  <polacek@redhat.com>
40819
40820         * math/Makefile (tests): Add tst-CMPLX2.
40821         * math/tst-CMPLX2.c: New file.
40822
40823 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
40824
40825         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
40826
40827         * math/libm-test.inc (jn_test): Add missing L suffix.
40828
40829 2012-02-06  Marek Polacek  <polacek@redhat.com>
40830
40831         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
40832         * sysdeps/i386/fpu/e_powf.S: Likewise.
40833         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
40834         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
40835         * sysdeps/i386/fpu/e_acosh.S: Likewise.
40836         * sysdeps/i386/fpu/e_pow.S: Likewise.
40837         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
40838         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
40839         * sysdeps/i386/fpu/s_expm1.S: Likewise.
40840         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
40841         * sysdeps/i386/fpu/e_log2.S: Likewise.
40842         * sysdeps/i386/fpu/e_log2l.S: Likewise.
40843         * sysdeps/i386/fpu/e_scalb.S: Likewise.
40844         * sysdeps/i386/fpu/e_powl.S: Likewise.
40845         * sysdeps/i386/fpu/s_log1p.S: Likewise.
40846         * sysdeps/i386/fpu/e_log10f.S: Likewise.
40847         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
40848         * sysdeps/i386/fpu/e_logl.S: Likewise.
40849         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
40850         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
40851         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
40852         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
40853         * sysdeps/i386/fpu/e_log2f.S: Likewise.
40854         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
40855         * sysdeps/i386/fpu/e_log.S: Likewise.
40856         * sysdeps/i386/fpu/s_cexp.S: Likewise.
40857         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
40858         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
40859         * sysdeps/i386/fpu/e_logf.S: Likewise.
40860         * sysdeps/i386/fpu/e_log10l.S: Likewise.
40861         * sysdeps/i386/fpu/e_atanh.S: Likewise.
40862         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
40863         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
40864         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
40865         * sysdeps/i386/fpu/e_log10.S: Likewise.
40866         * sysdeps/i386/fpu/s_frexp.S: Likewise.
40867         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
40868         * sysdeps/i386/fpu/s_asinh.S: Likewise.
40869         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
40870         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
40871         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
40872         * sysdeps/i386/asm-syntax.h: Likewise.
40873         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
40874         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
40875         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
40876         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
40877         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
40878         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
40879         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
40880         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
40881         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
40882         * sysdeps/powerpc/sysdep.h: Likewise.
40883         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
40884         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
40885
40886 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
40887
40888         [BZ #411]
40889         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
40890
40891 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
40892
40893         * sysdeps/i386/sysdep.h: Include <features.h>.
40894         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
40895         version.
40896
40897 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
40898
40899         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
40900         Define.
40901         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
40902         LOAD_PIC_REG_STR.
40903
40904 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40905
40906         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
40907         (SETUP_PIC_REG): Use GET_PC_THUNK.
40908         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
40909         macro.
40910
40911 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40912
40913         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
40914         for non-PIC compilation.
40915         (SETUP_PIC_REG): Add .p2align directive.
40916         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
40917         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
40918         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
40919         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
40920         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
40921         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
40922         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
40923         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
40924         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
40925         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
40926         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
40927         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
40928         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
40929         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
40930         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
40931         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
40932         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
40933         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
40934         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
40935         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
40936         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
40937         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
40938         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
40939         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
40940         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
40941         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
40942         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
40943         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
40944         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
40945         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
40946         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
40947         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
40948         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
40949         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
40950         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
40951         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
40952         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
40953         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
40954         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
40955         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
40956         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
40957
40958 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
40959
40960         * math/tst-CMPLX.c: Include <stdio.h>.
40961
40962 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
40963
40964         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
40965         float.
40966         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
40967         * sysdeps/sparc/bits/mathdef.h: Likewise.
40968
40969 2012-01-31  Marek Polacek  <polacek@redhat.com>
40970
40971         * libio/libio.h: Don't define _PARAMS.
40972         * locale/programs/config.h: Don't define PARAMS.
40973         * stdlib/strtol_l.c: Likewise.
40974         (__strtol_l): Remove PARAMS from the prototype.
40975
40976 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
40977
40978         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
40979         names.  Just use the correct names.  Remove unnecessary wrapper
40980         functions.
40981         * malloc/arena.c: Likewise.
40982         * malloc/hooks.c: Likewise.
40983
40984         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
40985         ARENA_TEST says not to.  Simplify test for creation of a new arena.
40986         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
40987
40988 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
40989
40990         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
40991         into tail calls.
40992         (update_get_addr): New function.
40993         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
40994         GET_ADDR_MODULE parameter.
40995
40996 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
40997
40998         * crypt/cert.c: Remove __STDC__ conditionals.
40999         * crypt/crypt-entry.c: Likewise.
41000         * crypt/crypt_util.c: Likewise.
41001         * libio/filedoalloc.c: Likewise.
41002         * libio/fileops.c: Likewise.
41003         * libio/genops.c: Likewise.
41004         * libio/iofclose.c: Likewise.
41005         * libio/iofdopen.c: Likewise.
41006         * libio/iofopen.c: Likewise.
41007         * libio/iofopen64.c: Likewise.
41008         * libio/iogetdelim.c: Likewise.
41009         * libio/iopopen.c: Likewise.
41010         * libio/obprintf.c: Likewise.
41011         * libio/oldfileops.c: Likewise.
41012         * libio/oldiofclose.c: Likewise.
41013         * libio/oldiofdopen.c: Likewise.
41014         * libio/oldiofopen.c: Likewise.
41015         * libio/oldiopopen.c: Likewise.
41016         * libio/wfiledoalloc.c: Likewise.
41017         * libio/wgenops.c: Likewise.
41018         * locale/programs/xmalloc.c: Likewise.
41019         * misc/syslog.c: Likewise.
41020         * stdio-common/xbug.c: Likewise.
41021         * string/memchr.c: Likewise.
41022         * string/memcmp.c: Likewise.
41023         * string/memrchr.c: Likewise.
41024         * string/rawmemchr.c: Likewise.
41025         * sysdeps/posix/getcwd.c: Likewise.
41026         * time/strftime_l.c: Likewise.
41027
41028 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
41029
41030         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
41031         * config.make.in (config-cflags-sse2avx): Define.
41032         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
41033         Fix typo.
41034
41035 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
41036
41037         * scripts/config.guess: Update from upstream config git repository.
41038         * scripts/config.sub: Likewise.
41039
41040 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
41041
41042         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
41043         (EM_NUM): Update.
41044         (R_TILEPRO_*, R_TILEGX_*): New macros.
41045
41046         * scripts/firstversions.awk: Fix bug in version range handling.
41047
41048         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
41049
41050         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
41051
41052         * include/sys/epoll.h: New file.
41053         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
41054         libc_hidden_def.
41055
41056 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
41057
41058         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
41059         Avoid unnecessary __WORDSIZE == 64 test.
41060         (fmaxf): Use VEX format if possible.
41061         (fmax): Likewise.
41062         (fminf): Likewise.
41063         (fmin): Likewise.
41064
41065         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
41066         * math/math_private.h: Remove libc_fegetround* and
41067         libc_fesetround*.
41068         * sysdeps/i386/configure.in: Check for -msse2avx.
41069         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
41070         also if SSE2AVX is defined.
41071         Remove libc_fegetround* and libc_fesetround*.
41072         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
41073         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
41074         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
41075         of HAS_YMM_USABLE.
41076         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41077         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41078         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41079         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41080         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41081
41082         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
41083
41084 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
41085
41086         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
41087         size is not set.
41088         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
41089
41090 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
41091
41092         [BZ #13618]
41093         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
41094         relocation.
41095         * Makeconfig (libm): Define.
41096         * elf/Makefile: Add rules to build and run tst-relsort1.
41097         * elf/tst-relsort1.c: New file.
41098         * elf/tst-relsort1mod1.c: New file.
41099         * elf/tst-relsort1mod2.c: New file.
41100
41101 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
41102
41103         * math/s_ldexp.c: Remove __STDC__ conditionals.
41104         * math/s_ldexpf.c: Likewise.
41105         * math/s_ldexpl.c: Likewise.
41106         * math/s_nextafter.c: Likewise.
41107         * math/s_nexttowardf.c: Likewise.
41108         * math/s_significand.c: Likewise.
41109         * math/s_significandf.c: Likewise.
41110         * math/s_significandl.c: Likewise.
41111         * math/w_jnl.c: Likewise.
41112         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
41113         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
41114         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
41115         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
41116         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
41117         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
41118         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
41119         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
41120         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
41121         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
41122         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
41123         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
41124         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
41125         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
41126         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
41127         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
41128         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
41129         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
41130         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
41131         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
41132         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
41133         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
41134         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
41135         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
41136         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
41137         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
41138         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
41139         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
41140         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
41141         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
41142         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
41143         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
41144         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
41145         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
41146         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
41147         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
41148         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
41149         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
41150         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
41151         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
41152         * sysdeps/ieee754/k_standard.c: Likewise.
41153         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
41154         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
41155         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
41156         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
41157         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
41158         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
41159         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
41160         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
41161         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
41162         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
41163         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
41164         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
41165         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
41166         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
41167         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
41168         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
41169         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
41170         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
41171         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
41172         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
41173         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
41174         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
41175         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
41176         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
41177         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
41178         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
41179         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
41180         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
41181         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
41182         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
41183         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
41184         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
41185         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
41186         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
41187         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
41188         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
41189         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
41190         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
41191         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
41192         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
41193         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
41194         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
41195         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
41196         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
41197         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
41198         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
41199         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
41200         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
41201         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
41202         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
41203         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
41204         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
41205         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
41206         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
41207         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
41208         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
41209         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
41210         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
41211         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
41212         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
41213         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
41214         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
41215         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
41216         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
41217         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
41218         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
41219         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
41220         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
41221         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
41222         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
41223         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
41224         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
41225         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
41226         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
41227         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
41228         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
41229         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
41230         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
41231         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
41232         * sysdeps/ieee754/s_matherr.c: Likewise.
41233         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
41234         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
41235         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
41236         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
41237
41238 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
41239
41240         * crypt/md5.h: Remove __STDC__ conditionals.
41241         * libio/libioP.h: Likewise.
41242         * locale/programs/config.h: Likewise.
41243         * sysdeps/generic/sysdep.h: Likewise.
41244         * sysdeps/i386/asm-syntax.h: Likewise.
41245         * sysdeps/s390/asm-syntax.h: Likewise.
41246         * sysdeps/unix/sysdep.h: Likewise.
41247         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
41248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
41249
41250 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
41251
41252         * libio/libio.h: Remove __STDC__ conditionals.
41253         * malloc/obstack.h: Likewise.
41254         * math/complex.h: Likewise.
41255         * math/math.h: Likewise.
41256         * sysdeps/generic/_G_config.h: Likewise.
41257         * sysdeps/gnu/_G_config.h: Likewise.
41258         * sysdeps/mach/hurd/_G_config.h: Likewise.
41259         * sysdeps/powerpc/bits/mathdef.h: Likewise.
41260         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
41261         * sysdeps/sparc/bits/mathdef.h: Likewise.
41262
41263 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
41264
41265         [BZ #13583]
41266         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
41267         Clean up HAS_* macros.
41268         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
41269         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
41270         possible.
41271         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
41272         HAS_AVX.
41273         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
41274         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
41275         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
41276         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
41277         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
41278
41279 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
41280
41281         * elf/tst-unique3.cc (gets): Remove declaration.
41282         * elf/tst-unique3lib.cc (gets): Likewise.
41283         * elf/tst-unique3lib2.cc (gets): Likewise.
41284         * elf/tst-unique4.cc (gets): Likewise.
41285
41286 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
41287
41288         * include/stdio.h: Add C++ protection.  Add gets declarations and
41289         definitions.
41290         * debug/tst-chk1.c: Don't declare gets here.
41291         * stdio-common/tst-gets.c: Likewise.
41292
41293 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
41294
41295         * posix/glob: Remove directory.
41296
41297 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
41298
41299         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
41300
41301 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
41302
41303         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
41304         of the non-standard EPFNOSUPPORT.
41305
41306 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
41307
41308         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
41309         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
41310         ANYWHERE set to 1 only on KERN_NO_SPACE error.
41311
41312 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
41313
41314         * wcsmbs/uchar.h: Test __STDC_VERSION__.
41315
41316 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
41317
41318         * nscd/aicache.c (addhstaiX): Do not cache negative results of
41319         transient errors.
41320         * nscd/grpcache.c (cache_addgr): Likewise.
41321         * nscd/hstcache.c (cache_addhst): Likewise.
41322         * nscd/initgrcache.c (addinitgroupsX): Likewise.
41323         * nscd/pwdcache.c (cache_addpw): Likewise.
41324         * nscd/servicescache.c (cache_addserv): Likewise.
41325
41326 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
41327
41328         * malloc/malloc.c: Various cleanups.
41329         * malloc/hooks.c: Likewise.
41330
41331         * stdlib/Makefile (tests): Add bug-fmtmsg1.
41332         * stdlib/bug-fmtmsg1.c: New file.
41333
41334         * stdlib/fmtmsg.c (init): Add missing unlock.
41335         Patch by Peng Haitao <penght@cn.fujitsu.com>.
41336
41337 2012-01-12  Marek Polacek  <polacek@redhat.com>
41338
41339         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
41340         and _GNU_SOURCE.
41341
41342 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
41343
41344         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
41345         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
41346         macro to ensure uniqueness of label name.
41347         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
41348         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
41349
41350 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
41351
41352         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
41353
41354         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
41355         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
41356         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
41357         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
41358
41359 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
41360
41361         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
41362
41363         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
41364         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
41365         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
41366
41367         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
41368
41369         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
41370         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
41371         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
41372         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
41373
41374         * math/bits/math-finite.h: Add ldexp support.
41375
41376 2012-01-10  Marek Polacek  <polacek@redhat.com>
41377
41378         * locale/programs/localedef.h (show_archive_content): Add noreturn
41379         attribute.
41380
41381 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
41382
41383         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
41384
41385 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
41386
41387         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
41388
41389         * io/Makefile (headers): Add bits/poll2.h.
41390
41391 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
41392
41393         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
41394         typo #include statement.
41395
41396 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
41397
41398         * include/sys/cdefs.h: Define __attribute_alloc_size.
41399         * catgets/gencat.c: Add alloc_size attribute and apply consistently
41400         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
41401         * elf/pldd.c: Likewise.
41402         * iconv/iconv_charmap.c: Likewise.
41403         * iconv/iconvconfig.c: Likewise.
41404         * iconv/strtab.c: Likewise.
41405         * locale/programs/locale.c: Likewise.
41406         * locale/programs/localedef.h: Likewise.
41407         * locale/programs/simple-hash.c: Likewise.
41408         * nscd/nscd.h: Likewise.
41409         * nss/makedb.c: Likewise.
41410         * sysdeps/generic/ldconfig.h: Likewise.
41411         * locale/programs/localedef.c: Remove xmalloc prototype.
41412         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
41413
41414 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
41415
41416         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
41417         appropriate.
41418
41419 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
41420
41421         * math/Makefile (tests): Add tst-CMPLX.
41422         * math/tst-CMPLX.c: New file.
41423
41424         * math/complex.h (CMPLXL): Fix typo.
41425
41426         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
41427         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
41428         GLIBC_2.16.
41429         * debug/tst-chk1.c: Add poll and ppoll tests.
41430         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
41431         * include/sys/poll.h: Add hidden proto for ppoll.
41432         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
41433         * sysdeps/mach/hurd/ppoll.c: Likewise.
41434         * io/ppoll.c: Likewise.
41435         * debug/poll_chk.c: New file.
41436         * debug/ppoll_chk.c: New file.
41437         * include/bits/poll2.h: New file.
41438         * io/bits/poll2.h: New file.
41439
41440         [BZ #1350]
41441         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
41442
41443         * configure.in: static is always set to yes.  Remove.
41444         * config.make.in: Don't set build-static.
41445         * Makeconfig: Remove use of build-static.
41446         * dlfcn/Makefile: Likewise.
41447         * elf/Makefile: Likewise.
41448         * math/Makefile: Likewise.
41449         * misc/Makefile: Likewise.
41450         * nptl/Makefile: Likewise.
41451         * sysdeps/mach/hurd/Makefile: Likewise.
41452
41453         * configure.in: PWD_P is not used anymore.
41454         * config.make.in: Remove PWD_P entry.
41455
41456         * configure.in: Remove last remnants of RANLIB.
41457         No need to check for signed size_t anymore.
41458         Don't set libc_commonpagesize and libc_relro_required here for Alpha
41459         and IA-64.
41460         Remove __builtin_expect test because we require at least gcc 3.4.
41461         * aclocal.m4: Likewise.
41462
41463         * wcsmbs/mbrtoc16.c: Implement using towc function.
41464         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
41465         * wcsmbs/wcsmbsload.c: Likewise.
41466         * iconv/gconv_simple.c: Likewise.
41467         * iconv/gconv_int.h: Likewise.
41468         * iconv/gconv_builtin.h: Likewise.
41469         * iconv/iconv_prog.c: Remove CHAR16 handling.
41470
41471         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
41472
41473         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
41474
41475         * configure.in: Remove --with-elf and --enable-bounded options.
41476         Dont set base_machine for ia64.  More non-ELF conditions removed.
41477         Remove testing and setting of leading underscore information.
41478         * config.make.in (build-bounded): Set to no.
41479         * config.h.in: Remove NO_UNDERSCORES entry.
41480         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
41481         them.
41482         * csu/start.c: Remove !NO_UNDERSCORE code.
41483         * locale/localeinfo.h: Likewise.
41484         * sysdeps/generic/machine-gmon.h: Likewise.
41485         * sysdeps/generic/sysdep.h: Likewise.
41486         * sysdeps/i386/sysdep.h: Likewise.
41487         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
41488         * sysdeps/mach/sysdep.h: Likewise.
41489         * sysdeps/s390/s390-32/sysdep.h: Likewise.
41490         * sysdeps/s390/s390-64/sysdep.h: Likewise.
41491         * sysdeps/sh/sysdep.h: Likewise.
41492         * sysdeps/sparc/sparc32/alloca.S: Likewise.
41493         * sysdeps/unix/i386/sysdep.S: Likewise.
41494         * sysdeps/unix/sparc/start.c: Likewise.
41495         * sysdeps/unix/sparc/sysdep.S: Likewise.
41496         * sysdeps/unix/sparc/sysdep.h: Likewise.
41497         * sysdeps/unix/start.c: Likewise.
41498         * sysdeps/unix/x86_64/sysdep.S: Likewise.
41499         * sysdeps/x86_64/sysdep.h: Likewise.
41500
41501 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
41502
41503         [BZ #13553]
41504         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
41505         for non-gcc.
41506         * argp/argp-fmtstream.h: Use const instead __const.
41507         * argp/argp.h: Likewise.
41508         * assert/assert.h: Likewise.
41509         * bits/fenv.h: Likewise.
41510         * bits/sched.h: Likewise.
41511         * bits/sigset.h: Likewise.
41512         * bits/sigthread.h: Likewise.
41513         * catgets/nl_types.h: Likewise.
41514         * conform/data/pthread.h-data: Likewise.
41515         * crypt/crypt-private.h: Likewise.
41516         * crypt/crypt.h: Likewise.
41517         * crypt/crypt_util.c: Likewise.
41518         * ctype/ctype.h: Likewise.
41519         * debug/execinfo.h: Likewise.
41520         * debug/mbsnrtowcs_chk.c: Likewise.
41521         * debug/mbsrtowcs_chk.c: Likewise.
41522         * debug/wcsnrtombs_chk.c: Likewise.
41523         * debug/wcsrtombs_chk.c: Likewise.
41524         * debug/wcstombs_chk.c: Likewise.
41525         * dirent/dirent.h: Likewise.
41526         * dlfcn/dlfcn.h: Likewise.
41527         * elf/neededtest4.c: Likewise.
41528         * grp/grp.h: Likewise.
41529         * gshadow/gshadow.h: Likewise.
41530         * iconv/gconv.h: Likewise.
41531         * iconv/gconv_int.h: Likewise.
41532         * iconv/gconv_simple.c: Likewise.
41533         * iconv/iconv.h: Likewise.
41534         * iconv/loop.c: Likewise.
41535         * iconv/skeleton.c: Likewise.
41536         * include/aio.h: Likewise.
41537         * include/aliases.h: Likewise.
41538         * include/argz.h: Likewise.
41539         * include/arpa/inet.h: Likewise.
41540         * include/assert.h: Likewise.
41541         * include/dirent.h: Likewise.
41542         * include/dlfcn.h: Likewise.
41543         * include/execinfo.h: Likewise.
41544         * include/fcntl.h: Likewise.
41545         * include/fenv.h: Likewise.
41546         * include/glob.h: Likewise.
41547         * include/grp.h: Likewise.
41548         * include/libintl.h: Likewise.
41549         * include/mntent.h: Likewise.
41550         * include/netdb.h: Likewise.
41551         * include/pwd.h: Likewise.
41552         * include/rpc/netdb.h: Likewise.
41553         * include/sched.h: Likewise.
41554         * include/search.h: Likewise.
41555         * include/shadow.h: Likewise.
41556         * include/signal.h: Likewise.
41557         * include/stdio.h: Likewise.
41558         * include/stdlib.h: Likewise.
41559         * include/string.h: Likewise.
41560         * include/sys/socket.h: Likewise.
41561         * include/sys/stat.h: Likewise.
41562         * include/sys/statfs.h: Likewise.
41563         * include/sys/statvfs.h: Likewise.
41564         * include/sys/syslog.h: Likewise.
41565         * include/sys/time.h: Likewise.
41566         * include/sys/uio.h: Likewise.
41567         * include/time.h: Likewise.
41568         * include/unistd.h: Likewise.
41569         * include/utmp.h: Likewise.
41570         * include/wchar.h: Likewise.
41571         * include/wctype.h: Likewise.
41572         * inet/aliases.h: Likewise.
41573         * inet/arpa/inet.h: Likewise.
41574         * inet/netinet/ether.h: Likewise.
41575         * inet/netinet/in.h: Likewise.
41576         * intl/libintl.h: Likewise.
41577         * io/bits/fcntl2.h: Likewise.
41578         * io/fcntl.h: Likewise.
41579         * io/ftw.h: Likewise.
41580         * io/sys/poll.h: Likewise.
41581         * io/sys/stat.h: Likewise.
41582         * io/sys/statfs.h: Likewise.
41583         * io/sys/statvfs.h: Likewise.
41584         * io/utime.h: Likewise.
41585         * libio/bits/stdio.h: Likewise.
41586         * libio/bits/stdio2.h: Likewise.
41587         * libio/libio.h: Likewise.
41588         * libio/libioP.h: Likewise.
41589         * libio/stdio.h: Likewise.
41590         * locale/lc-ctype.c: Likewise.
41591         * locale/locale.h: Likewise.
41592         * login/utmp.h: Likewise.
41593         * malloc/arena.c: Likewise.
41594         * malloc/malloc.c: Likewise.
41595         * malloc/malloc.h: Likewise.
41596         * malloc/mcheck.c: Likewise.
41597         * malloc/mtrace.c: Likewise.
41598         * math/bits/mathcalls.h: Likewise.
41599         * math/fenv.h: Likewise.
41600         * math/math_private.h: Likewise.
41601         * misc/bits/error.h: Likewise.
41602         * misc/bits/syslog.h: Likewise.
41603         * misc/err.h: Likewise.
41604         * misc/error.h: Likewise.
41605         * misc/fstab.h: Likewise.
41606         * misc/mntent.h: Likewise.
41607         * misc/regexp.h: Likewise.
41608         * misc/search.h: Likewise.
41609         * misc/sgtty.h: Likewise.
41610         * misc/sys/mman.h: Likewise.
41611         * misc/sys/syslog.h: Likewise.
41612         * misc/sys/uio.h: Likewise.
41613         * misc/sys/xattr.h: Likewise.
41614         * misc/ttyent.h: Likewise.
41615         * nis/rpcsvc/ypclnt.h: Likewise.
41616         * nss/nss.h: Likewise.
41617         * posix/bits/unistd.h: Likewise.
41618         * posix/fnmatch.h: Likewise.
41619         * posix/glob.h: Likewise.
41620         * posix/sched.h: Likewise.
41621         * posix/spawn.h: Likewise.
41622         * posix/sys/wait.h: Likewise.
41623         * posix/unistd.h: Likewise.
41624         * posix/wordexp.h: Likewise.
41625         * pwd/pwd.h: Likewise.
41626         * resolv/netdb.h: Likewise.
41627         * resource/sys/resource.h: Likewise.
41628         * rt/aio.h: Likewise.
41629         * rt/bits/mqueue2.h: Likewise.
41630         * rt/mqueue.h: Likewise.
41631         * shadow/shadow.h: Likewise.
41632         * signal/signal.h: Likewise.
41633         * socket/send.c: Likewise.
41634         * socket/sendto.c: Likewise.
41635         * socket/sys/socket.h: Likewise.
41636         * stdio-common/printf.h: Likewise.
41637         * stdlib/bits/stdlib.h: Likewise.
41638         * stdlib/fmtmsg.h: Likewise.
41639         * stdlib/monetary.h: Likewise.
41640         * stdlib/stdlib.h: Likewise.
41641         * stdlib/ucontext.h: Likewise.
41642         * streams/stropts.h: Likewise.
41643         * string/argz.h: Likewise.
41644         * string/bits/string2.h: Likewise.
41645         * string/string.h: Likewise.
41646         * string/strings.h: Likewise.
41647         * sunrpc/rpc/auth.h: Likewise.
41648         * sunrpc/rpc/auth_des.h: Likewise.
41649         * sunrpc/rpc/clnt.h: Likewise.
41650         * sunrpc/rpc/netdb.h: Likewise.
41651         * sunrpc/rpc/pmap_clnt.h: Likewise.
41652         * sunrpc/rpc/xdr.h: Likewise.
41653         * sysdeps/generic/inttypes.h: Likewise.
41654         * sysdeps/generic/net/if.h: Likewise.
41655         * sysdeps/generic/sys/swap.h: Likewise.
41656         * sysdeps/gnu/net/if.h: Likewise.
41657         * sysdeps/gnu/utmpx.h: Likewise.
41658         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
41659         * sysdeps/i386/i486/bits/string.h: Likewise.
41660         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
41661         * sysdeps/s390/bits/string.h: Likewise.
41662         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
41663         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
41664         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
41665         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
41666         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
41667         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
41668         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
41669         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
41670         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
41671         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
41672         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
41673         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
41674         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
41675         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
41676         * sysdeps/unix/sysv/linux/readv.c: Likewise.
41677         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
41678         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
41679         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
41680         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
41681         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
41682         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
41683         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
41684         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
41685         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
41686         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
41687         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
41688         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
41689         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
41690         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
41691         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
41692         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
41693         * sysvipc/sys/ipc.h: Likewise.
41694         * sysvipc/sys/msg.h: Likewise.
41695         * sysvipc/sys/sem.h: Likewise.
41696         * sysvipc/sys/shm.h: Likewise.
41697         * termios/termios.h: Likewise.
41698         * time/sys/time.h: Likewise.
41699         * time/time.h: Likewise.
41700         * wcsmbs/bits/wchar2.h: Likewise.
41701         * wcsmbs/uchar.h: Likewise.
41702         * wcsmbs/wchar.h: Likewise.
41703         * wctype/wctype.h: Likewise.
41704
41705         [BZ #13551]
41706         * Makeconfig: Remove all but ELF support including AIX support.
41707         * Makerules: Likewise.
41708         * config.h.in: Likewise.
41709         * config.make.in: Likewise.
41710         * configure: Likewise.
41711         * configure.in: Likewise.
41712         * csu/Makefile: Likewise.
41713         * csu/version.c: Likewise.
41714         * debug/Makefile: Likewise.
41715         * dlfcn/Makefile: Likewise.
41716         * elf/Makefile: Likewise.
41717         * extra-lib.mk: Likewise.
41718         * iconv/Makefile: Likewise.
41719         * include/libc-symbols.h: Likewise.
41720         * include/shlib-compat.h: Likewise.
41721         * resolv/Makefile: Likewise.
41722         * resolv/res_libc.c: Likewise.
41723         * rt/Makefile: Likewise.
41724         * sysdeps/i386/asm-syntax.h: Likewise.
41725         * sysdeps/i386/sysdep.h: Likewise.
41726         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
41727         * sysdeps/mach/sysdep.h: Likewise.
41728         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
41729         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
41730         * sysdeps/s390/asm-syntax.h: Likewise.
41731         * sysdeps/s390/s390-32/sysdep.h: Likewise.
41732         * sysdeps/s390/s390-64/sysdep.h: Likewise.
41733         * sysdeps/sh/sysdep.h: Likewise.
41734         * sysdeps/unix/sparc/sysdep.h: Likewise.
41735         * sysdeps/wordsize-32/divdi3.c: Likewise.
41736         * sysdeps/x86_64/sysdep.h: Likewise.
41737
41738         * argp/Versions: Remove _argp_unlock_xxx.
41739
41740         [BZ #13559]
41741         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
41742         * abilist/libBrokenLocale.abilist: Likewise.
41743         * abilist/libanl.abilist: Likewise.
41744         * abilist/libc.abilist: Likewise.
41745         * abilist/libcrypt.abilist: Likewise.
41746         * abilist/libdl.abilist: Likewise.
41747         * abilist/libm.abilist: Likewise.
41748         * abilist/libnsl.abilist: Likewise.
41749         * abilist/libpthread.abilist: Likewise.
41750         * abilist/libresolv.abilist: Likewise.
41751         * abilist/librt.abilist: Likewise.
41752         * abilist/libthread_db.abilist: Likewise.
41753         * abilist/libutil.abilist: Likewise.
41754         * abilist/libnss_db.abilist: New file.
41755
41756         * scripts/abilist.awk: Add support for indirect functions.
41757
41758         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
41759
41760         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
41761
41762         * shlib-versions: Remove entries for ports architectures.
41763
41764         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
41765         files in ports.
41766         * elf/stackguard-macros.h: Remove support for IA-64.
41767         * elf/tst-auditmod1.c: Likewise.
41768         * sysdeps/generic/ldsodefs.h: Likewise.
41769
41770         * sysdeps/unix/sysv/linux/configure.in: Ports should define
41771         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
41772         configure files.
41773
41774         [BZ #13552]
41775         * configure.in: Remove --enable-omitfp support.
41776         * FAQ.in: Adjust.
41777         * config.make.in: Likewise.
41778         * Makeconfig: Likewise.
41779         * manual/install.texi: Likewise.
41780
41781         In case anyone cares, the IA-64 architecture could move to ports.
41782         * sysdeps/ia64/*: Removed.
41783         * sysdeps/unix/sysv/linux/ia64/*: Removed.
41784         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
41785
41786         [BZ #13555]
41787         * configure.in: Remove entries for unsupported architectures.
41788
41789         [BZ #13533]
41790         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
41791         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
41792         routines.
41793         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
41794         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
41795         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
41796         fall back to using wcrtomb.
41797         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
41798         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
41799         renaming.
41800         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
41801         * wcsmbs/tst-c16c32-1.c: New file.
41802
41803         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
41804         local variable.
41805
41806         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
41807
41808         * elf/tst-unique3.cc: Add explicit declaration of gets.
41809         * elf/tst-unique3lib.cc: Likewise.
41810         * elf/tst-unique3lib2.cc: Likewise.
41811         * elf/tst-unique4.cc: Likewise.
41812
41813         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
41814
41815 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
41816
41817         [BZ #13566]
41818         * assert/assert.h (static_assert): Don't define for C++.
41819         * libio/stdio.h (gets): Do declare for C++ <= C++11.
41820         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
41821
41822 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
41823
41824         * iconv/loop.c (single loop): Fix assertion in storing of
41825         remaining bytes.
41826
41827         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
41828
41829 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
41830
41831         * posix/getconf.c: Update copyright year.
41832         * nss/getent.c: Likewise.
41833         * nss/makedb.c: Likewise.
41834         * iconv/iconvconfig.c: Likewise.
41835         * iconv/iconv_prog.c: Likewise.
41836         * elf/ldconfig.c: Likewise.
41837         * elf/pldd.c: Likewise.
41838         * elf/sotruss.ksh: Likewise.
41839         * catgets/gencat.c: Likewise.
41840         * csu/version.c: Likewise.
41841         * elf/ldd.bash.in: Likewise.
41842         * elf/sprof.c (print_version): Likewise.
41843         * locale/programs/locale.c: Likewise.
41844         * locale/programs/localedef.c: Likewise.
41845         * login/programs/pt_chown.c: Likewise.
41846         * nscd/nscd.c (print_version): Likewise.
41847         * debug/xtrace.sh: Likewise.
41848         * malloc/memusage.sh: Likewise.
41849         * malloc/mtrace.pl: Likewise.
41850         * debug/catchsegv.sh: Likewise.
41851
41852 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
41853
41854         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
41855         pure attribute.
41856
41857 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
41858
41859         [BZ #13533]
41860         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
41861         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
41862         transformations.
41863         * iconv/gconv_int.h: Likewise.
41864         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
41865         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
41866         from libc for GLIBC_2.16.
41867         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
41868         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
41869         * wcsmbs/uchar.h: Really define mbstate_t.
41870         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
41871         * wcsmbs/c16rtomb.c: New file.
41872         * wcsmbs/mbrtoc16.c: New file.
41873         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
41874         for C/POSIX locale.
41875         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
41876         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
41877
41878         * wcsmbs/wchar.h: Add missing __restrict.
41879
41880 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
41881
41882         [BZ #13532]
41883         * time/Makefile (routines): Add timespec_get.
41884         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
41885         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
41886         timespec for ISO C11.
41887         * time/timespec_get.c: New file.
41888         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
41889         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
41890
41891         [BZ #13531]
41892         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
41893         * stdlib/stdlib.h: Declare aligned_alloc.
41894         * Versions.def: Add GLIBC_2.16 for libc.
41895         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
41896
41897         [BZ 13527]
41898         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
41899         ISO C11.
41900
41901         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
41902         code.
41903
41904         [BZ #13528]
41905         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
41906
41907         [BZ #13529]
41908         * assert/assert.h (static_assert): Define.
41909
41910         * version.h: Update for 2.16 development version.
41911
41912         [BZ #13526]
41913         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
41914         _ISOC11_SOURCE.
41915
41916         * version.h (RELEASE): Bump for 2.15 release.
41917         * include/features.h (__GLIBC_MINOR__): Bump to 15.
41918
41919         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
41920         Patch by Marek Polacek <mpolacek@redhat.com>.
41921
41922         * bits/byteswap.h: Protect long long constants with __extension__.
41923         * sysdeps/i386/bits/byteswap.h: Likewise.
41924         * sysdeps/ia64/bits/byteswap.h: Likewise.
41925         * sysdeps/s390/bits/byteswap.h: Likewise.
41926         * sysdeps/x86_64/bits/byteswap.h: Likewise.
41927
41928 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41929
41930         [BZ #13540]
41931         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
41932         destination buffer.
41933         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
41934
41935 2011-12-23  Marek Polacek  <polacek@redhat.com>
41936
41937         * elf/dl-addr.c (determine_info): Add inline keyword.
41938         * elf/tst-auditmod4b.c (check_avx): Likewise.
41939         * elf/tst-auditmod6b.c (check_avx): Likewise.
41940         * elf/tst-auditmod6c.c (check_avx): Likewise.
41941         * elf/tst-auditmod7b.c (check_avx): Likewise.
41942
41943 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
41944
41945         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
41946         !__SSE_MATH__.
41947
41948 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41949
41950         [BZ #13540]
41951         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
41952         processing for last bytes.
41953
41954 2011-08-06  Bruno Haible  <bruno@clisp.org>
41955
41956         [BZ #13061]
41957         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
41958         U+0385, not to U+1FEE.
41959
41960         [BZ #13062]
41961         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
41962         entry for U+00A5 U+0301.
41963
41964 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
41965
41966         [BZ #13166]
41967         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
41968         buffer for the output is too small.
41969
41970         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
41971         optimization.
41972
41973         [BZ #13185]
41974         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
41975         SSE flags if possible.
41976
41977 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
41978
41979         [BZ #13540]
41980         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
41981         processing for last bytes.
41982
41983 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
41984
41985         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
41986         (syscall-list-default-options, syscall-list-default-condition)
41987         (syscall-list-includes): Define.
41988         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
41989         list of ABIs and options and #if conditions for each ABI.  Do not
41990         handle common syscalls between ABIs specially.
41991         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
41992         Remove.
41993         (syscall-list-variants, syscall-list-32bit-options)
41994         (syscall-list-32bit-condition, syscall-list-64bit-options)
41995         (syscall-list-64bit-condition): Define.
41996         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
41997         (syscall-list-variants, syscall-list-32bit-options)
41998         (syscall-list-32bit-condition, syscall-list-64bit-options)
41999         (syscall-list-64bit-condition): Define.
42000         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
42001         Remove.
42002         (syscall-list-variants, syscall-list-32bit-options)
42003         (syscall-list-32bit-condition, syscall-list-64bit-options)
42004         (syscall-list-64bit-condition): Define.
42005         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
42006         Remove.
42007         (syscall-list-variants, syscall-list-32bit-options)
42008         (syscall-list-32bit-condition, syscall-list-64bit-options)
42009         (syscall-list-64bit-condition): Define.
42010
42011 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
42012
42013         * locale/iso-639.def: Add brx entry.
42014
42015         [BZ #13328]
42016         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
42017         Proposed by Mariusz_Cukr <marcukr@op.pl>.
42018
42019         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
42020         __feraiseexcept_renamed.
42021
42022 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
42023
42024         [BZ #13538]
42025         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
42026         EPOLLET with unsigned values.
42027         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
42028         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
42029
42030         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
42031         to large cancellation.
42032         * math/s_cacoshf.c: Likewise.
42033         * math/s_cacoshl.c: Likewise.
42034
42035 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
42036
42037         [BZ #13305]
42038         [BZ #12786]
42039         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
42040         * math/s_cacoshf.c: Likewise.
42041         * math/s_cacoshl.c: Likewise.
42042
42043 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
42044
42045         [BZ #13439]
42046         * iconv/gconv.h: Define __GCONV_SWAP.
42047         * iconvdata/unicode.c: The swap bit must be stored in __flags.
42048         * iconvdata/utf-16.c: Likewise.
42049         * iconvdata/utf-32.c: Likewise.
42050
42051 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
42052
42053         [BZ #13524]
42054         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
42055         numerator after shifting it by one limb.
42056
42057 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
42058
42059         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
42060         under [__USE_EXTERN_INLINES].
42061
42062 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
42063
42064         [BZ #13446]
42065         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
42066
42067 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42068
42069         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
42070         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
42071         optimized code.
42072         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
42073         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
42074         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
42075         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
42076         for strncasecmp/strncasecmp_l compilation.
42077         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
42078         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
42079
42080 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
42081
42082         [BZ #13484]
42083         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
42084         of __asm__.
42085
42086 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
42087
42088         [BZ #13506]
42089         * time/tzfile.c (__tzfile_read): Check values from file header.
42090
42091 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
42092
42093         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
42094         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
42095         * powerpc/powerpc32/dl-start.S: Likewise.
42096         * powerpc/powerpc32/elf/start.S: Likewise.
42097         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
42098         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
42099         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
42100         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
42101         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
42102         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
42103         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
42104         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
42105         * powerpc/powerpc32/fpu/s_round.S: Likewise.
42106         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
42107         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
42108         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
42109         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
42110         * powerpc/powerpc32/memset.S: Likewise.
42111         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
42112         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
42113         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
42114         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
42115         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
42116         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
42117         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
42118         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
42119         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
42120         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
42121         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
42122         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
42123         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
42124
42125 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42126
42127         * math/libm-test.inc: Added more nearbyint tests.
42128         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
42129         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
42130         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
42131         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
42132
42133 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
42134
42135         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
42136         FD_CLOEXEC.
42137
42138 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42139
42140         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
42141         Add wcscpy-ssse3 wcscpy-c.
42142         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
42143         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
42144         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
42145         * sysdeps/x86_64/wcschr.S: New file.
42146         * sysdeps/x86_64/wcsrchr.S: New file.
42147         * string/test-strcmp.c: Remove checking of wcscmp function for
42148         wrong alignments.
42149         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
42150         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
42151         wcsrchr-sse2 wcsrchr-c.
42152         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
42153         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
42154         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
42155         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
42156         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
42157         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
42158         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
42159         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
42160         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
42161         * wcsmbc/wcschr.c (WCSCHR): New macro.
42162
42163 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42164
42165         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
42166         * wcsmbs/test-wcsrchr.c: New file.
42167         * string/test-strrchr.c: Add wcsrchr support.
42168         (WIDE): New macro.
42169         * wcsmbs/test-wcscpy.c: New file.
42170         * string/test-strcpy.c: Add wcscpy support.
42171         (WIDE): New macro.
42172
42173 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
42174
42175         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
42176         the inner loop.
42177
42178 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
42179
42180         [BZ #13472]
42181         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
42182
42183 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
42184
42185         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
42186         Minor optimizations.
42187
42188         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
42189         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
42190         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
42191
42192 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
42193
42194         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
42195         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
42196         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
42197         for gcc to avoid warnings.
42198         * inet/Makefile (tests): Add tst-checks.
42199         * inet/tst-checks.c: New file.
42200
42201         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
42202         warning.
42203
42204         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
42205         __wmemcmp_sse2.
42206
42207         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
42208         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
42209
42210         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
42211
42212 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
42213
42214         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
42215         problem.
42216
42217         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
42218
42219 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
42220
42221         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
42222         conditional on GCC version.
42223         (__arch_compare_and_exchange_val_8_acq)
42224         (__arch_compare_and_exchange_val_16_acq)
42225         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
42226         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
42227         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
42228
42229 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
42230
42231         * sysdeps/sh/backtrace.c: New file.
42232
42233 2011-12-02  Andreas Schwab  <schwab@redhat.com>
42234
42235         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
42236         parenthesis.
42237
42238 2011-12-01  Andreas Schwab  <schwab@redhat.com>
42239
42240         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
42241         falling back to utime.
42242
42243 2011-11-30  Andreas Schwab  <schwab@redhat.com>
42244
42245         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
42246         expectations for float.
42247
42248 2011-11-29  Andreas Schwab  <schwab@redhat.com>
42249
42250         * locale/weight.h (findidx): Add parameter len.
42251         * locale/weightwc.h (findidx): Likewise.
42252         * posix/fnmatch_loop.c (FCT): Adjust caller.
42253         * posix/regcomp.c (build_equiv_class): Likewise.
42254         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
42255         * posix/regexec.c (check_node_accept_bytes): Likewise.
42256         * string/strcoll_l.c (STRCOLL): Likewise.
42257         * string/strxfrm_l.c (STRXFRM): Likewise.
42258
42259 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
42260
42261         * Makefile.in: Remove CVSOPT handling.
42262         * configure.in: Remove use of AC_REVISION.
42263         * iconvdata/Makefile (distribute): No need to filter out CVS.
42264         * scripts/list-sources.sh: Remove CVS, subversion and monotone
42265         handling.
42266
42267 2011-11-16  Andreas Schwab  <schwab@redhat.com>
42268
42269         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
42270         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
42271         [USE_AS_STRNCASECMP_L]: Likewise.
42272         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
42273         NO_TLS_DIRECT_SEG_REFS.
42274         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
42275         Fix argument offsets for non-PIC.
42276         [USE_AS_STRNCASECMP_L]: Likewise.
42277         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
42278         NO_TLS_DIRECT_SEG_REFS.
42279
42280 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
42281
42282         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
42283         O_CLOEXEC.
42284         * locale/loadlocale.c (_nl_load_locale): Likewise.
42285
42286 2011-11-15  Andreas Schwab  <schwab@redhat.com>
42287
42288         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
42289         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
42290         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
42291         (SYSCALL_GETTIME): Set errno on error.
42292
42293         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
42294         count references to noai6ai_cached.
42295
42296 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
42297
42298         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
42299
42300         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
42301         FD_CLOEXEC for /proc/self/maps.
42302
42303         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
42304         FD_CLOEXEC for /proc/meminfo.
42305
42306         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
42307         gai.conf.
42308
42309         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
42310         FD_CLOEXEC for given file.
42311
42312         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
42313
42314         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
42315         FD_CLOEXEC for /etc/hosts.
42316         (_gethtent): Likewise.
42317
42318         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
42319
42320         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
42321         cancellation and set FD_CLOEXEC for /etc/netgroup.
42322
42323         * nss/nss_files/files-key.c (search): Don't allow cancellation when
42324         reading /etc/publickey.
42325
42326         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
42327         allow cancellation when reading /etc/group.
42328
42329         * nss/nss_files/files-alias.c (internal_setent): Don't allow
42330         cancellation.
42331         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
42332
42333         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
42334         when using data file.
42335
42336         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
42337
42338         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
42339         (write_nis_obj): Use "c" and "e" in fopen.
42340
42341         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
42342
42343         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
42344
42345         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
42346
42347         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
42348
42349         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
42350         locale.alias.
42351
42352         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
42353
42354         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
42355
42356         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
42357
42358         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
42359         file parsing and set FD_CLOEXEC.
42360
42361 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
42362
42363         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
42364
42365 2011-11-14  Andreas Schwab  <schwab@redhat.com>
42366
42367         * malloc/arena.c (arena_get2): Don't call reused_arena when
42368         _int_new_arena failed.
42369
42370 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
42371
42372         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
42373         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
42374         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
42375         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
42376         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
42377         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
42378         to compile strcasecmp and strncasecmp.
42379         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
42380         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
42381
42382         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
42383
42384 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
42385
42386         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
42387         locale-defines.sym to gen-as-const-headers.
42388         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
42389         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
42390         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
42391         to compile strcasecmp and strncasecmp.
42392         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
42393         strcasecmp_l and strncasecmp_l.
42394         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
42395         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
42396         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
42397         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
42398         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
42399         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
42400         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
42401         * sysdeps/i386/i686/multiarch/strncase.S: New file.
42402         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
42403         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
42404         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
42405
42406 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
42407
42408         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
42409         result of SYSDEP_GETTIME_CPU to retval.
42410         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
42411         parameter list to macro.  Remove trailing semicolon.  Adjust users.
42412
42413         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
42414         variable.
42415
42416         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
42417         mantissa words.
42418         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
42419
42420         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
42421         from unused variable.
42422
42423         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
42424         DWARF definitions.
42425         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
42426         for assembling.
42427
42428         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
42429         over namespaces.
42430
42431         * sunrpc/rpc_prot.c (rejected): Fix case value.
42432
42433         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
42434         unsigned long long int to avoid warnings in shift.
42435
42436         * posix/regex_internal.c (re_string_reconstruct): Actually use result
42437         of use of trans.
42438         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
42439         variable tmp.
42440
42441         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
42442         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
42443         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
42444
42445         * nis/nis_table.c (nis_list): Use variable of correct type for
42446         result of __follow_path call.
42447
42448 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
42449
42450         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
42451         of math functions ceil, trunc, floor, round, and sqrt, when
42452         avaliable on the platform.
42453         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
42454         name clash.
42455         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
42456         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
42457         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
42458
42459 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
42460
42461         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
42462         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
42463
42464 2011-11-11  Roland McGrath  <roland@hack.frob.com>
42465
42466         * include/unistd.h: Fix __readlink return type.
42467         Reported by Chris Metcalf <cmetcalf@tilera.com>.
42468
42469 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
42470
42471         * stdlib/ucontext.h: Undo last change for makecontext.
42472
42473 2011-11-11  Andreas Schwab  <schwab@redhat.com>
42474
42475         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
42476
42477         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
42478         * setjmp/setjmp.h: Mark functions as non-leaf.
42479         * setjmp/bits/setjmp2.h: Likewise.
42480         * stdlib/ucontext.h: Likewise.
42481
42482 2011-11-10  Andreas Schwab  <schwab@redhat.com>
42483
42484         * malloc/arena.c (_int_new_arena): Don't increment narenas.
42485         (reused_arena): Don't check arena limit.
42486         (arena_get2): Atomically check arena limit.
42487
42488 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
42489
42490         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
42491         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
42492
42493         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
42494         instructions.
42495
42496 2011-11-07  Andreas Schwab  <schwab@redhat.com>
42497
42498         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
42499         handler when locking.
42500
42501         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
42502         Fix size of allocated buffer.
42503
42504 2011-11-04  Andreas Schwab  <schwab@redhat.com>
42505
42506         [BZ #10103]
42507         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
42508         declarations for long double functions.
42509         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
42510
42511         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
42512
42513 2011-11-03  Andreas Schwab  <schwab@redhat.com>
42514
42515         * nscd/nscd.c (main): Don't start AVC thread until credentials are
42516         installed.
42517
42518         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
42519         is disabled.
42520
42521 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
42522
42523         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
42524
42525 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
42526
42527         * include/alloca.h (stackinfo_alloca_round): Define.
42528         (extend_alloca): Use it.
42529         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
42530         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
42531         here.
42532
42533         * scripts/check-local-headers.sh: Ignore libaudit.h.
42534
42535         * nscd/Makefile (extra-objs): Make recursively expanded.
42536
42537 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
42538
42539         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
42540         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
42541
42542         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
42543         * posix/tst-rfc3484-2.c: Likewise.
42544         * posix/tst-rfc3484-3.c: Likewise.
42545
42546         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
42547         process_vm_writev.
42548         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
42549         process_vm_writev.
42550         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
42551         process_vm_writev from libc using GLIBC_2.15 version.
42552
42553         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
42554
42555 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
42556
42557         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
42558         stack usage.
42559
42560 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
42561
42562         [BZ #13367]
42563         * nss/getent.c (initgroups_keys): Show error message in case no group
42564         names are given.
42565
42566         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
42567         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
42568         __bump_nl_timestamp.
42569         * nscd/connections (nscd_init): When host database is served open
42570         netlink socket and request notification about configuration changes.
42571         (main_loop_poll): Track netlink file descriptor and bump timestamp
42572         in case data becomes available.
42573         (main_loop_epoll): Likewise.
42574         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
42575         (database_pers_head): Add extra_data fileds.
42576         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
42577         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
42578         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
42579         Adjust caller.
42580         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
42581         in6ai data, call __free_in6ai.
42582         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
42583         Add -DHAVE_NETLINK.
42584         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
42585         interface information.  Reuse previous data if netlink timestamp
42586         is not changed.
42587         (__bump_nl_timestamp): New function.
42588         (__free_in6ai): New function.
42589
42590 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
42591
42592         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
42593         close_not_cancel_no_status here.
42594         (__check_pf): Reorganize code a bit to not call close twice if OOM.
42595
42596 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
42597
42598         [BZ #13276]
42599         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
42600         return value.
42601
42602         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
42603         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
42604         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
42605
42606 2011-07-03  Andreas Jaeger  <aj@suse.de>
42607
42608         [BZ #10709]
42609         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
42610         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
42611         * math/libm-test.inc (sin_test): Add test case.
42612
42613 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
42614
42615         [BZ #13337]
42616         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
42617         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
42618
42619         * elf/chroot_canon.c (chroot_canon): Cleanups.
42620
42621         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
42622
42623         [BZ #13335]
42624         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
42625         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
42626
42627         * string/test-strchr.c: Make usable for strchrnul testing.
42628         * string/test-strchrnul.c: New file.
42629         * string/Makefile (strop-tests): Add strchrnul.
42630
42631         * po/it.po: Update from translation team.
42632         * po/es.po: Likewise.
42633
42634 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
42635
42636         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
42637         the three constants needed as parameters.  Drop the others.
42638         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
42639         __m128i_strloadu_tolower.
42640         Create and initialize variable zero and use it in all the places
42641         where _mm_setzero_si128 was used.
42642
42643         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
42644         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
42645         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
42646         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
42647         anymore.
42648         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
42649         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
42650         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
42651         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
42652         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
42653         __mpranred, __mptan.
42654         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
42655         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
42656         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
42657         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
42658         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
42659         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
42660         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
42661         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
42662         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
42663
42664 2011-10-28  Andreas Schwab  <schwab@redhat.com>
42665
42666         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
42667         redefine if SHARED.
42668         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
42669
42670         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
42671         wide char related routines to wcsmbs subdir.
42672
42673 2011-10-27  Andreas Schwab  <schwab@redhat.com>
42674
42675         [BZ #13344]
42676         * misc/sys/cdefs.h (__THROWNL): Define.
42677         * posix/unistd.h: Use __THREADNL instead of __THREAD
42678         for memory synchronization functions.
42679
42680 2011-10-26  Roland McGrath  <roland@hack.frob.com>
42681
42682         [BZ #13349]
42683         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
42684         doesn't exist.
42685         * manual/stdio.texi (Obstack Streams): Node removed.
42686
42687 2011-10-26  Andreas Schwab  <schwab@redhat.com>
42688
42689         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
42690         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
42691         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
42692
42693         * math/math_private.h (math_force_eval): Allow non-addressable
42694         arguments.
42695         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
42696
42697 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
42698
42699         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
42700         file is not needed.
42701
42702         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
42703         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
42704         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
42705         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
42706         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
42707         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
42708         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
42709         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
42710         Add AVX variants.
42711         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
42712         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
42713         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
42714         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
42715         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
42716         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
42717         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
42718         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
42719         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
42720         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
42721         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
42722         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
42723         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
42724         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
42725         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
42726         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
42727         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
42728         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
42729         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
42730
42731         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
42732         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
42733
42734         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
42735         place.  Use VEX encoding when compiling for AVX.
42736
42737 2011-10-25  Andreas Schwab  <schwab@redhat.com>
42738
42739         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
42740         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
42741
42742         * string/test-strchr.c (do_test): Don't generate NUL bytes.
42743
42744 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
42745
42746         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
42747         useless if() expression.
42748         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
42749         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
42750         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
42751         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
42752         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
42753         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
42754         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
42755         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
42756         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
42757         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
42758         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
42759         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
42760         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
42761         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
42762         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
42763         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
42764         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
42765         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
42766         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
42767
42768         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
42769
42770 2011-10-25  Andreas Schwab  <schwab@redhat.com>
42771
42772         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
42773         condition.
42774         * elf/dl-fini.c (_dl_sort_fini): Likewise.
42775
42776 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
42777
42778         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
42779         .text section.  Avoid duplicate constants.
42780         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
42781         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42782         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
42783         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42784         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
42785         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42786         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42787         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42788         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
42789         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
42790         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
42791         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
42792         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
42793         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
42794         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
42795         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
42796         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
42797         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
42798         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
42799         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42800         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
42801         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
42802         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
42803         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
42804         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
42805         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
42806         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
42807         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
42808         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
42809         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
42810         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
42811         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
42812         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
42813         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
42814         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
42815         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
42816         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
42817         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
42818         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
42819         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
42820         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
42821         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
42822         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
42823         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
42824         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
42825
42826 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
42827
42828         * sysdeps/x86_64/dla.h: Move to ...
42829         * sysdeps/x86_64/fpu/dla.h: ...here.
42830         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
42831         situations.  Use __builtin_fma only for gcc 4.6 and up.
42832
42833         * config.make.in: Add have-mfma4 entry.
42834         * configure.in: Substitute libc_cv_cc_fma4.
42835         * math/Makefile (dbl-only-routines): Add sincostab.
42836         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
42837         Use __sincostab not sincos.
42838         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
42839         name is a macro.
42840         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
42841         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42842         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42843         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
42844         using __copysign.
42845         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
42846         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
42847         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
42848         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
42849         and __inv.
42850         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
42851         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
42852         __copysign.
42853         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
42854         define aliases when function name is a macro.
42855         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
42856         sysdeps/ieee754/dbl-64/sincos.tbl.
42857         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
42858         fma4-enabled routines.
42859         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
42860         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
42861         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
42862         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
42863         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
42864         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
42865         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
42866         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
42867         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
42868         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
42869         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
42870         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
42871         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
42872         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
42873         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
42874         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
42875         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
42876         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
42877         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
42878         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
42879         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
42880         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
42881         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
42882         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
42883         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
42884         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
42885         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
42886         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
42887         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
42888         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
42889
42890         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
42891         rename.
42892         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42893         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42894         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42895         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42896         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42897         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42898         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42899         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42900
42901 2011-10-24  Andreas Schwab  <schwab@redhat.com>
42902
42903         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
42904
42905 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42906
42907         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
42908
42909         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
42910         prediction.
42911         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
42912
42913         * string/strnlen.c: Don't define STRNLEN, reverse logic.
42914         Remove unused variable magic_bits.
42915         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
42916
42917         * string/strnlen.c: Define and use STRNLEN macro.
42918         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
42919         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
42920         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
42921         * wcsmbs/wcslen.c: Define and use WCSLEN.
42922         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
42923         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
42924         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
42925         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
42926         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
42927         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
42928         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
42929
42930 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42931
42932         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
42933         strnlen-sse2-no-bsf.
42934         Rename strlen-no-bsf to strlen-sse2-no-bsf.
42935         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
42936         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
42937         Add strnlen support.
42938         (USE_AS_STRNLEN): New macro.
42939         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
42940         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
42941         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
42942         * sysdeps/x86_64/wcslen.S: New file.
42943
42944 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
42945
42946         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
42947         XMM-moves are used for copying on small sizes.
42948
42949 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42950
42951         * wcsmbs/Makefile (strop-tests): Add wcschr.
42952         * wcsmbs/test-wcschr.c: New file.
42953         * string/test-strchr.c: Update.
42954         Add wcschr support.
42955         (WIDE): New macro.
42956
42957 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42958
42959         * wcsmbs/Makefile (strop-tests): Add wcslen.
42960         * wcsmbs/test-wcslen.c: New file.
42961         * string/test-strlen.c: Update.
42962         Add wcslen support.
42963         (WIDE): New macro.
42964
42965 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42966
42967         * po/it.po: Update from translation team.
42968
42969 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
42970
42971         * sysdeps/x86_64/wcscmp.S: Update.
42972         Fix wrong comparison semantics.
42973         wcscmp shall use signed comparison not unsigned.
42974         Don't use substraction to avoid overflow bug.
42975         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
42976         * wcsmbc/wcscmp.c: Likewise.
42977         * string/test-strcmp.c: Likewise.
42978         Add new tests to check cases with negative values.
42979
42980 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
42981
42982         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
42983         * sysdeps/x86_64/dla.h: ...here.  New file.
42984         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
42985         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
42986         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
42987         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
42988         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
42989         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
42990         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
42991         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
42992         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
42993
42994 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
42995
42996         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
42997         __ynl_finite aliases.
42998
42999 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
43000
43001         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
43002
43003         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
43004         define DLA_FMA.
43005         [DLA_FMA] (EMULV): Use DLA_FMA.
43006         [DLA_FMA] (MUL12): Use EMULV.
43007         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
43008         that are not needed.
43009         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
43010         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
43011         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
43012         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
43013         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
43014         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
43015         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
43016
43017 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
43018
43019         * math/s_nan.c: Undef __nan.
43020         * math/s_nanf.c: Undef __nanf.
43021         * math/s_nanl.c: Undef __nanl.
43022         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
43023         "math_private.h".
43024
43025 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
43026
43027         * math/s_catan.c: Add branch predictions.
43028         * math/s_catanf.c: Likewise.
43029         * math/s_catanh.c: Likewise.
43030         * math/s_catanhf.c: Likewise.
43031         * math/s_catanhl.c: Likewise.
43032         * math/s_catanl.c: Likewise.
43033         * math/s_cexp.c: Likewise.
43034         * math/s_cexpf.c: Likewise.
43035         * math/s_cexpl.c: Likewise.
43036         * math/s_clog.c: Likewise.
43037         * math/s_clog10.c: Likewise.
43038         * math/s_clog10f.c: Likewise.
43039         * math/s_clog10l.c: Likewise.
43040         * math/s_clogf.c: Likewise.
43041         * math/s_clogl.c: Likewise.
43042         * math/s_csqrt.c: Likewise.
43043         * math/s_csqrtf.c: Likewise.
43044         * math/s_csqrtl.c: Likewise.
43045         * math/s_ctanf.c: Likewise.
43046         * math/s_ctanh.c: Likewise.
43047         * math/s_ctanhf.c: Likewise.
43048         * math/s_ctanhl.c: Likewise.
43049         * math/s_ctanl.c: Likewise.
43050
43051         * math/math_private.h: Define __nan, __nanf, __nanl.
43052         * math/s_cacosh.c: Include <math_private.h>.
43053         * math/s_cacoshl.c: Likewise.
43054         * math/s_casinh.c: Likewise.
43055         * math/s_casinhf.c: Likewise.
43056         * math/s_casinhl.c: Likewise.
43057         * math/s_ccos.c: Rely entire on ccosh.
43058         * math/s_ccosf.c: Rely entire on ccoshf.
43059         * math/s_ccosl.c: Rely entirely on ccoshl.
43060         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
43061         Remove tests for FE_INVALID.
43062         * math/s_ccoshf.c: Likewise.
43063         * math/s_ccoshl.c: Likewise.
43064         * math/s_csin.c: Likewise.
43065         * math/s_csinf.c: Likewise.
43066         * math/s_csinh.c Likewise.
43067         * math/s_csinhf.c: Likewise.
43068         * math/s_csinhl.c: Likewise.
43069         * math/s_csinl.c: Likewise.
43070         * math/s_ctan.c: Likewise.
43071         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
43072         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
43073         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
43074
43075 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
43076
43077         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
43078         compilation problems.
43079
43080         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
43081         __builtin_expect.
43082
43083 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
43084
43085         * sysdeps/i386/configure.in: Test for -mfma4 option.
43086         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
43087         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
43088         COMMON_CPUID_INDEX_80000001.
43089         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
43090         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
43091         use it if FMA3 is not supported.
43092         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
43093
43094         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
43095         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
43096
43097 2011-10-20  Andreas Schwab  <schwab@redhat.com>
43098
43099         [BZ #12892]
43100         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
43101         it would create a cycle with a link time dependency.
43102
43103 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
43104
43105         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
43106         instruction.
43107         * string/Makefile (strop-tests): Add rawmemchr.
43108         * string/test-rawmemchr.c: New file.
43109
43110         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
43111         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
43112         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
43113         when compiling str{,n}casecmp and when AVX is available.  Hook up
43114         new optimized code in initializers.
43115
43116 2011-10-19  Andreas Schwab  <schwab@redhat.com>
43117
43118         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
43119         __feraiseexcept instead of feraiseexcept.
43120
43121 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
43122
43123         * math/math_private.h: Define defaults for libc_fetestexcept and
43124         libc_feupdateenv.
43125         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
43126         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
43127         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
43128         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
43129         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
43130         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
43131         libc_fetestexcept and libc_feupdateenv.
43132
43133         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
43134         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
43135         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
43136         * sysdeps/x86_64/fpu/math_private.h: Define special version of
43137         libc_feholdexcept_setround.
43138
43139         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
43140         Add s_nearbyint-c and s_nearbyintf-c.
43141         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
43142         nearbyintf inlines.
43143         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
43144         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
43145         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
43146         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
43147
43148         * math/math_private.h: Define defaults for libc_fegetround,
43149         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
43150         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
43151         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
43152         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
43153         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
43154         standard functions.
43155         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
43156         Remove comments and hacks for old compiler versions.
43157         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
43158         libc_fegetround, libc_fesetround, libc_feholdexcept, and
43159         libc_feholdexceptl.
43160
43161 2011-10-18  Andreas Schwab  <schwab@redhat.com>
43162
43163         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
43164         (__feraiseexcept_renamed): Add __NTH.
43165         (feraiseexcept): Add __NTH.  Rename local variables to fix
43166         namespace violations.
43167
43168 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
43169
43170         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
43171
43172         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
43173
43174         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
43175         recently added interfaces.
43176         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
43177
43178         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
43179         about macro parameter expansion.
43180
43181         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
43182         __NO_MATH_INLINES is defined.  Cleanups.
43183
43184         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
43185         and __floorf is target has SSE4.1.
43186         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
43187         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
43188         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
43189         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
43190
43191         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
43192         name.
43193         (floorf): Likewise.
43194
43195         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
43196
43197 2011-10-17  Andreas Schwab  <schwab@redhat.com>
43198
43199         * misc/sys/cdefs.h: Fix last change.
43200
43201         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
43202         database lookup.
43203
43204 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
43205
43206         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
43207
43208         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
43209         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
43210         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
43211         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
43212         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
43213         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
43214         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
43215         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
43216         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
43217         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
43218         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
43219         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
43220         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
43221         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
43222         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
43223         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
43224         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
43225         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
43226         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
43227         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
43228         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
43229         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
43230
43231         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
43232         ceil, ceilf, floor, floorf.
43233
43234         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
43235         Perform IRELATIVE relocations last.
43236
43237         * elf/do-rel.h: Add another parameter nrelative, replacing the
43238         local variable with the same name.  Change name of the function
43239         to end in Rel or Rela (uppercase).
43240         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
43241         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
43242         elf_dynamic_do_##reloc function.
43243
43244 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
43245
43246         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
43247         is sufficient, at least on modern CPUs.
43248
43249         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
43250
43251         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
43252         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
43253
43254         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
43255         __expl_finite.
43256         * math/bits/math-finite.h: Add entries for exp.
43257         * math/e_expl.c: Add __*_finite alias.
43258         * sysdeps/i386/fpu/e_exp.S: Likewise.
43259         * sysdeps/i386/fpu/e_expf.S: Likewise.
43260         * sysdeps/i386/fpu/e_expl.c: Likewise.
43261         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
43262         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
43263         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
43264         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
43265         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
43266         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
43267         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
43268
43269         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
43270         is sufficient, at least on modern CPUs.
43271
43272         * ctype/ctype-info.c (__ctype_init): Define.
43273         * include/ctype.h (__ctype_init): Declare.
43274         (__ctype_b_loc): The variable is always initialized.
43275         (__ctype_toupper_loc): Likewise.
43276         (__ctype_tolower_loc): Likewise.
43277         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
43278         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
43279
43280 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
43281
43282         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
43283
43284         * configure.in: Also look in $cxxmachine/include for C++ system
43285         headers.
43286
43287 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43288
43289         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
43290         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
43291         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
43292         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
43293         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
43294         (USE_AS_WMEMCMP): New macro.
43295         Fixing indents.
43296         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
43297         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
43298         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
43299         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
43300         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43301         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
43302         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
43303         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
43304         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
43305         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
43306         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
43307         (USE_AS_WMEMCMP): New macro.
43308         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
43309         * sysdeps/string/test-memcmp.c: Update.
43310         Fix simple_wmemcmp.
43311         Add new tests.
43312         * wcsmbs/wmemcmp.c: Update.
43313         (WMEMCMP): New macro.
43314         Fix overflow bug.
43315
43316 2011-10-12  Andreas Jaeger  <aj@suse.de>
43317
43318         [BZ #13268]
43319         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
43320
43321 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
43322
43323         * libio/iofwide.c (do_length): Avoid warning.
43324
43325         * ctype/ctype.h (__isctype_f): Add missing __THROW.
43326
43327 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
43328
43329         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
43330
43331         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
43332         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
43333         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
43334         * sysdeps/i386/i686/fpu/e_log.S: New file.
43335         * sysdeps/i386/i686/fpu/e_logf.S: New file.
43336         * sysdeps/i386/i686/fpu/e_logl.S: New file.
43337
43338         * ctype/ctype.h: Add support for inlined isXXX functions when
43339         compiling C++ code.
43340
43341 2011-10-14  Andreas Schwab  <schwab@redhat.com>
43342
43343         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
43344
43345         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
43346
43347 2011-10-13  Roland McGrath  <roland@hack.frob.com>
43348
43349         [BZ #13291]
43350         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
43351
43352 2011-10-13  Andreas Schwab  <schwab@redhat.com>
43353
43354         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
43355         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
43356         feraiseexcept.
43357
43358         * sysdeps/x86_64/memrchr.S: Check for zero size.
43359
43360         * string/stratcliff.c: Add memrchr tests.
43361
43362 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43363
43364         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
43365         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
43366         rawmemchr-sse2 rawmemchr-sse2-bsf.
43367         * sysdeps/i386/i686/multiarch/memchr.S: New file.
43368         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
43369         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
43370         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
43371         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
43372         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
43373         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
43374         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
43375         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
43376         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
43377         * string/memrchr.c (MEMRCHR): New macro.
43378
43379 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
43380
43381         Add integration with gcc's -ffinite-math-only and optimize wrapper
43382         functions in libm.
43383         * Versions.def: Define GLIBC_2.15 version for libm.
43384         * math/Makefile (headers): Add bits/math-finite.h.
43385         * math/bits/math-finite.h: New file.
43386         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
43387         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
43388         * math/e_acoshl.c: Add __*_finite alias.
43389         * math/e_acosl.c: Likewise.
43390         * math/e_asinl.c: Likewise.
43391         * math/e_atan2l.c: Likewise.
43392         * math/e_atanhl.c: Likewise.
43393         * math/e_coshl.c: Likewise.
43394         * math/e_exp10.c: Likewise.
43395         * math/e_exp10f.c: Likewise.
43396         * math/e_exp10l.c: Likewise.
43397         * math/e_exp2l.c: Likewise.
43398         * math/e_fmodl.c: Likewise.
43399         * math/e_gammal_r.c: Likewise.
43400         * math/e_hypotl.c: Likewise.
43401         * math/e_j0l.c: Likewise.
43402         * math/e_j1l.c: Likewise.
43403         * math/e_jnl.c: Likewise.
43404         * math/e_lgammal_r.c: Likewise.
43405         * math/e_log10l.c: Likewise.
43406         * math/e_log2l.c: Likewise.
43407         * math/e_logl.c: Likewise.
43408         * math/e_powl.c: Likewise.
43409         * math/e_sinhl.c: Likewise.
43410         * math/e_sqrtl.c: Likewise.
43411         * math/e_scalb.c: Completely rewritten and optimized.
43412         * math/e_scalbf.c: Likewise.
43413         * math/e_scalbl.c: Likewise.
43414         * math/w_acos.c: Likewise.
43415         * math/w_acosf.c: Likewise.
43416         * math/w_acosl.c: Likewise.
43417         * math/w_acosh.c: Likewise.
43418         * math/w_acoshf.c: Likewise.
43419         * math/w_acoshl.c: Likewise.
43420         * math/w_asin.c: Likewise.
43421         * math/w_asinf.c: Likewise.
43422         * math/w_asinl.c: Likewise.
43423         * math/w_atan2.c: Likewise.
43424         * math/w_atan2f.c: Likewise.
43425         * math/w_atan2l.c: Likewise.
43426         * math/w_atanh.c: Likewise.
43427         * math/w_atanhf.c: Likewise.
43428         * math/w_atanhl.c: Likewise.
43429         * math/w_exp10.c: Likewise.
43430         * math/w_exp10f.c: Likewise.
43431         * math/w_exp10l.c: Likewise.
43432         * math/w_fmod.c: Likewise.
43433         * math/w_fmodf.c: Likewise.
43434         * math/w_fmodl.c: Likewise.
43435         * math/w_j0.c: Likewise.
43436         * math/w_j0f.c: Likewise.
43437         * math/w_j0l.c: Likewise.
43438         * math/w_j1.c: Likewise.
43439         * math/w_j1f.c: Likewise.
43440         * math/w_j1l.c: Likewise.
43441         * math/w_jn.c: Likewise.
43442         * math/w_jnf.c: Likewise.
43443         * math/w_log.c: Likewise.
43444         * math/w_logf.c: Likewise.
43445         * math/w_logl.c: Likewise.
43446         * math/w_log10.c: Likewise.
43447         * math/w_log10f.c: Likewise.
43448         * math/w_log10l.c: Likewise.
43449         * math/w_log2.c: Likewise.
43450         * math/w_log2f.c: Likewise.
43451         * math/w_log2l.c: Likewise.
43452         * math/w_pow.c: Likewise.
43453         * math/w_powf.c: Likewise.
43454         * math/w_powl.c: Likewise.
43455         * math/w_remainder.c: Likewise.
43456         * math/w_remainderf.c: Likewise.
43457         * math/w_remainderl.c: Likewise.
43458         * math/w_scalb.c: Likewise.
43459         * math/w_scalbf.c: Likewise.
43460         * math/w_scalbl.c: Likewise.
43461         * math/w_sqrt.c: Likewise.
43462         * math/w_sqrtf.c: Likewise.
43463         * math/w_sqrtl.c: Likewise.
43464         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
43465         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
43466         used.
43467         * math/math_private.h: Declare __kernel_standard_f.
43468         * math/w_cosh.c: Remove cruft and optimize a bit.
43469         * math/w_coshf.c: Likewise.
43470         * math/w_coshl.c: Likewise.
43471         * math/w_exp2.c: Likewise.
43472         * math/w_exp2f.c: Likewise.
43473         * math/w_exp2l.c: Likewise.
43474         * math/w_hypot.c: Likewise.
43475         * math/w_hypotf.c: Likewise.
43476         * math/w_hypotl.c: Likewise.
43477         * math/w_lgamma.c: Likewise.
43478         * math/w_lgamma_r.c: Likewise.
43479         * math/w_lgammaf.c: Likewise.
43480         * math/w_lgammaf_r.c: Likewise.
43481         * math/w_lgammal.c: Likewise.
43482         * math/w_lgammal_r.c: Likewise.
43483         * math/w_sinh.c: Likewise.
43484         * math/w_sinhf.c: Likewise.
43485         * math/w_sinhl.c: Likewise.
43486         * math/w_tgamma.c: Likewise.
43487         * math/w_tgammaf.c: Likewise.
43488         * math/w_tgammal.c: Likewise.
43489         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
43490         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
43491         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
43492         Minor optimizations.  Pretty printing.  Remove cruft.
43493         * sysdeps/i386/fpu/e_acosf.S: Likewise.
43494         * sysdeps/i386/fpu/e_acosh.S: Likewise.
43495         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
43496         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
43497         * sysdeps/i386/fpu/e_acosl.c: Likewise.
43498         * sysdeps/i386/fpu/e_asin.S: Likewise.
43499         * sysdeps/i386/fpu/e_asinf.S: Likewise.
43500         * sysdeps/i386/fpu/e_atan2.S: Likewise.
43501         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
43502         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
43503         * sysdeps/i386/fpu/e_atanh.S: Likewise.
43504         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
43505         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
43506         * sysdeps/i386/fpu/e_exp10.S: Likewise.
43507         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
43508         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
43509         * sysdeps/i386/fpu/e_exp2.S: Likewise.
43510         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
43511         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
43512         * sysdeps/i386/fpu/e_fmod.S: Likewise.
43513         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
43514         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
43515         * sysdeps/i386/fpu/e_hypot.S: Likewise.
43516         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
43517         * sysdeps/i386/fpu/e_log.S: Likewise.
43518         * sysdeps/i386/fpu/e_log10.S: Likewise.
43519         * sysdeps/i386/fpu/e_log10f.S: Likewise.
43520         * sysdeps/i386/fpu/e_log10l.S: Likewise.
43521         * sysdeps/i386/fpu/e_log2.S: Likewise.
43522         * sysdeps/i386/fpu/e_log2f.S: Likewise.
43523         * sysdeps/i386/fpu/e_log2l.S: Likewise.
43524         * sysdeps/i386/fpu/e_logf.S: Likewise.
43525         * sysdeps/i386/fpu/e_logl.S: Likewise.
43526         * sysdeps/i386/fpu/e_pow.S: Likewise.
43527         * sysdeps/i386/fpu/e_powf.S: Likewise.
43528         * sysdeps/i386/fpu/e_powl.S: Likewise.
43529         * sysdeps/i386/fpu/e_remainder.S: Likewise.
43530         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
43531         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
43532         * sysdeps/i386/fpu/e_scalb.S: Likewise.
43533         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
43534         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
43535         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
43536         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
43537         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
43538         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
43539         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
43540         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
43541         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
43542         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
43543         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
43544         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
43545         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
43546         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
43547         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
43548         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
43549         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
43550         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
43551         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
43552         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
43553         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
43554         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
43555         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
43556         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
43557         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
43558         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
43559         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
43560         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
43561         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
43562         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
43563         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
43564         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
43565         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
43566         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
43567         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
43568         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
43569         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
43570         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
43571         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
43572         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
43573         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
43574         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
43575         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
43576         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
43577         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
43578         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
43579         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
43580         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
43581         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
43582         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
43583         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
43584         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
43585         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
43586         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
43587         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
43588         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
43589         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
43590         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
43591         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
43592         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
43593         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
43594         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
43595         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
43596         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
43597         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
43598         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
43599         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
43600         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
43601         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
43602         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
43603         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
43604         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
43605         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
43606         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
43607         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
43608         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
43609         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
43610         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
43611         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
43612         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
43613         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
43614         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
43615         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
43616         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
43617         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
43618         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
43619         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
43620         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
43621         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
43622         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
43623         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
43624         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
43625         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
43626         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
43627         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
43628         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
43629         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
43630         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
43631         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
43632         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
43633         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
43634         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
43635         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
43636         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
43637         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
43638         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
43639         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
43640         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
43641         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
43642         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
43643         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
43644         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
43645         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
43646         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
43647         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
43648         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
43649         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
43650         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
43651         (__isnanf): Likewise.
43652         (__isinf_ns): Likewise.
43653         (__isinf_nsf): Likewise.
43654         (__finite): Likewise.
43655         (__finitef): Likewise.
43656         (__ieee754_sqrt): Define as macro.
43657         (__ieee754_sqrtf): Define as macro.
43658         (__ieee754_sqrtl): Define as macro.
43659         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
43660         inlined copy.
43661         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
43662         __FINITE_MATH_ONLY__ consistent.
43663         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
43664
43665 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
43666
43667         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
43668         of rawmemchr.
43669
43670         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
43671
43672 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
43673
43674         * po/ja.po: Update from translation team.
43675
43676 2011-10-08  Roland McGrath  <roland@hack.frob.com>
43677
43678         * locale/programs/locarchive.c (prepare_address_space): New function.
43679         (create_archive, enlarge_archive, open_archive): Use it.
43680
43681         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
43682         inside [SHARED], where it is used.
43683
43684         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
43685
43686         * nss/getent.c (netgroup_keys): Remove unused variable.
43687         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
43688
43689 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
43690
43691         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
43692         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
43693         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
43694         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
43695         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
43696         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
43697         * math/Makefile (libm-calls): Add s_isinf_ns.
43698         * math/divtc3.c: Use __isinf_nsl instead of isinf.
43699         * math/multc3.c: Likewise.
43700         * math/s_casin.c: Likewise.
43701         * math/s_casinf.c: Likewise.
43702         * math/s_casinl.c: Likewise.
43703         * math/s_ccos.c: Likewise.
43704         * math/s_ccosf.c: Likewise.
43705         * math/s_ccosl.c: Likewise.
43706         * math/s_ctan.c: Likewise.
43707         * math/s_ctanf.c: Likewise.
43708         * math/s_ctanh.c: Likewise.
43709         * math/s_ctanhf.c: Likewise.
43710         * math/s_ctanhl.c: Likewise.
43711         * math/s_ctanl.c: Likewise.
43712         * math/w_fmod.c: Likewise.
43713         * math/w_fmodf.c: Likewise.
43714         * math/w_fmodl.c: Likewise.
43715         * math/w_remainder.c: Likewise.
43716         * math/w_remainderf.c: Likewise.
43717         * math/w_remainderl.c: Likewise.
43718         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
43719         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
43720         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
43721         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
43722         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
43723         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
43724         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
43725         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
43726
43727         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
43728         of the number.
43729         * stdio-common/printf_fphex.c: Likewise.
43730         * stdio-common/printf_size.c: Likewise.
43731
43732         * math/e_exp10.c: Include math_private.h using <...> not "...".
43733         * math/e_exp10f.c: Likewise.
43734         * math/e_exp10l.c: Likewise.
43735         * math/e_exp2l.c: Likewise.
43736         * math/e_j0l.c: Likewise.
43737         * math/e_j1l.c: Likewise.
43738         * math/e_jnl.c: Likewise.
43739         * math/e_lgammal_r.c: Likewise.
43740         * math/e_rem_pio2l.c: Likewise.
43741         * math/e_scalb.c: Likewise.
43742         * math/e_scalbf.c: Likewise.
43743         * math/e_scalbl.c: Likewise.
43744         * math/k_cosl.c: Likewise.
43745         * math/k_sinl.c: Likewise.
43746         * math/k_tanl.c: Likewise.
43747         * math/s_cacoshf.c: Likewise.
43748         * math/s_catan.c: Likewise.
43749         * math/s_catanf.c: Likewise.
43750         * math/s_catanh.c: Likewise.
43751         * math/s_catanhf.c: Likewise.
43752         * math/s_catanhl.c: Likewise.
43753         * math/s_catanl.c: Likewise.
43754         * math/s_ccosh.c: Likewise.
43755         * math/s_ccoshf.c: Likewise.
43756         * math/s_ccoshl.c: Likewise.
43757         * math/s_cexp.c: Likewise.
43758         * math/s_cexpf.c: Likewise.
43759         * math/s_cexpl.c: Likewise.
43760         * math/s_clog.c: Likewise.
43761         * math/s_clog10.c: Likewise.
43762         * math/s_clog10f.c: Likewise.
43763         * math/s_clog10l.c: Likewise.
43764         * math/s_clogf.c: Likewise.
43765         * math/s_clogl.c: Likewise.
43766         * math/s_csin.c: Likewise.
43767         * math/s_csinf.c: Likewise.
43768         * math/s_csinh.c: Likewise.
43769         * math/s_csinhf.c: Likewise.
43770         * math/s_csinhl.c: Likewise.
43771         * math/s_csinl.c: Likewise.
43772         * math/s_csqrt.c: Likewise.
43773         * math/s_csqrtf.c: Likewise.
43774         * math/s_csqrtl.c: Likewise.
43775         * math/s_ctan.c: Likewise.
43776         * math/s_ctanf.c: Likewise.
43777         * math/s_ctanh.c: Likewise.
43778         * math/s_ctanhf.c: Likewise.
43779         * math/s_ctanhl.c: Likewise.
43780         * math/s_ctanl.c: Likewise.
43781         * math/s_ldexp.c: Likewise.
43782         * math/s_ldexpf.c: Likewise.
43783         * math/s_ldexpl.c: Likewise.
43784         * math/s_significand.c: Likewise.
43785         * math/s_significandf.c: Likewise.
43786         * math/s_significandl.c: Likewise.
43787         * math/w_acos.c: Likewise.
43788         * math/w_acosf.c: Likewise.
43789         * math/w_acosh.c: Likewise.
43790         * math/w_acoshf.c: Likewise.
43791         * math/w_acoshl.c: Likewise.
43792         * math/w_acosl.c: Likewise.
43793         * math/w_asin.c: Likewise.
43794         * math/w_asinf.c: Likewise.
43795         * math/w_asinl.c: Likewise.
43796         * math/w_atan2.c: Likewise.
43797         * math/w_atan2f.c: Likewise.
43798         * math/w_atan2l.c: Likewise.
43799         * math/w_atanh.c: Likewise.
43800         * math/w_atanhf.c: Likewise.
43801         * math/w_atanhl.c: Likewise.
43802         * math/w_cosh.c: Likewise.
43803         * math/w_coshf.c: Likewise.
43804         * math/w_coshl.c: Likewise.
43805         * math/w_dremf.c: Likewise.
43806         * math/w_exp10.c: Likewise.
43807         * math/w_exp10f.c: Likewise.
43808         * math/w_exp10l.c: Likewise.
43809         * math/w_exp2.c: Likewise.
43810         * math/w_exp2f.c: Likewise.
43811         * math/w_fmod.c: Likewise.
43812         * math/w_fmodf.c: Likewise.
43813         * math/w_fmodl.c: Likewise.
43814         * math/w_hypot.c: Likewise.
43815         * math/w_hypotf.c: Likewise.
43816         * math/w_hypotl.c: Likewise.
43817         * math/w_j0.c: Likewise.
43818         * math/w_j0f.c: Likewise.
43819         * math/w_j0l.c: Likewise.
43820         * math/w_j1.c: Likewise.
43821         * math/w_j1f.c: Likewise.
43822         * math/w_j1l.c: Likewise.
43823         * math/w_jn.c: Likewise.
43824         * math/w_jnf.c: Likewise.
43825         * math/w_jnl.c: Likewise.
43826         * math/w_lgamma.c: Likewise.
43827         * math/w_lgamma_r.c: Likewise.
43828         * math/w_lgammaf.c: Likewise.
43829         * math/w_lgammaf_r.c: Likewise.
43830         * math/w_lgammal.c: Likewise.
43831         * math/w_lgammal_r.c: Likewise.
43832         * math/w_log.c: Likewise.
43833         * math/w_log10.c: Likewise.
43834         * math/w_log10f.c: Likewise.
43835         * math/w_log10l.c: Likewise.
43836         * math/w_log2.c: Likewise.
43837         * math/w_log2f.c: Likewise.
43838         * math/w_log2l.c: Likewise.
43839         * math/w_logf.c: Likewise.
43840         * math/w_logl.c: Likewise.
43841         * math/w_pow.c: Likewise.
43842         * math/w_powf.c: Likewise.
43843         * math/w_powl.c: Likewise.
43844         * math/w_remainder.c: Likewise.
43845         * math/w_remainderf.c: Likewise.
43846         * math/w_remainderl.c: Likewise.
43847         * math/w_scalb.c: Likewise.
43848         * math/w_scalbf.c: Likewise.
43849         * math/w_scalbl.c: Likewise.
43850         * math/w_sinh.c: Likewise.
43851         * math/w_sinhf.c: Likewise.
43852         * math/w_sinhl.c: Likewise.
43853         * math/w_sqrt.c: Likewise.
43854         * math/w_sqrtf.c: Likewise.
43855         * math/w_sqrtl.c: Likewise.
43856         * math/w_tgamma.c: Likewise.
43857         * math/w_tgammaf.c: Likewise.
43858         * math/w_tgammal.c: Likewise.
43859
43860         * po/ja.po: Update from translation team.
43861
43862 2011-09-29  Andreas Jaeger  <aj@suse.de>
43863
43864         [BZ #13179]
43865         * sunrpc/netname.c (netname2host): Fix logic.
43866
43867         [BZ #6779]
43868         [BZ #6783]
43869         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
43870         correctly.
43871         * math/w_remainder.c (__remainder): Likewise.
43872         * math/w_remainderf.c (__remainderf): Likewise.
43873         * math/libm-test.inc (remainder_test): Add test cases.
43874
43875 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
43876
43877         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
43878         sdiv_qrnnd.
43879
43880 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
43881
43882         * string/test-memcmp.c: Avoid unncessary #defines.
43883         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
43884
43885 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
43886
43887         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
43888         Use new sse2 version for core i3 - i7 as it's faster
43889         than sse42 version.
43890         (bit_Prefer_PMINUB_for_stringop): New.
43891         * sysdeps/x86_64/rawmemchr.S: Update.
43892         Replace with faster SSE2 version.
43893         * sysdeps/x86_64/memrchr.S: New file.
43894         * sysdeps/x86_64/memchr.S: Update.
43895         Replace with faster SSE2 version.
43896
43897 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
43898
43899         * elf/dl-load.c (lose): Add cast to avoid warning.
43900
43901 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
43902
43903         * po/ca.po: Update from translation team.
43904
43905         * inet/getnetgrent_r.c: Hook up nscd.
43906         * nscd/Makefile (routines): Add nscd_netgroup.
43907         (nscd-modules): Add netgroupcache.
43908         (CFLAGS-netgroupcache.c): Define.
43909         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
43910         (cache_search): Add const to second parameter.
43911         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
43912         INNETGR.
43913         (dbs): Add netgrdb entry.
43914         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
43915         (verify_persistent_db): Handle netgrdb.
43916         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
43917         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
43918         GETFDNETGR.
43919         (netgroup_response_header): Define.
43920         (innetgroup_response_header): Define.
43921         (datahead): Add netgroup_response_header and innetgroup_response_header
43922         elements.
43923         * nscd/nscd.conf: Add entries for netgroup cache.
43924         * nscd/nscd.h (dbtype): Add netgrdb.
43925         (_PATH_NSCD_NETGROUP_DB): Define.
43926         (netgroup_iov_disabled): Declare.
43927         (xmalloc, xcalloc, xrealloc): Move declarations here.
43928         (cache_search): Adjust prototype.
43929         Add netgroup-related prototypes.
43930         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
43931         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
43932         (__nscd_innetgr): Declare.
43933         * nscd/selinux.c (perms): Use access_vector_t as element type and
43934         add netgroup-related initializers.
43935         * nscd/netgroupcache.c: New file.
43936         * nscd/nscd_netgroup.c: New file.
43937         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
43938         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
43939         For four parameters use innetgr.
43940         * nss/nss_files/files-init.c: Add definition and callback for netgr.
43941         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
43942         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
43943         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
43944
43945         * nscd/connections.c (register_traced_file): Don't register file
43946         for disabled databases.
43947
43948 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
43949
43950         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
43951
43952         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
43953         from tree and freeing node.
43954
43955 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
43956
43957         * nss/nsswitch.c (__nss_database_lookup): Handle
43958         nss_parse_service_list out of memory case.
43959
43960 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
43961
43962         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
43963         out of memory case.
43964
43965 2011-10-04  Andreas Schwab  <schwab@redhat.com>
43966
43967         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
43968         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
43969         pass it down.
43970         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
43971         elf_machine_rela, elf_machine_lazy_rel.
43972         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
43973         (ELF_DYNAMIC_DO_REL): Likewise.
43974         (ELF_DYNAMIC_DO_RELA): Likewise.
43975         (ELF_DYNAMIC_RELOCATE): Likewise.
43976         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
43977         to ELF_DYNAMIC_DO_REL.
43978         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
43979         (dl_main): In trace mode always set __RTLD_NOIFUNC.
43980         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
43981         elf_machine_rela.
43982         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
43983         skip_ifunc, don't call ifunc function if non-zero.
43984         (elf_machine_rela): Likewise.
43985         (elf_machine_lazy_rel): Likewise.
43986         (elf_machine_lazy_rela): Likewise.
43987         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
43988         (elf_machine_lazy_rel): Likewise.
43989         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
43990         Likewise.
43991         (elf_machine_lazy_rel): Likewise.
43992         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
43993         Likewise.
43994         (elf_machine_lazy_rel): Likewise.
43995         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
43996         (elf_machine_lazy_rel): Likewise.
43997         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
43998         (elf_machine_lazy_rel): Likewise.
43999         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
44000         (elf_machine_lazy_rel): Likewise.
44001         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
44002         (elf_machine_lazy_rel): Likewise.
44003         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
44004         (elf_machine_lazy_rel): Likewise.
44005         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
44006         (elf_machine_lazy_rel): Likewise.
44007
44008 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
44009
44010         * nss/nss_files/files-init.c (_nss_files_init): Use static
44011         initialization for all the *_traced_file variables.
44012
44013 2011-09-28  Andreas Schwab  <schwab@redhat.com>
44014
44015         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
44016
44017 2011-09-27  Roland McGrath  <roland@hack.frob.com>
44018
44019         [BZ #13226]
44020         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
44021
44022 2011-09-27  Andreas Schwab  <schwab@redhat.com>
44023
44024         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
44025         Reread the line before reparsing it.
44026
44027 2011-09-26  Andreas Schwab  <schwab@redhat.com>
44028
44029         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
44030
44031 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
44032             Maxim Kuvyrkov  <maxim@codesourcery.com>
44033             Joseph Myers  <joseph@codesourcery.com>
44034
44035         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
44036         if needed for __stack_chk_guard.
44037
44038 2011-09-19  Roland McGrath  <roland@hack.frob.com>
44039
44040         * sysdeps/posix/spawni.c (script_execute): Always define it.
44041         It will be optimized away if unused.
44042         (maybe_script_execute): New function.
44043         (__spawni): Call it.
44044
44045         * Makerules: Don't include tls.make.
44046         (config-tls): Always set to thread.
44047         * tls.make.c: File removed.
44048
44049 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
44050
44051         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
44052         * config.make.in (CPPFLAGS-config): New substituted variable.
44053
44054 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
44055
44056         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
44057
44058         [BZ #13192]
44059         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
44060         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
44061
44062 2011-09-15  Roland McGrath  <roland@hack.frob.com>
44063
44064         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
44065         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
44066         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
44067         (CALL_FAIL): Likewise.
44068         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
44069         (CALL_FAIL): Macro removed.
44070         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
44071
44072 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
44073
44074         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
44075         for __FINITE_MATH_ONLY__ == 1.
44076
44077 2011-09-15  Andreas Schwab  <schwab@redhat.com>
44078
44079         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
44080         __ieee754_sqrt instead of sqrt.
44081         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
44082         __ieee754_sqrtf instead of sqrtf.
44083         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
44084         __floorf instead of floorf.
44085         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
44086         __floorf, __truncf instead of floorf, truncf.
44087
44088 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
44089
44090         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
44091
44092         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
44093         __extern_always_inline.
44094         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
44095         32-bit.
44096
44097 2011-09-14  Andreas Schwab  <schwab@redhat.com>
44098
44099         * elf/rtld.c (dl_main): Also relocate in dependency order when
44100         doing symbol dependency testing.
44101
44102 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
44103
44104         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
44105         Always define `refsym'.
44106
44107 2011-09-13  Andreas Schwab  <schwab@redhat.com>
44108
44109         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
44110         (__FD_ELT): Renamed from __FDELT.
44111         * misc/bits/select2.h (__FD_ELT): Likewise.
44112         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
44113         __FD_MASK instead of __FDELT, __FDMASK.
44114         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
44115         Likewise.
44116         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
44117         Likewise.
44118
44119         * elf/Makefile (gen-ldd): Fix pattern.
44120
44121         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
44122         (init_tls): Likewise.
44123
44124 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
44125
44126         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
44127
44128 2011-09-12  Andreas Schwab  <schwab@redhat.com>
44129
44130         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
44131         `struct cmsghdr *' instead of `void *'.
44132         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
44133         Likewise.
44134
44135 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
44136
44137         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
44138         if non-absolute.
44139         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
44140         ldd_rewrite_script.
44141
44142 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
44143
44144         * configure.in: Remove --with-tls option.
44145         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
44146         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
44147         out in case it is missing.
44148         * sysdeps/ia64/elf/configure.in: Likewise.
44149         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
44150         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
44151         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
44152         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
44153         * sysdeps/sh/elf/configure.in: Likewise.
44154         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
44155         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
44156         * sysdeps/x86_64/elf/configure.in: Likewise.
44157         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
44158         * sysdeps/mach/hurd/tls.h: Likewise.
44159
44160         [BZ #13067]
44161         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
44162
44163         [BZ #13090]
44164         * configure.in: Fix use of AC_INIT.
44165
44166         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
44167
44168 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
44169
44170         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
44171         __set_errno.
44172         * malloc/hooks.c: Likewise.
44173
44174         [BZ #11929]
44175         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
44176         variables statically.
44177         (narenas): Initialize.
44178         (list_lock): Initialize.
44179         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
44180         initializtion of main_arena and list_lock.  Small cleanups.
44181         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
44182         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
44183         Add initializers to main_arena and mp_.
44184         (malloc_state): Remove pagesize member.  Change all users to use
44185         GLRO(dl_pagesize).
44186
44187         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
44188         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
44189         is always initialized.
44190
44191         * malloc/malloc.c: Removed unused configurations and dead code.
44192         * malloc/arena.c: Likewise.
44193         * malloc/hooks.c: Likewise.
44194         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
44195
44196         * include/tls.h: Removed.  USE___THREAD must always be defined.
44197         * bits/libc-tsd.h: Don't handle !USE___THREAD.
44198         * elf/dl-libc.c: Likewise.
44199         * elf/dl-tsd.c: Likewise.
44200         * include/errno.h: Likewise.
44201         * include/netdb.h: Likewise.
44202         * include/resolv.h: Likewise.
44203         * inet/herrno-loc.c: Likewise.
44204         * inet/herrno.c: Likewise.
44205         * malloc/arena.c: Likewise.
44206         * malloc/hooks.c: Likewise.
44207         * malloc/malloc.c: Likewise.
44208         * resolv/res-state.c: Likewise.
44209         * resolv/res_libc.c: Likewise.
44210         * sysdeps/i386/dl-machine.h: Likewise.
44211         * sysdeps/ia64/dl-machine.h: Likewise.
44212         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
44213         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
44214         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
44215         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
44216         * sysdeps/sh/dl-machine.h: Likewise.
44217         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
44218         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
44219         * sysdeps/unix/i386/sysdep.S: Likewise.
44220         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
44221         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
44222         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
44223         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
44224         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
44225         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
44226         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
44227         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
44228         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
44229         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
44230         * sysdeps/unix/x86_64/sysdep.S: Likewise.
44231         * sysdeps/x86_64/dl-machine.h: Likewise.
44232         * tls.make.c: Likewise.
44233
44234         * configure.in: Remove --with-__thread option.  Make tests for
44235         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
44236         tls_model attribute fail if no support is available.  Remove
44237         USE_IN_LIBIO.
44238         * Makeconfig: Adjust for dropped configure option.  All features are
44239         now mandatory.
44240         * Makerules: Likewise.
44241         * Versions.def: Likewise.
44242         * argp/argp-fmtstream.c: Likewise.
44243         * argp/argp-fmtstream.h: Likewise.
44244         * argp/argp-help.c: Likewise.
44245         * assert/assert.c: Likewise.
44246         * config.h.in: Likewise.
44247         * config.make.in: Likewise.
44248         * configure: Likewise.
44249         * configure.in: Likewise.
44250         * csu/Versions: Likewise.
44251         * csu/init.c: Likewise.
44252         * elf/tst-audit2.c: Likewise.
44253         * elf/tst-tls10.c: Likewise.
44254         * elf/tst-tls10.h: Likewise.
44255         * elf/tst-tls11.c: Likewise.
44256         * elf/tst-tls12.c: Likewise.
44257         * elf/tst-tls14.c: Likewise.
44258         * elf/tst-tlsmod11.c: Likewise.
44259         * elf/tst-tlsmod12.c: Likewise.
44260         * elf/tst-tlsmod13.c: Likewise.
44261         * elf/tst-tlsmod13a.c: Likewise.
44262         * elf/tst-tlsmod14a.c: Likewise.
44263         * elf/tst-tlsmod15b.c: Likewise.
44264         * elf/tst-tlsmod16a.c: Likewise.
44265         * elf/tst-tlsmod16b.c: Likewise.
44266         * elf/tst-tlsmod7.c: Likewise.
44267         * elf/tst-tlsmod8.c: Likewise.
44268         * elf/tst-tlsmod9.c: Likewise.
44269         * gmon/gmon.c: Likewise.
44270         * grp/fgetgrent_r.c: Likewise.
44271         * grp/putgrent.c: Likewise.
44272         * hurd/fopenport.c: Likewise.
44273         * include/libc-symbols.h: Likewise.
44274         * include/tls.h: Likewise.
44275         * intl/gettextP.h: Likewise.
44276         * intl/loadinfo.h: Likewise.
44277         * locale/global-locale.c: Likewise.
44278         * locale/localeinfo.h: Likewise.
44279         * mach/devstream.c: Likewise.
44280         * malloc/arena.c: Likewise.
44281         * malloc/set-freeres.c: Likewise.
44282         * misc/err.c: Likewise.
44283         * misc/getttyent.c: Likewise.
44284         * misc/mntent_r.c: Likewise.
44285         * posix/getopt.c: Likewise.
44286         * posix/wordexp.c: Likewise.
44287         * pwd/fgetpwent_r.c: Likewise.
44288         * resolv/Versions: Likewise.
44289         * resolv/res_hconf.c: Likewise.
44290         * shadow/fgetspent_r.c: Likewise.
44291         * shadow/putspent.c: Likewise.
44292         * stdio-common/printf_fphex.c: Likewise.
44293         * stdio-common/tmpfile.c: Likewise.
44294         * stdlib/abort.c: Likewise.
44295         * stdlib/fmtmsg.c: Likewise.
44296         * sunrpc/auth_unix.c: Likewise.
44297         * sunrpc/clnt_perr.c: Likewise.
44298         * sunrpc/clnt_tcp.c: Likewise.
44299         * sunrpc/clnt_udp.c: Likewise.
44300         * sunrpc/clnt_unix.c: Likewise.
44301         * sunrpc/openchild.c: Likewise.
44302         * sunrpc/svc_simple.c: Likewise.
44303         * sunrpc/svc_tcp.c: Likewise.
44304         * sunrpc/svc_udp.c: Likewise.
44305         * sunrpc/svc_unix.c: Likewise.
44306         * sunrpc/xdr.c: Likewise.
44307         * sunrpc/xdr_array.c: Likewise.
44308         * sunrpc/xdr_rec.c: Likewise.
44309         * sunrpc/xdr_ref.c: Likewise.
44310         * sunrpc/xdr_stdio.c: Likewise.
44311
44312 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
44313
44314         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
44315
44316 2011-07-03  Andreas Jaeger  <aj@suse.de>
44317
44318         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
44319         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
44320         regenerate with gen-libm-tests.pl.
44321
44322 2010-05-12  Petr Baudis  <pasky@suse.cz>
44323
44324         [BZ #11589]
44325         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
44326         around j0() zero points by switching to j1().
44327         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
44328         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
44329         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
44330         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
44331
44332 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
44333
44334         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
44335         instead of 0.
44336         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
44337         instead of 0.
44338         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
44339         Patch in part by Pavel Roskin <proski@gnu.org>.
44340
44341         [BZ #13138]
44342         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
44343         realloc.
44344         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
44345         Free memory block if necessary.
44346
44347         [BZ #12847]
44348         * libio/genops.c (INTDEF): For string streams the _lock pointer can
44349         be NULL.  Don't lock in this case.
44350
44351 2011-09-09  Roland McGrath  <roland@hack.frob.com>
44352
44353         * elf/elf.h (ELFOSABI_GNU): New macro.
44354         (ELFOSABI_LINUX): Define to that.
44355
44356 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
44357
44358         * string/strncat.c (strncat): Undef the symbol in case it has been
44359         defined in bits/string.h.
44360
44361 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
44362
44363         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
44364
44365         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
44366         link map.
44367
44368 2011-08-17  Andreas Jaeger  <aj@suse.de>
44369
44370         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
44371
44372 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
44373             Ian Lance Taylor  <iant@google.com>
44374
44375         * math/libm-test.inc (lround_test): New testcase.
44376         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
44377
44378 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
44379
44380         * Makefile: Remove support for automatic cvs check-ins.
44381         * Makerules: Likewise.
44382         * config.make.in: Likewise.
44383         * configure.in: Likewise.
44384         * intl/Makefile: Likewise.
44385         * locale/Makefile: Likewise.
44386         * po/Makefile: Likewise.
44387         * posix/Makefile: Likewise.
44388         * sysdeps/gnu/Makefile: Likewise.
44389         * sysdeps/mach/hurd/Makefile: Likewise.
44390         * sysdeps/sparc/sparc32/Makefile: Likewise.
44391
44392         [BZ #13118]
44393         * posix/Makefile (bug-regex32-ENV): Define.
44394         Patch by John Stanley <jpsinthemix@verizon.net>.
44395
44396         * misc/Makefile (headers): Add bits/select2.h.
44397         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
44398         * misc/bits/select2.h: New file.
44399         * include/bits/select2.h: New file.
44400         * debug/Makefile (routines): Add fdelt_chk.
44401         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
44402         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
44403         FD_ISSET.
44404         * debug/fdelt_chk.c: New file.
44405
44406         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
44407         * wcsmbs/test-wmemcmp.c: Likewise.
44408         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
44409         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
44410
44411 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
44412
44413         * string/Makefile (strop-tests): Add memcmp.
44414         * string/test-wmemcmp.c: New file.
44415         * string/test-memcmp.c: Add wmemcmp support.
44416
44417 2011-09-08  Roland McGrath  <roland@hack.frob.com>
44418
44419         [BZ #13153]
44420         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
44421         2011-07-19 change.
44422
44423         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
44424         garbage value in a __mach_port_mod_refs call in the cases of the
44425         task-self and thread-self ports.
44426
44427 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
44428
44429         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
44430
44431 2011-09-08  Andreas Schwab  <schwab@redhat.com>
44432
44433         * elf/dl-load.c (lose): Check for non-null L.
44434
44435 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
44436
44437         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
44438
44439         * elf/dl-libc.c (dlerror_run): Pass back error code from
44440         dl_catch_error.
44441
44442         [BZ #13123]
44443         * elf/dl-load.c (lose): Free l_origin if it is valid.
44444
44445         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
44446         names.
44447         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
44448         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
44449         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
44450         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
44451         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
44452         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
44453
44454 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
44455
44456         * sysdeps/powerpc/fpu/e_hypot.c: New file.
44457         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
44458         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
44459         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
44460         * sysdeps/powerpc/fpu/k_cosf.c: New file.
44461         * sysdeps/powerpc/fpu/k_sinf.c: New file.
44462         * sysdeps/powerpc/fpu/s_cosf.c: New file.
44463         * sysdeps/powerpc/fpu/s_sinf.c: New file.
44464         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
44465         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
44466
44467 2011-08-15  Alan Modra  <amodra@gmail.com>
44468
44469         [BZ #13092]
44470         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
44471         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
44472         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
44473         ppc_mcount to static-only-routines.
44474         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
44475         __mcount_internal.
44476         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
44477         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
44478
44479 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
44480
44481         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
44482         for finite and infinity parameters.
44483
44484 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
44485
44486         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
44487         and add nop instructions for throughput optimization.
44488         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
44489
44490 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
44491
44492         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
44493         aligned copy for power7 with vector-scalar instructions.
44494         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
44495
44496 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
44497
44498         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
44499         AVX check.
44500
44501 2011-09-07  Andreas Schwab  <schwab@redhat.com>
44502
44503         [BZ #13144]
44504         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
44505         last change.
44506
44507 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
44508
44509         * sysdeps/unix/sysv/linux/x86_64/init-first.c
44510         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
44511         syscall wrapper around clock_gettime in __vdso_clock_gettime.
44512         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
44513         clock_gettime.
44514
44515 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
44516
44517         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
44518         Forgot to demangle the pointer.
44519
44520         * sysdeps/i386/sysdep.h: Define atom_text_section.
44521         * sysdeps/x86_64/sysdep.h: Likewise.
44522         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
44523         section with atom_text_section.
44524         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
44525         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
44526         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
44527         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
44528         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
44529
44530         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
44531         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
44532         already be defined.  Change to take two parameters and don't assign
44533         result to variable.  Adjust all users.
44534         Define INTERNAL_GETTIME if not already defined.
44535         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
44536         call.
44537         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
44538         HAVE_CLOCK_GETTIME_VSYSCALL.
44539         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
44540
44541         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
44542         gettimeofday vsyscall, just use time.
44543
44544 2011-09-06  Andreas Schwab  <schwab@redhat.com>
44545
44546         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
44547         <errno.h>.
44548
44549 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
44550
44551         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
44552         syscall on x86-64.
44553         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
44554         syscall.
44555         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
44556         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
44557         syscall if possible.
44558
44559 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
44560
44561         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
44562         e_ident.  Don't pass to find_mapsXX.
44563         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
44564
44565 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44566
44567         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
44568         strchr-sse2-no-bsf strrchr-sse2-no-bsf
44569         * sysdeps/x86_64/multiarch/strchr.S: Update.
44570         Check bit_slow_BSF bit.
44571         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
44572         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
44573         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
44574
44575 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
44576
44577         [BZ #13134]
44578         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
44579         before glibc 2.15.
44580         (tryshell): Define.
44581         (__spawni): Change last parameter to be flag.  Test
44582         SPAWN_XFLAGS_USE_PATH flag to use path or not.
44583         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
44584         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
44585         * posix/spawni.c: Likewise.
44586         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
44587         * posix/spawnp.c: Likewise.  Change normal version to use
44588         SPAWN_XFLAGS_USE_PATH.
44589         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
44590         SPAWN_XFLAGS_TRY_SHELL.
44591
44592         [BZ #13150]
44593         * posix/glob.h: Remove gcc 1.x support.
44594
44595         [BZ #13068]
44596         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
44597
44598 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44599
44600         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
44601         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
44602         strrchr-sse2-bsf
44603         * sysdeps/i386/i686/multiarch/strchr.S: New file.
44604         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
44605         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
44606         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
44607         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
44608         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
44609
44610 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
44611
44612         * sysdeps/x86_64/wcscmp.S: New file.
44613
44614         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
44615         wcscmp-c wcscmp-sse2
44616         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
44617         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
44618         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
44619         * wcsmbs/wcscmp.c: Allow renaming.
44620
44621 2011-09-05  David S. Miller  <davem@davemloft.net>
44622
44623         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
44624         stack slot, rather than the struct return pointer slot.
44625         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
44626         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
44627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
44628         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
44629
44630 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
44631
44632         * po/ja.po: Update from translation team.
44633
44634         [BZ #13144]
44635         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
44636         kernel in 64-bit binaries.
44637
44638 2011-09-01  David S. Miller  <davem@davemloft.net>
44639
44640         * elf/elf.h (HWCAP_SPARC_*): Move to..
44641         * sysdeps/sparc/sysdep.h: this new file and add new values.
44642         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
44643         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
44644         _DL_HWCAP_COUNT to 24.
44645         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
44646         entries.
44647         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
44648         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
44649         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
44650         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
44651         instead of magic constants.
44652         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
44653
44654 2011-08-31  David S. Miller  <davem@davemloft.net>
44655
44656         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
44657         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
44658         Reimplement to do errno handling inline.
44659         (SYSCALL_ERROR_HANDLER): New macro.
44660         (__SYSCALL_STRING): Do not do errno handling in asm.
44661         (__CLONE_SYSCALL_STRING): Delete.
44662         (__INTERNAL_SYSCALL_STRING): Delete.
44663         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
44664         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
44665         (PSEUDO): Reimplement to do errno handling inline.
44666         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
44667         (SYSCALL_ERROR_HANDLER): New macro.
44668         (__SYSCALL_STRING): Do not do errno handling in asm.
44669         (__CLONE_SYSCALL_STRING): Delete.
44670         (__INTERNAL_SYSCALL_STRING): Delete.
44671         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
44672         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
44673         i386.
44674         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
44675         (inline_syscall*): Add 'err' argument.
44676         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
44677         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
44678         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
44679         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
44680
44681         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
44682         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
44683
44684 2011-08-30  Andreas Schwab  <schwab@redhat.com>
44685
44686         * elf/rtld.c (dl_main): Relocate objects in dependency order.
44687
44688 2011-08-29  Jiri Olsa <jolsa@redhat.com>
44689
44690         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
44691         directive.
44692
44693 2011-08-24  David S. Miller  <davem@davemloft.net>
44694
44695         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
44696
44697 2011-08-24  Andreas Schwab  <schwab@redhat.com>
44698
44699         * elf/Makefile: Add rules to build and run unload8 test.
44700         * elf/unload8.c: New file.
44701         * elf/unload8mod1.c: New file.
44702         * elf/unload8mod1x.c: New file.
44703         * elf/unload8mod2.c: New file.
44704         * elf/unload8mod3.c: New file.
44705
44706         * elf/dl-close.c (_dl_close_worker): Reset private search list if
44707         it wasn't used.
44708
44709 2011-08-23  David S. Miller  <davem@davemloft.net>
44710
44711         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
44712         subtract stack bias.
44713         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
44714         %sp not %fp in calculations.
44715         (_JMPBUF_UNWINDS_ADJ): Likewise.
44716
44717         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
44718         (aio_suspend): Call it to force an exception region around the
44719         AIO_MISC_WAIT() invocation.
44720
44721 2011-08-23  Andreas Schwab  <schwab@redhat.com>
44722
44723         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
44724         backslash.
44725
44726 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
44727
44728         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
44729         protection macro.
44730         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
44731         and <dl-machine.h>.
44732         (Elf64_FuncDesc): Remove.
44733
44734 2011-08-22  David S. Miller  <davem@davemloft.net>
44735
44736         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
44737         sigaltstack check, add missing cfi directives.
44738         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
44739         missing cfi directives, and sigaltstack handling.
44740
44741 2011-08-16  Andreas Schwab  <schwab@redhat.com>
44742
44743         [BZ #11724]
44744         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
44745         object is seen twice.
44746         * elf/dl-fini.c (_dl_sort_fini): Likewise.
44747
44748         * elf/Makefile (distribute): Add tst-initorder2.c.
44749         (tests): Add tst-initorder2.
44750         (modules-names): Add tst-initorder2a tst-initorder2b
44751         tst-initorder2c tst-initorder2d.  Add rules to build them.
44752         ($(objpfx)tst-initorder2.out): New rule.
44753         * elf/tst-initorder2.c: New file.
44754         * elf/tst-initorder2.exp: New file.
44755
44756 2011-08-22  Andreas Schwab  <schwab@redhat.com>
44757
44758         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
44759
44760         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
44761         dependencies back to end of function.
44762
44763         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
44764         $(elfobjdir)/ld.so.
44765
44766 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
44767
44768         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
44769         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
44770         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
44771         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
44772         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
44773         of __vdso_gettimeofday.
44774         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
44775         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
44776         attribute_hidden.
44777         (_libc_vdso_platform_setup): Remove initialization of
44778         __vdso_gettimeofday and __vdso_time.
44779
44780 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
44781
44782         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
44783         and fgetc_unlocked.
44784         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
44785         getc_unlocked.
44786
44787         * elf/dl-open.c (add_to_global): Report additions to the global scope
44788         for LD_DEBUG=scopes.
44789         (dl_open_worker): Also print scope of newly loaded dependencies.
44790         (_dl_show_scope): Indicate if there is no scope.
44791
44792         [BZ #13114]
44793         * stdio-common/Makefile (tests): Add bug24.
44794         * stdio-common/bug24.c: New file.
44795
44796 2011-08-19  Andreas Jaeger  <aj@suse.de>
44797
44798         [BZ #13114]
44799         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
44800         non-existant file when using close-on-exec mode.
44801
44802 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
44803
44804         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
44805         the very first instruction.
44806
44807         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
44808         the CFI state in the end.
44809         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
44810         inclusion of dl-trampoline.h.
44811         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
44812
44813 2011-08-19  Andreas Schwab  <schwab@redhat.com>
44814
44815         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
44816         expectations for long double.
44817
44818         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
44819         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
44820
44821 2011-08-14  David S. Miller  <davem@davemloft.net>
44822
44823         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
44824         artificual limit depends upon the system page size.
44825
44826 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
44827
44828         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
44829         * resolv/Makefile: Define CFLAGS-libresolv.
44830
44831 2011-08-17  Andreas Schwab  <schwab@redhat.com>
44832
44833         * nss/makedb.c (compute_tables): Make variables used in nested
44834         function static.
44835
44836 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
44837
44838         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
44839         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
44840         if buffer was too small.
44841
44842         * elf/pldd.c (main): Attach to all threads in the process.
44843         Rewrite /proc handling to use *at functions.
44844
44845 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
44846
44847         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
44848         specifies first scope to show.
44849         (dl_open_worker): Update callers.  Move printing scope of new
44850         object to before the relocation.
44851         * elf/rtld.c (dl_main): Update _dl_show_scope call.
44852         * sysdeps/generic/ldsodefs.h: Update declaration.
44853
44854         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
44855         string for the scope number.
44856
44857 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
44858
44859         * nscd/servicescache.c (cache_addserv): Make sure written is always
44860         initialized.
44861
44862 2011-08-14  Roland McGrath  <roland@hack.frob.com>
44863
44864         * sysdeps/i386/i486/bits/atomic.h
44865         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
44866         statement expression, so as to suppress "set but not used" warning.
44867         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
44868
44869         * string/strncat.c (STRNCAT): Use prototype definition.
44870
44871         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
44872         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
44873         -Iprograms here.
44874         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
44875         (localedef-modules): Add localedef.
44876         (locale-modules): Add locale.
44877
44878         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
44879         * elf/rtld.c (dl_main): Invert order of assignment in last change,
44880         to avoid a warning.
44881
44882 2011-08-14  David S. Miller  <davem@davemloft.net>
44883
44884         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
44885         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
44886
44887 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
44888
44889         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
44890         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
44891         * elf/rtld.c (dl_main): Set l_name of vDSO.
44892         Call _dl_show_scope when DL_DEBUG_SCOPES.
44893         (process_dl_debug): Recognize scopes flag and also set it for all.
44894         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
44895         Declare _dl_show_scope.
44896
44897         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
44898         (do_dlopen): Pass caller_dlopen to dl_open.
44899         (__libc_dlopen_mode): Initialize caller_dlopen.
44900
44901         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
44902         of libc.  Make tolower call locale-independent.  Optimize a bit by
44903         using isdigit instead of isalnum.
44904         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
44905
44906 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
44907
44908         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
44909         was a dependency or dynamically loaded.
44910
44911 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
44912
44913         * intl/l10nflist.c: Allow architecture-specific pop function.
44914         * sysdeps/x86_64/l10nflist.c: New file.
44915
44916         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
44917         classification.
44918
44919 2011-08-10  Andreas Schwab  <schwab@redhat.com>
44920
44921         * include/dirent.h: Add libc_hidden_proto for scandirat and
44922         scandirat64.  Don't declare __scandirat64.
44923         * dirent/scandirat.c: Add libc_hidden_def.
44924         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
44925         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
44926
44927 2011-08-10  David S. Miller  <davem@davemloft.net>
44928
44929         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
44930         enum.
44931         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
44932         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
44933         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
44934
44935 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
44936
44937         * Versions.def [libc]: Add GLIBC_2.15.
44938         * dirent/Makefile (routines): Add scandirat and scandirat64.
44939         * dirent/Versions [libc]: Export scandirat and scandirat64 for
44940         GLIBC_2.15.
44941         * dirent/dirent.h: Declare scandirat and scandirat64.
44942         * dirent/scandirat.c: New file.
44943         * dirent/scandirat64.c: New file.
44944         * sysdeps/wordsize-64/scandirat.c: New file.
44945         * sysdeps/wordsize-64/scandirat64.c: New file.
44946         * dirent/opendir.c: Define opendirat.
44947         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
44948         using scandirat.
44949         * dirent/scandir64.c: Adjust for scandir.c change.
44950         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
44951         __scandirat64, and __scandir_cancel_handler.
44952         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
44953         additional parameter and use openat instead of open (outside of ld.so).
44954         Add new __opendir as wrapper around __opendirat.
44955         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
44956         here without requiring old scandirat implementation.
44957
44958 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
44959
44960         * dirent/scandir.c (cancel_handler): Renamed to
44961         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
44962         defined.  Adjust users.
44963         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
44964         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
44965
44966 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
44967
44968         * string/test-string.h (IMPL): Use __STRING to expand name and then
44969         stringify it.
44970
44971         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
44972         of cleanups.
44973
44974 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
44975
44976         * string/Makefile: Update.
44977         (strop-tests): Append strncat.
44978         * string/test-wcscmp.c: New file.
44979         New comprehensive test for wcscmp.
44980         * string/test-strcmp.c: Update.
44981         (WIDE): New define.
44982
44983 2011-07-22  Andreas Schwab  <schwab@redhat.com>
44984
44985         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
44986         line.
44987
44988 2011-07-26  Andreas Schwab  <schwab@redhat.com>
44989
44990         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
44991         encoding to ACE if AI_IDN.
44992
44993 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
44994
44995         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
44996         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
44997
44998 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
44999
45000         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
45001         Fix overflow bug in strncat.
45002         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
45003
45004         * string/test-strncat.c: Update.
45005         Add new tests for checking overflow bugs.
45006
45007 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45008
45009         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
45010         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
45011         * sysdeps/i386/i686/multiarch/strcat.S: New file.
45012         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
45013         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
45014         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
45015         * sysdeps/i386/i686/multiarch/strncat.S: New file.
45016         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
45017         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
45018
45019         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
45020         (USE_AS_STRCAT): Define.
45021         Add strcat and strncat support.
45022         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
45023
45024 2011-07-25  Andreas Schwab  <schwab@redhat.com>
45025
45026         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
45027         __n bigger than INT_MAX+1.
45028         (__strncmp_g): Likewise.
45029
45030 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
45031
45032         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
45033         * libio/stido.h: Likewise.
45034
45035         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
45036         (AF_NFC): Define.
45037         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
45038         (AF_NFC): Define.
45039
45040         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
45041         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
45042         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
45043         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
45044         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
45045
45046         [BZ #13021]
45047         * scripts/test-installation.pl: Don't expect libnss_test1 to be
45048         installed.
45049
45050         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
45051         typo.
45052         (_dl_x86_64_save_sse): Likewise.
45053
45054 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
45055
45056         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
45057         OSXSAVE.
45058         (_dl_x86_64_save_sse): Likewise.
45059
45060         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
45061
45062         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
45063
45064 2011-07-21  Andreas Schwab  <schwab@redhat.com>
45065
45066         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
45067         change.
45068         (_dl_x86_64_save_sse): Use correct AVX check.
45069
45070 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
45071
45072         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
45073         bug in strncpy/strncat.
45074         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
45075
45076 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
45077
45078         * string/tester.c (test_strcat): Add tests for different alignments
45079         of source and destination.
45080         (test_strncat): Likewise.
45081
45082 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
45083
45084         [BZ #12852]
45085         * posix/glob.c (glob): Check passed in values before using them in
45086         expressions to avoid some overflows.
45087         (glob_in_dir): Likewise.
45088
45089         [BZ #13007]
45090         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
45091         check for AVX enablement so that we don't crash with old kernels and
45092         new hardware.
45093         * elf/tst-audit4.c: Add same checks here.
45094         * elf/tst-audit6.c: Likewise.
45095
45096         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
45097
45098 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
45099
45100         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
45101
45102 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
45103
45104         * po/cs.po: Update from translation team.
45105         * po/bg.po: Likewise.
45106
45107 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
45108
45109         * misc/sys/cdefs.h: Add support for const attribute.
45110         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
45111         to gnu_dev_{major,minor,makedev} functions.
45112
45113 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
45114
45115         * intl/dcigettext.c (get_output_charset): Add missing bracket.
45116
45117 2011-07-20  Andreas Schwab  <schwab@redhat.com>
45118
45119         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
45120         strlen results.
45121
45122 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45123
45124         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
45125         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
45126         register in order to avoid conflicts with the soft frame pointer
45127         being held in r11 when necessary.
45128         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
45129         (INTERNAL_VSYSCALL_NCS): Likewise.
45130
45131 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
45132
45133         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
45134         * elf/dl-fini.c (_dl_fini): Adjust caller.
45135         * elf/dl-close.c (_dl_close_worker): Likewise.
45136         * sysdeps/generic/ldsodefs.h: Adjust declaration.
45137
45138 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
45139
45140         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
45141         "aux_cache->nlibs < 0".
45142
45143         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
45144         in the reload-count case.
45145
45146 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
45147
45148         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45149         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
45150         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
45151         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
45152         * sysdeps/x86_64/multiarch/strcat.S: New file.
45153         * sysdeps/x86_64/multiarch/strncat.S: New file.
45154         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
45155         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
45156         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
45157         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
45158         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
45159         (USE_AS_STRCAT): Define.
45160         Add strcat and strncat support.
45161         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
45162         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
45163         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
45164         * string/strncat.c: Update.
45165         (USE_AS_STRNCAT): Define.
45166         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45167         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
45168         and i7.
45169         * sysdeps/x86_64/multiarch/init-arch.h
45170         (bit_Prefer_PMINUB_for_stringop): New.
45171         (index_Prefer_PMINUB_for_stringop): Likewise.
45172         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
45173         bit_Prefer_PMINUB_for_stringop.
45174
45175 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
45176
45177         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
45178         buffer64.
45179         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
45180         of casting of buffer.
45181         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
45182         buffer32 and buffer64.
45183         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
45184         writes instead of casting of buffer.
45185         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
45186         buffer32.
45187         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
45188         casting of buffer.
45189
45190 2011-07-19  Andreas Schwab  <schwab@redhat.com>
45191
45192         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
45193
45194 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
45195
45196         * nscd/nscd.c (termination_handler): Don't do anything for a database
45197         if it has not yet been initialized.
45198
45199 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
45200
45201         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
45202
45203 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
45204
45205         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
45206
45207 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
45208
45209         * po/nl.po: Update from translation team.
45210         * po/sv.po: Likewise.
45211
45212 2011-07-16  Roland McGrath  <roland@hack.frob.com>
45213
45214         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
45215         now disallowed by GCC.
45216
45217         * configure.in (use-default-link): Default to yes if a test -shared
45218         link meets our qualifications.
45219         * configure: Regenerated.
45220
45221         * config.make.in (output-format): New variable.
45222         * configure.in: Check for ld --print-output-format support.
45223         * configure: Regenerated.
45224         * Makerules ($(common-objpfx)format.lds)
45225         [$(output-format) != unknown]: Just use $(output-format),
45226         instead of the linker-script munging.
45227
45228 2011-07-14  Roland McGrath  <roland@hack.frob.com>
45229
45230         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
45231         of $(common-objpfx)shlib.lds.
45232         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
45233
45234         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
45235         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
45236
45237         * configure.in (-z relro check): Adjust test code to add a large
45238         writable data section after it.
45239         * configure: Regenerated.
45240
45241 2011-07-11  Roland McGrath  <roland@hack.frob.com>
45242
45243         * configure.in (-z relro check): Fix test code to make the variable
45244         truly const.
45245         * configure: Regenerated.
45246
45247 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
45248
45249         * nscd/nscd.h (struct traced_file): Define.
45250         (struct database_dyn): Remove inotify_descr, reset_res, and filename
45251         elements.  Add traced_files.
45252         (inotify_fd): Declare.
45253         (register_traced_file): Declare.
45254         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
45255         (inotify_fd): Export.
45256         (resolv_conf_descr): Remove.
45257         (nscd_init): Move inotify descriptor creation to main.
45258         Don't register files for notification here.
45259         (register_traced_file): New function.
45260         (invalidate_cache): Don't use reset_res to determine whether to call
45261         res_init, go through the list of registered files.
45262         (main_loop_poll): The inotify descriptors are now stored in the
45263         structures for the traced files.
45264         (main_loop_epoll): Likewise
45265         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
45266         to __nss_disable_nscd.
45267         * nscd/cache.c (prune_cache): There is no single inotify descriptor
45268         for a database anymore.  Check the records for all the registered
45269         files instead.
45270         * nss/Makefile (libnss_files-routines): Add files-init.
45271         (libnss_db-routines): Add db-init.
45272         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
45273         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
45274         * nss/nss_db/db-init.c: New file.
45275         * nss/nss_files/files-init.c: New file.
45276         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
45277         __nss_lookup_function.
45278         (__nss_lookup_function): Call nss_load_library.
45279         (nss_load_all_libraries): New function.
45280         (__nss_disable_nscd): Take parameter with callback function for files
45281         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
45282         used for the cached services.
45283         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
45284         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
45285         options for features to all the files in nscd.
45286
45287         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
45288
45289 2011-07-10  Roland McGrath  <roland@hack.frob.com>
45290
45291         * csu/elf-init.c (__libc_csu_init): Comment typo.
45292
45293 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
45294
45295         * po/pl.po: Update from translation team.
45296         * po/ja.po: Likewise.
45297         * po/ru.po: Likewise.
45298         * po/ko.po: Likewise.
45299         * po/fr.po: Likewise.
45300
45301 2011-07-09  Roland McGrath  <roland@hack.frob.com>
45302
45303         * configure.in (.ctors/.dtors header and trailer check):
45304         Use an empirical test on a built program.
45305         * configure: Regenerated.
45306
45307         * configure.in (-z relro check): Use an empirical test on a built DSO.
45308         Detect, but do not require, on ia64.
45309         * configure: Regenerated.
45310
45311         * configure.in (READELF): Find it with AC_CHECK_TOOL.
45312         Update tests that use readelf to use $READELF instead.
45313         * configure: Regenerated.
45314
45315 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
45316
45317         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
45318         if the result is not used.
45319
45320 2011-07-05  Andreas Jaeger  <aj@suse.de>
45321
45322         [BZ#9696]
45323         * stdlib/tst-strtod.c: Add testcase.
45324
45325 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
45326
45327         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
45328         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
45329         The latter has a higher limit.  Take additional parameter to pass to
45330         the new function.
45331         (__pathconf): Pass file to __statfs_link_max.
45332         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
45333         __statfs_link_max.
45334         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
45335         __statfs_link_max.
45336
45337         [BZ #12868]
45338         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
45339         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
45340         Handle Lustre.
45341         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
45342         (__statfs_filesize_max): Likewise.
45343         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
45344
45345 2011-07-05  Andreas Jaeger  <aj@suse.de>
45346
45347         * resolv/res_comp.c (dn_skipname): Remove unused variable.
45348
45349 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
45350
45351         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
45352         `status' variable.
45353         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
45354         Likewise.
45355
45356 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
45357
45358         * Makefile (strop-tests): Add strncat.
45359         * string/test-strncat.c: New file.
45360
45361 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
45362
45363         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
45364
45365 2011-06-21  Andreas Jaeger  <aj@suse.de>
45366
45367         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
45368         Copy rule from iconvdata/Makefile.
45369
45370 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
45371
45372         [BZ #12922]
45373         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
45374         but no long options are defined, just return 'W'.
45375
45376 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
45377
45378         [BZ #9696]
45379         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
45380
45381 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
45382
45383         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
45384         netgroups to read.
45385         (innetgr): Likewise.
45386
45387 2011-07-05  Roland McGrath  <roland@hack.frob.com>
45388
45389         * config.make.in (install_root): Default to $(DESTDIR).
45390
45391 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
45392
45393         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
45394
45395 2011-07-02  Roland McGrath  <roland@hack.frob.com>
45396
45397         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
45398
45399         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
45400         containing directory rather than embedding absolute directory names.
45401
45402         * scripts/check-local-headers.sh: Rewritten using awk.
45403         Match by word, not by line.  Print error messages for matches.
45404         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
45405
45406         * Makerules [shlib-lds-flags empty]:
45407         ($(common-objpfx)libc_pic.opts): New target.
45408         ($(common-objpfx)libc_pic.os.clean): New target.
45409         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
45410
45411         * config.make.in (OBJCOPY): New variable.
45412         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
45413         * configure: Regenerated.
45414
45415         * config.make.in (use-default-link): New variable.
45416         * configure.in (use_default_link): Grok --with-default-link to set it.
45417         * configure: Regenerated.
45418         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
45419         (shlib-lds, shlib-lds-flags): Define to empty.
45420
45421         * Makerules (shlib-lds): New variable.
45422         (shlib-lds-flags): New variable.
45423         (build-shlib, build-moduile, build-module-asneeded): Use it.
45424         ($(common-objpfx)libc.so): Use $(shlib-lds).
45425         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
45426         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
45427
45428         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
45429         DT_FLAGS/DT_FLAGS_1 with zero flags.
45430
45431         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
45432         linker script munging.
45433
45434 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
45435
45436         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
45437         as 128-bit value.
45438         * crypt/sha512.c (sha512_process_block): Perform total addition using
45439         128-bit if possible.
45440         (__sha512_finish_ctx): Likewise.
45441         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
45442         as 64-bit value.
45443         * crypt/sha256.c (SWAP64): Define.
45444         (sha256_process_block): Perform total addition using 64-bit if
45445         possible.
45446         (__sha256_finish_ctx): Likewise.
45447
45448 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
45449
45450         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
45451         * nscd/initgrcache.c (addinitgroupsX): Likewise.
45452         * nscd/hstcache.c (cache_addhst): Likewise.
45453         * nscd/grpcache.c (cache_addgr): Likewise.
45454         * nscd/aicache.c (addhstaiX): Likewise
45455         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
45456
45457 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
45458
45459         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
45460         * nscd/initgrcache.c (addinitgroupsX): Likewise.
45461         * nscd/hstcache.c (cache_addhst): Likewise.
45462         * nscd/grpcache.c (cache_addgr): Likewise.
45463         * nscd/aicache.c (addhstaiX): Likewise
45464
45465 2011-07-01  Andreas Schwab  <schwab@redhat.com>
45466
45467         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
45468         domain only when needed.
45469
45470 2011-06-30  Andreas Schwab  <schwab@redhat.com>
45471
45472         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
45473         is always restored.
45474
45475 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
45476
45477         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
45478         are re-adding the entry.
45479         * nscd/servicescache.c (cache_addserv): Likewise.
45480
45481 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
45482
45483         * sysdeps/generic/dl-irel.h: fix protection against multiple
45484         inclusions.
45485         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
45486
45487 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
45488
45489         [BZ #12935]
45490         * malloc/memusage.sh: Fix quoting in message.
45491         * debug/xtrace.sh: Likewise.
45492
45493         * configure.in: Remove support for --experimental-malloc option, make
45494         it the default.
45495         * config.make.in: Likewise.
45496         * malloc/Makefile: Likewise.
45497
45498 2011-06-27  Andreas Schwab  <schwab@redhat.com>
45499
45500         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
45501         two-byte characters.
45502
45503 2011-06-27  Roland McGrath  <roland@hack.frob.com>
45504
45505         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
45506         AC_CACHE_CHECK invocation.
45507         * configure: Regenerated.
45508
45509         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
45510
45511 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
45512
45513         [BZ #12350]
45514         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
45515         bit from old_res_options.
45516
45517         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
45518
45519         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
45520         value type for setfct.
45521
45522 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
45523
45524         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
45525         __gettimeofday instead of gettimeofday.
45526
45527 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
45528
45529         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
45530
45531 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
45532
45533         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
45534
45535         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
45536         info.
45537
45538 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
45539
45540         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
45541         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
45542         strcpy-sse2-unaligned strncpy-sse2-unaligned
45543         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
45544         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
45545         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
45546         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
45547         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
45548         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
45549         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
45550         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
45551         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
45552         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
45553         (STRCPY): Support SSE2 and SSSE3 versions.
45554
45555 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
45556
45557         [BZ #12874]
45558         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
45559         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
45560         kernels which artificially limit size of requests.
45561
45562 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
45563
45564         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
45565         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
45566         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
45567         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
45568         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
45569         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
45570         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
45571         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
45572         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
45573         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
45574         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
45575         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
45576         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
45577         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
45578         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
45579         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45580         Enable unaligned load optimization for Intel Core i3, i5 and i7
45581         processors.
45582         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
45583         Define.
45584         (index_Fast_Unaligned_Load): Define.
45585         (HAS_FAST_UNALIGNED_LOAD): Define.
45586
45587 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
45588
45589         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
45590
45591 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
45592
45593         [BZ #12907]
45594         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
45595         until it is clear that the information is realy needed.
45596         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
45597
45598 2011-06-22  Andreas Schwab  <schwab@redhat.com>
45599
45600         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
45601
45602 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
45603
45604         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
45605         /sys/devices/system/cpu/online if it is usable.
45606
45607         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
45608         reading the information from the /proc filesystem to once a second.
45609
45610 2011-06-21  Andreas Jaeger  <aj@suse.de>
45611
45612         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
45613         NULL after inclusion of kernel headers.
45614
45615 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
45616
45617         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
45618         calls to internal_setent.
45619
45620         [BZ #12885]
45621         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
45622         addresses using gethostbyname4_r ignore IPv4 addresses.
45623
45624         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
45625         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
45626
45627         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
45628
45629 2011-06-20  David S. Miller  <davem@davemloft.net>
45630
45631         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
45632         inclusions.
45633         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
45634
45635         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
45636         (elf_irel): Use it.
45637         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
45638         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
45639         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
45640         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
45641         * sysdeps/x86_64/dl-irel.h: Likewise.
45642
45643         * elf/dl-runtime.c: Use elf_ifunc_invoke.
45644         * elf/dl-sym.c: Likewise.
45645
45646 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
45647
45648         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
45649         need to dereference resplen2.
45650
45651 2011-06-14  Andreas Schwab  <schwab@redhat.com>
45652
45653         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
45654
45655 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
45656
45657         * Makeconfig: Define vardbdir and inst_vardbdir.
45658         * nss/Makefile: Add rules to install db-Makefile.
45659
45660         * nss/nss_db/db-XXX.c: Cleanup.
45661
45662         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
45663         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
45664         GLIBC_PRIVATE.
45665         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
45666         * nss/makedb.c: Implement -g option to specify that value strings
45667         are generated and should not be added to table iterated over for
45668         get*ent calls.
45669         * nss/nss_db/db-initgroups.c: New file.
45670
45671         * nss/getent.c: Add support for initgroups lookups through getgrouplist
45672         interface.
45673
45674         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
45675         (internal_getgrouplist): Adjust to name change.
45676         Update use_initgroups_entry if this is not the first call.
45677         * nss/databases.def: Add initgroups entry.
45678
45679         * nss/makedb.c (compute_tables): Check result of multiple hash table
45680         sizes to minimize maximum chain length.
45681
45682 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
45683
45684         * Versions.def: Add entry for libnss_db.
45685         * shlib-versions: Likewise.
45686         * nss/Makefile: Add rules to build libnss_db.
45687         * nss/Versions: Add libnss_db information.  Organize libnss_files
45688         entries better.
45689         * nss/db-Makefile: Add gshadow support.  Change rules for the new
45690         makedb progra.  Some minor improvements to generate smaller files.
45691         * nss/nss_db/nss_db.h: Move NSS database header data structures to
45692         here from...
45693         * nss/makedb.c: ...here.
45694         Improve database format to be smaller and require less memory at
45695         runtime.
45696         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
45697         db anymore.
45698         * nss/nss_db/db-netgrp.c: Likewise.
45699         * nss/nss_db/db-open.c: Likewise.
45700         * nss/nss_files/flies-XXX.x: Adjust comments.
45701         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
45702         * nss/nss_files/files-grp.c: Likewise.
45703         * nss/nss_files/files-hosts.c: Likewise.
45704         * nss/nss_files/files-network.c: Likewise.
45705         * nss/nss_files/files-proto.c: Likewise.
45706         * nss/nss_files/files-pwd.c: Likewise.
45707         * nss/nss_files/files-rpc.c: Likewise.
45708         * nss/nss_files/files-service.c: Likewise.
45709         * nss/nss_files/files-sgrp.c: Likewise.
45710         * nss/nss_files/files-spwd.c: Likewise.
45711         * nss/nss_db/db-alias.c: Removed.
45712         * nss/nss_db/dummy-db.h: Removed.
45713
45714 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
45715
45716         * nss/makedb.c: Rewritten to not use database library.
45717         * nss/Makefile: Update to build new makedb program.
45718
45719 2011-06-14  Andreas Jaeger  <aj@suse.de>
45720
45721         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
45722         memset declaration.
45723
45724 2011-06-10  Andreas Schwab  <schwab@redhat.com>
45725
45726         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
45727         tmpbuf.
45728
45729 2011-06-10  Roland McGrath  <roland@hack.frob.com>
45730
45731         * Makerules (shlib.lds): Fail if the linker script comes out empty.
45732         * elf/Makefile ($(objpfx)ld.so): Likewise.
45733
45734         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
45735         Don't list ld.so twice in dependencies.
45736
45737         * posix/bug-regex31.c: Include <stdlib.h>.
45738
45739         * nscd/hstcache.c (cache_addhst): Remove unused variable.
45740
45741         * nis/nss_compat/compat-spwd.c
45742         (getspent_next_nss_netgr): Remove unused variable.
45743         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
45744
45745         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
45746         nonmembers" output to use the right array.
45747
45748         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
45749
45750         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
45751
45752         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
45753         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
45754         * catgets/gencat.c (read_input_file): Likewise.
45755         * locale/programs/locarchive.c (enlarge_archive): Likewise.
45756
45757         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
45758         variable definition inside #if's controlling its use.
45759
45760         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
45761
45762         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
45763
45764         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
45765
45766         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
45767         unreachable code.
45768
45769         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
45770
45771         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
45772         * configure: Regenerated.
45773
45774         * Makerules: Revert last change.
45775         * elf/Makefile: Likewise.
45776
45777 2011-06-09  Roland McGrath  <roland@hack.frob.com>
45778
45779         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
45780         * elf/Makefile ($(objpfx)librtld.os): Likewise.
45781         (reloc-link): Likewise.
45782
45783 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
45784
45785         * elf/Makefile: Add rules to build pldd.
45786         * elf/pldd.c: New file.
45787         * elf/pldd-xx.c: New file.
45788
45789 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
45790
45791         * version.h: Update for 2.15 development version.
45792
45793 2011-06-07  David S. Miller  <davem@davemloft.net>
45794
45795         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
45796         ifuncs.
45797         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
45798         elf_machine_lazy_rel): Likewise.
45799         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
45800         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
45801         elf_machine_lazy_rel): Likewise.
45802         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
45803         dl_hwcap via passed in argument.
45804         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
45805         Likewise.
45806
45807 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
45808
45809         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
45810
45811 2011-06-06  Roland McGrath  <roland@hack.frob.com>
45812
45813         [BZ #12849]
45814         * manual/fdl-1.1.texi: New file, verbatim from:
45815         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
45816         * manual/lgpl-2.1.texi: New file, verbatim from:
45817         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
45818         * manual/Makefile (licenses): New variable, list those new file names.
45819         (texis): Use it.
45820         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
45821
45822         * manual/fdl.texi: File removed.
45823         * manual/lesser.texi: File removed.
45824         * manual/libc.texinfo (Copying, Documentation License):
45825         Use new @include file names, put @appendix directive before @include.
45826
45827 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
45828
45829         [BZ #12841]
45830         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
45831         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
45832         (mq_open): Add __NTH.
45833
45834 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
45835
45836         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
45837         Assume Intel Core i3/i5/i7 processor if AVX is available.
45838
45839 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
45840
45841         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
45842         typo.
45843
45844 2011-05-31  Andreas Schwab  <schwab@redhat.com>
45845
45846         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
45847         memory.  Use alloca_account.  Fix memory leak when retrying.
45848
45849 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
45850
45851         * version.h (RELEASE): Bump for 2.14 release.
45852         * include/features.h (__GLIBC_MINOR__): Bump to 14.
45853
45854         * config.make.in (RANLIB): Remove entry.
45855
45856 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
45857
45858         * po/Makefile (po-sed-cmd): Add ksh to extensions.
45859         (libc.pot): Work around missing support for .ksh extension in xgettext.
45860
45861         [BZ #12684]
45862         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
45863         if both request failed.
45864         (send_dg): In case of server errors clear resplen or *resplen2.
45865
45866         [BZ #12454]
45867         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
45868         when there are multiple maps.
45869         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
45870         (_dl_fini): Remove test here.
45871
45872         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
45873
45874 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
45875
45876         [BZ #12350]
45877         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
45878         bit from old_res_options.
45879         (gaih_inet): Likewise.
45880
45881         [BZ #11099]
45882         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
45883         as signed.
45884
45885         * resolv/res_init.c (res_setoptions): Make the code more compact.
45886
45887         [BZ #11558]
45888         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
45889         set RES_USEVC.
45890
45891         [BZ #11634]
45892         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
45893
45894         * malloc/malloc.h: Mark malloc hook variables as deprecated.
45895
45896         [BZ #11781]
45897         * malloc/malloc.h: Declare malloc hook variables as volatile.
45898
45899         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
45900         in last patch.
45901
45902         [BZ #11799]
45903         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
45904         raise in the comment.
45905         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
45906         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
45907         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
45908
45909 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
45910
45911         [BZ #12811]
45912         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
45913         grow the buffers more if it already has to be sufficient.
45914         (build_wcs_upper_buffer): Likewise.
45915         * posix/regexec.c (check_matching): Likewise.
45916         (clean_state_log_if_needed): Likewise.
45917         (extend_buffers): Don't enlarge buffers beyond size of the input
45918         buffer.
45919         Patches mostly by Emil Wojak <emil@wojak.eu>.
45920         * posix/bug-regex32.c: New file.
45921         * posix/Makefile (tests): Add bug-regex32.
45922
45923         * locale/findlocale.c (_nl_find_locale): Return right away if
45924         _nl_explode_name failed.
45925         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
45926
45927         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
45928
45929         * debug/xtrace.sh: Unify messages.
45930         * malloc/memusage.sh: Likewise.
45931
45932         [BZ #12813]
45933         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
45934         time symbol from vDSO.  Substitute with vsyscall if not available.
45935         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
45936         __vdso_time.
45937
45938         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
45939         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
45940         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
45941         Add sendmmsg and internal_sendmmsg.
45942         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
45943         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
45944         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
45945
45946         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
45947         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
45948         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
45949
45950 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
45951
45952         [BZ #12813]
45953         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
45954         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
45955         available.
45956         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
45957         __vdso_getcpu.
45958
45959         [BZ #12814]
45960         * iconvdata/Makefile (tests): Add bug-iconv9.
45961         * iconvdata/bug-iconv9.c: New file.
45962
45963 2011-05-27  Andreas Schwab  <schwab@redhat.com>
45964
45965         [BZ #12814]
45966         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
45967
45968 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
45969
45970         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
45971         (struct user_regs_struct): Change intcs field back to cs.
45972
45973 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
45974
45975         * po/ja.po: Update from translation team.
45976
45977 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
45978
45979         [BZ #12795]
45980         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
45981         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
45982
45983 2011-05-20  Andreas Schwab  <schwab@redhat.com>
45984
45985         * stdlib/longlong.h: Update from GCC.
45986
45987 2011-05-23  Andreas Schwab  <schwab@redhat.com>
45988
45989         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
45990         parameter name.
45991         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
45992         Add parameter name.
45993         (__sysconf): Pass it down.
45994
45995 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
45996
45997         [BZ #12671]
45998         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
45999         some situations.
46000         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
46001         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
46002         add in in __libc_use_alloca calls.  Adjust callers.
46003         (glob): Use malloc in some situations.
46004
46005         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
46006         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
46007         pltexit.
46008
46009 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
46010
46011         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
46012         and CLOCK_BOOTTIME_ALARM.
46013
46014         [BZ #12782]
46015         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
46016         is returned.
46017
46018         * string/_strerror.c (__strerror_r): Print negative errors as signed
46019         numbers.
46020
46021         [BZ #12777]
46022         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
46023         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
46024         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
46025
46026         * configure.in: Fix typo in redirection and correct removal of test
46027         files in two cases.
46028
46029         [BZ #12788]
46030         * locale/setlocale.c (new_composite_name): Fix test to check for
46031         identical name of all categories.
46032
46033         [BZ #12792]
46034         * libio/filedoalloc.c (local_isatty): New function.
46035         (_IO_file_doallocate): Use local_isatty.
46036         * stdio-common/perror.c (perror): In case a new stream is used
46037         forward the stream error.
46038         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
46039         error flag.
46040
46041 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
46042
46043         [BZ #11869]
46044         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
46045         alloca.
46046         * include/alloca.h (extend_alloca_account): Define.
46047
46048         [BZ #11857]
46049         * posix/regex.h: Fix comments with documentation of user-accessible
46050         fields after compilation and describe correct free'ing of pattern
46051         after re_compile_pattern.
46052         Patch by Reuben Thomas <rrt@sc3d.org>.
46053
46054 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
46055
46056         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
46057         and -mno-altivec to prevent the compiler from using Altivec and/or
46058         VSX instructions when the corresponding registers are not available.
46059
46060 2011-05-19  Andreas Schwab  <schwab@redhat.com>
46061
46062         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
46063
46064 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
46065
46066         * libio/freopen.c (freopen): Use __dup2, not dup2.
46067         * libio/freopen64.c (freopen64): Likewise.
46068
46069 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
46070
46071         [BZ #12775]
46072         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
46073         * math/Makefile (tests): Add test-powl.
46074         (CFLAGS-test-powl.c): Define.
46075         * math/test-powl.c: New file.
46076
46077 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
46078
46079         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
46080
46081 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
46082
46083         [BZ #11837]
46084         * iconvdata/gb18030.c: Update to GB18020-2005.
46085
46086 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
46087
46088         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
46089         RE_SYNTAX_POSIX_AWK): Update to match recent development.
46090         Patch by Aharon Robbins <arnold@skeeve.com>.
46091
46092         [BZ #11892]
46093         * stdlib/putenv.c (putenv): Don't always create copy of the variable
46094         on the stack.
46095
46096         [BZ #11895]
46097         * misc/pselect.c (__pselect): Handle timeout value errors hidden
46098         through underflows.
46099
46100         [BZ #12766]
46101         * misc/error.c (error_at_line): Ensure file_name and old_file_name
46102         point to strings before performing equality test for error_one_per_line
46103         mode.
46104
46105         [BZ #11697]
46106         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
46107
46108         [BZ #11820]
46109         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
46110         (struct user_fpregs_struct): Avoid __uint*_t types.
46111
46112         [BZ #6420]
46113         * malloc/mtrace.c (tr_where): Add additional parameter to point to
46114         symbol info.  Use it instead of calling _dl_addr locally.
46115         (lock_and_info): New function.
46116         (tr_freehook): Call lock_and_info and pass symbol info as additional
46117         parameter to tr_where.
46118         (tr_mallochook): Likewise.
46119         (tr_reallochook): Likewise.
46120         (tr_memalignhook): Likewise.
46121
46122         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
46123         used and couldn't be at all thread-safe.
46124
46125 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
46126
46127         * libio/freopen.c (freopen): Don't close old file descriptor
46128         before the new one is opened.  Instead dup the new file descriptor
46129         to the old one after the new stream is created.
46130         * libio/freopen64.c (freopen64): Likewise.
46131         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
46132         * libio/fileops.c (_IO_new_file_close_it): Handle new
46133         _IO_FLAGS2_NOCLOSE flag.
46134         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
46135         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
46136         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
46137         _IO_FLAGS2_NOCLOSE flag.
46138         * include/unistd.h: Add hidden_proto for dup3.
46139         Define __have_dup3.
46140         * io/dup3.c: Define hidden symbol.
46141         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
46142
46143         [BZ #7101]
46144         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
46145         when an incomplete long option is used.
46146         * posix/tst-getopt_long1.c: New file.
46147         * posix/Makefile (tests): Add tst-getopt_long1.
46148
46149         [BZ #10138]
46150         * scripts/config.guess: Update from autoconf-2.68.
46151         * scripts/config.sub: Likewise.
46152
46153         [BZ #10157]
46154         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
46155         tests into ...
46156         (has_cpuclock): ...this.  New function.
46157         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
46158         macro here based on has_cpuclock code.
46159
46160         [BZ #10149]
46161         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
46162         First byte (not low byte) is now always NUL.
46163         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
46164
46165         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
46166         Use non-cancelable interfaces.
46167
46168         [BZ #9809]
46169         * locale/iso-639.def: Add entry for Sorani.
46170
46171         [BZ #11901]
46172         * include/stdlib.h: Move include protection to the right place.
46173         Define abort_msg_s.  Declare __abort_msg with it.
46174         * stdlib/abort.c (__abort_msg): Adjust type.
46175         * assert/assert.c (__assert_fail_base): New function.  Majority
46176         of code from __assert_fail.  Allocate memory for __abort_msg with
46177         mmap.
46178         (__assert_fail): Now call __assert_fail_base.
46179         * assert/assert-perr.c: Remove bulk of implementation.  Use
46180         __assert_fail_base.
46181         * include/assert.hL Declare __assert_fail_base.
46182         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
46183         mmap.
46184         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
46185
46186 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
46187
46188         [BZ #11952]
46189         [BZ #12453]
46190         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
46191         until all modules are registered in the DTV.
46192         * elf/Makefile: Add rules to build and run tst-tls19.
46193         * elf/tst-tls19.c: New file.
46194         * elf/tst-tls19mod1.c: New file.
46195         * elf/tst-tls19mod2.c: New file.
46196         * elf/tst-tls19mod3.c: New file.
46197         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
46198
46199         [BZ #12083]
46200         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
46201         correctly.
46202
46203         [BZ #12601]
46204         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
46205         two-byte sequence errors.
46206         * iconvdata/Makefile (tests): Add bug-iconv8.
46207         * iconvdata/bug-iconv8.c: New file.
46208
46209         [BZ #12626]
46210         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
46211         buf2 definition.
46212
46213         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
46214
46215         [BZ #12432]
46216         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
46217         (dummy_getcfa): New function.
46218         (init): Get _Unwind_GetCFA address, use dummy if not found.
46219         (backtrace_helper): In recursion check, also check whether CFA changes.
46220         (__backtrace): Completely initialize arg.
46221
46222         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
46223         storing incomplete byte sequence in state object.  Avoid testing for
46224         guaranteed too small input if we know there is enough data available.
46225
46226 2011-05-11  Andreas Schwab  <schwab@redhat.com>
46227
46228         * Makeconfig (+link-pie): Indent.
46229         * Rules (binaries-pie): Define if $(have-fpie) and
46230         $(build-shared).
46231         (binaries-shared): Also filter out $(binaries-pie).
46232         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
46233         * nscd/Makefile (others-pie): Add nscd.
46234         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
46235         ($(objpfx)nscd): Remove command override.
46236         * login/Makefile (others-pie): Add pt_chown.
46237         ($(objpfx)pt_chown): Remove command override.
46238         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
46239         remove command overrides.
46240
46241 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
46242
46243         * libio/tst_putwc.c: Fix error messages.
46244
46245         [BZ #12724]
46246         * libio/fileops.c (_IO_new_file_close_it): Always flush when
46247         currently writing and seek to current position when not.
46248         * libio/Makefile (tests): Add bug-fclose1.
46249         * libio/bug-fclose1.c: New file.
46250
46251 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
46252
46253         [BZ #12511]
46254         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
46255         don't set DF_1_NODELETE here.
46256         (do_lookup_x): When entering new entry test for copy relocation
46257         and if necessary set DF_1_NODELETE flag.
46258         * elf/tst-unique4.cc: New file.
46259         * elf/tst-unique4.h: New file.
46260         * elf/tst-unique4lib.cc: New file.
46261         * elf/Makefile: Add rules to build and run tst-unique4.
46262         Patch by Piotr Bury <pbury@goahead.com>.
46263
46264 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
46265
46266         [BZ #12052]
46267         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
46268
46269         [BZ #12625]
46270         * misc/mntent_r.c (addmntent): Flush the stream after the output
46271
46272         [BZ #12393]
46273         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
46274         (is_trusted_path_normalize): Skip initial colon.  Append slash
46275         to empty buffer.  Duplicate is_trusted_path code but allow
46276         constructed patch to be prefix.
46277         (is_dst): Allow $ORIGIN followed by /.
46278         (_dl_dst_substitute): Correct clearing of check_for_trusted.
46279         Correct testing of result of is_trusted_path_normalize
46280         (decompose_rpath): Fix warning.
46281
46282 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
46283
46284         [BZ #11257]
46285         * grp/initgroups.c (internal_getgrouplist): When we found the service
46286         list through the initgroups entry in nsswitch.conf do not always
46287         continue on a successful lookup.  Don't always use the
46288         __nss_group_database value if it is set.
46289         * nss/nsswitch.conf (initgroups): Change action for successful db
46290         lookup to continue for compatibility.
46291
46292 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
46293
46294         [BZ #11532]
46295         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
46296         and CP774 modules.
46297         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
46298         and CP774 modules.
46299         * iconvdata/tst-tables.sh: Likewise.
46300         * iconvdata/cp770.c: New file.
46301         * iconvdata/cp771.c: New file.
46302         * iconvdata/cp772.c: New file.
46303         * iconvdata/cp773.c: New file.
46304         * iconvdata/cp774.c: New file.
46305         * iconvdata/testdata/CP770: New file.
46306         * iconvdata/testdata/CP770..UTF8: New file.
46307         * iconvdata/testdata/CP771: New file.
46308         * iconvdata/testdata/CP771..UTF8: New file.
46309         * iconvdata/testdata/CP772: New file.
46310         * iconvdata/testdata/CP772..UTF8: New file.
46311         * iconvdata/testdata/CP773: New file.
46312         * iconvdata/testdata/CP773..UTF8: New file.
46313         * iconvdata/testdata/CP774: New file.
46314         * iconvdata/testdata/CP774..UTF8: New file.
46315
46316         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
46317         END CHARMAP line.
46318         * iconvdata/gen-8bit-gap.sh: Likewise.
46319         * iconvdata/gen-8bit.sh: Likewise.
46320
46321         * locale/iso-639.def: Add ary entry.
46322
46323         [BZ #11258]
46324         * locale/C-translit.h.in: Add U20A1 transliteration.
46325
46326         [BZ #12178]
46327         * locale/iso-639.def: Add wae entry.
46328         Patch by Kevin Bortis <bortis@translate-wae.ch>.
46329
46330         [BZ #12545]
46331         * locale/programs/localedef.c (construct_output_path): Use ssize_t
46332         for n.
46333
46334         [BZ #12711]
46335         * locale/C-translit.h.in: Add entry for U20B9.
46336         Patch by pravin.d.s@gmail.com.
46337
46338 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
46339
46340         [BZ #12713]
46341         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
46342         ENAMETOOLONG use generic getcwd.
46343         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
46344         in rtld.  Use *stat64.
46345         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
46346         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
46347         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
46348         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
46349         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
46350         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
46351         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
46352         __fstatat64 macros.
46353         * include/dirent.h: Add libc_hidden_proto for rewinddir.
46354         * dirent/rewinddir.c: Add libc_hidden_def.
46355         * sysdeps/mach/hurd/rewinddir.c: Likewise.
46356         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
46357
46358         * include/dirent.h (__alloc_dir): Add flags parameter.
46359         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
46360         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
46361         __alloc_dir.
46362         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
46363         from fdopendir if O_CLOEXEC is already set.
46364
46365 2011-03-15  Alan Modra  <amodra@gmail.com>
46366
46367         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
46368         l_tls_firstbyte_offset non-zero.  Save padding offset in
46369         l_tls_firstbyte_offset for later use.
46370         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
46371         freeing static tls block.
46372
46373 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
46374
46375         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
46376         where #ifdef was intended.  The intent is to prevent ARG_MAX from
46377         being defined by the kernel headers.
46378
46379 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
46380
46381         [BZ #12734]
46382         * resolv/resolv.h: Define RES_NOTLDQUERY.
46383         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
46384         no-tld-query and set RES_NOTLDQUERY.
46385         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
46386         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
46387         modern BIND to search name as TLD unless forbidden.
46388
46389 2011-05-07  Petr Baudis  <pasky@suse.cz>
46390             Ulrich Drepper  <drepper@gmail.com>
46391
46392         [BZ #12393]
46393         * elf/dl-load.c (fillin_rpath): Move trusted path check...
46394         (is_trusted_path): ...to here.
46395         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
46396         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
46397         using is_trusted_path_normalize() in setuid scripts.
46398
46399 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
46400
46401         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
46402         __BEGIN/__END_DECLS.
46403
46404 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
46405
46406         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
46407         NSS_STATUS_NOTFOUND if no record was found.
46408
46409 2011-05-05  Andreas Schwab  <schwab@redhat.com>
46410
46411         * sunrpc/Makefile (headers): Add rpc/netdb.h.
46412         (headers-not-in-tirpc): Remove rpc/netdb.h
46413         * resolv/netdb.h: Revert last change.
46414
46415 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
46416
46417         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
46418         circular dependency between libgcc.a and libc.a.
46419
46420 2011-05-05  Andreas Schwab  <schwab@redhat.com>
46421
46422         * resolv/netdb.h: Don't include <rpc/netdb.h>.
46423         * nis/Makefile: Don't install rpcsvc/*.
46424         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
46425         instead of <rpc/types.h>.
46426         (MAXHOSTNAMELEN): Define.
46427
46428 2011-05-03  Andreas Schwab  <schwab@redhat.com>
46429
46430         * elf/ldconfig.c (add_dir): Don't crash on empty path.
46431
46432 2011-04-28  Maciej Babinski  <mbabinski@google.com>
46433
46434         [BZ #12714]
46435         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
46436         gethostbyname4_r when IPv6 results are possible.
46437
46438 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
46439
46440         [BZ #12723]
46441         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
46442         _PC_PIPE_BUF handling.
46443
46444 2011-04-30  Bruno Haible  <bruno@clisp.org>
46445
46446         [BZ #12717]
46447         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
46448         * resolv/netdb.h (getnameinfo): Change type of flags parameter
46449         to 'int'.
46450         * inet/getnameinfo.c (getnameinfo): Likewise.
46451
46452 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
46453
46454         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
46455         to groups setting in database lookup.
46456         * nss/nsswitch.conf: Add initgroups entry.
46457
46458 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
46459
46460         [BZ #12685]
46461         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
46462         mode string.
46463         Patch by Eric Blake <eblake@redhat.com>.
46464
46465 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
46466
46467         * sunrpc/Makefile (need-export-routines): Add svc_run.
46468         (routines): Remove svc_run.
46469         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
46470         * sunrpc/clnt_perr.c (clnt_perrno): Export.
46471         * sunrpc/svc_run.c (svc_run): Likewise.
46472         * sunrpc/svc_udp.c (svcudp_create): Likewise.
46473
46474 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
46475
46476         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
46477         problem in reallocation in last patch.
46478
46479 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
46480
46481         * sunrpc/Makefile: Move inclusion of Rules.
46482
46483 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
46484
46485         * nss/nss_files/files-initgroups.c: New file.
46486         * nss/Makefile (libnss_files-routines): Add files-initgroups.
46487         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
46488         _nss_files_initgroups_dyn.
46489
46490 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
46491
46492         * elf/elf.h (R_ARM_IRELATIVE): Define.
46493
46494 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
46495
46496         * po/ru.po: Update from translation team.
46497
46498 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
46499
46500         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
46501         dependencies.
46502
46503 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
46504
46505         [BZ #12653]
46506         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
46507         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
46508         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
46509         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
46510         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
46511
46512 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
46513
46514         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
46515         differing bytes.
46516         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
46517         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
46518         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
46519
46520 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
46521
46522         [BZ #12420]
46523         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
46524         storing it.
46525         * stdlib/bug-getcontext.c: New file.
46526         * stdlib/Makefile: Add rules to build and run bug-getcontext.
46527
46528 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46529
46530         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
46531         instructions into .machine "z9-109".
46532         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
46533         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
46534
46535 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
46536
46537         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
46538         between environment variables and auxiliary vector.
46539
46540 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
46541
46542         * Makefile: Add rules to build linkobj/libc.so.
46543         * include/libc-symbols.h: Define libc_hidden_nolink.
46544         * include/rpc/auth.h: Mark functions which are to be hidden.
46545         * include/rpc/auth_des.h: Likewise.
46546         * include/rpc/auth_unix.h: Likewise.
46547         * include/rpc/clnt.h: Likewise.
46548         * include/rpc/des_crypt.h: Likewise.
46549         * include/rpc/key_prot.h: Likewise.
46550         * include/rpc/pmap_clnt.h: Likewise.
46551         * include/rpc/pmap_prot.h: Likewise.
46552         * include/rpc/pmap_rmt.h: Likewise.
46553         * include/rpc/rpc_msg.h: Likewise.
46554         * include/rpc/svc.h: Likewise.
46555         * include/rpc/svc_auth.h: Likewise.
46556         * include/rpc/xdr.h: Likewise.
46557         * nis/Makefile: Link all DSOs against linkobj/libc.so.
46558         * nss/Makefile: Likewise.
46559         * sunrpc/Makefile: Don't install headers.  Build library with normal
46560         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
46561         * sunrpc/auth_des.c: Hide exported symbols by default, export some
46562         for the compat linking library.  Remove use of INTDEF/INTUSE.
46563         * sunrpc/auth_none.c: Likewise.
46564         * sunrpc/auth_unix.c: Likewise.
46565         * sunrpc/authdes_prot.c: Likewise.
46566         * sunrpc/authuxprot.c: Likewise.
46567         * sunrpc/clnt_gen.c: Likewise.
46568         * sunrpc/clnt_perr.c: Likewise.
46569         * sunrpc/clnt_raw.c: Likewise.
46570         * sunrpc/clnt_simp.c: Likewise.
46571         * sunrpc/clnt_tcp.c: Likewise.
46572         * sunrpc/clnt_udp.c: Likewise.
46573         * sunrpc/clnt_unix.c: Likewise.
46574         * sunrpc/des_crypt.c: Likewise.
46575         * sunrpc/des_soft.c: Likewise.
46576         * sunrpc/get_myaddr.c: Likewise.
46577         * sunrpc/key_call.c: Likewise.
46578         * sunrpc/key_prot.c: Likewise.
46579         * sunrpc/netname.c: Likewise.
46580         * sunrpc/pm_getmaps.c: Likewise.
46581         * sunrpc/pm_getport.c: Likewise.
46582         * sunrpc/pmap_clnt.c: Likewise.
46583         * sunrpc/pmap_prot.c: Likewise.
46584         * sunrpc/pmap_prot2.c: Likewise.
46585         * sunrpc/pmap_rmt.c: Likewise.
46586         * sunrpc/publickey.c: Likewise.
46587         * sunrpc/rpc_cmsg.c: Likewise.
46588         * sunrpc/rpc_common.c: Likewise.
46589         * sunrpc/rpc_dtable.c: Likewise.
46590         * sunrpc/rpc_prot.c: Likewise.
46591         * sunrpc/rpc_thread.c: Likewise.
46592         * sunrpc/rtime.c: Likewise.
46593         * sunrpc/svc.c: Likewise.
46594         * sunrpc/svc_auth.c: Likewise.
46595         * sunrpc/svc_authux.c: Likewise.
46596         * sunrpc/svc_raw.c: Likewise.
46597         * sunrpc/svc_run.c: Likewise.
46598         * sunrpc/svc_simple.c: Likewise.
46599         * sunrpc/svc_tcp.c: Likewise.
46600         * sunrpc/svc_udp.c: Likewise.
46601         * sunrpc/svc_unix.c: Likewise.
46602         * sunrpc/svcauth_des.c: Likewise.
46603         * sunrpc/xcrypt.c: Likewise.
46604         * sunrpc/xdr.c: Likewise.
46605         * sunrpc/xdr_array.c: Likewise.
46606         * sunrpc/xdr_float.c: Likewise.
46607         * sunrpc/xdr_intXX_t.c: Likewise.
46608         * sunrpc/xdr_mem.c: Likewise.
46609         * sunrpc/xdr_rec.c: Likewise.
46610         * sunrpc/xdr_ref.c: Likewise.
46611         * sunrpc/xdr_sizeof.c: Likewise.
46612         * sunrpc/xdr_stdio.c: Likewise.
46613
46614 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
46615
46616         [BZ #12650]
46617         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
46618         * sysdeps/ia64/dl-tls.h: Likewise.
46619         * sysdeps/powerpc/dl-tls.h: Likewise.
46620         * sysdeps/s390/dl-tls.h: Likewise.
46621         * sysdeps/sh/dl-tls.h: Likewise.
46622         * sysdeps/sparc/dl-tls.h: Likewise.
46623         * sysdeps/x86_64/dl-tls.h: Likewise.
46624         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
46625
46626 2011-03-14  Andreas Schwab  <schwab@redhat.com>
46627
46628         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
46629         rpath element also skip the following colon.
46630         (expand_dynamic_string_token): Add is_path parameter and pass
46631         down to DL_DST_REQUIRED and _dl_dst_substitute.
46632         (decompose_rpath): Call expand_dynamic_string_token with
46633         non-zero is_path.  Ignore empty rpaths.
46634         (_dl_map_object_from_fd): Call expand_dynamic_string_token
46635         with zero is_path.
46636
46637 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
46638
46639         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
46640         Make cancelable.
46641
46642 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
46643
46644         [BZ #12655]
46645         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
46646         Patch by Filipe David Manana <fdmanana@apache.org>.
46647
46648 2011-04-07  Andreas Schwab  <schwab@redhat.com>
46649
46650         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
46651         Maintain aligned stack.
46652         (CHECK_RSP): Remove unused macro.
46653
46654 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
46655
46656         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
46657         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
46658
46659 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
46660
46661         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
46662
46663         * include/features.h: Mention __USE_XOPEN2K8 in comment.
46664
46665 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
46666
46667         [BZ #12518]
46668         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
46669         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
46670         * sysdeps/x86_64/memmove.c: New file.
46671         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
46672         (memcpy): Renamed to ...
46673         (__new_memcpy): This.
46674         (memcpy): Provide GLIBC_2_14 memcpy.
46675         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
46676         (memcpy): Provide GLIBC_2_2_5 memcpy.
46677
46678 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
46679
46680         [BZ #12631]
46681         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
46682
46683 2011-03-30  Andreas Schwab  <schwab@redhat.com>
46684
46685         * misc/syncfs.c: New file.
46686         * misc/Makefile (routines): Add syncfs.
46687         * posix/unistd.h: Declare syncfs.
46688         * sysdeps/unix/syscalls.list: Add syncfs.
46689
46690 2011-04-01  Andreas Schwab  <schwab@redhat.com>
46691
46692         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
46693         open_by_handle_at.
46694         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
46695         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
46696         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46697         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46698         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46699         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
46700         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46701
46702 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
46703
46704         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
46705         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
46706         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
46707         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46708         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46709         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46710         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46711
46712         * io/Makefile: Compile fallocate.c, fallocate64.c, and
46713         sync_file_range.c with -fexceptions.
46714         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
46715         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
46716         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
46717         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
46718         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
46719         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
46720         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
46721         sync_file_range as cancellation point
46722         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
46723         now a wrapper around __call_sync_file_range with cancellation handling.
46724         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
46725         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
46726         function name to __call_sync_file_range.
46727         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
46728         Add call_sync_file_range.
46729
46730 2011-04-01  Andreas Schwab  <schwab@redhat.com>
46731
46732         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
46733         bits/timex.h.
46734
46735 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
46736
46737         * iconv/iconv.h: Fix typo in comment.
46738         * io/fcntl.h: Likewise.
46739         * libio/stdio.h: Likewise.
46740         * posix/spawn.h: Likewise.
46741         * posix/unistd.h: Likewise.
46742         * stdlib/stdlib.h: Likewise.
46743         * time/time.h: Likewise.
46744         * wcsmbs/wchar.h: Likewise.
46745
46746         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
46747         open_by_handle): Add.
46748         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
46749         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
46750         Augment a few comments.
46751         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
46752         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
46753         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
46754         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
46755         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
46756         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
46757         open_by_handle.
46758
46759         * io/fcntl.h (AT_EMPTY_PATH): Define.
46760
46761 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
46762
46763         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
46764         * sysdeps/unix/sysv/linux/bits/time.h: New file.
46765         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
46766         to...
46767         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
46768         * Versions.def: Add GLIBC_2.14.
46769         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
46770         Export.
46771
46772 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
46773
46774         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
46775         round counter.
46776         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
46777
46778 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
46779
46780         [BZ #12597]
46781         * string/test-strncmp.c (do_page_test): New function.
46782         (check2): Likewise.
46783         (test_main): Call check2.
46784         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
46785
46786 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
46787
46788         [BZ #12587]
46789         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
46790         Handle cache information in CPU leaf 4.
46791         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
46792
46793 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
46794
46795         [BZ #12583]
46796         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
46797         character representation.
46798         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
46799
46800 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
46801
46802         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
46803         END(__isnan) to END(__isnanf) to match function entry point/label
46804         EALIGN(__isnanf,...).
46805
46806 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
46807
46808         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
46809
46810 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
46811
46812         [BZ #12510]
46813         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
46814         copy from the symbol referenced in the relocation to initialize the
46815         used variable.
46816         Patch by Piotr Bury <pbury@goahead.com>.
46817         * elf/Makefile: Add rules to build and tst-unique3.
46818         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
46819         * elf/tst-unique3.cc: New file.
46820         * elf/tst-unique3.h: New file.
46821         * elf/tst-unique3lib.cc: New file.
46822         * elf/tst-unique3lib2.cc: New file.
46823
46824         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
46825
46826 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
46827
46828         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
46829         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
46830         to _start.
46831
46832 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
46833
46834         * elf/dl-load.c (_dl_map_object): If we are looking for the first
46835         to-be-loaded object along a path to loader is ld.so.
46836
46837 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
46838             Ulrich Drepper  <drepper@gmail.com>
46839
46840         * sysdeps/x86_64/memset.S: After aligning destination, code
46841         branches to different locations depending on the value of
46842         misalignment, when multiarch is enabled. Fix this.
46843
46844 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
46845
46846         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
46847         Set _x86_64_preferred_memory_instruction for AMD processsors.
46848         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
46849         Set bit_Prefer_SSE_for_memop for AMD processors.
46850
46851 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
46852
46853         * libio/fmemopen.c (fmemopen): Optimize a bit.
46854
46855 2011-03-03  Andreas Schwab  <schwab@redhat.com>
46856
46857         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
46858
46859 2011-03-03  Roland McGrath  <roland@redhat.com>
46860
46861         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
46862
46863 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
46864
46865         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
46866         __bzero_ultra1 instead of __memset_ultra1.
46867
46868 2011-02-23  Andreas Schwab  <schwab@redhat.com>
46869             Ulrich Drepper  <drepper@gmail.com>
46870
46871         [BZ #12509]
46872         * include/link.h (struct link_map): Add l_orig_initfini.
46873         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
46874         returning unsuccessfully.
46875         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
46876         close of a file loaded at startup, restore the original l_initfini
46877         list.
46878         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
46879         list, store the pointer.
46880         * elf/Makefile ($(objpfx)noload-mem): New rule.
46881         (noload-ENV): Define.
46882         (tests): Add $(objpfx)noload-mem.
46883         * elf/noload.c: Include <memcheck.h>.
46884         (main): Call mtrace.  Close all opened handles.
46885
46886 2011-02-17  Andreas Schwab  <schwab@redhat.com>
46887
46888         [BZ #12454]
46889         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
46890         dependencies are missing.
46891
46892 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46893
46894         Fix __if_freereq crash: Unlike the generic version which uses free,
46895         Hurd needs munmap.
46896         * sysdeps/mach/hurd/ifreq.h: New file.
46897
46898 2011-01-27  Petr Baudis  <pasky@suse.cz>
46899             Ulrich Drepper  <drepper@gmail.com>
46900
46901         [BZ 12445]#
46902         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
46903         to extend_alloca().
46904         * stdio-common/bug23.c: New file.
46905         * stdio-common/Makefile (tests): Add bug23.
46906
46907 2010-09-28  Andreas Schwab  <schwab@redhat.com>
46908             Ulrich Drepper  <drepper@gmail.com>
46909
46910         [BZ #12489]
46911         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
46912         before performing relro protection.  At old place add assertion
46913         to make sure nothing changed.
46914
46915 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
46916             Glauber de Oliveira Costa  <glommer@gmail.com>
46917
46918         * elf/elf.h: Add new ARM TLS relocs.
46919
46920 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
46921
46922         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
46923         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
46924         cast from r3.
46925         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
46926         'tests' variable.
46927         * sysdeps/wordsize-64/tst-writev.c: New file.
46928
46929 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
46930
46931         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
46932         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
46933         insns in _dl_start to prevent a TOC reference before relocs are
46934         resolved.
46935
46936 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
46937
46938         [BZ #12469]
46939         * Makeconfig: Remove RANLIB definition.
46940         * Makerules: Don't use RANLIB.
46941         * aclocal.m4: Remove ranlib test.
46942         * configure.in: No need to check for ranlib.
46943         * elf/rtld-Rules: Don't use RANLIB.
46944
46945 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46946
46947         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
46948         protection macro.
46949         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
46950         inclusion protection macro.
46951
46952         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
46953         SIGRTMIN and SIGRTMAX and print information in that case only when
46954         SIGRTMIN is defined.
46955
46956 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
46957
46958         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
46959         arginfo fn returning -1.
46960
46961         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
46962         and thousands string is zero terminated.
46963
46964 2011-02-03  Andreas Schwab  <schwab@redhat.com>
46965
46966         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
46967         sysdeps/unix/sysv/linux/bits/socket.h.
46968
46969 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
46970
46971         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
46972         (__CPU_COUNT): Remove old macros.
46973         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
46974         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
46975         (__CPU_ALLOC, __CPU_FREE): Add macros.
46976         (__sched_cpualloc, __sched_cpufree): Add declarations.
46977
46978 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
46979
46980         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
46981         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
46982         * nscd/aicache.c (addhstaiX): Return timeout of added value.
46983         (readdhstai): Return value of addhstaiX call.
46984         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
46985         (addgrbyX): Return value returned by cache_addgr.
46986         (readdgrbyname): Return value returned by addgrbyX.
46987         (readdgrbygid): Likewise.
46988         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
46989         (addpwbyX): Return value returned by cache_addpw.
46990         (readdpwbyname): Return value returned by addhstbyX.
46991         (readdpwbyuid): Likewise.
46992         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
46993         (addservbyX): Return value returned by cache_addserv.
46994         (readdservbyname): Return value returned by addservbyX:
46995         (readdservbyport): Likewise.
46996         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
46997         (addhstbyX): Return value returned by cache_addhst.
46998         (readdhstbyname): Return value returned by addhstbyX.
46999         (readdhstbyaddr): Likewise.
47000         (readdhstbynamev6): Likewise.
47001         (readdhstbyaddrv6): Likewise.
47002         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
47003         (readdinitgroups): Return value returned by addinitgroupsX.
47004         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
47005         (prune_cache): Keep track of timeout value of re-added entries.
47006         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
47007         * nscd/nscd.h: Adjust prototypes of readd* functions.
47008
47009 2011-02-04  Roland McGrath  <roland@redhat.com>
47010
47011         * nis/nis_server.c (nis_servstate): Use the right name for 0.
47012         (nis_stats): Likewise.
47013         * nis/nis_modify.c (nis_modify): Likewise.
47014         * nis/nis_remove.c (nis_remove): Likewise.
47015         * nis/nis_add.c (nis_add): Likewise.
47016
47017         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
47018
47019         * posix/fnmatch_loop.c: Add some consts.
47020
47021         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
47022
47023 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
47024
47025         [BZ #12460]
47026         * config.make.in (config-cflags-novzeroupper): Define.
47027         * configure.in: Substitute libc_cv_cc_novzeroupper.
47028         * elf/Makefile (AVX-CFLAGS): Define.
47029         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
47030         (CFLAGS-tst-auditmod4a.c): Likewise.
47031         (CFLAGS-tst-auditmod4b.c): Likewise.
47032         (CFLAGS-tst-auditmod6b.c): Likewise.
47033         (CFLAGS-tst-auditmod6c.c): Likewise.
47034         (CFLAGS-tst-auditmod7b.c): Likewise.
47035         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
47036
47037 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
47038
47039         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
47040         function to the callback.
47041         Patch partly by Jiri Olsa <jolsa@redhat.com>.
47042
47043 2011-02-02  Andreas Schwab  <schwab@redhat.com>
47044
47045         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
47046         of errno.
47047
47048 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
47049
47050         [BZ #11724]
47051         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
47052         of constructors.
47053         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
47054         of destructors.
47055         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
47056
47057         [BZ #11724]
47058         * elf/Makefile: Add rules to build and run new test.
47059         * elf/tst-initorder.c: New file.
47060         * elf/tst-initorder.exp: New file.
47061         * elf/tst-initordera1.c: New file.
47062         * elf/tst-initordera2.c: New file.
47063         * elf/tst-initordera3.c: New file.
47064         * elf/tst-initordera4.c: New file.
47065         * elf/tst-initorderb1.c: New file.
47066         * elf/tst-initorderb2.c: New file.
47067         * elf/tst-order-a1.c: New file.
47068         * elf/tst-order-a2.c: New file.
47069         * elf/tst-order-a3.c: New file.
47070         * elf/tst-order-a4.c: New file.
47071         * elf/tst-order-b1.c: New file.
47072         * elf/tst-order-b2.c: New file.
47073         * elf/tst-order-main.c: New file.
47074         New test case by George Gensure <werkt0@gmail.com>.
47075
47076 2010-10-01  Andreas Schwab  <schwab@redhat.com>
47077
47078         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
47079         decoding ACE if AI_CANONIDN.
47080
47081 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
47082
47083         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
47084
47085 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
47086
47087         * version.h (RELEASE): Bump for 2.13 release.
47088         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
47089
47090         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
47091
47092         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
47093         MADV_NOHUGEPAGE.
47094         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
47095         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
47096         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
47097         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
47098         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
47099         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
47100
47101         * posix/getconf.c: Update copyright year.
47102         * catgets/gencat.c: Likewise.
47103         * csu/version.c: Likewise.
47104         * debug/catchsegv.sh: Likewise.
47105         * debug/xtrace.sh: Likewise.
47106         * elf/ldconfig.c: Likewise.
47107         * elf/ldd.bash.in: Likewise.
47108         * elf/sprof.c (print_version): Likewise.
47109         * iconv/iconv_prog.c: Likewise.
47110         * iconv/iconvconfig.c: Likewise.
47111         * locale/programs/locale.c: Likewise.
47112         * locale/programs/localedef.c: Likewise.
47113         * malloc/memusage.sh: Likewise.
47114         * malloc/mtrace.pl: Likewise.
47115         * nscd/nscd.c (print_version): Likewise.
47116         * nss/getent.c: Likewise.
47117
47118         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
47119         PF_CAIF, and PF_ALG.
47120         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
47121
47122 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
47123
47124         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
47125         (modules-names): Use them.
47126         (ifunc-test-modules, ifunc-pie-tests): Define.
47127         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
47128         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
47129         (test-extras): Likewise.
47130         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
47131         $(compile-command.c).
47132         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
47133         (all-built-dso): Define.
47134         (check-textrel.out, check-execstack.out): Depend on it.
47135
47136         * configure.in: Don't override --enable-multi-arch.
47137
47138 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
47139
47140         [BZ #6812]
47141         * nscd/hstcache.c (tryagain): Define.
47142         (cache_addhst): Return tryagain not notfound for temporary errors.
47143         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
47144         failed.
47145
47146 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
47147
47148         [BZ #10563]
47149         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
47150         to make the syscall.
47151         * sysdeps/unix/sysv/linux/setgroups.c: New file.
47152
47153         [BZ #12378]
47154         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
47155         and fall back to matching as normal character if the string ends before
47156         the matching ']' is found.  This is what POSIX requires.
47157         * posix/testfnm.c: Adjust test result.
47158         * posix/globtest.sh: Adjust test result.  Add new test.
47159         * posix/tst-fnmatch.input: Likewise.
47160         * posix/tst-fnmatch2.c: Add new test.
47161
47162 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
47163
47164         * elf/Makefile (check-execstack): Revert last change.  Depend on
47165         check-execstack.h.
47166         (check-execstack.h): New target.
47167         (generated): Add check-execstack.h.
47168         * elf/check-execstack.c: Include "check-execstack.h".
47169         (main): Revert last change.
47170         (handle_file): Return zero if GNU_STACK is absent and
47171         DEFAULT_STACK_PERMS doesn't include PF_X.
47172
47173 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
47174
47175         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
47176         in child fails because the descriptor is already closed.
47177         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
47178         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
47179         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
47180
47181         [BZ #12397]
47182         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
47183         syscall.
47184
47185         [BZ #10484]
47186         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
47187         temporary buffer used to handle multi lookups locally.
47188         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
47189
47190 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
47191
47192         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
47193         loader is ld.so.
47194
47195 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
47196
47197         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
47198         alignment for SSE2.
47199
47200 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
47201
47202         [BZ #12394]
47203         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
47204         characters.  When rounding increased number of integer digits recompute
47205         number of groups.
47206         * stdio-common/tst-grouping.c: New file.
47207         * stdio-common/Makefile: Add rules to build and run tst-grouping.
47208
47209 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
47210
47211         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
47212         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
47213
47214         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
47215         void.
47216         * bits/select.h: Likewise.
47217
47218 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
47219
47220         * po/ja.po: Update from translation team.
47221
47222 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
47223
47224         [BZ #11155]
47225         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
47226         implementation just like for lxstat, fxstatat, et al.
47227
47228 2010-12-27  Jim Meyering  <meyering@redhat.com>
47229
47230         [BZ #12348]
47231         * posix/regexec.c (build_trtable): Return failure indication upon
47232         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
47233
47234 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
47235
47236         [BZ #12201]
47237         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
47238         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
47239         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
47240         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
47241
47242         [BZ #12207]
47243         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
47244
47245         [BZ #12204]
47246         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
47247         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
47248
47249 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
47250
47251         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
47252         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
47253         script has SORT_BY_INIT_PRIORITY.
47254         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
47255         NO_CTORS_DTORS_SECTIONS is defined.
47256         * elf/soinit.c: Likewise.
47257         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
47258         NO_CTORS_DTORS_SECTIONS is defined.
47259         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
47260         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
47261         * sysdeps/sh/init-first.c: Likewise.
47262         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
47263
47264 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
47265
47266         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
47267         always use the slow path.
47268
47269 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
47270
47271         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
47272         similar rule which adds the sysdep directories to the header search in
47273         order to pick up the correct platform stackinfo.h.
47274         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
47275         perform test if it is, otherwise return successfully without testing.
47276         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
47277         DEFAULT_STACK_PERMS define in stackinfo.h.
47278         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
47279         defined in stackinfo.h.
47280         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
47281         DEFAULT_STACK_PERMS defined in stackinfo.h.
47282         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
47283         * sysdeps/ia64/stackinfo.h: Likewise.
47284         * sysdeps/s390/stackinfo.h: Likewise.
47285         * sysdeps/sh/stackinfo.h: Likewise.
47286         * sysdeps/sparc/stackinfo.h: Likewise.
47287         * sysdeps/x86_64/stackinfo.h: Likewise.
47288         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
47289         PF_X for powerpc64.  Retain PF_X for powerpc32.
47290
47291 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
47292
47293         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
47294         accurately.
47295         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
47296         GETDENTS_64BIT_ALIGNED.
47297
47298 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
47299
47300         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
47301
47302 2010-12-10  Andreas Schwab  <schwab@redhat.com>
47303
47304         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
47305         _GNU_SOURCE.
47306
47307         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
47308         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
47309         Remove __restrict.
47310         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
47311         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
47312
47313 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
47314
47315         [BZ #11655]
47316         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
47317         are initialized.
47318
47319 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
47320
47321         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
47322
47323 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
47324
47325         * po/it.po: Update from translation team.
47326
47327 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
47328
47329         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
47330         unused codes.
47331
47332 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
47333
47334         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
47335
47336 2010-11-24  Andreas Schwab  <schwab@redhat.com>
47337
47338         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
47339         specially.
47340         (gaih_getanswer_slice): Likewise.
47341
47342 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
47343
47344         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
47345
47346 2010-05-31  Petr Baudis  <pasky@suse.cz>
47347
47348         [BZ #11149]
47349         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
47350         silently even in the chroot mode.
47351
47352 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
47353
47354         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
47355         last patch a bit.  Pretty printing
47356
47357 2010-05-31  Petr Baudis <pasky@suse.cz>
47358
47359         [BZ #10085]
47360         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
47361         initialization of skip_initgroups_dyn.
47362
47363 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
47364
47365         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
47366         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
47367
47368 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
47369
47370         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
47371
47372 2010-11-11  Andreas Schwab  <schwab@redhat.com>
47373
47374         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
47375         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
47376         (tst-fnmatch-ENV): Set MALLOC_TRACE.
47377         ($(objpfx)tst-fnmatch-mem): New rule.
47378         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
47379         * posix/tst-fnmatch.c (main): Call mtrace.
47380
47381 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
47382
47383         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47384         Support Intel processor model 6 and model 0x2c.
47385
47386 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
47387
47388         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
47389           signed comparison.
47390
47391 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
47392
47393         [BZ #12205]
47394         * string/test-strncasecmp.c (check_result): New function.
47395         (do_one_test): Use it.
47396         (check1): New function.
47397         (test_main): Use it.
47398         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
47399         Support strcasecmp and strncasecmp.
47400
47401 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
47402
47403         [BZ #12194]
47404         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
47405         * sysdeps/x86_64/bits/byteswap.h: Likewise.
47406
47407 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
47408
47409         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
47410         IFUNC support.
47411         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47412         memset-x86-64.
47413         * sysdeps/x86_64/multiarch/bzero.S: New file.
47414         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
47415         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
47416         * sysdeps/x86_64/multiarch/memset.S: New file.
47417         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
47418         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
47419         Set bit_Prefer_SSE_for_memop for Intel processors.
47420         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
47421         Define.
47422         (index_Prefer_SSE_for_memop): Define.
47423         (HAS_PREFER_SSE_FOR_MEMOP): Define.
47424
47425 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
47426
47427         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
47428         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
47429
47430 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
47431
47432         [BZ #12191]
47433         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
47434         (__x86_64_raw_data_cache_size_half): Likewise.
47435         (__x86_64_raw_shared_cache_size): Likewise.
47436         (__x86_64_raw_shared_cache_size_half): Likewise.
47437
47438         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
47439         (__x86_64_raw_data_cache_size_half): Likewise.
47440         (__x86_64_raw_shared_cache_size): Likewise.
47441         (__x86_64_raw_shared_cache_size_half): Likewise.
47442         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
47443         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
47444         and __x86_64_raw_shared_cache_size_half.  Round
47445         __x86_64_data_cache_size_half, __x86_64_data_cache_size
47446         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
47447         to multiple of 256 bytes.
47448
47449 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
47450
47451         [BZ #12167]
47452         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
47453         of inacessible symlinks.  Verify result of symlink before returning it.
47454         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
47455         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
47456
47457 2010-10-28  Erich Ritz  <erichritz@gmail.com>
47458
47459         * math/math.h (isinf): Fix typo in comment.
47460
47461 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
47462
47463         * po/da.po: Update from translation team.
47464
47465 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
47466
47467         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
47468         is added to the list.
47469
47470 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47471             Ulrich Drepper  <drepper@gmail.com>
47472
47473         * elf/dl-object.c (_dl_new_object): Don't append the new object to
47474         the global list here.  Move code to...
47475         (_dl_add_to_namespace_list): ...here.  New function.
47476         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
47477         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
47478         * elf/dl-load.c (lose): Don't remove the element from the list.
47479         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
47480         (_dl_map_object): Likewise.
47481
47482 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
47483
47484         [BZ #12159]
47485         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
47486         into all bytes of SSE register.
47487         Patch by Richard Li <richardpku@gmail.com>.
47488
47489 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
47490
47491         [BZ #12140]
47492         * malloc/malloc.c (_int_free): Fill correct number of bytes when
47493         perturbing.
47494
47495 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
47496
47497         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
47498         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
47499         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
47500         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
47501         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
47502         submachine.
47503         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
47504
47505 2010-10-22  Andreas Schwab  <schwab@redhat.com>
47506
47507         * include/dlfcn.h (__RTLD_SECURE): Define.
47508         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
47509         mode & __RTLD_SECURE instead.
47510         (open_path): Rename preloaded parameter to secure.
47511         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
47512         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
47513         * elf/dl-deps.c (openaux): Likewise.
47514         * elf/rtld.c (struct map_args): Remove is_preloaded.
47515         (map_doit): Don't use it.
47516         (dl_main): Likewise.
47517         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
47518         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
47519
47520 2010-09-09  Andreas Schwab  <schwab@redhat.com>
47521
47522         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
47523         (sysd-rules-targets): Remove duplicates.
47524         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
47525         rtld-%.$o dependency.
47526
47527 2010-10-18  Andreas Schwab  <schwab@redhat.com>
47528
47529         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
47530         _dl_map_object do it.
47531
47532 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
47533
47534         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
47535         fast fma builtins, define the macros in the C99 standard.
47536         (FP_FAST_FMAF): Likewise.
47537         (FP_FAST_FMAL): Likewise.
47538         * sysdeps/x86_64/bits/mathdef.h: Likewise.
47539
47540         * bits/mathdef.h: Update copyright year.
47541         * sysdeps/powerpc/bits/mathdef.h: Likewise.
47542
47543 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
47544
47545         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
47546         builtins, define the macros in the C99 standard.
47547         (FP_FAST_FMAF): Likewise.
47548         (FP_FAST_FMAL): Likewise.
47549         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
47550         multiply/add.
47551         (FP_FAST_FMAF): Likewise.
47552
47553 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
47554
47555         [BZ #3268]
47556         * math/libm-test.inc (fma_test): Some new testcases.
47557         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
47558         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
47559         y and infinite z.  Do multiplication by C already in long double.
47560         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
47561         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
47562         y and infinite z.  Do bitwise or of inexact bit into u.d.
47563         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
47564         * sysdeps/i386/fpu/s_fmaf.S: Removed.
47565         * sysdeps/i386/fpu/s_fma.S: Removed.
47566         * sysdeps/i386/fpu/s_fmal.S: Removed.
47567
47568 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
47569
47570         [BZ #3268]
47571         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
47572         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
47573         computation is not scheduled after fetestexcept.  Fix value
47574         of minimum denormal long double.
47575
47576 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
47577
47578         [BZ #3268]
47579         * math/libm-test.inc (fma_test): Add some more tests.
47580         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
47581         correctly.
47582
47583 2010-10-15  Andreas Schwab  <schwab@redhat.com>
47584
47585         * scripts/data/localplt-s390-linux-gnu.data: New file.
47586         * scripts/data/localplt-s390x-linux-gnu.data: New file.
47587
47588 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
47589
47590         [BZ #3268]
47591         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
47592         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
47593         instead of dbl-64.
47594         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
47595         inlines.
47596         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
47597         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
47598         if one of x and y is very large and the other is subnormal.
47599         * sysdeps/s390/fpu/s_fmaf.c: New file.
47600         * sysdeps/s390/fpu/s_fma.c: New file.
47601         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
47602         * sysdeps/powerpc/fpu/s_fma.S: New file.
47603         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
47604         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
47605         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
47606
47607 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
47608
47609         [BZ #3268]
47610         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
47611         fma tests.
47612         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
47613         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
47614         * sysdeps/i386/i686/multiarch/s_fma.c: Include
47615         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
47616         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
47617         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
47618         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
47619
47620 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
47621
47622         [BZ #12078]
47623         * posix/regcomp.c (parse_branch): One more memory leak plugged.
47624         * posix/bug-regex31.input: Add test case.
47625
47626 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
47627
47628         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
47629         * posix/bug-regex31.input: New file.
47630
47631         [BZ #12078]
47632         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
47633         (parse_sub_exp): Fix last change, use postorder.
47634
47635         * posix/bug-regex31.c: New file.
47636         * posix/Makefile: Add rules to build and run bug-regex31.
47637
47638         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
47639
47640         [BZ #12078]
47641         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
47642
47643         [BZ #12108]
47644         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
47645         to have entries in sys_siglist.
47646
47647         [BZ #12093]
47648         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
47649         be NULL.
47650
47651 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
47652
47653         [BZ #3268]
47654         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
47655         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
47656         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
47657         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
47658         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
47659         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
47660         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
47661         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
47662         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
47663         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
47664         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
47665         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
47666         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
47667         * math/ftestexcept.c (fetestexcept): Likewise.
47668         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
47669         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
47670         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
47671         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
47672         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
47673         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
47674         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
47675
47676 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
47677
47678         [BZ #12107]
47679         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
47680         newline.
47681
47682 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
47683
47684         * string/bug-strstr1.c: New file.
47685         * string/Makefile: Add rules to build and run bug-strstr1.
47686
47687 2010-10-05  Eric Blake  <eblake@redhat.com>
47688
47689         [BZ #12092]
47690         * string/str-two-way.h (two_way_long_needle): Always clear memory
47691         when skipping input due to the shift table.
47692
47693 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
47694
47695         [BZ #12005]
47696         * malloc/mcheck.c: Handle large requests.
47697
47698         [BZ #12077]
47699         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
47700         for strncmp and strncasecmp.
47701         * string/stratcliff.c: Add tests for strcmp and strncmp.
47702         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
47703
47704 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
47705
47706         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
47707         __set_fpscr.
47708
47709 2010-09-30  Andreas Jaeger  <aj@suse.de>
47710
47711         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
47712         (CGROUP_SUPER_MAGIC): Define.
47713         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
47714         Handle btrfs and cgroup file systems.
47715         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
47716         Likewise.
47717
47718 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
47719
47720         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
47721         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
47722
47723 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
47724
47725         [BZ #12067]
47726         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
47727         trying to locate the ELF header.
47728
47729 2010-09-27  Andreas Schwab  <schwab@redhat.com>
47730
47731         [BZ #11611]
47732         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
47733         Mask out sign-bit copies when constructing f_fsid.
47734
47735 2010-09-24  Petr Baudis <pasky@suse.cz>
47736
47737         * debug/stack_chk_fail_local.c: Add missing licence exception.
47738         * debug/warning-nop.c: Likewise.
47739
47740 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
47741
47742         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
47743         implementing getdents64 using getdents syscall, set d_type if
47744         __ASSUME_GETDENTS32_D_TYPE.
47745
47746 2010-09-16  Andreas Schwab  <schwab@redhat.com>
47747
47748         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
47749         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
47750
47751 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
47752
47753         [BZ #12037]
47754         * posix/unistd.h: Undo change of feature selection for ftruncate from
47755         2010-01-11.
47756
47757 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
47758
47759         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
47760         detection.
47761
47762 2010-09-20  Andreas Schwab  <schwab@redhat.com>
47763
47764         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
47765         fanotify_mark.
47766         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
47767
47768 2010-09-14  Andreas Schwab  <schwab@redhat.com>
47769
47770         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
47771         variables after CHECK_SP call.
47772         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
47773
47774 2010-09-13  Andreas Schwab  <schwab@redhat.com>
47775             Ulrich Drepper  <drepper@redhat.com>
47776
47777         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
47778         re-relocationg ld.so.
47779         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
47780         _dl_init_paths call.
47781         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
47782         here anymore.
47783
47784 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
47785
47786         * resolv/res_init.c (__res_vinit): Count the default server we added.
47787
47788 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
47789             Ulrich Drepper  <drepper@redhat.com>
47790
47791         [BZ #11968]
47792         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
47793         (____longjmp_chk): Use %ebx for saving value across system call.
47794         Add unwind info.
47795
47796 2010-09-06  Andreas Schwab  <schwab@redhat.com>
47797
47798         * manual/Makefile: Don't mix pattern rules with normal rules.
47799
47800 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
47801
47802         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
47803         operation.
47804         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
47805         * libio/iofopncook.c (_IO_cookie_init): Likewise.
47806         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
47807         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
47808         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
47809         Likewise.
47810
47811 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
47812
47813         [BZ #11979]
47814         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
47815         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
47816
47817 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
47818
47819         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
47820         * sysdeps/x86_64/addmul_1.S: Likewise.
47821         * sysdeps/x86_64/lshift.S: Likewise.
47822         * sysdeps/x86_64/mul_1.S: Likewise.
47823         * sysdeps/x86_64/rshift.S: Likewise.
47824         * sysdeps/x86_64/sub_n.S: Likewise.
47825         * sysdeps/x86_64/submul_1.S: Likewise.
47826
47827 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
47828
47829         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
47830         Define __sched_param instead of SCHED_* and sched_param when
47831         <bits/sched.h> is included with __need_schedparam defined.
47832         * bits/sched.h [__need_schedparam]
47833         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
47834         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
47835         (__defined_schedparam): Define to 1.
47836         (__sched_param): New structure, identical to sched_param.
47837         (__need_schedparam): Undefine.
47838
47839 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
47840
47841         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
47842         (epoll_create1): Declare.
47843
47844         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
47845
47846 2010-08-31  Andreas Schwab  <schwab@redhat.com>
47847
47848         [BZ #7066]
47849         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
47850         shifting retval into place.
47851
47852 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
47853
47854         * nis/rpcsvc/nis.h: Update copyright notice.
47855         * nis/rpcsvc/nis.x: Likewise.
47856         * nis/rpcsvc/nis_callback.h: Likewise.
47857         * nis/rpcsvc/nis_callback.x: Likewise.
47858         * nis/rpcsvc/nis_object.x: Likewise.
47859         * nis/rpcsvc/nis_tags.h: Likewise.
47860         * nis/rpcsvc/yp.h: Likewise.
47861         * nis/rpcsvc/yp.x: Likewise.
47862         * nis/rpcsvc/ypupd.h: Likewise.
47863         * nis/yp_xdr.c: Likewise.
47864         * nis/ypupdate_xdr.c: Likewise.
47865
47866         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
47867         mainly the body of pmap_getport.  Add parameters to specify timeouts.
47868         (pmap_getport): Use __libc_rpc_getport.
47869         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
47870         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
47871         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
47872
47873 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
47874
47875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
47876         fanotify_mark.
47877
47878 2010-08-27  Roland McGrath  <roland@redhat.com>
47879
47880         * sysdeps/i386/i686/multiarch/Makefile
47881         (CFLAGS-varshift.c): New variable.
47882
47883 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
47884
47885         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
47886         * sysdeps/i386/i686/multiarch/varshift.c: New file.
47887
47888         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
47889
47890         * sysdeps/x86_64/strlen.S: Minimal code improvement.
47891
47892 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
47893
47894         * sysdeps/x86_64/strlen.S: Unroll the loop.
47895         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
47896         strlen-sse2 strlen-sse2-bsf.
47897         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
47898         __strlen_no_bsf if bit_Slow_BSF is set.
47899         (__strlen_sse42): Removed.
47900         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
47901         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
47902
47903 2010-08-25  Roland McGrath  <roland@redhat.com>
47904
47905         * sysdeps/x86_64/multiarch/varshift.S: File removed.
47906         * sysdeps/x86_64/multiarch/varshift.c: New file.
47907         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
47908         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
47909         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
47910         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
47911
47912 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
47913
47914         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
47915         strlen-sse2 strlen-sse2-bsf.
47916         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
47917         __strlen_sse2_bsf if bit_Slow_BSF is unset.
47918         (__strlen_sse2): Removed.
47919         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
47920         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
47921         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
47922         bit_Slow_BSF for Atom.
47923         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
47924         (index_Slow_BSF): Define.
47925         (HAS_SLOW_BSF): Define.
47926
47927 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
47928
47929         [BZ #10851]
47930         * resolv/res_init.c (__res_vinit): When no server address at all
47931         is given default to loopback.
47932
47933 2010-08-24  Roland McGrath  <roland@redhat.com>
47934
47935         * configure.in: Remove config-name.h generation.
47936         * configure: Regenerated.
47937         * config-name.in: File removed.
47938         * scripts/config-uname.sh: New file.
47939         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
47940         ($(objdir)config-name.h): New target.
47941
47942         * sunrpc/rpc_parse.h: Avoid nested comment.
47943
47944 2010-08-24  Richard Henderson  <rth@redhat.com>
47945             Ulrich Drepper  <drepper@redhat.com>
47946             H.J. Lu  <hongjiu.lu@intel.com>
47947
47948         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
47949         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
47950         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
47951         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
47952         _mm_alignr_epi8 with _mm_loadu_si128.
47953         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
47954         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
47955         (__m128i_shift_right): Removed.
47956         * sysdeps/i386/i686/multiarch/varshift.h: New file.
47957         * sysdeps/i386/i686/multiarch/varshift.S: New file.
47958         * sysdeps/x86_64/multiarch/varshift.h: New file.
47959         * sysdeps/x86_64/multiarch/varshift.S: New file.
47960
47961 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
47962
47963         * configure.in: Move assembler checks to before sysdep dir checking.
47964
47965 2010-08-20  Petr Baudis  <pasky@suse.cz>
47966
47967         * LICENSES: Sync the sunrpc license.
47968
47969 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
47970
47971         * sunrpc/auth_des.c: Update copyright notice once again.
47972         * sunrpc/auth_none.c: Likewise.
47973         * sunrpc/auth_unix.c: Likewise.
47974         * sunrpc/authdes_prot.c: Likewise.
47975         * sunrpc/authuxprot.c: Likewise.
47976         * sunrpc/bindrsvprt.c: Likewise.
47977         * sunrpc/clnt_gen.c: Likewise.
47978         * sunrpc/clnt_perr.c: Likewise.
47979         * sunrpc/clnt_raw.c: Likewise.
47980         * sunrpc/clnt_simp.c: Likewise.
47981         * sunrpc/clnt_tcp.c: Likewise.
47982         * sunrpc/clnt_udp.c: Likewise.
47983         * sunrpc/clnt_unix.c: Likewise.
47984         * sunrpc/des_crypt.c: Likewise.
47985         * sunrpc/des_soft.c: Likewise.
47986         * sunrpc/get_myaddr.c: Likewise.
47987         * sunrpc/getrpcport.c: Likewise.
47988         * sunrpc/key_call.c: Likewise.
47989         * sunrpc/key_prot.c: Likewise.
47990         * sunrpc/openchild.c: Likewise.
47991         * sunrpc/pm_getmaps.c: Likewise.
47992         * sunrpc/pm_getport.c: Likewise.
47993         * sunrpc/pmap_clnt.c: Likewise.
47994         * sunrpc/pmap_prot.c: Likewise.
47995         * sunrpc/pmap_prot2.c: Likewise.
47996         * sunrpc/pmap_rmt.c: Likewise.
47997         * sunrpc/rpc/auth.h: Likewise.
47998         * sunrpc/rpc/auth_unix.h: Likewise.
47999         * sunrpc/rpc/clnt.h: Likewise.
48000         * sunrpc/rpc/des_crypt.h: Likewise.
48001         * sunrpc/rpc/key_prot.h: Likewise.
48002         * sunrpc/rpc/netdb.h: Likewise.
48003         * sunrpc/rpc/pmap_clnt.h: Likewise.
48004         * sunrpc/rpc/pmap_prot.h: Likewise.
48005         * sunrpc/rpc/pmap_rmt.h: Likewise.
48006         * sunrpc/rpc/rpc.h: Likewise.
48007         * sunrpc/rpc/rpc_des.h: Likewise.
48008         * sunrpc/rpc/rpc_msg.h: Likewise.
48009         * sunrpc/rpc/svc.h: Likewise.
48010         * sunrpc/rpc/svc_auth.h: Likewise.
48011         * sunrpc/rpc/types.h: Likewise.
48012         * sunrpc/rpc/xdr.h: Likewise.
48013         * sunrpc/rpc_clntout.c: Likewise.
48014         * sunrpc/rpc_cmsg.c: Likewise.
48015         * sunrpc/rpc_common.c: Likewise.
48016         * sunrpc/rpc_cout.c: Likewise.
48017         * sunrpc/rpc_dtable.c: Likewise.
48018         * sunrpc/rpc_hout.c: Likewise.
48019         * sunrpc/rpc_main.c: Likewise.
48020         * sunrpc/rpc_parse.c: Likewise.
48021         * sunrpc/rpc_parse.h: Likewise.
48022         * sunrpc/rpc_prot.c: Likewise.
48023         * sunrpc/rpc_sample.c: Likewise.
48024         * sunrpc/rpc_scan.c: Likewise.
48025         * sunrpc/rpc_scan.h: Likewise.
48026         * sunrpc/rpc_svcout.c: Likewise.
48027         * sunrpc/rpc_tblout.c: Likewise.
48028         * sunrpc/rpc_util.c: Likewise.
48029         * sunrpc/rpc_util.h: Likewise.
48030         * sunrpc/rpcinfo.c: Likewise.
48031         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
48032         * sunrpc/rpcsvc/key_prot.x: Likewise.
48033         * sunrpc/rpcsvc/klm_prot.x: Likewise.
48034         * sunrpc/rpcsvc/mount.x: Likewise.
48035         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
48036         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
48037         * sunrpc/rpcsvc/rex.x: Likewise.
48038         * sunrpc/rpcsvc/rstat.x: Likewise.
48039         * sunrpc/rpcsvc/rusers.x: Likewise.
48040         * sunrpc/rpcsvc/sm_inter.x: Likewise.
48041         * sunrpc/rpcsvc/spray.x: Likewise.
48042         * sunrpc/rpcsvc/yppasswd.x: Likewise.
48043         * sunrpc/rtime.c: Likewise.
48044         * sunrpc/svc.c: Likewise.
48045         * sunrpc/svc_auth.c: Likewise.
48046         * sunrpc/svc_authux.c: Likewise.
48047         * sunrpc/svc_raw.c: Likewise.
48048         * sunrpc/svc_run.c: Likewise.
48049         * sunrpc/svc_simple.c: Likewise.
48050         * sunrpc/svc_tcp.c: Likewise.
48051         * sunrpc/svc_udp.c: Likewise.
48052         * sunrpc/svc_unix.c: Likewise.
48053         * sunrpc/svcauth_des.c: Likewise.
48054         * sunrpc/xcrypt.c: Likewise.
48055         * sunrpc/xdr.c: Likewise.
48056         * sunrpc/xdr_array.c: Likewise.
48057         * sunrpc/xdr_float.c: Likewise.
48058         * sunrpc/xdr_mem.c: Likewise.
48059         * sunrpc/xdr_rec.c: Likewise.
48060         * sunrpc/xdr_ref.c: Likewise.
48061         * sunrpc/xdr_sizeof.c: Likewise.
48062         * sunrpc/xdr_stdio.c: Likewise.
48063
48064         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
48065         handling.
48066
48067 2010-08-19  Andreas Schwab  <schwab@redhat.com>
48068
48069         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
48070
48071 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
48072
48073         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
48074         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
48075         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
48076         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
48077         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
48078         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
48079         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
48080         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
48081         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
48082         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
48083         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
48084         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
48085         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
48086         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
48087
48088 2010-07-26  Anton Blanchard  <anton@samba.org>
48089
48090         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
48091         * malloc/arena.c (heap_trim): Likewise.
48092
48093 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
48094
48095         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
48096         here.  Not...
48097         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
48098         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
48099
48100 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
48101
48102         * sysdeps/i386/elf/Makefile: New file.
48103
48104 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
48105
48106         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
48107         from fanotify_init.
48108         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
48109         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
48110
48111 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
48112
48113         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
48114         of strncasecmp_l.
48115         * sysdeps/multiarch/strcmp.S: Likewise.
48116
48117 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
48118
48119         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
48120         strncase_l-nonascii.
48121         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
48122         Add strncase_l-ssse3.
48123         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
48124         * sysdeps/x86_64/strcmp.S: Likewise.
48125         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
48126         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
48127         * sysdeps/x86_64/strncase.S: New file.
48128         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
48129         * sysdeps/x86_64/strncase_l.S: New file.
48130         * string/Makefile (strop-tests): Add strncasecmp.
48131         * string/test-strncasecmp.c: New file.
48132
48133         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
48134         warning.
48135
48136         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
48137         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
48138
48139 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
48140
48141         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
48142
48143 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
48144
48145         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
48146         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
48147         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
48148
48149 2010-05-01  Alan Modra  <amodra@gmail.com>
48150
48151         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
48152         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
48153         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
48154         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
48155         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
48156         tidying.  Don't tail-call __sigjmp_save for static lib.
48157         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
48158         save location.
48159         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
48160         (CALL_MCOUNT): Add eh info, and nop after bl.
48161         (TAIL_CALL_SYSCALL_ERROR): New macro.
48162         (PSEUDO_RET): Use it.
48163         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
48164         Correct save location of integer regs and cr.
48165         (_dl_profile_resolve): Correct cr save location.  Delete nops
48166         after bl when SHARED.  Reduce cfi size a little by better
48167         placement of cfi directives.
48168         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
48169         make a stack frame.  Instead use parm save area as a temp.
48170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
48171         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
48172         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
48173         Don't make a stack frame for parent, use parm save area.
48174         Increase child stack frame to 112 bytes.  Don't save unused reg,
48175         and adjust reg usage.  Set up cfi on error recovery and
48176         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
48177         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
48178         (__makecontext): Add dummy nop after jump to exit.
48179         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
48180         Use correct parm save area and cr save, reduce stack frame.
48181         Correct cfi for possible PSEUDO_RET frame setup.
48182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
48183         Branch to local label emitted by PSEUDO_RET rather than
48184         __syscall_error.
48185
48186 2010-08-12  Andreas Schwab  <schwab@redhat.com>
48187
48188         [BZ #11904]
48189         * locale/programs/locale.c (print_assignment): New function.
48190         (show_locale_vars): Use it.
48191
48192 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
48193
48194         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
48195         field.
48196         (struct statfs64): Likewise.
48197         (_STATFS_F_FLAGS): Define.
48198         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
48199         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
48200         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
48201         (ST_VALID): Define locally.
48202         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
48203         __statvfs_getflags, use the provided value.
48204         * sysdeps/unix/sysv/linux/kernel-features.h: Define
48205         __ASSUME_STATFS_F_FLAGS.
48206
48207         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
48208
48209         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
48210         Add sys/fanotify.h.
48211         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
48212         fanotify_mask for GLIBC_2.13.
48213         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
48214         fanotify_init and fanotify_mark.
48215         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
48216         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
48217
48218         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
48219         Add prlimit.
48220         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
48221         prlimit64 for GLIBC_2.13.
48222         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
48223         prlimit64.
48224         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
48225         syscall.
48226         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
48227         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
48228         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
48229         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
48230         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
48231         add prlimit alias.
48232         * sysdeps/unix/sysv/linux/prlimit.c: New file.
48233
48234         [BZ #11903]
48235         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
48236         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
48237
48238         * nss/Makefile: Add rules to build and run tst-nss-test1.
48239         * shlib-versions: Add entry for libnss_test1.
48240         * nss/nss_test1.c: New file.
48241         * nss/tst-nss-test1.c: New file.
48242
48243         * nss/nsswitch.c (__nss_database_custom): Define new variable.
48244         (__nss_configure_lookup): Set appropriate entry in
48245         __nss_configure_lookup to true.
48246         * nss/nsswitch.h: Define enum with indeces of databases in
48247         databases and __nss_database_custom arrays.  Declare
48248         __nss_database_custom.
48249         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
48250         to avoid using nscd when custom rules are installed.
48251         * nss/getXXbyYY_r.c: Likewise.
48252         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
48253
48254         * nss/nss_files/files-parse.c: Whitespace fixes.
48255
48256 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
48257
48258         [BZ #11883]
48259         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
48260         * posix/fnmatch_loop.c: Likewise.
48261
48262 2010-07-17  Andi Kleen  <ak@linux.intel.com>
48263
48264         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
48265         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
48266         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
48267         * Versions.def [GLIBC_2.13]: Add.
48268
48269 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
48270
48271         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
48272         Also fail if tpwd after pwuid call is NULL.
48273
48274 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48275
48276         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
48277         when converting to ms.
48278
48279 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
48280
48281         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
48282         EOPNOTSUPP errors with ENOTTY.
48283         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
48284         EOPNOTSUPP errors with ENOTTY.
48285
48286 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
48287
48288         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
48289         Add strcasecmp_l-ssse3.
48290         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
48291         strcasecmp.
48292         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
48293         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
48294         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
48295
48296 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
48297
48298         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
48299
48300         * string/Makefile (strop-tests): Add strcasecmp.
48301         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
48302         strcasecmp_l-nonascii.
48303         (gen-as-const-headers): Add locale-defines.sym.
48304         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
48305         * sysdeps/x86_64/strcasecmp.S: New file.
48306         * sysdeps/x86_64/strcasecmp_l.S: New file.
48307         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
48308         * sysdeps/x86_64/locale-defines.sym: New file.
48309         * string/test-strcasecmp.c: New file.
48310
48311         * string/test-strcasestr.c: Test both ends of the range of characters.
48312         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
48313
48314 2010-07-29  Roland McGrath  <roland@redhat.com>
48315
48316         [BZ #11856]
48317         * manual/locale.texi (Yes-or-No Questions): Fix example code.
48318
48319 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
48320
48321         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
48322         for ld.so.
48323
48324 2010-07-27  Andreas Schwab  <schwab@redhat.com>
48325
48326         * manual/memory.texi (Malloc Tunable Parameters): Document
48327         M_PERTURB.
48328
48329 2010-07-26  Roland McGrath  <roland@redhat.com>
48330
48331         [BZ #11840]
48332         * configure.in (-fgnu89-inline check): Set and substitute
48333         gnu89_inline, not libc_cv_gnu89_inline.
48334         * configure: Regenerated.
48335         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
48336
48337 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
48338
48339         * string/test-strnlen.c: New file.
48340         * string/Makefile (strop-tests): Add strnlen.
48341         * string/tester.c (test_strnlen): Add a few more test cases.
48342         * string/tst-strlen.c: Better error reporting.
48343
48344         * sysdeps/x86_64/strnlen.S: New file.
48345
48346 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
48347
48348         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
48349         lower-latency instructions.
48350
48351 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
48352
48353         * string/test-strcasestr.c: New file.
48354         * string/test-strstr.c: New file.
48355         * string/Makefile (strop-tests): Add strstr and strcasestr.
48356         * string/str-two-way.h: Don't undefine MAX.
48357         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
48358
48359 2010-07-21  Andreas Schwab  <schwab@redhat.com>
48360
48361         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
48362         strcasestr-nonascii.
48363         (CFLAGS-strcasestr-nonascii.c): Define.
48364         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
48365         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
48366         Remove unused attribute.
48367
48368 2010-07-20  Roland McGrath  <roland@redhat.com>
48369
48370         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
48371         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
48372         ld.so.cache was broken.  With it, there is no way to disable dsocaps
48373         like LD_HWCAP_MASK can disable hwcaps.
48374
48375 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
48376
48377         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
48378
48379 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
48380
48381         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
48382         call in strcasestr.
48383         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
48384         __strcasestr_sse42_nonascii.
48385         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
48386         strcasestr-nonascii.c.
48387         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
48388
48389 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
48390
48391         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
48392         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
48393         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
48394         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
48395
48396 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
48397
48398         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
48399         fcntl.
48400
48401 2010-07-06  Andreas Schwab  <schwab@redhat.com>
48402
48403         [BZ #11577]
48404         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
48405         dl_signal_cerror.
48406
48407 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
48408
48409         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
48410         _PC_PIPE_BUF using F_GETPIPE_SZ.
48411
48412 2010-07-05  Roland McGrath  <roland@redhat.com>
48413
48414         * manual/arith.texi (Rounding Functions): Fix rint description
48415         implicit in round description.
48416
48417 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
48418
48419         * elf/Makefile: Fix linking for a few tests to make recent linker
48420         happy.
48421
48422 2010-06-30  Andreas Schwab  <schwab@redhat.com>
48423
48424         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
48425         $(common-objpfx)libc_nonshared.a.
48426
48427 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
48428
48429         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
48430         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
48431         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
48432         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
48433         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
48434         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
48435         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
48436         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
48437         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
48438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
48439         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
48440         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
48441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
48442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
48443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
48444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
48445         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
48446         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
48447         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
48448         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
48449         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
48450         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
48451         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
48452         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
48453         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
48454         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
48455         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
48456         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
48457         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
48458         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
48459         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
48460         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
48461         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
48462         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
48463         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
48464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
48465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
48466         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
48467         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
48468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
48469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
48470         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
48471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
48472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
48473         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
48474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
48475         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
48476         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
48477
48478 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
48479
48480         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
48481         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
48482         * string/memmove.c (memmove): Renamed to ...
48483         (MEMMOVE): ...this.  Default to memmove.
48484         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
48485         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
48486         (END_CHK): Define.
48487         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
48488         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
48489         mempcpy-ssse3-back memmove-ssse3-back.
48490         * sysdeps/x86_64/multiarch/bcopy.S: New file .
48491         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
48492         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
48493         * sysdeps/x86_64/multiarch/memcpy.S: New file.
48494         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
48495         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
48496         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
48497         * sysdeps/x86_64/multiarch/memmove.c: New file.
48498         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
48499         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
48500         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
48501         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
48502         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
48503         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
48504         Define.
48505         (index_Fast_Copy_Backward): Define.
48506         (HAS_ARCH_FEATURE): Define.
48507         (HAS_FAST_REP_STRING): Define.
48508         (HAS_FAST_COPY_BACKWARD): Define.
48509
48510 2010-06-21  Andreas Schwab  <schwab@redhat.com>
48511
48512         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
48513         Restore proper fallback handling.
48514
48515 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
48516
48517         [BZ #11701]
48518         * posix/group_member.c (__group_member): Correct checking loop.
48519
48520         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
48521         OOM in getpwuid_r correctly.  Return error number when the caller
48522         should return, otherwise -1.
48523         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
48524         call returning > 0 value.
48525         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
48526
48527 2010-06-07  Andreas Schwab  <schwab@redhat.com>
48528
48529         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
48530         libc_nonshared.a from targets in modules-names.
48531
48532 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
48533
48534         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
48535         requires it.
48536
48537 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
48538
48539         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
48540         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
48541         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
48542         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
48543
48544 2010-06-02  Andreas Schwab  <schwab@redhat.com>
48545
48546         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
48547
48548 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
48549
48550         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
48551         and F_GETPIPE_SZ.
48552         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
48553         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
48554         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
48555         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
48556         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
48557         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
48558
48559 2010-06-14  Roland McGrath  <roland@redhat.com>
48560
48561         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
48562
48563 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
48564
48565         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
48566         __REDIRECT followed by __THROW.
48567         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
48568         * posix/getopt.h (getopt): Likewise.
48569
48570 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
48571
48572         * hurd/lookup-at.c (__file_name_lookup_at): Accept
48573         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
48574         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
48575         in AT_FLAGS.
48576         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
48577         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
48578
48579 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
48580
48581         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
48582
48583 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
48584
48585         [BZ #11640]
48586         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
48587         Properly check family and model.
48588
48589 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
48590
48591         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
48592
48593 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
48594
48595         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
48596
48597 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
48598
48599         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
48600         symbol reference.
48601
48602 2010-05-19  Andreas Schwab  <schwab@redhat.com>
48603
48604         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
48605         symbol reference.
48606
48607 2010-05-21  Andreas Schwab  <schwab@redhat.com>
48608
48609         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
48610         and internal_recvmmsg.
48611         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
48612         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
48613         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
48614         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
48615
48616         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
48617         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
48618         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
48619
48620 2010-05-20  Andreas Schwab  <schwab@redhat.com>
48621
48622         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
48623
48624 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
48625
48626         POWER7 optimizations.
48627         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
48628         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
48629
48630 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
48631
48632         * version.h: Update for 2.13 development version.
48633
48634 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
48635
48636         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
48637         exceptions.  Return 0.
48638
48639 2010-05-07  Roland McGrath  <roland@redhat.com>
48640
48641         * elf/ldconfig.c (main): Add a const.
48642
48643 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
48644
48645         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
48646         (args_options): Add no-idn option.
48647         (ahosts_keys_int): Add idn_flags to ai_flags.
48648         (parse_option): Handle 'i' option to clear idn_flags.
48649
48650         * malloc/malloc.c (_int_free): Possible race in the most recently
48651         added check.  Only act on the data if no current modification
48652         happened.
48653
48654 See ChangeLog.17 for earlier changes.