Suppress sign-conversion warning from FD_SET.
[glibc.git] / ChangeLog
blob4dff767e3669277531666d2e66e3edc2f199d812
1 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
3         [BZ #14210]
4         Suppress sign-conversion warning from FD_SET.
5         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
6         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
7         not unsigned long int.
8         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
10 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
12         [BZ #14050]
13         [BZ #14117]
14         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
15         __extern_always_inline instead of __extern_inline.
16         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
17         (__signbit): Likewise.
18         (__signbitl): Support C++ namespace.
19         (lrintf): New inline function.
20         (lrint): Likewise.
21         (llrintf): Likewise.
22         (llrint): Likewise.
23         (fmaxf): Likewise.
24         (fmax): Likewise.
25         (fminf): Likewise.
26         (fmin): Likewise.
27         (rint): Likewise.
28         (rintf): Likewise.
29         (ceil): Likewise.
30         (ceilf): Likewise.
31         (floor): Likewise.
32         (floorf): Likewise.
33         (nearbyint): Likewise.
34         (nearbyintf): Likewise.
36 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
38         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
39         non-default versions.
41 2012-06-11  Roland McGrath  <roland@hack.frob.com>
43         [BZ #14218]
44         * manual/argp.texi (Argp): Reword argp_parse description slightly.
46 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
48         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
49         (FE_UPWARD, FE_DOWNWARD): Don't define.
50         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
51         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
53         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
54         reading it.
55         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
56         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
58 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
60         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
61         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
62         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
63         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
65 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
67         [BZ #14117]
68         * sysdeps/i386/fpu/bits/fenv.h: Removed.
69         * sysdeps/i386/fpu/Implies: New file.
70         * sysdeps/x86_64/fpu/Implies: Likewise.
71         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
72         * sysdeps/x86/fpu/bits/fenv.h: This.
74         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
75         __SSE_MATH__.
77 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
79         [BZ #14134]
80         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
81         character 0xffff that matches the last element of the
82         conversion table.
84 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
86         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
87         fmodl commit.
89 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
91         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
92         values higher than 25.6283.
94 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
96         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
97         subnormal exponent extraction and add some __builtin_expect.
98         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
99         Fix for subnormal mantissa calculation.
101 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
103         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
104         cpu2 is -1 and errno is not ENOSYS.
106 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
108         [BZ #14117]
109         * sysdeps/i386/i486/bits/string.h: Renamed to ...
110         * sysdeps/x86/bits/string.h: This.
111         * sysdeps/x86_64/bits/string.h: Removed.
113         * sysdeps/i386/i486/bits/string.h: Define inline functions only
114         if not compiling for x86-64, but compiling for >= i486.
116         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
117         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
119         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
120         New macro from Linux kernel 3.4.0.
121         (FP_XSTATE_MAGIC2): Likewise.
122         (FP_XSTATE_MAGIC2_SIZE): Likewise.
123         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
124         (struct _fpx_sw_bytes): New struct.
125         (struct _xsave_hdr): Likewise.
126         (struct _ymmh_state): Likewise.
127         (struct _xstate): Likewise.
129         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
130         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
131         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
132         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
133         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
134         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
136         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
137         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
138         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
139         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
140         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
141         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
143 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
145         [BZ #13743]
146         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
147         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
148         (sysdep_headers): Include sys/platform/ppc.h.
149         * sysdeps/powerpc/test-gettimebase.c: Test for
150         __ppc_get_timebase() to catch future ISA opcode/insn changes.
151         * manual/Makefile (appendices): Include platform.texi.
152         * manual/contrib.texi (Contributors): Update @node pointers.
153         * manual/maint.texi (Maintenance): Likewise.
154         (Platform): New node.
155         * manual/platform.texi: New file.  Document the new features.
157 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
158             Jakub Jelinek  <jakub@redhat.com>
160         [BZ #14188]
161         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
162         where __builtin_expect is unavailable.
164 2012-06-03  David S. Miller  <davem@davemloft.net>
166         * stdlib/longlong.h: Updated from GCC.
168 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
170         [BZ #14042]
171         * sysdeps/powerpc/powerpc32/mcount.c: New file.
172         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
173         __mcount_internal.
174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
175         (GLIBC_2.16): Likewise.
177 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
179         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
181 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
183         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
184         (default-abi): New variable.
185         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
186         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
187         variable.
188         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
189         Likewise.
190         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
191         Likewise.
192         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
193         Likewise.
195         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
196         definition.  Document in comment.
198 2012-06-01  David S. Miller  <davem@davemloft.net>
200         * stdlib/longlong.h: Updated from GCC.
202 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
204         [BZ #14117]
205         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
206         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
207         sys/debugreg.h sys/io.h here.
208         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
209         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
210         sys/io.h.
211         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
212         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
213         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
214         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
215         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
216         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
218         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
219         Define only if __x86_64__ is defined.
221 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
223         [BZ #14048]
224         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
225         Use int64_t for variable i.
226         * math/libm-test.inc (fmod_test): Add more tests.
228         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
229         z computation is not scheduled after fetestexcept.
230         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
231         Use math_force_eval instead of asm to ensure calculation scheduled
232         before exception test.
233         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
234         Ensure a1 + u.d computation is not scheduled after fetestexcept.
236 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
238         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
239         computation is not scheduled after fetestexcept.
241 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
243         [BZ #14117]
244         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
245         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
247 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
249         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
250         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
252 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
254         [BZ #14117]
255         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
256         <bits/wordsize.h>.
257         (__WCHAR_MIN): Support __WORDSIZE == 64.
258         (__WCHAR_MAX): Likewise.
260         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
261         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
263         [BZ #14183]
264         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
265         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
267         [BZ #14117]
268         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
269         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
271         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
272         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
274         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
275         Defined to 1 if __x86_64__ isn't defined.
276         (_STAT_VER_LINUX_OLD): New.
277         (st_atime): Remove duplicate.
278         (st_mtime): Likewise.
279         (st_ctime): Likewise.
281 2012-05-31  David S. Miller  <davem@davemloft.net>
283         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
284         entries.
286 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
288         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
289         gen-libm-test.pl.
291         [BZ #14132]
292         * elf/dl-reloc.c: Include <_itoa.h>.
293         (_dl_reloc_bad_type): Remove use of INTUSE.
294         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
295         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
296         * stdio-common/psiginfo.c (psiginfo): Likewise.
297         * stdio-common/psignal.c (psignal): Likewise.
298         * string/strsignal.c (strsignal): Likewise.
299         * include/signal.h (_sys_siglist): Declare hidden proto.
300         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
301         INTVARDEF with libc_hidden_data_def.
302         * stdio-common/itoa-udigits.c: Likewise.
303         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
304         (_itoa_lower_digits_internal): Remove declaration.
305         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
306         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
307         (_sys_sigabbrev_internal): Remove aliases.
308         (_sys_siglist): Define hidden alias.
310 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
312         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
313         bits/sysctl.h.
315 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
317         [BZ #14117]
318         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
319         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
321         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
322         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
323         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
324         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
325         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
326         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
328         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
329         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
330         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
332         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
333         with __addr.
334         (insw): Likewise.
335         (insl): Likewise.
336         (outsb): Likewise.
337         (outsw): Likewise.
338         (outsl): Likewise.
340         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
341         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
342         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
344         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
345         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
346         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
347         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
348         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
349         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
351         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
352         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
354         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
355         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
357         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
358         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
359         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
361         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
362         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
363         to ...
364         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
366         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
367         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
368         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
370         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
371         for x86-64.
372         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
374 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
376         * math/math.h (M_El): Use two more decimal places.
377         (M_LOG2El): Likewise.
378         (M_LOG10El): Likewise.
379         (M_LN2l): Likewise.
380         (M_LN10l): Likewise.
381         (M_PIl): Likewise.
382         (M_PI_2l): Likewise.
383         (M_PI_4l): Likewise.
384         (M_1_PIl): Likewise.
385         (M_2_PIl): Likewise.
386         (M_2_SQRTPIl): Likewise.
387         (M_SQRT2l): Likewise.
388         (M_SQRT1_2l): Likewise.
390 2012-05-31  David S. Miller  <davem@davemloft.net>
392         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
393         values between float registers.
394         * sysdeps/sparc/sparc64/memset.S: Likewise.
395         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
397 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
399         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
400         -D_FORTIFY_SOURCE=1.
401         (CPPFLAGS-tst-longjmp_chk.c): Define.
402         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
403         (CPPFLAGS-tst-longjmp_chk2.c): Define.
404         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
405         CFLAGS-tst-wchar-h.c.
407 2012-05-31  Marek Polacek  <polacek@redhat.com>
409         [BZ #14132]
410         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
411         __endmntent_internal): Remove declaration.
412         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
413         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
414         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
416 2012-05-30  David S. Miller  <davem@davemloft.net>
418         * sysdeps/sparc/sparc32/soft-fp/q_util.c
419         (___Q_simulate_exceptions): Use real FP ops rather than writing
420         into the %fsr.
421         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
422         Likewise.
424 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
426         [BZ #14117]
427         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
428         * sysdeps/x86/bits/xtitypes.h: This.
430         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
431         * sysdeps/x86/bits/wordsize.h: This.
433         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
434         * sysdeps/x86/bits/huge_vall.h: This.
436         * sysdeps/i386/bits/select.h: Removed.
437         * sysdeps/x86_64/bits/select.h: Renamed to ...
438         * sysdeps/x86/bits/select.h: This.
440         * sysdeps/i386/bits/setjmp.h: Removed.
441         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
442         * sysdeps/x86/bits/setjmp.h: This.
444         * sysdeps/i386/bits/mathdef.h: Removed.
445         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
446         * sysdeps/x86/bits/mathdef.h: This.
448 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
450         [BZ #14132]
451         * include/sys/socket.h (__connect_internal)
452         (__libc_sa_len_internal): Remove declaration.
453         (__connect, __libc_sa_len): Declare hidden_proto.
454         (SA_LEN): Remove use of INTUSE.
455         * socket/connect.c: Add libc_hidden_def.
456         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
457         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
458         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
459         alias.
460         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
461         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
462         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
463         of adding _internal alias.
465 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
467         [BZ #14117]
468         * sysdeps/i386/bits/link.h: Removed.
469         * sysdeps/i386/bits/linkmap.h: Likewise.
470         * sysdeps/x86_64/bits/link.h: Renamed to ...
471         * sysdeps/x86/bits/link.h: This.
472         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
473         * sysdeps/x86/bits/linkmap.h: This.
475         * sysdeps/i386/bits/endian.h: Removed.
476         * sysdeps/x86_64/bits/endian.h: Renamed to ...
477         * sysdeps/x86/bits/endian.h: This.
479         * sysdeps/i386/bits/byteswap.h: Removed.
480         * sysdeps/i386/bits/byteswap-16.h: Likewise.
481         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
482         * sysdeps/x86/bits/byteswap.h: This.
483         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
484         * sysdeps/x86/bits/byteswap-16.h: This.
485         * sysdeps/i386/Implies: Add x86.
486         * sysdeps/x86_64/Implies: Likewise.
488 2012-05-30  David S. Miller  <davem@davemloft.net>
490         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
491         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
492         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
493         (FP_TRAPPING_EXCEPTIONS): Define.
494         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
495         (FP_TRAPPING_EXCEPTIONS): Define.
496         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
497         subnormals only when inexact has been signalled or underflow
498         exceptions are enabled.
499         (_FP_PACK_CANONICAL): Likewise.
501 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
503         [BZ #14183]
504         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
505         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
507 2012-05-30  Richard Henderson  <rth@twiddle.net>
509         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
510         with #ifndef NOT_IN_libc.
512         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
513         marked to avoid plt entry.
515 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
517         [BZ #14112]
518         * Makeconfig (default-abi): New macro.
519         (abi-includes): Likewise.
520         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
521         $(abi-$(default-abi)-lib-soname) for soname if defined.
522         ($(common-objpfx)gnu/lib-names.stmp): Generate from
523         abi-variants.
524         * Makefile (installed-stubs): Likewise.
525         * include/stubs-biarch.h: Removed.
526         * scripts/lib-names.awk: Only handle one library at a time.
527         * scripts/soversions.awk: Remove WORDSIZE support.
528         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
529         entries.
530         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
531         Removed.
532         (syscall-list-default-condition): Likewise.
533         (syscall-list-default-condition): Likewise.
534         (syscall-list-includes): Likewise.
535         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
536         syscall-list-* with abi-*.  Handle undefined abi-variants.
537         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
538         * sysdeps/unix/sysv/linux/i386/Implies: New file.
539         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
540         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
541         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
542         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
543         Removed.
544         (syscall-list-32-options): Likewise.
545         (syscall-list-32-condition): Likewise.
546         (syscall-list-64-options): Likewise.
547         (syscall-list-64-condition): Likewise.
548         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
549         macro.
550         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
551         Renamed to ...
552         (abi-*): This.
553         (abi-64-ld-soname): New macro.
554         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
555         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
556         Renamed to ...
557         (abi-*): This.
558         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
559         * sysdeps/x86_64/x32/shlib-versions: Likewise.
561 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
563         * sysdeps/unix/sysv/linux/kernel-features.h
564         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
565         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
566         include <kernel-features.h>.
567         [!__NR_ftruncate64]: Remove conditional code.
568         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
569         [__NR_ftruncate64]: Make code unconditional.
570         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
571         * sysdeps/unix/sysv/linux/truncate64.c: Do not
572         include <kernel-features.h>.
573         [!__NR_ftruncate64]: Remove conditional code.
574         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
575         [__NR_ftruncate64]: Make code unconditional.
576         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
577         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
578         include <kernel-features.h>.
579         [!__NR_ftruncate64]: Remove conditional code.
580         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
581         [__NR_ftruncate64]: Make code unconditional.
582         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
584         include <kernel-features.h>.
585         [!__NR_ftruncate64]: Remove conditional code.
586         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
587         [__NR_ftruncate64]: Make code unconditional.
588         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
590         * configure.in (libc_cv_fpie): Weaken to a compile test using
591         LIBC_TRY_CC_OPTION.
592         * configure: Regenerated.
594 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
596         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
597         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
598         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
599         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
600         Refreshed.
601         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
602         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
603         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
604         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
606         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
607         Refreshed.
609 2012-05-27  David S. Miller  <davem@davemloft.net>
611         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
612         (___Q_zero): New.
613         (__Q_simulate_exceptions): Return void.  Change to simulate
614         exceptions by writing into the %fsr.
615         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
616         (__Qp_handle_exceptions): Likewise.
617         (numbers): Delete.
618         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
619         __Qp_handle_exceptions.
620         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
621         __Qp_handle_exceptions.
622         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
623         as unused and give dummy FP_RND_NEAREST initializer.
624         (FP_INHIBIT_RESULTS): Define.
625         (___Q_simulate_exceptions): Update declaration.
626         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
627         formatting.
628         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
629         as unused and give dummy FP_RND_NEAREST initializer.
630         (__Qp_handle_exceptions): Update declaration.
631         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
632         formatting.
634 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
636         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
637         the temporary FPU control word.
638         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
639         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
640         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
641         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
642         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
643         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
644         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
645         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
646         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
647         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
648         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
650 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
652         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
653         fields.
655 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
657         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
658         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
659         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
660         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
661         Likewise.
662         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
663         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
664         Likewise.
666 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
668         * po/h.po: Update from translation team.
670 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
672         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
674         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
675         handling of denormals.
676         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
677         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
678         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
679         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
680         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
681         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
682         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
683         Likewise.
685 2012-05-26  Marek Polacek  <polacek@redhat.com>
687         [BZ #14152]
688         * math/libm-test.inc (fma_test): Don't always expect underflow
689         exception.
691 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
693         [BZ #12416]
694         * elf/tst-execstack.c: Include stackinfo.h.
695         (do_test): Adjust test case to ensure that pthread_getattr_np
696         behaviour remains the same after marking stack executable.
698 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
700         * sysdeps/unix/sysv/linux/kernel-features.h
701         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
702         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
703         kernel-features.h.
704         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
705         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
706         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
707         kernel-features.h.
708         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
709         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
711 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
713         * configure.in: Define the default includes to being none.
714         * configure: Regenerated.
716 2012-05-25  Roland McGrath  <roland@hack.frob.com>
718         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
719         * sysdeps/x86_64/setjmp.S: Likewise.
720         * sysdeps/i386/bsd-setjmp.S: Likewise.
721         * sysdeps/i386/bsd-_setjmp.S: Likewise.
722         * sysdeps/i386/setjmp.S: Likewise.
723         * sysdeps/i386/__longjmp.S: Likewise.
724         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
725         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
727         * include/stap-probe.h: New file.
728         * configure.in: Handle --enable-systemtap.
729         * configure: Regenerated.
730         * config.h.in (USE_STAP_PROBE): New #undef.
731         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
732         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
733         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
735 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
737         [BZ #13717]
738         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
739         to 2.4.0 where earlier.
740         * sysdeps/unix/sysv/linux/configure: Regenerated.
741         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
742         <kernel-features.h>.
743         [__ASSUME_32BITUIDS]: Make code unconditional.
744         [!__ASSUME_32BITUIDS]: Remove conditional code.
745         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
746         <kernel-features.h>.
747         [__ASSUME_32BITUIDS]: Make code unconditional.
748         [!__ASSUME_32BITUIDS]: Remove conditional code.
749         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
750         [__ASSUME_32BITUIDS]: Make code unconditional.
751         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
752         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
753         <kernel-features.h>.
754         [__ASSUME_32BITUIDS]: Make code unconditional.
755         [!__ASSUME_32BITUIDS]: Remove conditional code.
756         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
757         <kernel-features.h>.
758         [__ASSUME_32BITUIDS]: Make code unconditional.
759         [!__ASSUME_32BITUIDS]: Remove conditional code.
760         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
761         <kernel-features.h>.
762         [__ASSUME_32BITUIDS]: Make code unconditional.
763         [!__ASSUME_32BITUIDS]: Remove conditional code.
764         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
765         <kernel-features.h>.
766         [__ASSUME_32BITUIDS]: Make code unconditional.
767         [!__ASSUME_32BITUIDS]: Remove conditional code.
768         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
769         <kernel-features.h>.
770         [__ASSUME_32BITUIDS]: Make code unconditional.
771         [!__ASSUME_32BITUIDS]: Remove conditional code.
772         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
773         <kernel-features.h>.
774         [__ASSUME_32BITUIDS]: Make code unconditional.
775         [!__ASSUME_32BITUIDS]: Remove conditional code.
776         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
777         <kernel-features.h>.
778         [__ASSUME_32BITUIDS]: Make code unconditional.
779         [!__ASSUME_32BITUIDS]: Remove conditional code.
780         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
781         <kernel-features.h>.
782         [__ASSUME_32BITUIDS]: Make code unconditional.
783         [!__ASSUME_32BITUIDS]: Remove conditional code.
784         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
785         <kernel-features.h>.
786         [__ASSUME_32BITUIDS]: Make code unconditional.
787         [!__ASSUME_32BITUIDS]: Remove conditional code.
788         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
789         <kernel-features.h>.
790         [__ASSUME_32BITUIDS]: Make code unconditional.
791         [!__ASSUME_32BITUIDS]: Remove conditional code.
792         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
793         <kernel-features.h>.
794         [__NR_setresgid] (__setresgid): Do not declare.
795         [__ASSUME_32BITUIDS]: Make code unconditional.
796         [!__ASSUME_32BITUIDS]: Remove conditional code.
797         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
798         <kernel-features.h>.
799         [__NR_setresuid] (__setresuid): Do not declare.
800         [__ASSUME_32BITUIDS]: Make code unconditional.
801         [!__ASSUME_32BITUIDS]: Remove conditional code.
802         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
803         <kernel-features.h>.
804         [__ASSUME_32BITUIDS]: Make code unconditional.
805         [!__ASSUME_32BITUIDS]: Remove conditional code.
806         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
807         <kernel-features.h>.
808         [__ASSUME_32BITUIDS]: Make code unconditional.
809         [!__ASSUME_32BITUIDS]: Remove conditional code.
810         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
811         <kernel-features.h>.
812         [__ASSUME_32BITUIDS]: Make code unconditional.
813         [!__ASSUME_32BITUIDS]: Remove conditional code.
814         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
815         <kernel-features.h>.
816         [__ASSUME_32BITUIDS]: Make code unconditional.
817         [!__ASSUME_32BITUIDS]: Remove conditional code.
818         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
819         <kernel-features.h>.
820         [__ASSUME_32BITUIDS]: Make code unconditional.
821         [!__ASSUME_32BITUIDS]: Remove conditional code.
822         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
823         <kernel-features.h>.
824         [__ASSUME_32BITUIDS]: Make code unconditional.
825         [!__ASSUME_32BITUIDS]: Remove conditional code.
826         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
827         <kernel-features.h>.
828         [__ASSUME_32BITUIDS]: Make code unconditional.
829         [!__ASSUME_32BITUIDS]: Remove conditional code.
830         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
831         <kernel-features.h>.
832         [__ASSUME_32BITUIDS]: Make code unconditional.
833         [!__ASSUME_32BITUIDS]: Remove conditional code.
834         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
835         <kernel-features.h>.
836         [__ASSUME_32BITUIDS]: Make code unconditional.
837         [!__ASSUME_32BITUIDS]: Remove conditional code.
838         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
839         <kernel-features.h>.
840         [__ASSUME_32BITUIDS]: Make code unconditional.
841         [!__ASSUME_32BITUIDS]: Remove conditional code.
842         * sysdeps/unix/sysv/linux/kernel-features.h
843         (__ASSUME_SETRESUID_SYSCALL): Remove.
844         (__ASSUME_SETRESGID_SYSCALL): Likewise.
845         (__ASSUME_32BITUIDS): Likewise.
846         (__ASSUME_LDT_WORKS): Likewise.
847         (__ASSUME_O_DIRECTORY): Likewise.
848         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
849         architecture but not kernel version.
850         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
851         (__ASSUME_MMAP2_SYSCALL): Likewise.
852         (__ASSUME_STAT64_SYSCALL): Likewise.
853         (__ASSUME_IPC64): Likewise.
854         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
855         <kernel-features.h>.
856         [__ASSUME_32BITUIDS]: Make code unconditional.
857         [!__ASSUME_32BITUIDS]: Remove conditional code.
858         * sysdeps/unix/sysv/linux/opendir.c: Do not include
859         <kernel-features.h>.
860         [__ASSUME_O_DIRECTORY]: Make code unconditional.
861         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
862         132096]: Remove conditional code.
863         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
864         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
865         <kernel-features.h>.
866         [__ASSUME_32BITUIDS]: Make code unconditional.
867         [!__ASSUME_32BITUIDS]: Remove conditional code.
868         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
869         <kernel-features.h>.
870         [__ASSUME_32BITUIDS]: Make code unconditional.
871         [!__ASSUME_32BITUIDS]: Remove conditional code.
872         * sysdeps/unix/sysv/linux/setegid.c: Do not include
873         <kernel-features.h>.
874         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
875         unconditional.
876         (__setresgid): Do not declare.
877         [__ASSUME_32BITUIDS]: Make code unconditional.
878         [!__ASSUME_32BITUIDS]: Remove conditional code.
879         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
880         <kernel-features.h>.
881         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
882         unconditional.
883         (__setresuid): Do not declare.
884         [__ASSUME_32BITUIDS]: Make code unconditional.
885         [!__ASSUME_32BITUIDS]: Remove conditional code.
886         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
887         <kernel-features.h>.
888         [__ASSUME_32BITUIDS]: Make code unconditional.
889         [!__ASSUME_32BITUIDS]: Remove conditional code.
890         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
891         <kernel-features.h>.
892         [__ASSUME_32BITUIDS]: Make code unconditional.
893         [!__ASSUME_32BITUIDS]: Remove conditional code.
895 2012-05-25  Richard Henderson  <rth@twiddle.net>
897         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
898         dl_hwcap to ifunc resolver.
899         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
900         elf_ifunc_invoke.
901         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
902         dl_hwcap to ifunc resolver.
903         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
905 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
907         [BZ #14153]
908         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
909         for |x| <= 2**-26, not 2**-57.
910         * math/libm-test.inc (acos_test): Do not allow spurious underflow
911         exception.
913 2012-05-24  Jeff Law  <law@redhat.com>
915         * stdio-common/Makefile (tests): Add bug25.
916         * stdio-common/bug25.c: New test.
918 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
920         [BZ #13576]
921         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
922         multiple of MALLOC_ALIGNMENT in size.
923         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
925 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
927         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
928         Require >= 256.
929         (FILENAME_MAX): Use macro-int-constant.
930         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
931         (_IOFBF): Use macro-int-constant.
932         (_IOLBF): Likewise.
933         (_IONBF): Likewise.
934         (SEEK_CUR): Likewise.
935         (SEEK_END): Likewise.
936         (SEEK_SET): Likewise.
937         (TMP_MAX): Likewise.
938         (EOF): Use macro-int-constant.  Require < 0.
939         (NULL): Use macro-constant.  Require == 0.
940         (stdin): Require type to be FILE *.
941         (stdout): Likewise.
942         (stderr): Likewise.
943         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
944         macro-int-constant.
945         (EXIT_SUCCESS): Likewise.
946         (NULL): Use macro-constant.  Require == 0.
947         (RAND_MAX): Use macro-int-constant.
948         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
949         [C99-based standards] (strtof): Require function.
950         [C99-based standards] (strtold): Likewise.
951         [C99-based standards] (strtoll): Likewise.
952         [C99-based standards] (strtoull): Likewise.
953         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
954         [ISO || ISO99 || ISO11] (limits.h): Likewise.
955         [ISO || ISO99 || ISO11] (math.h): Likewise.
956         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
957         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
958         [ISO || ISO99 || ISO11] (*_t): Do not allow.
960 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
962         [BZ #14132]
963         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
964         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
965         * intl/dgettext.c (DCGETTEXT): Likewise.
966         * intl/gettext.c (DCGETTEXT): Likewise.
967         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
968         * posix/regex_internal.h (gettext): Likewise.
969         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
970         Remove declaration.
971         * include/argz.h (__argz_count_internal)
972         (__argz_stringify_internal): Remove declaration.
973         (__argz_count, __argz_stringify): Declare hidden proto.
974         * intl/dcgettext.c: Remove use of INTDEF.
975         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
976         * string/argz-stringify.c: Likewise.
977         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
978         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
979         Declare hidden proto.
980         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
981         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
982         Declare hidden proto.
983         * include/stdio.h (__asprintf_internal): Don't declare.
984         (__asprintf): Don't define as macro.  Declare hidden proto.
985         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
986         (__fsetlocking): Declare hidden proto.
987         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
988         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
989         hidden proto.
990         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
991         (_IO_setlinebuf): Remove use of INTUSE.
992         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
993         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
994         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
995         Remove declaration.
996         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
997         (_IO_do_flush): Remove use of INTUSE.
998         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
999         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
1000         (_IO_adjust_column, _IO_least_wmarker)
1001         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
1002         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
1003         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
1004         (_IO_default_doallocate, _IO_wdefault_doallocate)
1005         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
1006         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
1007         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
1008         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
1009         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
1010         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
1011         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
1012         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
1013         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
1014         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
1015         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
1016         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
1017         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
1018         proto.
1019         (_IO_flush_all_internal, _IO_adjust_column_internal)
1020         (_IO_default_uflow_internal, _IO_default_finish_internal)
1021         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
1022         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
1023         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
1024         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
1025         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
1026         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
1027         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
1028         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
1029         (_IO_file_close_internal, _IO_file_close_it_internal)
1030         (_IO_file_underflow_internal, _IO_file_overflow_internal)
1031         (_IO_file_init_internal, _IO_file_attach_internal)
1032         (_IO_file_fopen_internal, _IO_file_read_internal)
1033         (_IO_file_sync_internal, _IO_file_seek_internal)
1034         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
1035         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
1036         (_IO_str_underflow_internal, _IO_str_overflow_internal)
1037         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
1038         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
1039         (_IO_list_all_internal, _IO_link_in_internal)
1040         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
1041         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
1042         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
1043         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
1044         (_IO_do_write_internal, _IO_padn_internal)
1045         (_IO_getline_info_internal, _IO_getline_internal)
1046         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
1047         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
1048         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
1049         (_IO_vfscanf_internal, _IO_vfprintf_internal)
1050         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
1051         (_IO_init_internal, _IO_un_link_internal): Don't declare.
1052         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
1053         with libc_hidden_ver, remove use of INTUSE.
1054         * libio/genops.c: Likewise.
1055         * libio/freopen.c: Likewise.
1056         * libio/freopen64.c: Likewise.
1057         * libio/iofclose.c: Likewise.
1058         * libio/iofdopen.c: Likewise.
1059         * libio/iofflush.c: Likewise.
1060         * libio/iofflush_u.c: Likewise.
1061         * libio/iofgets.c: Likewise.
1062         * libio/iofgets_u.c: Likewise.
1063         * libio/iofopen.c: Likewise.
1064         * libio/iofopncook.c: Likewise.
1065         * libio/iofread.c: Likewise.
1066         * libio/iofread_u.c: Likewise.
1067         * libio/ioftell.c: Likewise.
1068         * libio/iofwrite.c: Likewise.
1069         * libio/iogetline.c: Likewise.
1070         * libio/iogets.c: Likewise.
1071         * libio/iogetwline.c: Likewise.
1072         * libio/iopadn.c: Likewise.
1073         * libio/iopopen.c: Likewise.
1074         * libio/ioseekoff.c: Likewise.
1075         * libio/ioseekpos.c: Likewise.
1076         * libio/iosetbuffer.c: Likewise.
1077         * libio/iosetvbuf.c: Likewise.
1078         * libio/ioungetc.c: Likewise.
1079         * libio/ioungetwc.c: Likewise.
1080         * libio/iovdprintf.c: Likewise.
1081         * libio/iovsprintf.c: Likewise.
1082         * libio/iovsscanf.c: Likewise.
1083         * libio/memstream.c: Likewise.
1084         * libio/obprintf.c: Likewise.
1085         * libio/oldfileops.c: Likewise.
1086         * libio/oldiofclose.c: Likewise.
1087         * libio/oldiofdopen.c: Likewise.
1088         * libio/oldiofopen.c: Likewise.
1089         * libio/oldiopopen.c: Likewise.
1090         * libio/oldstdfiles.c: Likewise.
1091         * libio/putc.c: Likewise.
1092         * libio/setbuf.c: Likewise.
1093         * libio/setlinebuf.c: Likewise.
1094         * libio/stdfiles.c: Likewise.
1095         * libio/strops.c: Likewise.
1096         * libio/vasprintf.c: Likewise.
1097         * libio/vscanf.c: Likewise.
1098         * libio/vsnprintf.c: Likewise.
1099         * libio/vswprintf.c: Likewise.
1100         * libio/wfiledoalloc.c: Likewise.
1101         * libio/wfileops.c: Likewise.
1102         * libio/wgenops.c: Likewise.
1103         * libio/wmemstream.c: Likewise.
1104         * libio/wstrops.c: Likewise.
1105         * libio/__fpurge.c: Likewise.
1106         * libio/__fsetlocking.c: Likewise.
1107         * assert/assert.c: Likewise.
1108         * debug/fgets_chk.c: Likewise.
1109         * debug/fgets_u_chk.c: Likewise.
1110         * debug/fread_chk.c: Likewise.
1111         * debug/fread_u_chk.c: Likewise.
1112         * debug/gets_chk.c: Likewise.
1113         * debug/obprintf_chk.c: Likewise.
1114         * debug/vasprintf_chk.c: Likewise.
1115         * debug/vdprintf_chk.c: Likewise.
1116         * debug/vsnprintf_chk.c: Likewise.
1117         * debug/vsprintf_chk.c: Likewise.
1118         * malloc/mtrace.c: Likewise.
1119         * misc/error.c: Likewise.
1120         * misc/syslog.c: Likewise.
1121         * stdio-common/asprintf.c: Likewise.
1122         * stdio-common/fxprintf.c: Likewise.
1123         * stdio-common/getw.c: Likewise.
1124         * stdio-common/isoc99_fscanf.c: Likewise.
1125         * stdio-common/isoc99_scanf.c: Likewise.
1126         * stdio-common/isoc99_vfscanf.c: Likewise.
1127         * stdio-common/isoc99_vscanf.c: Likewise.
1128         * stdio-common/isoc99_vsscanf.c: Likewise.
1129         * stdio-common/printf-prs.c: Likewise.
1130         * stdio-common/printf_fp.c: Likewise.
1131         * stdio-common/printf_fphex.c: Likewise.
1132         * stdio-common/printf_size.c: Likewise.
1133         * stdio-common/putw.c: Likewise.
1134         * stdio-common/scanf.c: Likewise.
1135         * stdio-common/sprintf.c: Likewise.
1136         * stdio-common/tmpfile.c: Likewise.
1137         * stdio-common/vfprintf.c: Likewise.
1138         * stdio-common/vfscanf.c: Likewise.
1139         * stdlib/strfmon_l.c: Likewise.
1140         * sunrpc/openchild.c: Likewise.
1141         * sunrpc/xdr_stdio.c: Likewise.
1142         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
1143         * sysdeps/mach/hurd/tmpfile.c: Likewise.
1145 2012-05-24  Roland McGrath  <roland@hack.frob.com>
1147         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1149         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
1150         in the third column, to generate for the shared library an IFUNC
1151         that uses _dl_vdso_vsym.
1152         * Makerules (COMPILE.c, compile-stdin.c): New variables.
1153         * Makeconfig (object-suffixes-noshared): New variable.
1155         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
1156         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
1157         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
1158         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
1160         [BZ #14132]
1161         * include/sys/time.h (__gettimeofday): Remove macro.
1162         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
1163         * time/gettimeofday.c (__gettimeofday): Remove #undef.
1164         Remove INTDEF.
1165         (__gettimeofday): Add libc_hidden_def.
1166         (gettimeofday): Add libc_hidden_weak.
1167         * sysdeps/mach/gettimeofday.c: Likewise.
1168         * sysdeps/posix/gettimeofday.c: Likewise.
1169         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
1170         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
1171         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
1172         (__gettimeofday_internal): Remove strong_alias.
1173         (__gettimeofday): Add libc_hidden_def.
1174         (gettimeofday): Add libc_hidden_weak.
1175         * sysdeps/unix/syscalls.list (gettimeofday):
1176         Remove __gettimeofday_internal alias.
1178 2012-05-24  Daniel Jacobowitz  <drow@false.org>
1179             H.J. Lu  <hongjiu.lu@intel.com>
1181         [BZ #12495]
1182         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
1183         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
1184         (largebin_index_32_big): New.
1185         (largebin_index): Use it for 16-byte alignment.
1186         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
1187         correction with front_misalign.
1189 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1191         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
1192         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
1193         Likewise.
1194         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
1195         Likewise.
1196         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1197         Likewise.
1198         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
1199         Likewise.
1200         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
1201         Likewise.
1202         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
1203         Likewise.
1204         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
1205         Likewise.
1206         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1207         Likewise.
1208         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
1209         Likewise.
1210         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
1211         Likewise.
1212         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
1213         Likewise.
1214         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
1215         Likewise.
1217         * scripts/data/c++-types-x32-linux-gnu.data: New file.
1218         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
1220 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1222         [BZ #10846]
1223         [BZ #14036]
1224         * math/libm-test.inc (exp_test): Add test from bug 14036.
1225         (pow_test): Add test from bug 10846.
1227         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
1228         and other flags.
1229         (special_function): Do not include flags in test name.
1230         (parse_args): Likewise.
1231         * sysdeps/i386/fpu/libm-test-ulps: Update.
1232         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1233         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1234         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
1235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1237         * math/gen-libm-test.pl (%beautify): Add entries for underflow
1238         exceptions.
1239         * math/libm-test.inc ("Philosophy"): Update comment about
1240         exception testing.
1241         (UNDERFLOW_EXCEPTION): New macro.
1242         (UNDERFLOW_EXCEPTION_OK): Likewise.
1243         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
1244         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
1245         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
1246         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
1247         (INVALID_EXCEPTION_OK): Update value.
1248         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1249         (OVERFLOW_EXCEPTION_OK): Likewise.
1250         (IGNORE_ZERO_INF_SIGN): Likewise.
1251         (test_exceptions): Handle underflow exceptions.
1252         (acos_test): Update for underflow exception expectations.
1253         (cexp_test): Likewise.
1254         (clog_test): Likewise.
1255         (clog10_test): Likewise.
1256         (csqrt_test): Likewise.
1257         (ctan_test): Likewise.
1258         (ctanh_test): Likewise.
1259         (exp_test): Likewise.
1260         (exp10_test): Likewise.
1261         (exp2_test): Likewise.
1262         (expm1_test): Likewise.
1263         (fma_test): Likewise.
1264         (j0_test): Likewise.
1265         (jn_test): Likewise.
1266         (nexttoward_test): Likewise.
1267         (pow_test): Likewise.
1268         (scalbn_test): Likewise.
1269         (scalbln_test): Likewise.
1270         (tan_test): Likewise.
1271         (y1_test): Likewise.
1272         * sysdeps/i386/fpu/libm-test-ulps: Update.
1273         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1275 2012-05-23  David S. Miller  <davem@davemloft.net>
1277         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1278         (__libc_sigaction): Remove unused local variables.
1280 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1282         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
1284 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1286         mktime: avoid signed integer overflow
1287         * time/mktime.c (__mktime_internal): Do not mishandle the case
1288         where diff == INT_MIN.
1290         mktime: simplify computation of average
1291         * time/mktime.c (ranged_convert): Use new time_t_avg function
1292         instead of rolling our own (probably-slower) code.
1294         mktime: do not assume signed right shift propagates sign bit
1295         * time/mktime.c (isdst_differ): New static function.
1296         (__mktime_internal): No need to normalize tm_isdst now.
1297         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
1298         tm_isdst values.
1300         mktime: merge another wrapv change from gnulib
1301         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
1302         from some compilers.
1304         mktime: remove incorrect attempt at unusual arithmetics
1305         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
1306         The code didn't really work on such machines anyway.
1307         (TYPE_MINIMUM): Assume two's complement.
1308         (twos_complement_arithmetic): Verify that long_int and time_t
1309         are two's complement (or unsigned, in the latter case).
1311         mktime: check signed shifts on long_int and time_t, too
1312         * time/mktime.c (SHR): Check that shifts work as desired
1313         on the types long_int and time_t too, as SHR is used on
1314         such types.
1316         mktime: do not assume 'long' is wide enough
1317         * time/mktime.c (verify): Move decl up.
1318         (long_int): New type.
1319         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
1320         to remove assumption in the code that 'long' is wide enough to
1321         store year values.  This assumption is not true on x32 and on
1322         some non-glibc platforms.
1324         mktime: merge wrapv change from gnulib
1325         * time/mktime.c (WRAPV): New macro.
1326         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
1327         (guess_time_tm, __mktime_internal): Do not assume that signed
1328         integer overflow wraps around; modern compilers generate code
1329         where this assumption is no longer valid.
1331 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1333         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1334         Replace "jmp L(pseudo_end)" with "ret".
1335         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1336         Likewise.
1338 2012-05-23  Andreas Jaeger  <aj@suse.de>
1340         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
1341         * sysdeps/unix/sysv/linux/poll.c: Remove file.
1343 2012-05-23  Andreas Jaeger  <aj@suse.de>
1344             Maximilian Attems  <max@stro.at>
1346         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
1347         New macros.
1349 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1351         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
1352         code so that pseudo_end is just ret and the stack pointer is
1353         correct also for static library in error case.
1355 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
1357         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
1358         move to syscalls.list.
1359         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1361         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1362         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1364         * manual/install.texi (Running make install): Do not mention Linux
1365         kernel version for which pt_chown is not needed.
1366         (Linux): Do not mention problems with nscd with 2.0 kernels.
1367         * INSTALL: Regenerated.
1369 2012-05-23  Andreas Jaeger  <aj@suse.de>
1371         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
1372         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
1373         macro.
1374         * sysdeps/unix/sysv/linux/s390/bits/mman.h
1375         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1376         * sysdeps/unix/sysv/linux/sh/bits/mman.h
1377         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1378         * sysdeps/unix/sysv/linux/i386/bits/mman.h
1379         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1380         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
1381         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1382         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
1383         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1384         * sysdeps/unix/sysv/linux/bits/in.h
1385         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
1387 2012-05-22  Roland McGrath  <roland@hack.frob.com>
1389         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
1390         (PREPARE_VERSION): Just use assert instead, it will be elided
1391         under [NDEBUG] anyway.
1393 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1395         * sysdeps/unix/sysv/linux/Makefile: Include
1396         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
1397         (sysdep_routines): Remove sysctl.
1398         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
1399         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
1400         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
1401         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
1402         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
1404 2012-05-22  Andreas Jaeger  <aj@suse.de>
1406         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
1407         that pseudo_end is just ret and the stack pointer is correct also
1408         for static library in error case.
1410 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
1412         [BZ #14122]
1413         * nss/nsswitch.c (defconfig_entries): New variable.
1414         (__nss_database_lookup): Don't leak defconfig entries.
1415         (nss_parse_service_list): Don't leak on error paths.
1416         (free_database_entries): New function.
1417         (free_defconfig): New function.
1418         (free_mem): Move common code to free_database_entries.
1420 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1422         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
1423         Add arch_prctl.
1424         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
1426         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
1427         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
1428         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
1429         New macro.
1430         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
1431         (INTERNAL_SYSCALL_TYPES): Likewise.
1432         (LOAD_ARGS_TYPES_[1-6]): Likewise.
1433         (LOAD_REGS_TYPES_[1-6]): Likewise.
1434         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
1435         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
1437 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1439         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
1440         copysignl for GLIBC_2_0.
1441         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
1442         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
1443         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
1444         logbl for GLIBC_2_0.
1445         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1446         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1448 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1450         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
1451         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1453         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1454         Use "neg %eax".
1456         * time/mktime.c: Update copyright years.
1458 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1460         mktime: merge comment-quoting-style change from gnulib
1461         * time/mktime.c: Quote 'like this' in comments.
1462         The GNU coding standards suggest that we no longer quote `like this',
1463         as "`" and "'" are typically rendered asymmetrically nowadays.
1464         The typical gnulib style is to quote 'like this' when quoting
1465         code, and "like this" when quoting English.
1467         * time/mktime.c (compile-command): Add "-I.".
1469         mktime: merge mktime-internal.h change from gnulib
1470         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
1472         mktime: merge time_r change from gnulib
1473         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
1475         mktime: merge DEBUG change from gnulib
1476         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
1477         case system <time.h> has a #define.
1479         mktime: merge <sys/types.h> change from gnulib
1480         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
1481         since <time.t> is now guaranteed to define time_t.
1483         mktime: merge HAVE_CONFIG_H change from gnulib
1484         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
1486 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1488         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1489         Use "neg %eax".
1491         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
1492         __rlim_t cast.
1493         (struct rusage): Use anonymous union to pad each field to
1494         __syscall_slong_t.
1496 2012-05-21  David S. Miller  <davem@davemloft.net>
1498         * Makefules (o-iterator): Remove .s cases.
1499         (compile-command.s): Delete.
1500         (COMPILE.s): Delete.
1501         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
1503 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
1505         * configure.in (libc_cv_predef_stack_protector): Only consider
1506         "foobar" and "__stack_chk_fail" lines in libc_undefs.
1507         * configure: Regenerated.
1509 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1511         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1512         New macro.  Use R*LP on int and pointer.
1513         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
1514         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
1515         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
1516         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
1518         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
1519         [__WORDSIZE_TIME64_COMPAT32] instead of
1520         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
1521         (struct utmp): Likewise.
1522         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
1523         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
1524         Renamed to ...
1525         (__WORDSIZE_TIME64_COMPAT32): This.
1526         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1527         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1528         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1529         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1530         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
1531         (__WORDSIZE_TIME64_COMPAT32): New macro.
1533 2012-05-21  Andreas Jaeger  <aj@suse.de>
1535         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
1536         only if [SHARED]. Add prototype for __wcschr_ia32.
1538 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1540         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
1541         of %rbp unmolested in the jmp_buf while mangling the low bits.
1542         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
1543         unmolested high bits of %rbp while demangling the low bits.
1544         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1546 2012-05-21  Andreas Jaeger  <aj@suse.de>
1548         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
1549         * sunrpc/svc_simple.c: Use it for registerrpc.
1550         * sunrpc/xcrypt.c: Use it for passwd2des.
1552         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
1554 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1556         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
1557         Don't define if [__SYSCALL_WORDSIZE != 32].
1558         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
1559         New macro.
1561 2012-05-21  Bruno Haible  <bruno@clisp.org>
1562             Andreas Jaeger  <aj@suse.de>
1564         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
1565         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
1566         inptr and inend for must_buffer_ch.
1567         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
1568         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
1569         * stdio-common/Makefile (tests): Remove bug15.
1570         (bug15-ENV): Remove macro.
1571         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
1572         anymore.
1574 2012-05-19  Andreas Jaeger  <aj@suse.de>
1575             Roland McGrath  <roland@hack.frob.com>
1577         * manual/contrib.texi: Completely rewritten. It contains now an
1578         alphabetical list of contributors and their contributions.
1580 2012-05-21  Richard Henderson  <rth@twiddle.net>
1582         * misc/getauxval.c (__getauxval): Use unsigned long int.
1583         * misc/sys/auxv.h: Include <sys/cdefs.h>.
1584         (getauxval): Use unsigned long int.
1586 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1588         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1590 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1592         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
1593         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
1594         __alignof__ (long double).
1596 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1598         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1600 2012-05-20  Richard Henderson  <rth@twiddle.net>
1602         * misc/getauxval.c: New file.
1603         * misc/sys/auxv.h: New file.
1604         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
1605         (routines): Add getauxval.
1606         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
1607         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
1608         * elf/dl-sysdep.c (_dl_auxv): Remove.
1609         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
1610         * elf/dl-support.c (_dl_auxv): New variable.
1611         (_dl_aux_init): Initialize it.
1612         * manual/startup.texi (Auxiliary Vector): New node.
1613         * sysdeps/generic/bits/hwcap.h: New file.
1614         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
1615         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
1616         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
1617         * sysdeps/sparc/sysdep.h: ... here.  Include it.
1618         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
1619         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
1620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1621         Update.
1622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
1623         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
1624         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
1625         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
1626         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1627         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1628         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
1629         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
1631 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1633         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1635 2012-05-19  David S. Miller  <davem@davemloft.net>
1637         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1639 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1641         [BZ #14123]
1642         * math/s_ccosh.c: Include <float.h>
1643         (__ccosh): Avoid internal overflow calculating sinh and cosh
1644         values before multiplying by sin and cos values.
1645         * math/s_ccoshf.c: Likewise.
1646         * math/s_ccoshl.c: Likewise.
1647         * math/s_csin.c: Likewise.
1648         * math/s_csinf.c: Likewise.
1649         * math/s_csinl.c: Likewise.
1650         * math/s_csinh.c: Likewise.
1651         * math/s_csinhf.c: Likewise.
1652         * math/s_csinhl.c: Likewise.
1653         * math/libm-test.inc (ccos_test): Add more tests.
1654         (ccosh_test): Likewise.
1655         (csin_test): Likewise.
1656         (csinh_test): Likewise.
1657         * sysdeps/i386/fpu/libm-test-ulps: Update.
1658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1660 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1662         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
1663         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1665         * sysdeps/x86_64/x32/_itoa.h: Add comment.
1667 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1669         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
1670         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
1671         * sysdeps/powerpc/soft-fp/Versions: Likewise.
1672         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
1673         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
1674         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
1675         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
1676         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
1677         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
1678         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
1679         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
1680         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
1681         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
1682         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
1683         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
1684         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
1685         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
1686         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
1687         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
1688         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
1689         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
1690         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
1691         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
1692         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
1693         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
1694         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
1695         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
1696         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
1697         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
1698         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
1699         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
1701 2012-05-18  Andreas Jaeger  <aj@suse.de>
1703         * csu/.gitignore: Delete.
1705 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1707         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
1708         (timex): Use __syscall_slong_t.
1710 2012-05-18  Andreas Jaeger  <aj@suse.de>
1711             Carlos O'Donell  <carlos_odonell@mentor.com>
1713         * manual/install.texi (Configuring and compiling): Update
1714         description about files modified in the source directory.
1715         * INSTALL: Regenerated.
1717 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1719         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
1720         value.  Use "or" to set return value to -1.
1721         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
1722         negate return value.
1724 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1726         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
1727         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
1728         failure if the compiler has Graphite support disabled.
1729         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
1730         Likewise.
1731         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
1732         CFLAGS-memmove.c): Likewise.
1733         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
1734         Likewise.
1736 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1738         * sysdeps/x86_64/x32/_itoa.h: New file.
1740         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
1741         getdents system call only if kernel and user dirents have the
1742         same d_ino and d_off.
1744         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1745         LLONG_MAX != LONG_MAX.
1746         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1747         (_fitoa_word): Likewise.
1749         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
1750         years.
1751         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
1752         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
1753         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
1755         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
1756         include <bits/wordsize.h>.  Check __x86_64__ instead of
1757         __WORDSIZE.
1758         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
1759         if __x86_64__ is defined.  Use anonymous union on fpstate.
1761         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
1762         anonymous union.
1764 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
1766         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
1767         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
1768         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
1769         Refer to _rtld_local_ro instead of _rtld_global_ro.
1770         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
1771         Likewise.
1772         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
1773         Likewise.
1774         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
1775         Likewise.
1776         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
1777         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
1778         of _rtld_global, and rtld_progname instead of _dl_argv[0].
1780         * sysdeps/powerpc/powerpc32/dl-machine.c
1781         (__elf_machine_runtime_setup) [PROF]: Don't reference
1782         _dl_prof_resolve.
1784 2012-05-18  Andreas Jaeger  <aj@suse.de>
1786         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
1787         function only available for GCCs before 3.4 since GCC 3.4
1788         introduced a builtin.
1789         (lrint): Likewise.
1790         (llrintf): Likewise.
1791         (llrint): Likewise.
1792         (fmaxf): Likewise.
1793         (fmax): Likewise.
1794         (fminf): Likewise.
1795         (fmin): Likewise.
1796         (rint): Likewise.
1797         (rintf): Likewise.
1798         (nearbyint): Likewise.
1799         (nearbyintf): Likewise.
1800         (ceil): Likewise.
1801         (ceilf): Likewise.
1802         (floor): Likewise.
1803         (floorf): Likewise.
1805 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1807         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
1808         on both fields and cast pointer to __syscall_ulong_t.
1810         * bits/types.h (__fsword_t): New type.
1811         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
1812         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
1813         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1814         (__FSWORD_T_TYPE): Likewise.
1815         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1816         (__FSWORD_T_TYPE): Likewise.
1817         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1818         (__FSWORD_T_TYPE): Likewise.
1819         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
1820         (__FSWORD_T_TYPE): Likewise.
1821         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
1822         __SWORD_TYPE with __fsword_t.
1823         (statfs64): Likewise.
1825 2012-05-17  David S. Miller  <davem@davemloft.net>
1827         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
1829 2012-05-17  Andreas Jaeger  <aj@suse.de>
1831         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
1832         warning.
1834 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1836         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
1838 2012-05-17  Andreas Jaeger  <aj@suse.de>
1840         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
1841         when it is used.
1843 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1845         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
1847 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1849         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
1850         * sysdeps/x86_64/tst-mallocalign1.c: New file.
1852 2012-05-17  Andreas Jaeger  <aj@suse.de>
1853             Carlos O'Donell  <carlos_odonell@mentor.com>
1855         [BZ #14059]
1856         * sysdeps/x86_64/multiarch/init-arch.h
1857         (bit_YMM_Usable): Rename to...
1858         (bit_AVX_Usable): ... this.
1859         (bit_FMA4_Usable): New macro.
1860         (bit_XMM_state): New macro.
1861         (bit_YMM_state): New macro.
1862         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
1863         [__ASSEMBLER__] (index_AVX_Usable): ... this.
1864         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
1865         (CPUID_OSXSAVE): New macro.
1866         (CPUID_AVX): New macro.
1867         (CPUID_FMA4): New macro.
1868         (index_YMM_Usable): Rename to...
1869         (index_AVX_Usable): ... this.
1870         (HAS_AVX): Use HAS_ARCH_FEATURE.
1871         (HAS_FMA4): Likewise.
1872         (HAS_YMM_USABLE): Remove.
1873         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1874         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
1875         are present.
1876         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
1877         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
1878         * sysdeps/x86_64/multiarch/Makefile: Likewise.
1879         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
1880         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
1882 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1884         * math/libm-test.c: Support platforms without multiple rounding modes.
1885         * math/bug-nextafter.c: Support platforms without FP exceptions.
1886         * math/bug-nexttoward.c: Likewise.
1887         * math/test-fenv.c: Likewise.
1888         * math/test-misc.c: Likewise.
1889         * stdlib/bug-getcontext.c: Likewise.
1891 2012-05-17  Andreas Jaeger  <aj@suse.de>
1893         * manual/examples/search.c (critter_cmp): Change signature to
1894         avoid warnings.
1895         * manual/string.texi (Collation Functions): Likewise.
1897 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1899         * bits/types.h: Fold copyright years.
1900         * bits/typesizes.h: Likewise.
1901         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
1902         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1903         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
1904         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
1905         * time/time.h: Likewise.
1907 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
1909         [BZ #208]
1910         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
1911         in instead of returning them.  Return void.
1912         (__libc_mallinfo): Accumulate over all arenas.
1913         (__malloc_stats): Adjust for change in int_mallinfo interface.
1915 2012-05-16  Roland McGrath  <roland@hack.frob.com>
1917         [BZ #10375]
1918         * configure.in (NM): Add AC_CHECK_TOOL for it.
1919         (libc_extra_cflags): New substituted variable.
1920         Check for -fstack-protector being used implicitly.
1921         * configure: Regenerated.
1922         * config.make.in (config-extra-cflags): New variable,
1923         gets @libc_extra_cflags@.
1924         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
1926         [BZ #10375]
1927         * configure.in: Check for _FORTIFY_SOURCE being predefined.
1928         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
1929         * configure: Regenerated.
1930         * config.make.in (CPPUNDEFS): New substituted variable.
1931         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
1932         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
1933         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
1935 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1937         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
1938         (mq_attr): Use __syscall_slong_t.
1940 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1942         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
1943         Check __x86_64__ instead of __WORDSIZE.
1944         (_STAT_VER_LINUX): Likewise.
1945         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
1946         __syscall_ulong_t and __syscall_slong_t.
1947         (stat64): Likewise.
1949 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1951         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
1953 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1955         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
1957 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1959         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
1960         __syscall_ulong_t.
1962         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
1963         include <bits/wordsize.h>.  Check __x86_64__ instead of
1964         __WORDSIZE.
1965         (greg_t): Use "__extension__ long long int" if __x86_64__ is
1966         defined.
1967         (mcontext_t): Replace "unsigned long" with "unsigned long long".
1969         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
1970         include <bits/wordsize.h>.  Check __x86_64__ instead of
1971         __WORDSIZE.
1972         (user_regs_struct): Use "__extension__ unsigned long long"
1973         instead of "unsigned long" if __x86_64__ is defined.
1974         (user): Likewise.  Pad after pointer field if __ILP32__ is
1975         defined.
1977 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
1979         * configure.in (makeinfo): Require version 4.5 or later.  Allow
1980         versions 5 to 9.
1981         * configure: Regenerated.
1982         * manual/install.texi (texinfo): Increase version requirement to
1983         4.5 or later.
1984         * INSTALL: Regenerated.
1986         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
1988 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1990         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
1992         * sysdeps/x86_64/x32/ffs.c: New file.
1994         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
1995         __syscall_ulong_t.
1996         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
1997         defined.  Use __syscall_ulong_t.
1998         (shminfo): Use __syscall_ulong_t.
1999         (shm_info): Likewise.
2001         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
2002         __syscall_ulong_t.
2004         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
2005         <bits/wordsize.h>.
2006         (msgqnum_t): Use __syscall_ulong_t.
2007         (msglen_t): Likewise.
2008         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
2009         __syscall_ulong_t.
2011         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
2012         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2014         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
2016         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
2017         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
2019         * sysvipc/sys/msg.h (msgbuf): Replace long int with
2020         __syscall_slong_t.
2022         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
2023         include <bits/wordsize.h>.  Check __x86_64__ instead of
2024         __WORDSIZE.
2026         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
2027         "unsigned long long int" if __x86_64__ is defined.
2028         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
2030         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
2031         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
2032         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
2034         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
2035         <stdint.h>.
2036         (GET_PC): Cast to uintptr_t first.
2037         (GET_FRAME): Likewise.
2038         (GET_STACK): Likewise.
2040         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
2041         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
2042         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
2043         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
2044         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
2045         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
2046         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
2047         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
2048         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2049         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
2050         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
2051         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
2052         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2053         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
2054         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
2055         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
2056         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
2057         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
2058         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
2059         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
2060         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
2061         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
2062         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
2063         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
2064         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
2065         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
2066         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
2067         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
2068         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
2070 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
2072         * Makerules (+depfiles): Also collect depfiles from .oS in
2073         $(extra-objs).
2074         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
2075         .oS, $(libnldbl-routines)).
2077         * Makerules (native-compile-mkdep-flags): Define.
2078         * sunrpc/Makefile (extra-objs): Add $(addprefix
2079         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
2080         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
2081         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
2082         calling $(make-target-directory).
2084 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2086         * bits/types.h (__snseconds_t): Removed.
2087         * time/time.h (struct timespec): Replace __snseconds_t with
2088         __syscall_slong_t.
2089         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
2090         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
2091         Likewise.
2092         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2093         (__SNSECONDS_T_TYPE): Likewise.
2094         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2095         (__SNSECONDS_T_TYPE): Likewise.
2096         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2097         (__SNSECONDS_T_TYPE): Likewise.
2099 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2101         * sysdeps/mach/hurd/bits/typesizes.h
2102         (__SYSCALL_SLONG_TYPE): New macro.
2103         (__SYSCALL_ULONG_TYPE): Likewise.
2105 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2107         * bits/types.h (__syscall_slong_t): New type.
2108         (__syscall_ulong_t): Likewise.
2110         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
2111         (__SYSCALL_ULONG_TYPE): Likewise.
2112         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2113         (__SYSCALL_SLONG_TYPE): Likewise.
2114         (__SYSCALL_ULONG_TYPE): Likewise.
2115         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2116         (__SYSCALL_SLONG_TYPE): Likewise.
2117         (__SYSCALL_ULONG_TYPE): Likewise.
2118         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2119         (__SYSCALL_SLONG_TYPE): Likewise.
2120         (__SYSCALL_ULONG_TYPE): Likewise.
2122 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2124         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
2125         Add sigaltstack-offsets.sym.
2126         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2127         <sigaltstack-offsets.h>.
2128         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
2129         longjmp_msg pointer.
2130         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
2131         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
2132         signal stack.
2133         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
2135 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2137         * elf/stackguard-macros.h: Remove file.
2138         * sysdeps/generic/stackguard-macros.h: New file.
2139         * sysdeps/i386/stackguard-macros.h: Likewise.
2140         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
2141         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
2142         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
2143         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
2144         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
2145         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
2146         * sysdeps/x86_64/stackguard-macros.h: Likewise.
2147         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
2148         <elf/stackguard-macros.h>.
2150         [BZ #14109]
2151         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
2152         __aligned__ in attribute.
2153         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
2154         (gregset_t): Likewise.
2156 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2158         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
2159         * sysdeps/x86_64/64/Implies-after: Here.  New file.
2160         * sysdeps/x86_64/x32/Implies-after: New file.
2162 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2164         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
2165         and access return value for _dl_profile_fixup.  Use R10_LP to
2166         load frame size.
2168 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2170         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
2172 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2174         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
2175         * sysdeps/x86_64/x32/sysdep.h: New file.
2177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2179         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
2180         * sysdeps/x86_64/setjmp.S: Likewise.
2182 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2184         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
2185         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
2186         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
2187         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
2188         remove unused global constant.
2190 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
2192         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
2193         include of <not-cancel.h>.
2195 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2197         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
2199 2012-05-15  Jeff Law  <law@redhat.com>
2200             Andreas Jaeger  <aj@suse.de>
2202         [BZ #13594]
2203         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
2204         out from...
2205         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
2206         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
2207         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
2208         code changing __hst_map_handle.map.
2210 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2212         * configure.in (sysnames): Look for Implies-before and Implies-after
2213         files.
2214         * configure: Regenerated.
2216 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2218         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
2219         8-byte data alignment with LP_SIZE alignment.
2221 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2223         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
2224         into R10_LP.
2226 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2228         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
2230 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2232         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
2233         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
2234         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
2235         Likewise.
2236         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2238 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2240         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
2241         (stackinfo_sub_sp): Likewise.
2243 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2245         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
2246         RAX_LP.
2248 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2250         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
2251         into R*_LP.
2253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2255         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
2256         sizes into R*_LP.
2258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2260         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
2262 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2264         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
2265         into R11_LP and load __x86_64_shared_cache_size_half into
2266         R8_LP.
2268 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2270         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
2271         R8_LP.
2273 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2275         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
2276         logb for POWER7.
2277         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
2278         logbf for POWER7.
2279         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
2280         logbl for POWER7.
2281         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
2282         powerpc32/power7/fpu/s_logb.c via #include.
2283         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
2284         powerpc32/power7/fpu/s_logbf.c via #include.
2285         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
2286         powerpc32/power7/fpu/s_logbl.c via #include.
2288 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2290         * README.libm: Remove file.
2292 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2294         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
2295         count for x32.  Use R*_LP and omit operand-size suffix.
2297 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2299         * shlib-versions: Move x86_64-.*-linux.* entries to ...
2300         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
2301         * sysdeps/x86_64/x32/shlib-versions: New file.
2303 2012-05-14  Roland McGrath  <roland@hack.frob.com>
2305         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
2306         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
2307         Use _dl_fatal_printf instead.
2309 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2311         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
2312         set if not set by the user.  Do not allow for being unset.
2313         * sysdeps/unix/sysv/linux/configure: Regenerated.
2315 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2317         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
2318         the `q' suffix from lea and replace .quad with ASM_ADDR.
2320 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2322         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
2323         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
2324         instead of $17.
2325         (PTR_DEMANGLE): Likewise.
2327 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2329         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
2330         (LP_OP): Likewise.
2331         (ASM_ADDR): Likewise.
2332         (RAX_LP): Likewise.
2333         (RBP_LP): Likewise.
2334         (RBX_LP): Likewise.
2335         (RCX_LP): Likewise.
2336         (RDI_LP): Likewise.
2337         (RSI_LP): Likewise.
2338         (RSP_LP): Likewise.
2339         (R8_LP): Likewise.
2340         (R9_LP): Likewise.
2341         (R10_LP): Likewise.
2342         (R10_LP): Likewise.
2343         (R11_LP): Likewise.
2344         (R12_LP): Likewise.
2345         (R13_LP): Likewise.
2346         (R14_LP): Likewise.
2347         (R15_LP): Likewise.
2349 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2351         * sysdeps/x86_64/x32/dl-machine.h: New file.
2353 2012-05-14  Andreas Jaeger  <aj@suse.de>
2355         * manual/Makefile (subdir): Remove export of subdir.
2356         (all): Remove target.
2357         (.PHONY): Remove all from list.
2358         (mkinstalldirs): Remove.
2359         (.PHONY): Remove installdirs from list.
2360         ($(inst_infodir)/libc.info): Use make-target-directory.
2361         (installdirs): Remove.
2362         (subdir_%): Remove.
2363         (glibc-targets): Remove.
2364         (lib): Remove.
2365         (stubs): Remove.
2366         ($(objpfx)stubs ../po/manual.pot): Remove.
2367         ($(objpfx)stamp%): Remove.
2368         (make-target-directory): Remove.
2369         (subdir_install): Remove.
2370         (routines): Remove.
2371         (aux): Remove.
2372         (sources): Remove.
2373         (objects): Remove.
2374         (headers): Remove.
2376         [BZ #13750]
2377         * manual/.gitignore: Remove, it's not needed anymore.
2378         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
2379         all files in it.
2380         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
2381         directory.
2382         (texis): Renamed to $(objpfx)texis.
2383         (texis-path): New, contains path to generated files.
2384         (chapters.%): Use texis-path for complete path, add extra argument
2385         libc-texinfo.sh.
2386         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
2387         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
2388         (summary,texi, stamp-summary): Use complete path of
2389         files. Generate files in build dir.
2390         (dir-add.texi): Build in build dir.
2391         (libm-err.texi,stamp-libm-err): Likewise.
2392         (version.texi, stamp-version): Likewise.
2393         (.%c.texi): Likewise.
2394         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
2395         (mostlyclean): Remove target.
2396         (realclean): Remove target.
2397         (generated): Add new variable with contents from mostlyclean and
2398         realclean, remove entries duplicated in common-mostlyclean, add
2399         stamp-libm-err and stamp-version.
2400         (generated-dirs): Add libc directory.
2401         ($(inst_infodir)/libc.info): Install files from build dir.
2403         * manual/install.texi (Configuring and compiling): Adjust since
2404         the info files are not part of the tar ball anymore.
2406 2012-05-14  Andreas Jaeger  <aj@suse.de>
2408         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
2409         variable.
2411 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2413         [BZ #13717]
2414         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2415         to 2.2.0 where earlier.
2416         * sysdeps/unix/sysv/linux/configure: Regenerated.
2417         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
2418         Remove conditional code.
2419         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
2420         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
2421         Remove conditional code.
2422         [!__NR_lchown]: Likewise.
2423         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2424         [__NR_lchown]: Likewise.
2425         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
2426         comment referencing __ASSUME_LCHOWN_SYSCALL.
2427         * sysdeps/unix/sysv/linux/i386/sigaction.c
2428         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2429         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2430         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
2431         Remove conditional code.
2432         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
2433         (__protocol_available): Remove #if 0 code.
2434         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
2435         conditional code.
2436         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
2437         * sysdeps/unix/sysv/linux/kernel-features.h
2438         (__ASSUME_GETCWD_SYSCALL): Don't define.
2439         (__ASSUME_REALTIME_SIGNALS): Likewise.
2440         (__ASSUME_PREAD_SYSCALL): Likewise.
2441         (__ASSUME_PWRITE_SYSCALL): Likewise.
2442         (__ASSUME_POLL_SYSCALL): Likewise.
2443         (__ASSUME_LCHOWN_SYSCALL): Likewise.
2444         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
2445         non-SPARC.
2446         (__ASSUME_SIOCGIFNAME): Don't define.
2447         (__ASSUME_MSG_NOSIGNAL): Likewise.
2448         (__ASSUME_SENDFILE): Define unconditionally.
2449         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
2450         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
2451         conditional code.
2452         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
2453         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
2454         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2455         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2456         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
2457         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2458         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2459         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
2460         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2461         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2462         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
2463         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2464         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
2466         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2467         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2468         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
2469         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2470         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2471         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
2472         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2473         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2474         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
2475         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2476         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
2478         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2479         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2480         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
2481         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2482         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2483         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
2484         Remove conditional code.
2485         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2486         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2487         Remove conditional code.
2488         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2489         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
2490         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
2491         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2492         Remove conditional code.
2493         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2494         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
2495         Remove conditional code.
2496         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2497         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
2498         Remove conditional code.
2499         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2500         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2501         Remove conditional code.
2502         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2503         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2504         Remove conditional code.
2505         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2506         * sysdeps/unix/sysv/linux/sh/pwrite64.c
2507         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2508         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2509         * sysdeps/unix/sysv/linux/sigaction.c
2510         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2511         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2512         * sysdeps/unix/sysv/linux/sigpending.c
2513         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2514         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2515         * sysdeps/unix/sysv/linux/sigprocmask.c
2516         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2517         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2518         * sysdeps/unix/sysv/linux/sigsuspend.c
2519         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2520         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2521         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2522         (__libc_missing_rt_sigs): Remove.
2523         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
2524         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
2525         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
2526         Remove conditional code.
2527         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
2528         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
2529         return 1.
2530         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
2531         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
2532         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
2533         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
2535 2012-05-14  Andreas Jaeger  <aj@suse.de>
2537         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
2538         it's not used in glibc.
2539         (__coshm1): Likewise.
2540         (__acosh1p): Likewise.
2541         (__sgn): Likewise.
2543         * manual/string.texi (Copying and Concatenation): Add missing
2544         variable in concat example.
2545         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
2547 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2549         [BZ #14103]
2550         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
2551         __builtin_clzl with __builtin_clzll.
2553 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2555         [BZ #14104]
2556         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
2557         libc_freeres_ptr.
2559 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2561         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
2562         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
2563         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
2564         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
2566 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
2568         * NEWS: Update ia64 info.
2570 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
2572         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
2573         used as bcopy.
2575 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2577         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
2578         * sysdeps/unix/syscalls.list (dup3): Likewise.
2579         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
2580         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
2582 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2584         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
2585         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
2587 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2589         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
2590         thread pointer.
2591         (TLS_IE): Use mov/add instead of movq/addq to load thread
2592         pointer.
2593         (TLS_GD_PREFIX): New.
2594         (TLS_GD): Use it.
2596 2012-05-11  David S. Miller  <davem@davemloft.net>
2598         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
2599         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
2600         (_FPU_SETCW): Likewise.
2602 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2604         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
2605         is 32-byte aligned.
2607 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
2609         [BZ #11837]
2610         * iconvdata/gb18030.c: Update tables.
2611         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
2612         characters specially.
2613         (BODY for TO_LOOP): Add encoding of missing ranges.
2615 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2617         [BZ #13673]
2618         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
2619         * sysdeps/mach/hurd/dup3.c: Likewise.
2620         * sysdeps/mach/hurd/readlinkat.c: Likewise.
2621         * sysdeps/powerpc/memmove.c:: Likewise.
2623 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2625         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
2626         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
2628 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2630         * elf/elf.h (R_X86_64_RELATIVE64): New.
2631         (R_X86_64_NUM): Updated.
2632         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2633         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
2634         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
2635         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
2636         tst-quad1pie tst-quad2pie
2637         (modules-names): Add tst-quadmod1 tst-quadmod2.
2638         ($(objpfx)tst-quad1): New dependency.
2639         ($(objpfx)tst-quad2): Likewise.
2640         ($(objpfx)tst-quad1pie): Likewise.
2641         ($(objpfx)tst-quad2pie): Likewise.
2642         * sysdeps/x86_64/tst-quad1.c: New file.
2643         * sysdeps/x86_64/tst-quad1pie.c: New file.
2644         * sysdeps/x86_64/tst-quad2.c: Likewise.
2645         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
2646         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
2647         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
2648         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
2649         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
2651 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2653         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
2654         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
2655         * streams/stropts.h (t_scalar_t): Define type.
2657         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
2658         (_PATH_PRESERVE): Set to "/var/lib".
2659         (_PATH_RWHODIR): Set to "/var/spool/rwho".
2661         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
2662         instead of int.
2664         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
2665         if __dir_mkfile succeeded.
2667         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
2668         checking for _hurd_dtablesize.  Unlock it right after having
2669         finished _hurd_dtable allocation.
2671 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2673         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
2674         * sysdeps/mach/hurd/configure: Regenerated.
2675         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
2676         special-casing to...
2677         * sysdeps/gnu/configure.in: ... this new file.
2678         * sysdeps/unix/sysv/linux/configure: Regenerated.
2679         * sysdeps/gnu/configure: New generated file.
2681         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
2682         for Linux: use nsec instead of usec, as well as:
2683         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
2684         members of type struct timespec.
2685         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
2686         New macros.
2687         (struct stat64): Likewise.
2688         (_STATBUF_ST_NSEC): New macro.
2689         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
2691         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2692         __strtoul_internal rather than strtoul.
2694 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2696         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
2697         and reject them.
2699 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2701         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
2702         which preserves existing values.
2703         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
2705 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2707         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
2708         TIMEOUT values.  Return EINVAL for NFDS values either negative or
2709         greater than FD_SETSIZE.
2711 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2713         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
2714         allocated, call __vm_protect to finish enabling the existing space, and
2715         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
2716         allocate the remainder.
2718 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2720         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
2721         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
2723 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2725         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
2726         sysdeps/mach/hurd/readlink.c.
2728         * posix/tst-sysconf.c (posix_options): Only use
2729         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
2730         _POSIX_SYNCHRONIZED_IO when they are defined
2731         * sysdeps/mach/hurd/bits/posix_opt.h:
2732         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
2733         (_XOPEN_REALTIME): Undefine macro.
2734         (_XOPEN_REALTIME_THREADS): Undefine macro.
2735         (_XOPEN_SHM): Undefine macro.
2736         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
2737         macro to -1.
2738         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
2739         macro to -1.
2740         (_POSIX_ASYNC_IO): Undefine macro.
2741         (_POSIX_PRIORITIZED_IO): Undefine macro.
2742         (_POSIX_SPIN_LOCKS): Define macro to -1.
2744         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
2745         SA_NODEFER, SA_RESETHAND.
2746         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
2747         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
2748         F_DUPFD_CLOEXEC.
2750 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2752         * elf/Makefile (pldd-modules): Define unconditionally.
2754 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2756         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
2758 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2760         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2761         Return ENOENT when name is empty.
2762         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
2764 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2766         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
2768         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
2770 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2772         Fix mlock in all cases except non-readable pages.
2773         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
2774         instead of VM_PROT_ALL as parameter to __vm_wire function.
2776         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
2777         (__mkdir): When path is `/', just fail with EEXIST.
2778         * sysdeps/mach/hurd/mkdirat.c: Likewise.
2780 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2782         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
2783         <sys/uio.h> (for writev).
2784         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
2785         and <sys/param.h> (for MIN).
2787 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2789         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
2790         REQUESTED_TIME.  Properly set the remaining time and return EINTR
2791         if interrupted.
2793 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2795         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
2796         Depend on against $(link-rpcuserlibs).
2798 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2800         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
2801         (__libc_stack_end): Do not use attribute_relro.
2802         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
2803         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
2804         to libthread-provided value.
2805         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
2806         attribute_relro.
2808 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2810         [BZ #3748]
2811         * bits/libc-lock.h (__libc_once_get): New macro.
2812         * sysdeps/mach/bits/libc-lock.h: Likewise.
2813         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
2814         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
2815         instead of using implementation details.
2817         * libio/fileops.c: Unconditionally include <kernel-features.h>.
2818         * libio/freopen.c: Likewise.
2819         * libio/freopen64.c: Likewise.
2820         * misc/syslog.c: Likewise.
2821         * nscd/connections.c: Likewise.
2822         * nscd/netgroupcache.c: Likewise.
2823         * sysdeps/posix/getcwd.c: Likewise.
2825 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2827         * math/w_ilogbf.c: Add #include <limits.h>.
2829 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2831         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
2832         path instead of returning without unlocking.
2834         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
2835         immediate-write ioctls.
2836         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
2838 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2840         * sysdeps/mach/hurd/i386/init-first.c (init): Use
2841         __builtin_frame_address instead of making assumptions about the
2842         location of the return address relative to DATA.  Force early load of
2843         the return address.
2844         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
2845         __builtin_frame_address.
2847         dup3 for GNU Hurd.
2848         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
2849         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
2850         implement dup3 and do some further code clean-ups.
2851         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
2852         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
2854 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2856         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
2858         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
2859         HURD_CRITICAL_END around holding _hurd_dtable_lock.
2860         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
2861         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
2862         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
2863         d->port.lock.
2865         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
2866         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
2867         when handler == SIG_ERR, not when handler != SIG_ERR.
2869 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2871         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
2872         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
2873         definitions.
2875         accept4 for GNU Hurd.
2876         * include/sys/socket.h (__libc_accept4): New prototype.
2877         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
2878         to implement __libc_accept4.
2879         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
2880         __libc_accept4.
2881         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
2883         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
2884         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
2885         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
2886         signal-defines.sym.
2888 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2890         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
2892 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2894         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
2895         assertion on O_CLOEXEC flag.
2896         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
2897         * hurd/intern-fd.c: Likewise.
2898         * hurd/port2fd.c: Likewise.
2900 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2902         [BZ #3906]
2903         * bits/in.h (IPV6_PKTINFO): Define new macro.
2904         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
2906 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2908         [BZ #13954]
2909         [BZ #13955]
2910         [BZ #13956]
2911         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
2912         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2913         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
2914         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2915         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2916         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2917         * math/libm-test.inc (logb_test) : Additional logb tests.
2919 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
2920             Andreas Jaeger  <aj@suse.de>
2922         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
2923         * configure: Regenerated.
2924         * config.h.in (LINK_OBSOLETE_RPC): New macro.
2925         * config.make.in (link-obsolete-rpc): New substituted variable.
2926         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
2927         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
2928         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2929         (shared-only-routines): Don't set it under [link-obsolete-rpc],
2930         so that libc.a contains the symbols.
2931         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2932         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
2933         * sunrpc/auth_none.c: Likewise.
2934         * sunrpc/auth_unix.c: Likewise.
2935         * sunrpc/authdes_prot.c: Likewise.
2936         * sunrpc/authuxprot.c: Likewise.
2937         * sunrpc/clnt_gen.c: Likewise.
2938         * sunrpc/clnt_perr.c: Likewise.
2939         * sunrpc/clnt_raw.c: Likewise.
2940         * sunrpc/clnt_simp.c: Likewise.
2941         * sunrpc/clnt_tcp.c: Likewise.
2942         * sunrpc/clnt_udp.c: Likewise.
2943         * sunrpc/clnt_unix.c: Likewise.
2944         * sunrpc/des_crypt.c: Likewise.
2945         * sunrpc/des_soft.c: Likewise.
2946         * sunrpc/get_myaddr.c: Likewise.
2947         * sunrpc/key_call.c: Likewise.
2948         * sunrpc/key_prot.c: Likewise.
2949         * sunrpc/netname.c: Likewise.
2950         * sunrpc/pm_getmaps.c: Likewise.
2951         * sunrpc/pm_getport.c: Likewise.
2952         * sunrpc/pmap_clnt.c: Likewise.
2953         * sunrpc/pmap_prot.c: Likewise.
2954         * sunrpc/pmap_prot2.c: Likewise.
2955         * sunrpc/pmap_rmt.c: Likewise.
2956         * sunrpc/publickey.c: Likewise.
2957         * sunrpc/rpc_cmsg.c: Likewise.
2958         * sunrpc/rpc_common.c: Likewise.
2959         * sunrpc/rpc_dtable.c: Likewise.
2960         * sunrpc/rpc_prot.c: Likewise.
2961         * sunrpc/rpc_thread.c: Likewise.
2962         * sunrpc/rtime.c: Likewise.
2963         * sunrpc/svc.c: Likewise.
2964         * sunrpc/svc_auth.c: Likewise.
2965         * sunrpc/svc_raw.c: Likewise.
2966         * sunrpc/svc_run.c: Likewise.
2967         * sunrpc/svc_tcp.c: Likewise.
2968         * sunrpc/svc_udp.c: Likewise.
2969         * sunrpc/svc_unix.c: Likewise.
2970         * sunrpc/svcauth_des.c: Likewise.
2971         * sunrpc/xcrypt.c: Likewise.
2972         * sunrpc/xdr.c: Likewise.
2973         * sunrpc/xdr_array.c: Likewise.
2974         * sunrpc/xdr_float.c: Likewise.
2975         * sunrpc/xdr_intXX_t.c: Likewise.
2976         * sunrpc/xdr_mem.c: Likewise.
2977         * sunrpc/xdr_rec.c: Likewise.
2978         * sunrpc/xdr_ref.c: Likewise.
2979         * sunrpc/xdr_sizeof.c: Likewise.
2980         * sunrpc/xdr_stdio.c: Likewise.
2982 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2984         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
2985         change.  Update copyright years.
2987 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
2989         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
2991 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
2992             Joseph Myers  <joseph@codesourcery.com>
2993             Paul Pluzhnikov  <ppluzhnikov@google.com>
2995         [BZ #14012]
2996         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
2997         requiring rpcgen.
2998         [cross-compiling] (extra-libs): Likewise.
2999         [cross-compiling] (extra-libs-others): Likewise.
3000         [cross-compiling] (librpcsvc-routines): Likewise.
3001         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
3002         [cross-compiling] (omit-deps): Likewise.
3003         (sunrpc-CPPFLAGS): New variable.
3004         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
3005         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
3006         (cross-rpcgen-objs): New variable.
3007         (extra-objs): Append $(cross-rpcgen-objs).
3008         ($(cross-rpcgen-objs)): New rule.
3009         ($(objpfx)cross-rpcgen): Likewise.
3010         (rpcgen-cmd): Define to use $(built-program-file).  Expand
3011         comment.
3012         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
3013         ($(objpfx)x%.stmp): Likewise.
3014         * sunrpc/proto.h [IS_IN_build] (_): Define.
3015         [IS_IN_build] (_libc_intl_domainname): Likewise.
3017 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3019         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
3020         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
3021         and R_X86_64_TPOFF64.
3023 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
3025         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
3026         sysdeps/unix/sysv/syscalls.list.
3027         (stime): Likewise.
3028         (utime): Likewise.
3029         * sysdeps/unix/sysv/syscalls.list: Remove file.
3031 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3033         [BZ #3440]
3034         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
3035         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
3036         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
3037         (__LC_IDENTIFICATION): Make these macros useful in #if
3038         expressions, as required by C99.
3040 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
3042         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
3043         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
3044         after this.
3046 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3048         * stdlib/longlong.h: Updated from GCC.
3050 2012-05-09  Andreas Jaeger  <aj@suse.de>
3052         * nscd/nscd.c (run_modes): Make named enum, reorder so that
3053         default is first entry.
3054         (run_mode): Set type.
3055         (main): Remove informal message about syslog.
3056         (options): Fix typo.
3058         [BZ #14053]
3059         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
3060         to asm.
3061         (lrint): Likewise.
3062         (llrintf): Likewise.
3063         (llrint): Likewise.
3064         (rint): Likewise.
3065         (rintf): Likewise.
3066         (nearbyint): Likewise.
3067         (nearbyintf): Likewise.
3069 2012-05-09  Andreas Jaeger  <aj@suse.de>
3070             Pedro Alves  <palves@redhat.com>
3072         * nscd/nscd.c (run_mode): Use enum.
3073         (main): Cleanup coding style issue.
3075 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
3076             Andreas Jaeger  <aj@suse.de>
3078         * nscd/nscd.c (go_background): Replaced with...
3079         (run_mode): ... this.
3080         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
3081         (options): Add -F --foreground.
3082         (main): Implement it.
3083         (parse_opt): Parse it.
3085 2012-05-09  Andreas Jaeger  <aj@suse.de>
3087         [BZ #14083]
3088         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
3089         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
3090         -Wconversion warning.
3091         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
3092         Likewise.
3094 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
3096         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
3097         == 0.
3098         (LC_ALL): Use macro-int-constant.
3099         (LC_COLLATE): Likewise.
3100         (LC_CTYPE): Likewise.
3101         (LC_MESSAGES): Likewise.
3102         (LC_MONETARY): Likewise.
3103         (LC_NUMERIC): Likewise.
3104         (LC_TIME): Likewise.
3105         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
3106         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3107         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3108         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
3109         Specify type.
3110         [C99-based standards] (float_t): Expect type.
3111         [C99-based standards] (double_t): Expect type.
3112         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
3113         type.
3114         [C99-based standards] (HUGE_VALL): Likewise.
3115         [C99-based standards] (INFINITY): Likewise.
3116         [C99-based standards] (NAN): Likewise.
3117         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
3118         [C99-based standards] (FP_NAN): Likewise.
3119         [C99-based standards] (FP_NORMAL): Likewise.
3120         [C99-based standards] (FP_SUBNORMAL): Likewise.
3121         [C99-based standards] (FP_ZERO): Likewise.
3122         [C99-based standards] (FP_FAST_FMA): Use
3123         optional-macro-int-constant.  Specify type.  Require == 1.
3124         [C99-based standards] (FP_FAST_FMAF): Likewise.
3125         [C99-based standards] (FP_FAST_FMAL): Likewise.
3126         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
3127         [C99-based standards] (FP_ILOGBNAN): Likewise.
3128         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
3129         Specify type.
3130         [C99-based standards] (MATH_ERREXCEPT): Likewise.
3131         [C99-based standards] (math_errhandling): Specify type.
3132         [ISO99 || ISO11] (signgam): Do not allow.
3133         [non-C99-based standards] (copysignf): Do not allow.
3134         [non-C99-based standards] (exp2f): Likewise.
3135         [non-C99-based standards] (log2f): Likewise.
3136         [non-C99-based standards] (modff): Allow.
3137         [non-C99-based standards] (erff): Do not allow.
3138         [non-C99-based standards] (erfcf): Likewise.
3139         [non-C99-based standards] (gammaf): Likewise.
3140         [non-C99-based standards] (hypotf): Likewise.
3141         [non-C99-based standards] (j0f): Likewise.
3142         [non-C99-based standards] (j1f): Likewise.
3143         [non-C99-based standards] (jnf): Likewise.
3144         [non-C99-based standards] (lgammaf): Likewise.
3145         [non-C99-based standards] (tgammaf): Likewise.
3146         [non-C99-based standards] (y0f): Likewise.
3147         [non-C99-based standards] (y1f): Likewise.
3148         [non-C99-based standards] (ynf): Likewise.
3149         [non-C99-based standards] (isnanf): Likewise.
3150         [non-C99-based standards] (acoshf): Likewise.
3151         [non-C99-based standards] (asinhf): Likewise.
3152         [non-C99-based standards] (atanhf): Likewise.
3153         [non-C99-based standards] (cbrtf): Likewise.
3154         [non-C99-based standards] (expm1f): Likewise.
3155         [non-C99-based standards] (ilogbf): Likewise.
3156         [non-C99-based standards] (log1pf): Likewise.
3157         [non-C99-based standards] (logbf): Likewise.
3158         [non-C99-based standards] (nextafterf): Likewise.
3159         [non-C99-based standards] (remainderf): Likewise.
3160         [non-C99-based standards] (rintf): Likewise.
3161         [non-C99-based standards] (scalbf): Likewise.
3162         [non-C99-based standards] (copysignl): Likewise.
3163         [non-C99-based standards] (exp2l): Likewise.
3164         [non-C99-based standards] (log2l): Likewise.
3165         [non-C99-based standards] (modfl): Allow.
3166         [non-C99-based standards] (erfl): Do not allow.
3167         [non-C99-based standards] (erfcl): Likewise.
3168         [non-C99-based standards] (gammal): Likewise.
3169         [non-C99-based standards] (hypotl): Likewise.
3170         [non-C99-based standards] (j0l): Likewise.
3171         [non-C99-based standards] (j1l): Likewise.
3172         [non-C99-based standards] (jnl): Likewise.
3173         [non-C99-based standards] (lgammal): Likewise.
3174         [non-C99-based standards] (tgammal): Likewise.
3175         [non-C99-based standards] (y0l): Likewise.
3176         [non-C99-based standards] (y1l): Likewise.
3177         [non-C99-based standards] (ynl): Likewise.
3178         [non-C99-based standards] (isnanl): Likewise.
3179         [non-C99-based standards] (acoshl): Likewise.
3180         [non-C99-based standards] (asinhl): Likewise.
3181         [non-C99-based standards] (atanhl): Likewise.
3182         [non-C99-based standards] (cbrtl): Likewise.
3183         [non-C99-based standards] (expm1l): Likewise.
3184         [non-C99-based standards] (ilogbl): Likewise.
3185         [non-C99-based standards] (log1pl): Likewise.
3186         [non-C99-based standards] (logbl): Likewise.
3187         [non-C99-based standards] (nextafterl): Likewise.
3188         [non-C99-based standards] (remainderl): Likewise.
3189         [non-C99-based standards] (rintl): Likewise.
3190         [non-C99-based standards] (scalbl): Likewise.
3191         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3192         [non-C99-based standards] (FP_*): Do not allow.
3193         [C99-based standards] (FP_*): Change to
3194         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3195         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3196         allow.
3197         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
3198         (SIG_ERR): Likewise.
3199         [X/Open-based standards] (SIG_HOLD): Likewise.
3200         (SIG_IGN): Likewise.
3201         (SIGABRT): Use macro-int-constant.  Specify type.  Require
3202         positive value.
3203         (SIGFPE): Likewise.
3204         (SIGILL): Likewise.
3205         (SIGINT): Likewise.
3206         (SIGSEGV): Likewise.
3207         (SIGTER): Likewise.
3208         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
3209         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
3210         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
3211         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
3212         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
3213         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
3214         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
3215         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
3216         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
3217         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
3218         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
3219         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
3220         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
3221         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
3222         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
3223         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
3224         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
3225         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
3226         [X/Open-based standards] (SIGTRAP): Likewise.
3227         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
3228         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
3229         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
3230         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
3231         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3232         allow.
3234 2012-05-08  Ian Wienand  <ianw@vmware.com>
3236         [BZ #14080]
3237         * time/tzset.c (__tzset_parse_tz): Update default rules for
3238         daylight time changes in the Energy Policy Act of 2005.
3240 2012-05-09  Andreas Jaeger  <aj@suse.de>
3242         [BZ #13983]
3243         * elf/ldconfig.c (parse_conf): Change string to make clear that
3244         ldconfig only issued a warning if ld.so.conf does not exist.
3246 2012-05-08  David S. Miller  <davem@davemloft.net>
3248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
3249         movxtod instead of popping the value on the stack.
3251         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3253 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
3255         * config.h.in: Add HAVE_ARM_PCS_VFP.
3257 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
3259         [BZ #13979]
3260         * include/features.h: Warn if user requests __FORTIFY_SOURCE
3261         checking but the checks are disabled for any reason.
3263 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3265         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
3266         and ELF64_R_TYPE with ELFW(R_TYPE).
3268 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
3270         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
3271         (ulimit): Likewise.
3273         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
3274         (settimeofday): Likewise.
3276 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
3278         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
3279         a struct th_u2 inside the union, and move tu_block/tu_code into
3280         a new th_u3 union of tu_block/tu_code inside of that.  Move
3281         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
3282         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
3283         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
3284         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
3285         (th_stuff): Change to th_u1.tu_stuff.
3286         (th_data): Define.
3287         (th_msg): Change to th_u1.th_u2.tu_data.
3289 2012-05-07  David S. Miller  <davem@davemloft.net>
3291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3293         [BZ #14074]
3294         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
3295         (SETUP_PIC_REG): Use it.
3296         (SETUP_PIC_REG_LEAF): Use it.
3298 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
3300         [BZ #13885]
3301         [BZ #13923]
3302         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3303         USE_AS_EXPM1L.
3304         (EXPL_FINITE): Likewise.
3305         (FLDLOG): Likewise.
3306         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3307         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3308         e_expl.S.
3309         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3310         USE_AS_EXPM1L.
3311         (EXPL_FINITE): Likewise.
3312         (FLDLOG): Likewise.
3313         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3314         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3315         e_expl.S.
3316         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
3317         test of -max_value argument for long double.
3318         * sysdeps/i386/fpu/libm-test-ulps: Update.
3319         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3321 2012-05-06  David S. Miller  <davem@davemloft.net>
3323         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
3324         quad soft-float symbols whose references which are compiler
3325         generated.
3326         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
3328 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
3330         [BZ #13884]
3331         [BZ #13914]
3332         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3333         USE_AS_EXP10L.
3334         (EXPL_FINITE): Likewise.
3335         (FLDLOG): Likewise.
3336         (c0): Likewise.
3337         (c1): Likewise.
3338         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3339         Adjust comments for base varying.
3340         (__expl_finite): Change alias to EXPL_FINITE.
3341         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
3342         e_expl.S.
3343         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
3344         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3345         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3346         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
3347         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3348         USE_AS_EXP10L.
3349         (EXPL_FINITE): Likewise.
3350         (FLDLOG): Likewise.
3351         (c0): Likewise.
3352         (c1): Likewise.
3353         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3354         Adjust comments for base varying.
3355         (__expl_finite): Change alias to EXPL_FINITE.
3356         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
3357         tests for bugs.
3358         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3360         [BZ #14064]
3361         * math/libm-test.inc (check_float_internal): Correct ulp
3362         calculation for subnormal expected results.
3364 2012-05-06  Andreas Jaeger  <aj@suse.de>
3366         * Makeconfig (+math-flags): New, set to -frounding-math.
3367         (+cflags): Add +math-flags so that all of glibc gets compiled with
3368         it.
3370         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
3372 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
3374         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
3375         Disable one test.
3377         [BZ #13787]
3378         [BZ #13922]
3379         [BZ #14036]
3380         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
3381         (__ieee754_expl): Allow for and saturate large arguments.
3382         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
3383         (u_threshold): Likewise.
3384         (__exp): Call __ieee754_exp before checking for overflow and
3385         underflow.
3386         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
3387         (u_threshold): Likewise.
3388         (__expf): Call __ieee754_expf before checking for overflow and
3389         underflow.
3390         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
3391         (u_threshold): Likewise.
3392         (__expl): Call __ieee754_expl before checking for overflow and
3393         underflow.
3394         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
3395         (__ieee754_expl): Allow for and saturate large arguments.
3396         * math/libm-test.inc (exp_test): Add another test.  Do not allow
3397         missing overflow exception on overflow.
3398         (expm1_test): Do not allow missing overflow exception on overflow.
3400         * sysdeps/i386/fpu/e_expl.c: Move to ...
3401         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
3402         rather than using inline asm.
3403         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
3404         * sysdeps/x86_64/fpu/e_expl.S: Copy from
3405         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
3407         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
3408         (nice): Likewise.
3409         (poll): Likewise.
3410         (signal): Likewise.
3411         (time): Likewise.
3412         (times): Likewise.
3414 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3416         * sysdeps/unix/syscalls.list (adjtime): Add entry from
3417         sysdeps/unix/common/syscalls.list.
3418         (fchmod): Likewise.
3419         (fchown): Likewise.
3420         (ftruncate): Likewise.
3421         (getrusage): Likewise.
3422         (gettimeofday): Likewise.
3423         (setpgid): Likewise.
3424         (setregid): Likewise.
3425         (setreuid): Likewise.
3426         (sigaction): Likewise.
3427         (truncate): Likewise.
3428         (vhangup): Likewise.
3429         * sysdeps/unix/common/syscalls.list: Remove file.
3430         * sysdeps/unix/bsd/Implies: Don't include unix/common.
3431         * sysdeps/unix/sysv/linux/Implies: Likewise.
3433 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3435         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
3436         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
3437         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
3438         Moved to ...
3439         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3440         Here.
3441         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
3442         to ...
3443         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
3444         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
3445         to ...
3446         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
3447         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
3448         to ...
3449         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
3450         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
3451         to ...
3452         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
3453         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
3454         to ...
3455         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
3456         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
3457         to ...
3458         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
3459         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
3460         to ...
3461         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3462         Here.
3463         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
3464         to ...
3465         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
3466         Here.
3467         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
3468         to ...
3469         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
3470         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
3471         Moved to ...
3472         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
3473         Here.
3474         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
3475         to ...
3476         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
3478 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3480         * sysdeps/unix/common/bits/dirent.h: Remove file.
3481         * sysdeps/unix/common/bits/fcntl.h: Likewise.
3483         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
3484         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
3485         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
3486         * sysdeps/unix/bsd/isatty.c: Likewise.
3487         * sysdeps/unix/bsd/tcdrain.c: Likewise.
3488         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
3489         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
3491 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3493         [BZ #13563]
3494         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
3495         long double comparison inaccuracies.
3496         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
3497         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3499 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
3501         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
3502         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
3504 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3506         [BZ #14049]
3507         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
3508         nonzero digits before rounding a hex value.
3509         * stdlib/tst-strtod.c (tests): Add another test.
3511 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3513         * sysdeps/s390/fpu/libm-test-ulps: Update.
3515 2012-05-03  Andreas Jaeger  <aj@suse.de>
3517         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
3518         does not get optimized out.
3519         (malloc_opt_barrier): New.
3521 2012-05-03  Andreas Jaeger  <aj@suse.de>
3522             Roland McGrath  <roland@hack.frob.com>
3524         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
3525         intermediate file deletion.
3526         (generated): Add .symlist files.
3528 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
3530         [BZ #13775]
3531         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
3532         Redirect under this condition.
3533         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3534         [__USE_GNU] (__dprintf_chk): Not under this condition.
3535         [__USE_GNU] (__vdprintf_chk): Likewise.
3536         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
3537         under this condition.
3538         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3539         [__USE_XOPEN2K8] (dprintf): Define under this condition.
3540         [__USE_XOPEN2K8] (vdprintf): Likewise.
3541         [__USE_GNU] (__dprintf_chk): Not under this condition.
3542         [__USE_GNU] (__vdprintf_chk): Likewise.
3543         [__USE_GNU] (dprintf): Likewise.
3544         [__USE_GNU] (vdprintf): Likewise.
3546 2012-05-03  Roland McGrath  <roland@hack.frob.com>
3548         * elf/Makefile (common-generated): Set this instead of generated for
3549         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
3550         $(all-built-dso)-derived lists.
3552 2012-05-03  Andreas Jaeger  <aj@suse.de>
3554         * sysdeps/i386/fpu/libm-test-ulps: Update.
3556         * FAQ: Removed.
3557         * FAQ.in: Likewise.
3558         * scripts/gen-FAQ.pl: Likewise.
3559         * manual/install.texi (Installation): Point to online location of
3560         FAQ.
3561         * Makefile (files-for-dist): Remove FAQ.
3562         (FAQ): Remove.
3564 2012-05-02  Allan McRae  <allan@archlinux.org>
3566         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
3567         (LDFLAGS-reldepmod5.so): Likewise.
3568         (LDFLAGS-reldep6mod1.so): Likewise.
3569         (LDFLAGS-reldep6mod4.so): Likewise.
3570         (LDFLAGS-reldep8mod3.so): Likewise.
3571         (LDFLAGS-unload4mod1.so): Likewise.
3572         (LDFLAGS-unload4mod2.so): Likewise.
3573         (LDFLAGS-tst-initorder): Likewise.
3574         (LDFLAGS-tst-initordera2.so): Likewise.
3575         (LDFLAGS-tst-initordera3.so): Likewise.
3576         (LDFLAGS-tst-initordera4.so): Likewise.
3577         (LDFLAGS-tst-initorderb2.so): Likewise.
3578         (LDFLAGS-noload): Likewise.
3579         (LDFLAGS-next): Likewise.
3580         (LDFLAGS-order2mod1.so): Likewise.
3581         (LDFLAGS-order2mod2.so): Likewise.
3582         (LDFLAGS-tst-initorder2): Likewise.
3583         (LDFLAGS-tst-initorder2a.so): Likewise.
3584         (LDFLAGS-tst-initorder2b.so): Likewise.
3585         (LDFLAGS-tst-initorder2c.so): Likewise.
3586         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
3588 2012-05-02  David S. Miller  <davem@davemloft.net>
3590         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3592 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
3594         [BZ #14055]
3595         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
3597 2012-05-02  Andreas Jaeger  <aj@suse.de>
3599         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
3600         since we manipulate rounding mode.
3601         (CPPFLAGS-test-idouble.c): Likewise.
3602         (CPPFLAGS-test-ifloat.c): Likewise.
3603         (CFLAGS-test-ldouble.c): Likewise.
3604         (CFLAGS-test-double.c): Likewise.
3605         (CFLAGS-test-float.c): Likewise.
3606         (CFLAGS-test-misc.c): Likewise.
3607         (CFLAGS-test-test-fenv.c): Likewise.
3609 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3611         [BZ #2550]
3612         [BZ #2570]
3613         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
3614         comparisons to determine direction to adjust input.
3616 2012-05-01  Roland McGrath  <roland@hack.frob.com>
3618         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
3619         output to the target.
3621         * scripts/localplt.awk: New file.
3622         * elf/Makefile ($(objpfx)check-localplt): Target removed.
3623         (check-localplt-CFLAGS): Variable removed.
3624         ($(all-built-dso:=.jmprel)): New static pattern rule.
3625         (generated): Add those targets.
3626         (localplt-built-dso): New variable.
3627         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
3629         * elf/check-localplt.c: File removed.
3631         * scripts/check-execstack.awk: New file.
3632         * elf/Makefile ($(objpfx)check-execstack): Target removed.
3633         (check-execstack-CFLAGS): Variable removed.
3634         ($(objpfx)check-execstack.h): Target removed.
3635         ($(objpfx)execstack-default): New target.
3636         (generated): Add that instead of check-execstack.h.
3637         ($(all-built-dso:=.phdr)): New static pattern rule.
3638         (generated): Add those targets.
3639         * elf/check-execstack.c: File removed.
3641         * scripts/check-textrel.awk: New file.
3642         * elf/Makefile ($(objpfx)check-textrel): Target removed.
3643         (check-textrel-CFLAGS): Variable removed.
3644         (all-built-dso): Use := to define.o
3645         ($(all-built-dso:=.dyn)): New static pattern rule.
3646         (generated): Add those targets.
3647         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
3648         * config.make.in (READELF): New substituted variable.
3649         * elf/check-textrel.c: File removed.
3651 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
3653         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3654         allow.
3655         * conform/data/ctype.h-data [C99-based standards] (isblank):
3656         Expect function.
3657         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
3658         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
3659         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3660         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
3661         Specify type.  Require positive value.
3662         (EILSEQ): Likewise.
3663         (ERANGE): Likewise.
3664         [ISO || POSIX] (EILSEQ): Do not expect.
3665         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
3666         Specify type.  Require positive value.
3667         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
3668         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
3669         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
3670         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
3671         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
3672         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
3673         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
3674         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
3675         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
3676         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
3677         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
3678         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
3679         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
3680         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
3681         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
3682         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
3683         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
3684         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
3685         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
3686         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
3687         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
3688         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
3689         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
3690         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
3691         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
3692         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
3693         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
3694         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
3695         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
3696         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
3697         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
3698         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
3699         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
3700         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
3701         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
3702         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
3703         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
3704         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
3705         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
3706         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
3707         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
3708         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
3709         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
3710         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
3711         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
3712         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
3713         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
3714         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
3715         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
3716         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
3717         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
3718         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
3719         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
3720         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
3721         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
3722         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
3723         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
3724         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
3725         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
3726         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
3727         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
3728         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
3729         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
3730         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
3731         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
3732         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
3733         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
3734         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
3735         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
3736         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
3737         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
3738         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
3739         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
3740         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
3741         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
3742         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
3743         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
3744         Require >= 2.
3745         (FLT_ROUNDS): Expect as macro, not constant.
3746         (FLT_MANT_DIG): Use macro-int-constant.
3747         (DBL_MANT_DIG): Likewise.
3748         (LDBL_MANT_DIG): Likewise.
3749         (FLT_DIG): Likewise.
3750         (DBL_DIG): Likewise.
3751         (LDBL_DIG): Likewise.
3752         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
3753         (DBL_MIN_EXP): Likewise.
3754         (LDBL_MIN_EXP): Likewise.
3755         (FLT_MAX_EXP): Use macro-int-constant.
3756         (DBL_MAX_EXP): Likewise.
3757         (LDBL_MAX_EXP): Likewise.
3758         (FLT_MAX_10_EXP): Likewise.
3759         (DBL_MAX_10_EXP): Likewise.
3760         (LDBL_MAX_10_EXP): Likewise.
3761         (FLT_MAX): Use macro-constant.
3762         (DBL_MAX): Likewise.
3763         (LDBL_MAX): Likewise.
3764         (FLT_EPSILON): Use macro-constant.  Give upper bound.
3765         (DBL_EPSILON): Likewise.
3766         (LDBL_EPSILON): Likewise.
3767         (FLT_MIN): Likewise.
3768         (DBL_MIN): Likewise.
3769         (LDBL_MIN): Likewise.
3770         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
3771         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
3772         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
3773         [ISO11] (FLT_HAS_SUBNORM): Likewise.
3774         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
3775         [ISO11] (DBL_DECIMAL_DIG): Likewise.
3776         [ISO11] (FLT_DECIMAL_DIG): Likewise.
3777         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
3778         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
3779         [ISO11] (FLT_TRUE_MIN): Likewise.
3780         [ISO11] (LDBL_TRUE_MIN): Likewise.
3781         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3782         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
3783         (SCHAR_MIN): Use macro-int-constant.  Specify type.
3784         (SCHAR_MAX): Likewise.
3785         (UCHAR_MAX): Likewise.
3786         (CHAR_MIN): Likewise.
3787         (CHAR_MAX): Likewise.
3788         (MB_LEN_MAX): Use macro-int-constant.
3789         (SHRT_MIN): Use macro-int-constant.  Specify type.
3790         (SHRT_MAX): Likewise.
3791         (USHRT_MAX): Likewise.
3792         (INT_MAX): Likewise.
3793         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
3794         bound negative.
3795         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3796         bound with "U".
3797         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3798         bound with "L".
3799         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
3800         bound negative.  Suffix upper bound with "L".
3801         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3802         bound with "UL".
3803         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
3804         Specify type.
3805         [C99-based standards] (LLONG_MAX): Likewise.
3806         [C99-based standards] (ULLONG_MAX): Likewise.
3807         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
3808         == 0.
3809         [ISO11] (max_align_t): Require type.
3810         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3812         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
3813         from $CFLAGS, without defining away __attribute__ calls.
3814         (checknamespace): Use $CFLAGS_namespace.
3816         * conform/conformtest.pl (@keywords): Only include C99 keywords
3817         for standards based on C99 or C11.
3819         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
3820         Disable tests.
3821         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
3822         UNIX98]: Likewise.
3824         * conform/conformtest.pl: Handle "macro-int-constant" and test for
3825         usability of symbols in #if.
3827         * conform/conformtest.pl: If macro or constant types start
3828         "promoted:", expect the symbol to be of the following type
3829         promoted by the integer promotions.
3831         * conform/conformtest.pl: Parse all "constant" and "macro" lines
3832         in one place.  Also handle "macro-constant".
3834         * conform/conformtest.pl: Only accept expected macro values with
3835         "==".  Parse all "macro" lines in one place.
3836         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
3838         * conform/conformtest.pl: Handle braced types on "constant" lines
3839         instead of handling "typed-constant".
3840         * conform/data/signal.h-data: Use "constant" instead of
3841         "typed-constant".
3843         * conform/conformtest.pl: Handle "optional-" at start of lines in
3844         one place rather than duplicating several cases.  Handle each
3845         format of "macro" line with initial "optional-".
3847         * conform/conformtest.pl: Only accept expected constant or
3848         optional-constant values with "==".  Parse all "constant" lines in
3849         one place.  Parse all "optional-constant" lines in one place.
3850         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
3851         * conform/data/fmtmsg.h-data: Likewise.
3852         * conform/data/netinet/in.h-data: Likewise.
3853         * conform/data/tar.h-data: Likewise.
3854         * conform/data/limits.h-data: Use "==" form on "constant" and
3855         "optional-constant" lines.
3857         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
3858         Use -std=c99 for XOPEN2K.
3859         (@knownproblems): Remove.
3860         (newtoken): Don't check %isknown.
3862         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
3863         Do not expect macro.
3864         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
3865         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
3866         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
3867         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
3868         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
3869         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
3870         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
3871         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
3872         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
3873         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
3874         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
3875         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
3876         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
3877         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
3878         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
3879         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
3880         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
3881         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
3882         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
3883         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
3884         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
3885         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
3886         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
3887         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
3888         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
3889         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
3890         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
3891         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
3892         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
3893         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
3894         [XPG3] (acosh): Likewise.
3895         [XPG3] (asinh): Likewise.
3896         [XPG3] (atanh): Likewise.
3897         [XPG3] (cbrt): Likewise.
3898         [XPG3] (expm1): Likewise.
3899         [XPG3] (ilogb): Likewise.
3900         [XPG3] (log1p): Likewise.
3901         [XPG3] (logb): Likewise.
3902         [XPG3] (nextafter): Likewise.
3903         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
3904         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
3905         [XPG3] (remainder): Likewise.
3906         [XPG3] (rint): Likewise.
3907         [XPG3 || XPG4 || UNIX98] (round): Likewise.
3908         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
3909         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
3910         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
3911         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
3912         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
3913         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
3914         [UNIX98 || XOPEN2K] (scalb): Expect.
3915         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
3916         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
3917         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
3918         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
3919         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
3920         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
3921         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
3922         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
3923         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
3924         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
3925         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
3926         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
3927         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
3928         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
3929         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
3930         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
3931         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
3932         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
3933         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
3934         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
3935         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
3936         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
3937         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
3938         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
3939         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
3940         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
3941         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
3942         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
3943         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
3944         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
3945         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
3946         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
3947         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
3948         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
3949         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
3950         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
3951         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
3952         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
3953         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
3954         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
3955         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
3956         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
3957         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
3958         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
3959         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
3960         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
3961         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
3962         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
3963         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
3964         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
3965         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
3966         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
3967         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
3968         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
3969         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
3970         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
3971         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
3972         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
3973         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
3974         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
3975         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
3976         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
3977         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
3978         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
3979         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
3980         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
3981         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
3982         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
3983         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
3984         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
3985         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
3986         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
3987         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
3988         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
3989         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
3990         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
3991         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
3992         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
3993         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
3994         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
3995         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
3996         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
3997         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
3998         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
3999         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
4000         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
4001         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
4002         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
4003         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
4004         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
4005         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
4006         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
4007         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
4008         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
4009         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
4010         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
4011         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
4012         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
4013         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
4014         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
4015         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
4016         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
4017         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
4018         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
4019         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
4020         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
4021         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
4022         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
4023         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
4024         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
4025         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
4026         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
4027         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
4028         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
4029         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
4030         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
4031         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
4032         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
4033         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
4034         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
4035         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
4036         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
4037         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
4038         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
4039         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
4040         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
4041         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
4042         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
4043         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
4044         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
4045         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
4046         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
4047         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
4048         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
4049         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
4050         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
4051         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
4053         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
4054         _XOPEN_SOURCE_EXTENDED for XPG4.
4056         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
4058         * Makeconfig (localtime): Remove variable.
4059         (inst_localtime-file): Likewise.
4061 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4063         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
4064         Update.
4065         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4066         Update.
4067         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
4068         Update.
4069         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
4070         Update.
4071         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
4072         Update.
4073         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
4074         Update.
4075         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4076         Update.
4077         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
4078         Update.
4079         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4080         Update.
4082 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4084         [BZ #2550]
4085         [BZ #2570]
4086         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
4087         comparisons to determine direction to adjust input.
4088         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4089         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
4090         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4091         Likewise.
4092         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4093         Likewise.
4094         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4095         Likewise.
4096         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4097         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4098         Likewise.
4099         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4100         Likewise.
4101         * math/libm-test.inc (nexttoward_test): Add more tests.
4103 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4105         [BZ #14040]
4106         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
4107         in version GLIBC_2.1, not GLIBC_2.0.
4108         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
4109         Likewise.
4111 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
4113         [BZ #13942]
4114         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
4115         (1 - x) * (1 + x).
4116         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4117         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
4118         * math/libm-test.inc (acos_test): Add more tests.
4119         (asin_test): Likewise.
4120         * sysdeps/i386/fpu/libm-test-ulps: Update.
4121         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4123         [BZ #14034]
4124         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
4125         of square root.
4126         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
4127         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4128         * math/libm-test.inc (acos_test_tonearest): New function.
4129         (acos_test_towardzero): Likewise.
4130         (acos_test_downward): Likewise.
4131         (acos_test_upward): Likewise.
4132         (asin_test_tonearest): Likewise.
4133         (asin_test_towardzero): Likewise.
4134         (asin_test_downward): Likewise.
4135         (asin_test_upward): Likewise.
4136         (main): Call the new functions.
4137         * sysdeps/i386/fpu/libm-test-ulps: Update.
4138         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4140         [BZ #13884]
4141         [BZ #13924]
4142         * math/e_exp10.c: Include <float.h>.
4143         (__ieee754_exp10): Handle underflow here rather than multiplying
4144         large negative argument by M_LN10.
4145         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
4146         of __ieee754_expf.
4147         * math/e_exp10l.c: Include <float.h>.
4148         (__ieee754_exp10l): Handle underflow here rather than multiplying
4149         large negative argument by M_LN10l.
4150         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
4151         spurious overflow exception on underflow.
4153 2012-04-29  Marek Polacek  <polacek@redhat.com>
4155         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
4156         (__fortify_function): New macro.
4157         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
4158         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
4159         __extern_always_inline.
4160         * libio/bits/stdio2.h: Likewise.
4161         * libio/bits/stdio.h: Likewise.
4162         * string/string.h: Likewise.
4163         * string/bits/string3.h: Likewise.
4164         * include/stdio.h: Likewise.
4165         * stdlib/bits/stdlib.h: Likewise.
4166         * stdlib/stdlib.h: Likewise.
4167         * rt/bits/mqueue2.h: Likewise.
4168         * rt/mqueue.h: Likewise.
4169         * posix/bits/unistd.h: Likewise.
4170         * posix/unistd.h: Likewise.
4171         * io/bits/poll2.h: Likewise.
4172         * io/bits/fcntl2.h: Likewise.
4173         * io/fcntl.h: Likewise.
4174         * io/sys/poll.h: Likewise.
4175         * misc/bits/syslog.h: Likewise.
4176         * misc/bits/syslog-ldbl.h: Likewise.
4177         * misc/sys/syslog.h: Likewise.
4178         * socket/bits/socket2.h: Likewise.
4179         * socket/sys/socket.h: Likewise.
4180         * debug/tst-chk1.c: Likewise.
4181         * wcsmbs/bits/wchar2.h: Likewise.
4182         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4183         * wcsmbs/wchar.h: Likewise.
4185 2012-04-29  Andreas Jaeger  <aj@suse.de>
4187         * Makerules (tests): Remove enable-check-abi protection.
4188         (check-abi-warn): Remove.
4189         (check-abi-%): Remove check-abi-warn usage.
4191         * configure.in: Remove check-abi configure option.
4192         * configure: Regenerated.
4193         * config.make.in (enable-check-abi): Remove.
4195 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
4197         [BZ #14033]
4198         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
4199         double functions to double *_finite functions.
4201         [BZ #13941]
4202         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
4203         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
4204         LDBL_MIN_EXP.
4205         * stdio-common/Makefile (tests): Add tst-sprintf3.
4206         * stdio-common/tst-sprintf3.c: New file.
4208         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
4209         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
4211 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4213         * conform/conformtest.pl: Remove duplicate typed-constant
4214         handling.
4216 2012-04-28  David S. Miller  <davem@davemloft.net>
4218         * Makerules (%.abilist): Add vpath on sysdep_dirs.
4219         (check-abi-%): Remove AWK script prerequisite and explicit
4220         abilist directory.
4221         (check-abi): Rewrite to just diff the symlist with the abilist.
4222         (config-tls, config-abi-config): Delete, no longer used.
4223         (update-abi-%): Remove AWK script and explicit abilist directory.
4224         (update-abi): Rewrite to simply compare and conditionally copy the
4225         symlist and the sysdep abilist file.  Remove update-abi-config
4226         checks.
4227         * abilist/ld.abilist: Remove.
4228         * abilist/libBrokenLocale.abilist: Remove.
4229         * abilist/libanl.abilist: Remove.
4230         * abilist/libcrypt.abilist: Remove.
4231         * abilist/libdl.abilist: Remove.
4232         * abilist/librt.abilist: Remove.
4233         * abilist/libthread_db.abilist: Remove.
4234         * abilist/libutil.abilist: Remove.
4235         * scripts/extract-abilist.awk: Remove.
4236         * scripts/merge-abilist.awk: Remove.
4237         * sysdeps/generic/libcidn.abilist: New file.
4238         * sysdeps/generic/libnss_compat.abilist: New file.
4239         * sysdeps/generic/libnss_db.abilist: New file.
4240         * sysdeps/generic/libnss_dns.abilist: New file.
4241         * sysdeps/generic/libnss_files.abilist: New file.
4242         * sysdeps/generic/libnss_hesiod.abilist: New file.
4243         * sysdeps/generic/libnss_nis.abilist: New file.
4244         * sysdeps/generic/libnss_nisplus.abilist: New file.
4245         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
4246         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
4247         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
4248         file.
4249         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
4250         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
4251         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
4252         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
4253         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
4254         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
4255         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
4256         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
4257         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
4258         file.
4259         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
4260         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
4261         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
4262         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
4263         file.
4264         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
4265         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
4266         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
4267         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
4268         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
4269         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
4270         file.
4271         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
4272         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
4273         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
4274         file.
4275         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
4276         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
4277         New file.
4278         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
4279         New file.
4280         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
4281         New file.
4282         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
4283         New file.
4284         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
4285         New file.
4286         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
4287         New file.
4288         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
4289         New file.
4290         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
4291         New file.
4292         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
4293         New file.
4294         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
4295         New file.
4296         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
4297         New file.
4298         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
4299         New file.
4300         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
4301         New file.
4302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
4303         file.
4304         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
4305         New file.
4306         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
4307         New file.
4308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
4309         file.
4310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
4311         New file.
4312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
4313         New file.
4314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
4315         file.
4316         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
4317         New file.
4318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4319         New file.
4320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
4321         New file.
4322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
4323         New file.
4324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
4325         New file.
4326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
4327         New file.
4328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
4329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
4330         file.
4331         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
4332         New file.
4333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
4334         file.
4335         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
4336         file.
4337         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
4338         file.
4339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
4340         file.
4341         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
4342         file.
4343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4344         New file.
4345         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
4346         file.
4347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
4348         file.
4349         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
4350         New file.
4351         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
4352         file.
4353         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
4354         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
4355         file.
4356         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
4357         New file.
4358         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
4359         file.
4360         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
4361         file.
4362         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
4363         file.
4364         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
4365         file.
4366         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
4367         file.
4368         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4369         New file.
4370         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
4371         file.
4372         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
4373         file.
4374         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
4375         New file.
4376         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
4377         file.
4378         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4379         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
4380         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
4381         file.
4382         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
4383         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
4384         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
4385         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
4386         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
4387         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
4388         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
4389         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
4390         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
4391         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
4392         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
4393         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
4394         file.
4395         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
4396         New file.
4397         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
4398         file.
4399         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
4400         file.
4401         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
4402         file.
4403         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
4404         file.
4405         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
4406         file.
4407         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
4408         New file.
4409         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
4410         New file.
4411         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
4412         file.
4413         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
4414         New file.
4415         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
4416         file.
4417         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
4418         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
4419         file.
4420         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
4421         New file.
4422         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
4423         file.
4424         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
4425         file.
4426         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
4427         file.
4428         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
4429         file.
4430         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
4431         file.
4432         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
4433         New file.
4434         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
4435         New file.
4436         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
4437         file.
4438         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
4439         New file.
4440         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
4441         file.
4443 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4445         * conform/conformtest.pl: Fix typo in handling typed-constant from
4446         allow-header.
4448 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4450         * README: Cut down references to pre-2.6 Linux kernels and
4451         Linuxthreads.  Update lists of configurations in libc and ports
4452         and sort alphabetically.  Say "or newer" with Linux kernel version
4453         requirements.
4455         * config.h.in [IS_IN_build]: Allow compiling without optimization.
4457 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4459         [BZ #887]
4460         * math/libm-test.inc (logb_test_downward): New test to expose
4461         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
4462         rounding mode.
4464 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4466         [BZ #14027]
4467         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
4468         to be done.
4469         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
4470         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
4472 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
4474         * sysdeps/unix/i386/brk.S: Remove file.
4475         * sysdeps/unix/i386/dl-brk.S: Likewise.
4476         * sysdeps/unix/i386/pipe.S: Likewise.
4477         * sysdeps/unix/i386/sigreturn.S: Likewise.
4478         * sysdeps/unix/i386/syscall.S: Likewise.
4479         * sysdeps/unix/i386/vfork.S: Likewise.
4480         * sysdeps/unix/i386/wait.S: Likewise.
4482         * sysdeps/unix/common/tcsendbrk.c: Move to ...
4483         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
4485         * configure.in (arm*-none*): Do not allow without
4486         --enable-hacker-mode.
4487         (netbsd*): Remove case setting base_os.
4488         (386bsd*): Likewise.
4489         (freebsd*): Likewise.
4490         (bsdi*): Likewise.
4491         (osf*): Likewise.
4492         (sunos*): Likewise.
4493         (ultrix*): Likewise.
4494         (newsos*): Likewise.
4495         (dynix*): Likewise.
4496         (*bsd*): Likewise.
4497         (sysv*): Likewise.
4498         (isc*): Likewise.
4499         (esix*): Likewise.
4500         (sco*): Likewise.
4501         (minix*): Likewise.
4502         (irix4*): Likewise.
4503         (irix6*): Likewise.
4504         (solaris[2-9]*): Likewise.
4505         (none): Likewise.
4506         * configure: Regenerated.
4508 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4510         [BZ #11521]
4511         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
4512         overflow or cancellation in calculating denominator.
4513         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
4514         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
4515         down expression to avoid unexpected rounding in newer GCCs.
4516         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
4518 2012-04-26  David S. Miller  <davem@davemloft.net>
4520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
4521         long-double compat symbols.
4522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
4526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4527         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
4528         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
4529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
4530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
4532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
4533         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4534         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4536 2012-04-25  David S. Miller  <davem@davemloft.net>
4538         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
4539         HWCAP_* values only after the memory barriers have been defined.
4540         (atomic_full_barrier): Define.
4541         (atomic_read_barrier): Define.
4542         (atomic_write_barrier): Define.
4544 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4546         * shlib-versions: Add libgcc_s version information.
4547         * sysdeps/generic/libgcc_s.h: Remove.
4548         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
4549         libgcc_s.h.
4550         * sysdeps/gnu/unwind-resume.c: Likewise.
4551         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
4553 2012-04-25  David S. Miller  <davem@davemloft.net>
4555         * sysdeps/unix/sparc/brk.S: Delete.
4556         * sysdeps/unix/sparc/dl-brk.S: Delete.
4557         * sysdeps/unix/sparc/pipe.S: Delete.
4558         * sysdeps/unix/sparc/sysdep.S: Delete.
4559         * sysdeps/unix/sparc/sysdep.h: Delete.
4560         * sysdeps/unix/sparc/vfork.S: Delete.
4561         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
4562         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
4563         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
4564         ret_ERRVAL, r0, r1, MOVE): Define.
4565         (JUMPTARGET): Remove.
4566         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
4567         sysdeps/unix/sparc/sysdep.h
4568         (ENTRY, END): Remove.
4569         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4571 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
4573         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
4574         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
4575         -DIS_IN_build.
4577         * timezone/README: Update upstream location and email address for
4578         tzcode and tzdata.
4579         * timezone/zdump.c: Update from tzcode 2012b.
4580         * timezone/zic.c: Likewise.
4582         * configure.in (libc_cv_as_needed): Remove test.
4583         * configure: Regenerated.
4584         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
4585         conditional definition.
4586         [$(have-as-needed) != yes] (no-as-needed): Likewise.
4587         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
4588         * config.make.in (have-as-needed): Remove variable.
4590 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4591             Paul Pluzhnikov  <ppluzhnikov@google.com>
4593         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
4594         strings correctly.
4596 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
4598         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
4599         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
4600         * sysdeps/sh/strlen.S: Likewise.
4602 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4604         * sysdeps/unix/fork.S: Remove file.
4605         * sysdeps/unix/i386/fork.S: Likewise.
4606         * sysdeps/unix/sparc/fork.S: Likewise.
4608         * sysdeps/unix/system.c: Remove file.
4609         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
4611         * sysdeps/unix/getegid.S: Remove file.
4612         * sysdeps/unix/geteuid.S: Likewise.
4614 2012-04-24  Roland McGrath  <roland@hack.frob.com>
4616         * scripts/check-localplt.awk: New file.
4617         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
4618         of diff.
4619         * scripts/data/localplt-generic.data: Add a comment.
4621         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
4622         NODE when __dir_mkfile failed.
4623         * sysdeps/mach/hurd/symlinkat.c: Likewise.
4624         Reported by Ludovic Courtès <ludo@gnu.org>.
4626 2012-04-24  Andreas Jaeger  <aj@suse.de>
4628         * Makerules (common-clean): Also remove gen-as-const-headers
4629         files.
4631 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4633         * Makerules (native-compile): Do not change working directory for
4634         build.  Use $(OUTPUT_OPTION) in command.
4635         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
4637 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4639         [BZ #13886]
4640         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
4641         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
4642         * math/libm-test.inc (floor_test): Add more tests.
4643         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
4645 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4647         * sysdeps/unix/getdents.c: Remove file.
4648         * sysdeps/unix/sysv/getdents.c: Likewise.
4649         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
4651         * sysdeps/unix/syscalls.list (madvise): Add syscall from
4652         sysdeps/unix/mman/syscalls.list.
4653         (mmap): Likewise.
4654         (mprotect): Likewise.
4655         (msync): Likewise.
4656         (munmap): Likewise.
4657         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
4658         * sysdeps/unix/mman/syscalls.list: Remove.
4659         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
4661         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
4662         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
4663         * configure: Regenerated.
4664         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
4665         $(libgcc_s_suffix).
4666         * config.make.in (libgcc_s_suffix): Remove variable.
4668 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
4670         * sysdeps/unix/sysv/gethostname.c: Move to ...
4671         * sysdeps/posix/gethostname.c: ... here.
4673         * sysdeps/unix/execve.S: Remove file.
4675         * sysdeps/unix/_exit.S: Remove file.
4677 2012-04-23  Andreas Jaeger  <aj@suse.de>
4679         [BZ #13739]
4680         * manual/Makefile: Remove make dist support, there's no
4681         need for a stand-alone documentation tar ball.
4682         (TEXI2DVI): Define always, it's not in Makeconfig.
4683         (dist): Removed.
4684         (tar-it): Removed.
4685         (edition): Removed.
4686         (glibc-doc-$(edition).tar): Removed
4687         (%.Z): Removed.
4688         (%.gz): Removed.
4689         (%.uu): Removed.
4690         (ETAGS): Remove, it's in Makeconfig.
4691         (move-if-change): Remove, it's in Makeconfig.
4693 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4695         [BZ #13970]
4696         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
4697         (strtod, strtof, strtold, strtol, strtoul, strtoq)
4698         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
4699         (strtod_l, strtof_l, strtold_l): Remove __wur.
4700         It is not necessarily an error to ignore strtol's return value.
4701         One can reliably look at the stored endptr to decide whether
4702         the number had valid syntax.
4704 2012-04-21  Andreas Jaeger  <aj@suse.de>
4706         [BZ #13739]
4707         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
4709 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
4711         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
4712         * sysdeps/unix/sysv/Versions: Remove file.
4714 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
4716         [BZ #13927]
4717         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4719 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
4721         [BZ #7064]
4722         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
4723         version from __vm86.
4725 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
4727         * sysdeps/unix/common/lxstat.c: Remove file.
4728         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
4730         * sysdeps/unix/sysv/Makefile: Remove file.
4732         * sysdeps/unix/sysv/direct.h: Remove file.
4734         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
4735         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
4736         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
4737         * sysdeps/unix/sysv/bits/signum.h: Likewise.
4738         * sysdeps/unix/sysv/bits/stat.h: Likewise.
4739         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
4740         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
4742         * sysdeps/unix/sysv/setrlimit.c: Remove file.
4744         * sysdeps/unix/xmknod.c: Remove file.
4745         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
4747         * sysdeps/unix/sysv/settimeofday.c: Remove file.
4749         * sysdeps/unix/sysv/i386/time.S: Remove file.
4751         * sysdeps/unix/fxstat.c: Remove file.
4752         * sysdeps/unix/xstat.c: Likewise.
4753         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
4755         * sysdeps/unix/sysv/sigaction.c: Remove file.
4757         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
4758         (sysdep_headers): Remove variable.
4759         [termio.h not in sysdep_headers] (generated): Likewise.
4760         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
4761         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
4762         * sysdeps/unix/sysv/tcdrain.c: Likewise.
4763         * sysdeps/unix/sysv/tcflow.c: Likewise.
4764         * sysdeps/unix/sysv/tcflush.c: Likewise.
4765         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
4766         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
4767         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
4768         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
4769         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
4771         * sysdeps/unix/siglist.c: Remove file.
4773         * sysdeps/unix/getppid.S: Remove file.
4775         * sysdeps/unix/mkdir.c: Remove file.
4776         * sysdeps/unix/rmdir.c: Likewise.
4778 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
4780         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
4781         ERR_MAX value.
4782         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
4783         errlist-compat value.
4785 2012-04-18  David S. Miller  <davem@davemloft.net>
4787         * sysdeps/generic/memcopy.h (reg_char): Delete.
4788         * debug/strcat_chk.c: Use char, not reg_char.
4789         * debug/strcpy_chk.c: Likewise.
4790         * debug/strncat_chk.c: Likewise.
4791         * debug/strncpy_chk.c: Likewise.
4792         * string/memchr.c: Likewise.
4793         * string/memrchr.c: Likewise.
4794         * string/rawmemchr.c: Likewise.
4795         * string/strcat.c: Likewise.
4796         * string/strchr.c: Likewise.
4797         * string/strchrnul.c: Likewise.
4798         * string/strcmp.c: Likewise.
4799         * string/strcpy.c: Likewise.
4800         * string/strncat.c: Likewise.
4801         * string/strncmp.c: Likewise.
4802         * string/strncpy.c: Likewise.
4804 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4806         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
4807         __builtin_memcopy is called when src and dest ranges are known to not
4808         overlap.
4810 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4812         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
4813         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
4814         fwd_align_merge macro call.
4815         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
4816         bwd_align_merge macro call.
4817         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4819 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4821         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
4822         bwd_align_merge macros.
4823         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
4824         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
4825         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4827 2012-04-18  David S. Miller  <davem@davemloft.net>
4829         * sysdeps/sparc/sparc64/memcopy.h: Delete.
4831 2012-04-18  Andreas Jaeger  <aj@suse.de>
4833         [BZ# 6794]
4834         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
4835         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
4836         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4838         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
4839         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
4840         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4842         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
4843         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
4844         Adjust for changed ldbl-128 files.
4846         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
4847         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
4848         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4850 2012-04-17  David S. Miller  <davem@davemloft.net>
4852         * sysdeps/sparc/sparc32/memcopy.h: Delete.
4854 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
4856         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
4857         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
4858         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
4859         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
4860         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4861         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
4863 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4865         [BZ #6794]
4866         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
4867         * math/libm-test.inc: Add ilogb errno and exception tests.
4868         * math/w_ilogb.c: New file: ilogb wrapper.
4869         * math/w_ilogbf.c: New file: ilogbf wrapper.
4870         * math/w_ilogbl.c: New file: ilogbl wrapper.
4871         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
4872         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
4873         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
4874         exception being thrown with 0.0 as argument.
4875         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
4876         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
4877         exception being thrown with 0.0 as argument.
4878         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
4879         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4880         exception being thrown with 0.0 as argument.
4881         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
4882         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4883         exception being thrown with 0.0 as argument.
4884         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
4885         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
4886         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
4887         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
4888         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
4889         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
4890         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
4891         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
4892         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
4894 2012-04-17  Petr Baudis  <pasky@ucw.cz>
4896         * include/sys/uio.h: Change __vector to __iovec to avoid clash
4897         with altivec.
4899 2012-04-16  Marek Polacek  <polacek@redhat.com>
4901         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
4903 2012-04-16  Marek Polacek  <polacek@redhat.com>
4905         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
4906         operands of fdivp instruction.
4908 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4910         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
4911         * elf/tst-auditmod3b.c: Likewise.
4912         * elf/tst-auditmod4b.c: Likewise.
4913         * elf/tst-auditmod5b.c: Likewise.
4914         * elf/tst-auditmod6b.c: Likewise.
4915         * elf/tst-auditmod6c.c: Likewise.
4916         * elf/tst-auditmod7b.c: Likewise.
4917         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
4918         * sysdeps/x86_64/preconfigure.in: Likewise.
4919         * sysdeps/x86_64/preconfigure: Regenerated.
4921 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4923         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
4924         __ILP32__.
4926 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
4928         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4929         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
4931 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
4933         [BZ #13973]
4934         * locale/iso-639.def: Fix gl language name. Spotted by
4935         Yaron Shahrabani.
4937 2012-04-12  Roland McGrath  <roland@hack.frob.com>
4939         [BZ #2074]
4940         * libio/libio.h (__io_write_fn): Update comment.
4942 2012-04-12  Petr Baudis  <pasky@ucw.cz>
4944         [BZ #2074]
4945         * stdio.texi (Hook Functions): The user provided writer function
4946         is not allowed to return -1.
4948 2012-04-11  David S. Miller  <davem@davemloft.net>
4950         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4952 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
4954         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
4955         Add a leading slash to rtkaio.
4957 2012-04-11  Jim Meyering  <meyering@redhat.com>
4959         [BZ #11959]
4960         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
4961         It is not necessarily an error to ignore fwrite's return
4962         value.  One can reliably use ferror to test for errors after
4963         the fact.
4965 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4967         * bits/types.h (__snseconds_t): New type.
4968         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
4970         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
4971         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4972         (__SNSECONDS_T_TYPE): Likewise.
4973         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4974         (__SNSECONDS_T_TYPE): Likewise.
4975         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4976         (__SNSECONDS_T_TYPE): Likewise.
4978 2012-04-10  Andreas Jaeger  <aj@suse.de>
4980         [BZ #2636]
4981         * manual/time.texi (Processor Time): Return type of times is
4982         elapsed real time since an arbitrary point in the past.
4983         (CPU Time): Move CLK_TCK from here...
4984         (Processor Time): ...to here.  Correct description.
4985         * manual/conf.texi (Constants for Sysconf): Correct description of
4986         _SC_CLK_TCK.
4988 2012-04-10  David S. Miller  <davem@davemloft.net>
4990         [BZ #13967]
4991         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
4992         where the is a gap between DT_REL(A) and DT_JMPREL.
4994 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4996         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
4997         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
4998         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5000 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5002         * elf/dl-support.c (_dl_inhibit_cache): New variable.
5003         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
5004         (dl_main): Handle --inhibit-cache.
5005         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
5006         _dl_inhibit_cache.
5007         * elf/dl-load.c (_dl_map_object): Use it.
5008         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
5010 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5012         [BZ #13872]
5013         * sysdeps/i386/fpu/e_powl.S (p78): New object.
5014         (__ieee754_powl): Saturate large exponents rather than testing for
5015         overflow of y*log2(x).
5016         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
5017         * math/libm-test.inc (pow_test): Do not permit spurious overflow
5018         exceptions.
5020         [BZ #11521]
5021         * math/s_ctan.c: Include <float.h>.
5022         (__ctan): Avoid internal overflow or cancellation in calculating
5023         denominator.
5024         * math/s_ctanf.c: Likewise.
5025         * math/s_ctanl.c: Likewise.
5026         * math/s_ctanh.c: Likewise.
5027         * math/s_ctanhf.c: Likewise.
5028         * math/s_ctanhl.c: Likewise.
5029         * math/libm-test.inc (ctan_test): Add more tests.
5030         (ctanh_test): Likewise.
5031         * sysdeps/i386/fpu/libm-test-ulps: Update.
5032         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5034 2012-04-09  Andreas Jaeger  <aj@suse.de>
5036         [BZ #6894]
5037         * manual/filesys.texi (Directory Entries): Mention that d_namlen
5038         is an optional BSD extension.
5040         [BZ #10254]
5041         * manual/stdio.texi (Opening Streams): Document additional fopen
5042         parameters.
5044 2012-04-09  Roland McGrath  <roland@hack.frob.com>
5046         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
5047         %eax without telling the compiler.
5049 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
5051         [BZ # 13963]
5052         * manual/install.texi: Use sourceware.org.
5054 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5056         [BZ #13873]
5057         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
5058         (__ieee754_pow): Generate overflow and underflow using huge*huge
5059         and tiny*tiny rather than just returning constant infinity or zero
5060         for large exponents.
5061         * math/libm-test.inc (pow_test): Require overflow exceptions for
5062         applicable cases of large exponents.
5064         [BZ #706]
5065         * sysdeps/i386/fpu/e_pow.S (p10): New object.
5066         (__ieee754_pow): Use iterative multiplication algorithm only for
5067         integer exponents with absolute value below 1024.  Check for odd
5068         integer exponents when using algorithm for real exponents.
5069         * math/libm-test.inc (pow_test): Add more tests.
5070         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5072 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
5074         [BZ #13705]
5075         * math/libm-test.inc (exp_test): Do not allow overflow exception
5076         on underflow test.
5078 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
5080         [BZ #13705]
5081         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
5082         instead of __kernel_standard_f.
5084 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
5086         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
5087         * sysdeps/x86_64/memset_chk.S: Likewise.
5089 2012-04-08  Andreas Jaeger  <aj@suse.de>
5091         [BZ #10153]
5092         * manual/startup.texi (Environment Access): Describe return value
5093         for putenv and setenv.
5095         [BZ #6895]
5096         * manual/filesys.texi (Directory Entries): Add description for
5097         DT_LNK.
5099         [BZ #6890]
5100         * manual/filesys.texi (Directory Entries): Clarify that it's file
5101         system not operating system in the description of DT_UNKNOWN.
5103         [BZ #6578]
5104         * manual/syslog.texi (closelog): Fix reference, it's openlog.
5106 2012-04-08  Stephen Compall  <s11@member.fsf.org>
5108         [BZ #6649]
5109         * manual/llio.texi (Opening and Closing Files): Add cross
5110         reference to explain mode argument.
5112 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
5114         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
5115         * sysdeps/x86_64/memset_chk.S: Likewise.
5117 2012-04-07  David S. Miller  <davem@davemloft.net>
5119         * elf/elf.h (R_SPARC_WDISP10): Define.
5120         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
5121         R_SPARC_SIZE32.
5122         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
5123         R_SPARC_SIZE64 and R_SPARC_H34.
5125 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
5127         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
5128         conditions and remove no longer applicable assertion.
5130 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5132         * bits/byteswap.h: Include <features.h>.
5133         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5134         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5136 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5138         * bits/byteswap.h (__bswap_16): Removed.
5139         Include <bits/byteswap-16.h> to get __bswap_16.
5140         * sysdeps/i386/bits/byteswap.h: Likewise.
5141         * sysdeps/s390/bits/byteswap.h: Likewise.
5142         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5143         * bits/byteswap-16.h: New file.
5144         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5145         * sysdeps/s390/bits/byteswap-16.h: Likewise.
5146         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
5147         * string/Makefile (headers): Add bits/byteswap-16.h.
5149 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5151         [BZ #13895]
5152         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
5153         extra indirection.
5154         * nss/Makefile (tests-static, tests): Add tst-nss-static.
5155         * nss/tst-nss-static.c: New.
5157 2012-04-06  Robert Millan  <rmh@gnu.org>
5159         [BZ #6486]
5160         * manual/llio.texi (File Position Primitive): lseek
5161         refers to WHENCE when it really means OFFSET.
5163 2012-04-06  Andreas Jaeger  <aj@suse.de>
5165         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
5166         strncmp declarations.
5168         * abilist/libc.abilist: Add __poll and __ppoll.
5170 2012-04-05  David S. Miller  <davem@davemloft.net>
5172         * scripts/check-local-headers.sh: Accept a host triplet in the
5173         path matched by the exclude regexp.
5175         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
5176         definition.
5177         * sysdeps/powerpc/powerpc32/dl-machine.h
5178         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
5179         * sysdeps/s390/s390-32/dl-machine.h
5180         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5181         * sysdeps/sparc/sparc32/dl-machine.h
5182         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5183         * sysdeps/sparc/sparc64/dl-machine.h
5184         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5186         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
5187         lazy binding.
5188         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
5189         undefined symbol errors.
5191         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
5192         DT_NEEDED entries.
5194 2012-04-05  Michael Matz  <matz@suse.de>
5196         [BZ #13592]
5197         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
5199 2012-04-05  Andreas Jaeger  <aj@suse.de>
5201         [BZ #13908]
5202         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
5203         comment.
5205 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5207         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
5208         which ROUND is no valid rounding mode.
5210 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5212         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
5213         read again.
5214         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
5216 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5218         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
5219         an exception using FPU order intentionally.
5221 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5223         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
5224         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
5225         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
5226         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
5228 2012-04-05  Simon Josefsson  <simon@josefsson.org>
5230         [BZ #12340]
5231         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
5232         EINVAL when BUFLEN is too smal.
5234 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5236         [BZ #13553]
5237         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
5238         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5240 2012-04-03  Andreas Jaeger  <aj@suse.de>
5242         [BZ #13938]
5243         * manual/setjmp.texi (System V contexts): Fix sentence.
5245         [BZ #13926]
5246         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
5247         New macro for this case.
5248         [!__GNUC__] (__bswap_64): New inline function for this case.
5249         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5250         * bits/byteswap.h: Likewise.
5251         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
5252         ull, guard with __GLIBC_HAVE_LONG_LONG.
5254         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
5255         __GLIBC_HAVE_LONG_LONG.
5257         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
5258         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
5260 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
5262         [BZ #13691]
5263         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
5264         inptr and inend, rather than using last_ch.
5266 2012-04-02  David S. Miller  <davem@davemloft.net>
5268         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
5269         * stdio-common/printf-parse.h (read_int): Change return type to
5270         'int', return -1 on INT_MAX overflow.
5271         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
5272         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
5273         overflows INT_MAX.  Check for overflow of in-format-string precision
5274         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
5275         SIZE_MAX not INT_MAX for integer overflow test.
5276         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
5277         skip the construct in the format string but do not record anything.
5278         * stdio-common/bug22.c: Adjust to test both width/prevision
5279         INT_MAX overflow as well as total length INT_MAX overflow.  Check
5280         explicitly for proper errno values.
5282 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5284         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
5285         CHAR_MAX.
5286         * string/test-strcmp.c [! WIDE]: Likewise.
5287         * time/tst-mktime2.c: Likewise for INT_MAX.
5288         * string/test-string.h: #include <sys/param.h> for MIN.
5290         * csu/init-first.c (__libc_init_first): Call __ctype_init.
5291         * sysdeps/i386/init-first.c (init): Likewise.
5292         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
5293         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
5294         * sysdeps/sh/init-first.c (init): Likewise.
5296 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
5298         * po/ru.po: Update from translation team.
5299         * po/vi.po: Likewise.
5301 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5303         * resolv/nss_dns/dns-host.c: Merge copyright years.
5305 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5307         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5308         Optimize memcpy with prefetch if
5309         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
5310         src, dst pointers have unequal 16 byte alignments.
5312 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5314         [BZ #13928]
5315         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
5316         from a CNAME entry and return the minimum ttl for the query.
5317         (gaih_getanswer_slice): Likewise.
5319 2012-03-30  Jeff Law  <law@redhat.com>
5321         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
5322         due to long keys.
5323         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
5324         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
5326         * resolv/nss_dns/dns-host.c: Update copyright year.
5328 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
5330         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
5331         requests to save a system call.  Fix check that all bytes are sent.
5333         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
5334         comments for sendmmsg.
5336 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5338         [BZ #13691]
5339         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5340         with only 1 character between 0x0041 and 0x01b0.
5341         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
5342         * wcsmbs/tst-mbsnrtowcs.c: New file.
5344 2012-03-29  David S. Miller  <davem@davemloft.net>
5346         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
5347         small copies by hand.
5349 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5351         [BZ #13761]
5352         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
5353         _nss_compat_initgroups_dyn): Fall back to malloc/free
5354         for large group memberships.
5356 2012-03-28  David S. Miller  <davem@davemloft.net>
5358         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
5359         that branches into memcpy.
5360         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5361         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
5362         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5363         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
5364         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
5365         bits.
5366         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
5367         implementation too.
5368         * sysdeps/sparc/mempcpy.S: New file.
5370         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
5371         the IFUNC routine in the libc case.
5372         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5374         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
5375         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
5376         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
5377         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
5378         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
5379         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
5380         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
5381         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
5383         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
5384         loop to 256 bytes instead of 64 bytes and fix test signedness.
5386         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
5387         * sysdeps/sparc/sparc32/Makefile: rather than here...
5388         * sysdeps/sparc/sparc64/Makefile: and here.
5390 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
5392         * malloc/mallocbug.c: Avoid warnings about unused variables.
5394 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5396         [BZ #13760]
5397         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
5398         in the right place. Discard and retry query if response is
5399         larger than input buffer size.
5401 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
5403         [BZ #369]
5404         [BZ #2678]
5405         [BZ #3866]
5406         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
5407         x for large integer exponent.
5408         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
5409         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
5410         sign of result as needed afterwards.
5411         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5412         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
5413         result for underflowing pow the same as for overflow.
5414         (__kernel_standard_l): Handle powl overflow and underflow here
5415         rather than calling __kernel_standard.
5416         * math/libm-test.inc (pow_test): Add more tests.
5418         [BZ #3868]
5419         [BZ #13879]
5420         [BZ #13910]
5421         [BZ #13911]
5422         [BZ #13912]
5423         [BZ #13913]
5424         [BZ #13915]
5425         [BZ #13916]
5426         [BZ #13917]
5427         [BZ #13918]
5428         [BZ #13919]
5429         [BZ #13920]
5430         [BZ #13921]
5431         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
5432         * sysdeps/ieee754/k_standard.c: Include <float.h>.
5433         (__kernel_standard_l): New function.
5434         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
5435         __kernel_standard.
5436         * math/w_acosl.c (__acosl): Likewise.
5437         * math/w_asinl.c (__asinl): Likewise.
5438         * math/w_atan2l.c (__atan2l): Likewise.
5439         * math/w_atanhl.c (__atanhl): Likewise.
5440         * math/w_coshl.c (__coshl): Likewise.
5441         * math/w_exp10l.c (__exp10l): Likewise.
5442         * math/w_exp2l.c (__exp2l): Likewise.
5443         * math/w_fmodl.c (__fmodl): Likewise.
5444         * math/w_hypotl.c (__hypotl): Likewise.
5445         * math/w_j0l.c (__j0l, __y0l): Likewise.
5446         * math/w_j1l.c (__j1l, __y1l): Likewise.
5447         * math/w_jnl.c (__jnl, __ynl): Likewise.
5448         * math/w_lgammal.c (__lgammal): Likewise.
5449         * math/w_log10l.c (__log10l): Likewise.
5450         * math/w_log2l.c (__log2l): Likewise.
5451         * math/w_logl.c (__logl): Likewise.
5452         * math/w_powl.c (__powl): Likewise.
5453         * math/w_remainderl.c (__remainderl): Likewise.
5454         * math/w_scalbl.c (sysv_scalbl): Likewise.
5455         * math/w_sinhl.c (__sinhl): Likewise.
5456         * math/w_sqrtl.c (__sqrtl): Likewise.
5457         * math/w_tgammal.c (__tgammal): Likewise.
5458         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
5459         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
5460         * math/libm-test.inc (acos_test): Add more tests.
5461         (acosh_test): Likewise.
5462         (asin_test): Likewise.
5463         (atanh_test): Likewise.
5464         (exp_test): Likewise.
5465         (exp10_test): Likewise.
5466         (exp2_test): Likewise.
5467         (expm1_test): Likewise.
5468         (lgamma_test): Likewise.
5469         (log_test): Likewise.
5470         (log10_test): Likewise.
5471         (log1p_test): Likewise.
5472         (log2_test): Likewise.
5473         (pow_test): Do not allow some spurious overflow exceptions.
5474         (sqrt_test): Add more tests.
5475         (tgamma_test): Likewise.
5476         (y0_test): Likewise.
5477         (y1_test): Likewise.
5478         (yn_test): Likewise.
5480 2012-03-27  Anton Blanchard  <anton@samba.org>
5482         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
5483         MAP_HUGETLB.
5484         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5485         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5486         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5488 2012-03-27  David S. Miller  <davem@davemloft.net>
5490         * conform/Makefile: Run run-conformtest.sh using $(BASH).
5492         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
5493         have-as-vis3 check.
5495 2012-03-27  Andreas Jaeger  <aj@suse.de>
5497         * sysdeps/x86_64/elf/configure.in: Moved to ...
5498         * sysdeps/x86_64/configure.in: ... here.
5499         * sysdeps/x86_64/elf/start.S: Moved to ...
5500         * sysdeps/x86_64/start.S: ... here.
5501         * sysdeps/x86_64/elf/configure: Delete.
5503         * sysdeps/x86_64/configure.in: Merge contents from
5504         sysdeps/i386/configure.in (without i686 check).
5506         * sysdeps/i386/elf/Versions: Merge into ...
5507         * sysdeps/i386/Versions: ... this.
5508         * sysdeps/i386/elf/Versions: Delete file.
5509         * sysdeps/i386/elf/start.S: Moved to ...
5510         * sysdeps/i386/start.S: ...here.
5511         * sysdeps/i386/elf/configure.in: Merge into...
5512         * sysdeps/i386/configure.in: ...here.
5513         * sysdeps/i386/elf/configure.in: Delete file.
5514         * sysdeps/i386/elf/configure: Delete file.
5516         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
5517         * debug/backtracesyms.c: ... here.
5518         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
5519         * debug/backtracesymsfd.c: ... here.
5520         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
5521         * sysdeps/generic/ifunc-sel.h: ... here.
5523         * sysdeps/unix/i386/start.c: Delete file.
5524         * sysdeps/unix/sparc/start.c: Delete file.
5525         * sysdeps/unix/start.c: Delete file.
5527         * sysdeps/sh/elf/configure.in: Moved to ...
5528         * sysdeps/sh/configure.in: ... here.
5529         * sysdeps/sh/elf/start.S: Moved to ...
5530         * sysdeps/sh/start.S: ... here.
5531         * sysdeps/sh/elf/configure: Delete file.
5533         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
5534         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
5535         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
5536         * sysdeps/powerpc/powerpc64/entry.h: ... here.
5537         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
5538         * sysdeps/powerpc/powerpc64/start.S: here.
5539         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
5540         * sysdeps/powerpc/powerpc64/Makefile: ... this.
5541         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
5542         * sysdeps/powerpc/powerpc64/configure.in: ... this.
5543         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
5545         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
5546         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
5547         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
5548         * sysdeps/powerpc/powerpc32/start.S: ... here.
5549         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
5550         * sysdeps/powerpc/powerpc32/configure.in: ... this.
5551         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
5553         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
5554         * sysdeps/powerpc/ifunc-sel.h: ... here.
5555         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
5556         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
5558         * sysdeps/sparc/elf/configure.in: Moved to ...
5559         * sysdeps/sparc/configure.in: ... here.
5560         * sysdeps/sparc/elf/configure: Delete file.
5561         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
5562         * sysdeps/sparc/sparc32/start.S: ... here.
5563         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
5564         * sysdeps/sparc/sparc64/start.S: ... here.
5565         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
5566         * sysdeps/sparc/sparc32/Makefile: ... this.
5567         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
5568         * sysdeps/sparc/sparc64/Makefile: ... this.
5570         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
5571         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
5572         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
5573         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
5574         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
5575         * sysdeps/s390/s390-32/setjmp.S: ... here.
5576         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
5577         * sysdeps/s390/s390-32/configure.in: ... here.
5578         * sysdeps/s390/s390-32/elf/configure: Delete file.
5579         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
5580         * sysdeps/s390/s390-32/start.S: ... here.
5582         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
5583         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
5584         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
5585         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
5586         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
5587         * sysdeps/s390/s390-64/setjmp.S: ... here.
5588         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
5589         * sysdeps/s390/s390-64/configure.in: ... here
5590         * sysdeps/s390/s390-64/elf/configure: Delete file.
5591         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
5592         * sysdeps/s390/s390-64/start.S: ... here.
5593         * sysdeps/s390/s390-64/elf/configure: Delete.
5595         * configure.in: Remove support for elf directories in sysdeps.
5597         * configure: Regenerated.
5598         * sysdeps/i386/configure: Regenerated.
5599         * sysdeps/powerpc/powerpc32/configure: Regenerated.
5600         * sysdeps/powerpc/powerpc64/configure: Regenerated.
5601         * sysdeps/s390/s390-32/configure: Regenerated.
5602         * sysdeps/s390/s390-64/configure: Regenerated.
5603         * sysdeps/sh/configure: Regenerated.
5604         * sysdeps/sparc/configure: Regenerated.
5605         * sysdeps/x86_64/configure: Regenerated.
5607 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
5609         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5611         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
5612         denormal result into account.
5614 2012-03-25  Roland McGrath  <roland@hack.frob.com>
5616         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
5617         Reported by Allan McRae <allan@archlinux.org>.
5619 2012-03-23  Jeff Law  <law@redhat.com>
5621         * nss/getnssent.c (__nss_getent): Fix typo.
5623 2012-03-23  David S. Miller  <davem@davemloft.net>
5625         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5627 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
5629         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
5630         to pad to uint64_t for each field.
5631         (dl_tls_index): Replace unsigned long with uint64_t.
5633 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
5634         Paul Pluzhnikov  <ppluzhnikov@google.com>
5636         [BZ #6528]
5637         * grp/Makefile (otherlibs): Don't set it.
5638         * inet/Makefile (otherlibs): Likewise.
5639         * login/Makefile (otherlibs): Likewise.
5640         * nscd/Makefile (otherlibs): Likewise.
5641         * posix/Makefile (otherlibs): Likewise.
5642         * pwd/Makefile (otherlibs): Likewise.
5643         * rt/Makefile (otherlibs): Likewise.
5644         * sunrpc/Makefile (otherlibs): Likewise.
5645         * nss/Makefile (otherlibs): Likewise.
5646         Add libnss_files to routines and static-only-routines.
5647         ($(objpfx)getent): Remove rule.
5648         * resolv/Makefile: Add libnss_dns and libresolv to routines and
5649         static-only-routines.
5651 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5653         [BZ #13892]
5654         * math/s_cexp.c: Include <float.h>.
5655         (__cexp): Handle exp result overflowing not necessarily
5656         overflowing both real and imaginary parts of result.
5657         * math/s_cexpf.c: Likewise.
5658         * math/s_cexpl.c: Likewise.
5659         * math/libm-test.inc (cexp_test): Add more tests.
5660         * sysdeps/i386/fpu/libm-test-ulps: Update.
5661         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5663 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5665         * include/link.h (ELFW): New macro.
5666         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
5667         Replace ELF64_R_TYPE with ELFW(R_TYPE).
5669 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5671         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
5672         with uint64_t.
5674 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5676         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
5677         declaration.
5678         (struct La_x32_retval): Likewise.
5680 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5682         * sysdeps/x86_64/preconfigure.in: New file.
5683         * sysdeps/x86_64/preconfigure: New generated file.
5685 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5687         [BZ #13824]
5688         * math/e_exp2l.c: Include <float.h>.
5689         (__ieee754_exp2l): Handle overflow and underflow cases
5690         separately.  Only pass fractional part of argument to
5691         __ieee754_expl.
5692         * math/libm-test.inc (exp2_test): Add more tests.
5694         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
5695         negating x to take absolute value.
5696         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
5697         Likewise.
5698         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5699         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
5700         Likewise.
5701         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
5702         computing low part if x was negated.
5703         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5705 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5707         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
5708         la_x32_gnu_pltexit.
5709         (pltexit): Cast int_retval to ptrdiff_t.
5710         * elf/tst-auditmod3b.c: Likewise.
5711         * elf/tst-auditmod4b.c: Likewise.
5712         * elf/tst-auditmod5b.c: Likewise.
5713         * elf/tst-auditmod6b.c: Likewise.
5714         * elf/tst-auditmod6c.c: Likewise.
5715         * elf/tst-auditmod7b.c: Likewise.
5717         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
5718         and x32_gnu_pltexit.
5720         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
5721         __ELF_NATIVE_CLASS.
5722         (La_x32_regs): New macro.
5723         (La_x32_retval): Likewise.
5724         (la_x32_gnu_pltenter): New function prototype.
5725         (la_x32_gnu_pltexit): Likewise.
5727 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
5729         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
5730         exponent.
5732         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5734         * configure.in (libc_cv_cc_nofma): Check for option to disable
5735         generation of FMA instructions.
5736         * configure: Regenerate.
5737         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
5738         * sysdeps/ieee754/dbl-64/Makefile: New file.
5739         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5740         Remove brandred-fma4.
5741         (CFLAGS-brandred-fma4.c): Remove.
5742         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
5743         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
5744         define.
5745         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
5746         define.
5748 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5750         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5751         LLONG_MAX != LONG_MAX.
5752         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5753         (_fitoa_word): Likewise.
5754         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
5755         LLONG_MAX != LONG_MAX.
5756         * stdio-common/_itowa.h: Include <_itoa.h>.
5757         (_itowa_word): Use _ITOA_WORD_TYPE on value.
5758         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
5759         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
5760         only if not defined.
5761         (_ITOA_WORD_TYPE): Likewise.
5762         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5763         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
5765 2012-03-21  David S. Miller  <davem@davemloft.net>
5767         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5769 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5771         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
5772         of x86_64 when setting libc_cv_slibdir, libdir and
5773         libc_cv_localedir.
5774         * sysdeps/unix/sysv/linux/configure: Regenerated.
5776 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5778         * manual/lang.texi (Old Varargs): Remove section.
5779         (How Variadic): Update menu.
5780         (va_start): Do not mention varargs.h.
5782 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5783             Joseph Myers  <joseph@codesourcery.com>
5785         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
5786         link test.
5787         * configure: Regenerated.
5789 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5791         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
5792         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
5793         conformtest.pl
5795 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5797         * NOTES: Remove.
5798         * Makefile (files-for-dist): Remove NOTES.
5799         (NOTES): Remove rule.
5800         * README: Don't refer to NOTES.
5801         * manual/creature.texi: Don't include macros.texi.
5802         * manual/intro.texi (creature.texi): Remove comment referring to
5803         NOTES.
5805         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
5806         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
5807         * configure: Regenerated.
5808         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
5809         LIBC_TRY_CC_OPTION.
5810         (libc_cv_as_i686): Likewise.
5811         (libc_cv_cc_avx): Likewise.
5812         (libc_cv_cc_sse2avx): Likewise.
5813         (libc_cv_cc_fma4): Likewise.
5814         (libc_cv_cc_novzeroupper): Likewise.
5815         * sysdeps/i386/configure: Regenerated.
5817         [BZ #13883]
5818         * sysdeps/i386/fpu/s_cexp.S: Remove.
5819         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5820         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5821         * math/libm-test.inc (cexp_test): Add more tests.
5822         * sysdeps/i386/fpu/libm-test-ulps: Update.
5823         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5825 2012-03-21  Allan McRae  <allan@archlinux.org>
5827         * timezone/Makefile: Do not install iso3166.tab and zone.tab
5829 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5831         [BZ #13871]
5832         * math/w_exp2.c: Do not include <float.h>.
5833         (o_threshold, u_threshold): Remove.
5834         (__exp2): Calculate result before checking finiteness and calling
5835         __kernel_standard.
5836         * math/w_exp2f.c: Likewise.
5837         * math/w_exp2l.c: Likewise.
5838         * math/libm-test.inc (exp2_test): Require overflow exception for
5839         1e6 input.
5841         [BZ #3866]
5842         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
5843         range of signed 64-bit integers before using fistpll.  Remove
5844         checks for whether integers fit in mantissa bits.
5845         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
5846         the range of signed 32-bit integers before using fistpl.  Remove
5847         checks for whether integers fit in mantissa bits.
5848         * sysdeps/i386/fpu/e_powl.S (p64): New object.
5849         (__ieee754_powl): Test for y outside the range of signed 64-bit
5850         integers before using fistpll.  Reduce 64-bit values to 63-bit
5851         ones as needed.
5852         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
5853         divide-by-zero is raised for zero to large negative powers.
5854         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
5855         (__ieee754_powl): Test for y outside the range of signed 64-bit
5856         integers before using fistpll.  Reduce 64-bit values to 63-bit
5857         ones as needed.
5858         * math/libm-test.inc (pow_test): Add more tests.
5860 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5862         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
5863         <stdio-common/_itoa.h>.
5864         * debug/segfault.c: Likewise.
5865         * elf/dl-cache.c: Likewise.
5866         * elf/dl-minimal.c: Likewise.
5867         * elf/dl-misc.c: Likewise.
5868         * elf/dl-sysdep.c: Likewise.
5869         * elf/dl-version.c: Likewise.
5870         * elf/rtld.c: Likewise.
5871         * hurd/hurdsock.c: Likewise.
5872         * hurd/lookup-retry.c: Likewise.
5873         * malloc/malloc.c: Likewise.
5874         * malloc/mtrace.c: Likewise.
5875         * nscd/nscd_getgr_r.c: Likewise.
5876         * nscd/nscd_getpw_r.c: Likewise.
5877         * nscd/nscd_getserv_r.c: Likewise.
5878         * posix/getopt_init.c: Likewise.
5879         * posix/wordexp.c: Likewise.
5880         * stdio-common/_itoa.c: Likewise.
5881         * stdio-common/printf_fphex.c: Likewise.
5882         * stdio-common/vfprintf.c: Likewise.
5883         * string/_strerror.c: Likewise.
5884         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5885         * sysdeps/i386/i686/hp-timing.h: Likewise.
5886         * sysdeps/mach/_strerror.c: Likewise.
5887         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
5888         * sysdeps/mach/hurd/sethostid.c: Likewise.
5889         * sysdeps/mach/hurd/xmknodat.c: Likewise.
5890         * sysdeps/mach/xpg-strerror.c: Likewise.
5891         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5892         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5893         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
5894         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
5895         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5896         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
5897         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5898         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5899         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
5900         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
5901         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
5902         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
5903         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
5904         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
5905         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
5906         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
5907         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
5908         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
5909         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
5910         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
5911         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
5913         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
5915         * stdio-common/_itoa.h: Moved to ...
5916         * sysdeps/generic/_itoa.h: Here.
5918         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
5920         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
5921         instead of "_itoa.h" and "_itowa.h".
5922         * stdio-common/vfprintf.: Likewise.
5924 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5926         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
5927         <bits/wordsize.h>.
5928         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
5929         (__signbit): Likwise.
5930         (llrintf): Likwise.
5931         (llrint): Likwise.
5933 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5935         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
5936         __WORDSIZE != 64.
5938 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
5940         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
5941         OVERFLOW_EXCEPTION_OK.
5942         * math/libm-test.inc ("Philosophy"): Update comment about
5943         exception testing.
5944         (OVERFLOW_EXCEPTION): Define.
5945         (OVERFLOW_EXCEPTION_OK): Likewise.
5946         (INVALID_EXCEPTION_OK): Renumber.
5947         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5948         (IGNORE_ZERO_INF_SIGN): Likewise.
5949         (test_exceptions): Handle FE_OVERFLOW.
5950         (exp10_test): Expect overflow exceptions.
5951         (exp2_test): Likewise.
5952         (expm1_test): Likewise.
5953         (nextafter_test): Likewise.
5954         (pow_test): Likewise.
5955         (scalbn_test): Likewise.
5956         (scalbln_test): Likewise.
5958 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5960         * sysdeps/x86_64/bits/atomic.h
5961         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
5962         64bit integer.
5963         (atomic_exchange_acq): Likewise.
5964         (__arch_exchange_and_add_body): Likewise.
5965         (__arch_add_body): Likewise.
5966         (atomic_add_negative): Likewise.
5967         (atomic_add_zero): Likewise.
5969 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5971         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
5972         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
5974 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5976         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
5977         Check __x86_64__ instead of __WORDSIZE.
5979 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5981         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
5983 2012-03-19  David S. Miller  <davem@davemloft.net>
5985         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5987         * sysdeps/sparc/fpu/fenv_private.h: New file.
5988         * sysdeps/sparc/fpu/math_private.h: Use it.
5989         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
5990         Remove.
5991         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
5992         (libc_feholdexcept_setroundl): Remove.
5993         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
5994         Remove.
5995         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
5996         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
5998 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6000         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
6001         int64_t instead of long int.
6002         (INSERT_WORDS64): Likwise.
6004 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
6006         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
6007         _Unwind_GetCFA return to _Unwind_Ptr first.
6009 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
6011         [BZ #13629]
6012         * math/s_clog.c: Include <float.h>.
6013         (__clog): Scale large or subnormal inputs.
6014         * math/s_clogf.c: Likewise.
6015         * math/s_clogl.c: Likewise.
6016         * math/s_clog10.c: Include <float.h>.
6017         (M_LOG10_2): Define.
6018         (__clog10): Scale large or subnormal inputs.
6019         * math/s_clog10f.c: Likewise.
6020         * math/s_clog10l.c: Likewise.
6021         * math/libm-test.inc (clog_test): Add more tests.
6022         (clog10_test): Likewise.
6023         * sysdeps/i386/fpu/libm-test-ulps: Update.
6024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6026         [BZ #11451]
6027         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
6028         x and y.
6029         * math/libm-test.inc (atan2_test): Add another test.
6031         * Makerules (common-objdir-compile): Remove.
6032         * sysdeps/unix/Makefile (config-generated): Do not add
6033         $(unix-generated) to variable.
6034         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
6035         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
6036         Remove rule.
6037         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
6038         Likewise.
6039         [generic bits/local_lim.h] (before-compile): Do not append to
6040         variable.
6041         [generic bits/local_lim.h] (common-generated): Likewise.
6042         [generic sys/param.h] (before-compile): Do not append to variable.
6043         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
6044         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
6045         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
6046         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
6047         include.
6048         [generic sys/param.h] (sys/param.h-includes): Remove variable.
6049         [generic sys/param.h] (sys/param.h-includes): Remove rule.
6050         [generic sys/param.h] ($(addprefix
6051         $(common-objpfx),$(sys/param.h-includes))): Likewise.
6052         [generic sys/param.h] (common-generated): Do not append to
6053         variable.
6054         [generic sys/param.h] (sysdep_headers): Likewise.
6055         [generic bits/errno.h] (before-compile): Do not append to
6056         variable.
6057         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
6058         rule.
6059         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
6060         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
6061         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
6062         [generic bits/errno.h] (common-generated): Do not append to
6063         variable.
6064         [generic bits/ioctls.h] (before-compile): Do not append to
6065         variable.
6066         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
6067         rule.
6068         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
6069         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
6070         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
6071         rule.
6072         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
6073         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
6074         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
6075         [generic bits/ioctls.h] (common-generated): Do not append to
6076         variable.
6077         [generic sys/syscall.h] (syscall.h): Remove variable.
6078         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
6079         rule.
6080         [generic sys/syscall.h] (before-compile): Do not append to
6081         variable.
6082         [generic sys/syscall.h] (common-generated): Likewise.
6083         * sysdeps/unix/errnos-tmpl.c: Remove file.
6084         * sysdeps/unix/errnos.awk: Likewise.
6085         * sysdeps/unix/ioctls-tmpl.c: Likewise.
6086         * sysdeps/unix/ioctls.awk: Likewise.
6087         * sysdeps/unix/mk-local_lim.c: Likewise.
6088         * sysdeps/unix/snarf-ioctls: Likewise.
6090 2012-03-19  Richard Henderson  <rth@twiddle.net>
6092         * sysdeps/i386/fpu/fenv_private.h: New file.
6093         * sysdeps/i386/fpu/math_private.h: Use it.
6094         (math_opt_barrier, math_force_eval): Remove.
6095         (libc_feholdexcept_setround_53bit): Remove.
6096         (libc_feupdateenv_53bit): Remove.
6097         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6098         (math_opt_barrier, math_force_eval): Remove.
6099         (libc_feholdexcept): Remove.
6100         (libc_feholdexcept_setround): Remove.
6101         (libc_fetestexcept, libc_fesetenv): Remove.
6102         (libc_feupdateenv_test): Remove.
6103         (libc_feupdateenv, libc_feholdsetround): Remove.
6104         (libc_feresetround): Remove.
6106         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
6107         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
6109         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
6110         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
6111         (libc_feupdateenv_testl): New.
6112         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
6113         (libc_feupdateenv_testf): New.
6114         (libc_feupdateenv): Use libc_feupdateenv_test.
6115         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
6116         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
6118         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
6119         (libc_feholdsetroundf, libc_feholdsetroundl): New.
6120         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
6121         (libc_feresetround_noex): New.
6122         (libc_feresetround_noexf): New.
6123         (libc_feresetround_noexl): New.
6124         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
6125         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
6126         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
6127         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
6128         SET_RESTORE_ROUND.
6129         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6130         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
6131         (__cos): Likewise.
6132         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
6133         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
6134         SET_RESTORE_ROUND_NOEX.
6135         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
6136         SET_RESTORE_ROUND_NOEXF.
6137         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
6138         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
6139         (libc_feholdsetroundf): New.
6140         (libc_feresetround, libc_feresetroundf): New.
6142         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
6143         (libc_feholdexcept_setround_53bit): Convert from macro to function.
6144         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
6146         * sysdeps/generic/math_private.h: Include <fenv.h>.
6147         (default_libc_feholdexcept): New.
6148         (default_libc_feholdexcept_setround): New.
6149         (default_libc_fesetenv, default_libc_feupdateenv): New.
6150         (libc_feholdexcept): Only define if undefined.
6151         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
6152         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
6153         (libc_feholdexcept_setroundl): Likewise.
6154         (libc_feholdexcept_setround_53bit): Likewise.
6155         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
6156         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
6157         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
6158         (libc_feupdateenv_53bit): Likewise.
6159         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
6160         (libc_feholdexcept): Convert from macro to inline function.
6161         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
6162         (libc_fesetenv, libc_feupdateenv): Likewise.
6164         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
6165         not previously defined.
6166         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
6167         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
6168         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
6169         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
6170         * sysdeps/ieee754/flt-32/math_private.h: New file.
6171         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
6172         math_private.h below SET_FLOAT_WORD.
6173         (__isnan, __isinf_ns, __finite): Remove.
6174         (__isnanf, __isinf_nsf, __finitef): Remove.
6176 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
6178         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6180 2012-03-17  David S. Miller  <davem@davemloft.net>
6182         [BZ #6471]
6183         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
6184         for 2.16.
6186 2012-03-16  David S. Miller  <davem@davemloft.net>
6188         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
6189         warnings.
6191         [BZ #6471]
6192         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
6193         properly.
6194         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
6195         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
6196         sysdep_routines when subdir is sysvipc.
6197         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
6198         __getshmlba helper.
6200         * sysdeps/sparc/fpu/libm-test/ulps: Update.
6202 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6204         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
6205         [__LP64__].
6207 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6209         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
6210         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
6211         (__lround): Renamed to ...
6212         (__llround): This.  Replace long int with long long int.
6213         Define lround functions as aliases of llround functions.
6214         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
6216 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6218         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6219         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
6220         adresses to uintptr_t.  Replace "long int" and "unsigned long
6221         int" with "greg_t" on va_arg.
6223 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6225         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
6226         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
6228         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
6229         Move e_machine check before EI_CLASS check.  Handle x32
6230         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
6231         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
6232         SKIP_EM_IA_64 and include
6233         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
6235         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
6236         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
6237         (add_system_dir): New macro.
6239         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
6240         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
6242 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6244         [BZ #2551]
6245         [BZ #2552]
6246         [BZ #2553]
6247         [BZ #2554]
6248         [BZ #2562]
6249         [BZ #2563]
6250         [BZ #2565]
6251         [BZ #2566]
6252         [BZ #2576]
6253         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
6254         (y0): Likewise.
6255         * math/w_j0f.c (j0f): Likewise.
6256         (y0f): Likewise.
6257         * math/w_j0l.c (__j0l): Likewise.
6258         (__y0l): Likewise.
6259         * math/w_j1.c (j1): Likewise.
6260         (y1): Likewise.
6261         * math/w_j1f.c (j1f): Likewise.
6262         (y1f): Likewise.
6263         * math/w_j1l.c (__j1l): Likewise.
6264         (__y1l): Likewise.
6265         * math/w_jn.c (jn): Likewise.
6266         (yn): Likewise.
6267         * math/w_jnf.c (jnf): Likewise.
6268         (ynf): Likewise.
6269         * math/w_jnl.c (__jnl): Likewise.
6270         (__ynl): Likewise.
6271         * math/libm-test.inc (j0_test): Add more tests.
6272         (j1_test): Likewise.
6273         (jn_test): Likewise.  Add trailing semicolon to existing test.
6274         (y0_test): Likewise.
6275         (y1_test): Likewise.
6276         * sysdeps/i386/fpu/libm-test-ulps: Update.
6277         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6279         [BZ #13851]
6280         [BZ #13854]
6281         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
6282         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
6283         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
6284         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
6285         (__tanl): Set errno for infinite argument.
6286         * sysdeps/i386/fpu/mptan.c: Remove.
6287         * sysdeps/i386/fpu/s_tan.S: Likewise.
6288         * sysdeps/i386/fpu/s_tanl.S: Likewise.
6289         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
6290         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
6291         * math/libm-test.inc (tan_test): Add more tests and enable more
6292         tests for double and long double.
6293         * sysdeps/i386/fpu/libm-test-ulps: Update.
6294         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6296 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6298         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
6299         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
6301 2012-03-16  Roland McGrath  <roland@hack.frob.com>
6303         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
6304         * configure.in: Use it for both main tree and add-ons.
6305         * configure: Regenerated.
6307 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6309         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
6311 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6313         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
6314         in comment.
6316         [BZ #13851]
6317         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
6318         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
6319         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
6320         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
6321         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
6322         infinite argument.
6323         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
6324         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
6325         != 0 for prec == 2.
6326         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
6327         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
6328         * sysdeps/i386/fpu/s_cosl.S: Likewise.
6329         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
6330         * sysdeps/i386/fpu/s_sinl.S: Likewise.
6331         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
6332         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
6333         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
6334         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
6335         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
6336         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
6337         * math/libm-test.inc (cos_test): Add more tests and enable more
6338         tests for long double.
6339         (sin_test): Likewise.
6340         (sincos_test): Likewise.
6341         * sysdeps/i386/fpu/libm-test-ulps: Update.
6342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6344 2012-03-16  David S. Miller  <davem@davemloft.net>
6346         * sysdeps/sparc/fpu/math_private.h: New file.
6348 2012-03-15  David S. Miller  <davem@davemloft.net>
6350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
6351         file.
6352         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
6353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
6354         file.
6355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
6356         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
6357         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
6358         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
6359         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
6360         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
6361         sysdep routines.
6362         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6364         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
6365         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
6367         * sysdeps/sparc/sparc-ifunc.h: New file.
6368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
6369         sparc-ifunc.h
6370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6371         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6372         Likewise.
6373         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6374         Likewise.
6375         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
6376         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6378         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6379         Likewise.
6380         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6381         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
6382         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
6384         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
6385         Likewise.
6386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
6387         Likewise.
6388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6389         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
6391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
6392         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6393         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6394         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
6395         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
6396         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6397         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6398         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
6399         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
6400         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
6401         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
6402         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
6403         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6404         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
6405         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6406         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
6407         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6408         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
6409         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6410         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
6411         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6413 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6415         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
6416         scaling.
6417         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6419 2012-03-15  Andreas Jaeger  <aj@suse.de>
6421         [BZ #13852]
6422         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
6423         ieee754/flt-32 implementation for sin, cos and sincos.
6424         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
6425         * sysdeps/i386/fpu/s_cosf.S: Likewise.
6426         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
6427         * sysdeps/i386/fpu/s_sinf.S: Likewise.
6428         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
6429         ieee754/flt-32 implementation for tan.
6431         * math/libm-test.inc (cos_test): Enable some large input tests for
6432         float as well
6433         (sin_test): Likewise.
6434         (sincos_test): Likewise.
6435         (tan_test): Add tests for large input.
6437         * sysdeps/i386/fpu/libm-test-ulps: Update.
6439 2012-03-15  Andreas Jaeger  <aj@suse.de>
6441         [BZ #13658]
6442         * math/libm-test.inc (cos_test): Add more test cases.
6443         (sin_test): Likewise.
6444         (sincos_test): Likewise.
6446 2012-03-15  Andreas Jaeger  <aj@suse.de>
6448         [BZ #13837]
6449         * math/libm-test.inc (cos_test): Add a test case for large input
6450         value.
6451         (sin_test): Likewise.
6452         (sincos_test): Likewise.
6454 2012-03-15  Andreas Jaeger  <aj@suse.de>,
6455         Joseph Myers  <joseph@codesourcery.com>
6457         [BZ #13658]
6458         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
6459         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
6460         * sysdeps/i386/fpu/branred.c: Likewise.
6461         * sysdeps/i386/fpu/dosincos.c: Likewise.
6462         * sysdeps/i386/fpu/mpa.c: Likewise.
6463         * sysdeps/i386/fpu/s_cos.S: Likewise.
6464         * sysdeps/i386/fpu/s_sin.S: Likewise.
6465         * sysdeps/i386/fpu/s_sincos.S: Likewise.
6466         * sysdeps/i386/fpu/sincos32.c: Likewise.
6468         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
6469         Define.
6470         (libc_feupdateenv_53bit): Define.
6471         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
6472         Define.
6473         (libc_feupdateenv_53bit): Define.
6475         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
6476         53 bit (without extend i386 double precision).
6478         * math/libm-test.inc (sincos_test): Add tests for large input.
6479         (sin): Likewise.
6480         (cos): Likewise.
6482         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
6484 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6486         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6488 2012-03-15  David S. Miller  <davem@davemloft.net>
6490         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
6491         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
6492         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
6493         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
6494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
6495         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
6496         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
6497         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
6498         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
6499         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
6500         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
6501         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
6502         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
6503         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
6504         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
6505         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
6506         file.
6507         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
6508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
6509         file.
6510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
6511         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
6512         file.
6513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
6514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
6515         file.
6516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
6517         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
6518         fmin/fmax sysdep routines.
6519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6521 2012-03-14  David S. Miller  <davem@davemloft.net>
6523         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
6524         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
6525         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
6526         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
6527         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
6528         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
6529         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
6530         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
6531         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
6532         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
6533         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
6534         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
6535         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
6536         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
6537         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
6538         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
6539         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
6540         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
6541         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
6542         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
6543         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
6544         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
6545         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
6546         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
6547         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
6548         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
6549         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
6550         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
6551         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
6552         routines.
6553         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
6554         file.
6555         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
6556         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
6557         file.
6558         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
6559         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
6560         file.
6561         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
6562         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
6563         file.
6564         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
6565         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
6566         file.
6567         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
6568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
6569         file.
6570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
6571         file.
6572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
6573         file.
6574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
6575         file.
6576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
6577         New file.
6578         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
6579         file.
6580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
6581         file.
6582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
6583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
6584         file.
6585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
6586         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
6587         file.
6588         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
6589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
6590         file.
6591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
6592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
6593         VIS3 routines.
6595         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
6596         New file.
6598         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6600         * sysdeps/sparc/configure.in: New file.
6601         * sysdeps/sparc/configure: Generate.
6602         * configure.in (libc_cv_sparc_as_vis3): Substitute.
6603         * configure: Regenerate.
6604         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
6605         * config.make.in (have-as-vis3): New.
6606         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
6607         available use -Av9d instead of -Av9a.
6608         * sysdeps/sparc/sparc64/Makefile: Likewise.
6609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
6610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
6611         New file.
6612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
6613         file.
6614         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
6615         New file.
6616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
6617         file.
6618         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
6619         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
6620         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
6621         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
6622         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
6624         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
6625         fzeros/fnegs to load 0x80000000 into a float register instead of
6626         using the stack.
6627         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
6629 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6631         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6632         bits/syscall.h.
6633         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
6634         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
6635         ($(inst_includedir)/bits/syscall.h): Remove rule.
6636         ($(objpfx)bits/syscall.d): Include instead of
6637         $(objpfx)syscall-list.d.
6638         (generated): Change syscall-list.h and syscall-list.d to
6639         bits/syscall.h and bits/syscall.d.
6641 2012-03-14  Roland McGrath  <roland@hack.frob.com>
6643         [BZ #13846]
6644         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
6646 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6648         [BZ #13841]
6649         * math/s_csqrt.c: Include <float.h>.
6650         (__csqrt): Scale large or subnormal inputs.
6651         * math/s_csqrtf.c: Likewise.
6652         * math/s_csqrtl.c: Likewise.
6653         * math/libm-test.inc (csqrt_test): Add more tests.
6654         * sysdeps/i386/fpu/libm-test-ulps: Update.
6655         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6657         [BZ #13840]
6658         * math/libm-test.inc (hypot_test): Add more tests.
6660 2012-03-13  David S. Miller  <davem@davemloft.net>
6662         [BZ #13840]
6663         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
6664         double-precision for the calculation instead of scaling.
6666 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
6668         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
6669         manipulate bits before adding and subtracting TWO52[sx].
6670         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
6671         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6672         Likewise.
6673         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
6675 2012-03-13  David S. Miller  <davem@davemloft.net>
6677         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
6678         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
6679         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
6680         rtld-global-offsets.h
6681         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6683         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
6684         large parameters.
6686         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
6688         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
6689         'err' in the ifdef scope in which it is actually used.
6691         * nss/nss_db/db-init.c: Include string.h
6693 2012-03-12  David S. Miller  <davem@davemloft.net>
6695         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
6696         masking out of the most significant byte of random value used.
6697         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6698         Fix coding style in previous change.
6700         * sysdeps/unix/sysv/linux/kernel-features.h
6701         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
6702         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
6703         expression.
6704         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
6705         later.
6707 2012-03-11  David S. Miller  <davem@davemloft.net>
6709         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6710         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
6711         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
6712         for 'resultvar' otherwise things get truncated on 64-bit.
6714         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6715         Fix masking out of the most significant byte of random value used.
6717         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6719 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
6721         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6723 2012-03-09  David S. Miller  <davem@davemloft.net>
6725         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
6726         variables with appropriate CPP guards.
6727         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
6728         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
6729         on resulting framesize and the management of the outregs buffer for pltexit.
6730         Preserve floating point return values across _dl_call_pltexit call.
6731         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
6732         framesize and the management of the outregs buffer for pltexit.
6733         Preserve floating point return values across _dl_call_pltexit
6734         call.
6735         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
6736         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
6737         (print_exit): Fix format string for return register value.
6739 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
6741         * sunrpc/Makefile (others): Add rpcgen.
6742         ($(objpfx)rpcgen): Remove special build rule and dependency on
6743         libc.
6744         * sunrpc/rpcgen.c: New file.
6746 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
6748         [BZ #13673]
6749         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
6750         * stdio-common/bug-vfprintf-nargs.c: Likewise.
6751         * sysdeps/i386/crti.S: Likewise.
6752         * sysdeps/i386/crtn.S: Likewise.
6753         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
6754         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
6755         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
6756         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
6757         * sysdeps/sh/crti.S: Likewise.
6758         * sysdeps/sh/crtn.S: Likewise.
6759         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
6761         [BZ #13673]
6762         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
6763         with URL.
6764         * locale/programs/locfile-kw.gperf: Likewise.
6765         * locale/programs/charmap-kw.h: Regenerated.
6766         * locale/programs/locfile-kw.h: Likewise.
6768         [BZ #13673]
6769         * intl/plural.y: Replace FSF snail mail address with URL.
6770         * intl/plural.c: Regenerated.
6772 2012-03-09  Richard Henderson  <rth@twiddle.net>
6774         * include/math_private.h: Remove file.
6775         * math/math_private.h: Move file ...
6776         * sysdeps/generic/math_private.h: ... here.
6778         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
6779         * sysdeps/powerpc/fpu/math_private.h: Likewise.
6780         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6782         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
6783         and <math_private.h>.
6784         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
6785         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6786         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
6787         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
6788         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
6789         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
6790         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6791         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6792         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6793         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6794         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6795         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6796         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6797         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6798         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6799         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6800         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6801         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6802         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6803         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6804         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6805         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6806         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6807         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6808         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
6809         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6810         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6811         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6812         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6813         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6814         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6815         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6816         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6817         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6818         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6819         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6820         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6821         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
6822         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6823         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6824         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
6825         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
6826         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
6827         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6828         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
6829         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6830         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6831         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6832         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6833         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
6834         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6835         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6836         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
6837         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6838         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
6839         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6840         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6841         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
6842         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
6843         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
6844         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6845         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6846         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6847         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
6848         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6849         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6850         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6851         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6852         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
6853         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
6854         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
6855         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6856         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6857         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6858         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
6859         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6860         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
6861         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6862         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
6863         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6864         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
6865         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6866         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
6867         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6868         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6869         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
6870         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
6871         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6872         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6873         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6874         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6875         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6876         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6877         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6878         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6879         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6880         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6881         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6882         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6883         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6884         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6885         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6886         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6887         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6888         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6889         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6890         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6891         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6892         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6893         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6894         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6895         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6896         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6897         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6898         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6899         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6900         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6901         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
6902         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6903         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6904         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6905         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6906         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6907         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
6908         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6909         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
6910         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6911         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6912         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6913         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6914         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6915         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6916         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6917         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6918         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6919         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
6920         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6921         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
6922         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
6923         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6924         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6925         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
6926         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
6927         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
6928         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
6929         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
6930         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
6931         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
6932         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6933         * sysdeps/ieee754/k_standard.c: Likewise.
6934         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6935         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6936         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6937         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6938         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6939         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6940         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6941         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6942         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6943         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6944         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6945         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6946         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6947         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6948         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6949         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6950         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
6951         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6952         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6953         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
6954         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
6955         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
6956         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6957         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
6958         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
6959         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
6960         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6961         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6962         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
6963         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6964         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
6965         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
6966         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6967         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6968         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
6969         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
6970         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
6971         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
6972         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6973         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6974         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6975         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6976         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
6977         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
6978         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6979         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6980         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
6981         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6982         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
6983         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6984         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6985         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
6986         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6987         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6988         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6989         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6990         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
6991         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
6992         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
6993         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
6994         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6995         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6996         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6997         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6998         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6999         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
7000         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
7001         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
7002         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
7003         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
7004         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
7005         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
7006         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
7007         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
7008         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
7009         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
7010         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
7011         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
7012         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7013         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
7014         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
7015         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
7016         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
7017         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
7018         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
7019         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
7020         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
7021         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
7022         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
7023         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
7024         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
7025         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
7026         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
7027         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
7028         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
7029         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
7030         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
7031         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
7032         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
7033         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
7034         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
7035         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
7036         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
7037         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
7038         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
7039         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7040         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7041         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
7042         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
7043         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7044         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7045         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7046         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7047         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7048         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7049         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7050         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7051         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7052         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7053         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7054         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7055         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7056         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7057         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7058         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7059         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7060         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7061         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7062         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7063         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7064         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7065         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7066         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7067         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
7068         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7069         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7070         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
7071         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7072         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7073         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7074         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7075         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7076         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7077         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7078         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7079         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7080         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7081         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7082         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7083         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
7084         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7085         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7086         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7087         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7088         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
7089         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
7090         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7091         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7092         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7093         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
7094         * sysdeps/ieee754/s_lib_version.c: Likewise.
7095         * sysdeps/ieee754/s_matherr.c: Likewise.
7096         * sysdeps/ieee754/s_signgam.c: Likewise.
7097         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7098         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7099         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7100         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7101         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7102         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7103         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
7104         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
7105         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7106         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7107         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7108         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7109         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7110         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7111         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
7112         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
7113         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
7114         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
7115         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
7116         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7117         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7119 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7121         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
7122         * sunrpc/rpc_main.c: Likewise.
7123         * sunrpc/rpc_svcout.c: Likewise.
7125 2012-03-09  David S. Miller  <davem@davemloft.net>
7127         * include/math_private.h: New file.
7129 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7131         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
7132         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
7133         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
7134         from <bits/socket_type.h>.
7135         (enum __socket_type): Don't define here.
7136         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
7137         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7138         bits/socket_type.h.
7140         [BZ #13566]
7141         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
7142         checking __USE_GNU.
7144         * Makerules ($(inst_includedir)/%.h): New rule.
7145         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
7146         (install-others): Remove variable setting.
7147         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
7149 2012-03-08  Richard Henderson  <rth@twiddle.net>
7151         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
7152         from macro to inline function; merge with the
7153         !__LIBC_INTERNAL_MATH_INLINES version.
7154         (__ieee754_sqrtf): Likewise.
7156         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
7157         to inline function.
7158         (__rintf, __floor, __floorf): Likewise.
7160         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
7161         macro to inline function.
7162         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
7164         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
7165         not <math/math_private.h>.
7167 2012-03-08  David S. Miller  <davem@davemloft.net>
7169         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
7170         copyright year.
7171         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7173 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
7175         * resolv/gai_misc.c (handle_requests): Fix struct timespec
7176         normalization.
7177         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
7178         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
7180 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
7182         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
7183         be defined individually, they must be defined as a block.  Define
7184         S for printing a string instead of hidint the different by using a
7185         macro for adding the 'l'.
7186         * stdio-common/tst-fphex-wide.c: Adjust.
7188 2012-03-07  Marek Polacek  <polacek@redhat.com>
7190         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
7192 2012-03-08  Marek Polacek  <polacek@redhat.com>
7194         [BZ #13806]
7195         * stdio-common/Makefile (tests): Add tst-fphex-wide.
7196         * stdio-common/tst-fphex.c: Define a few macros to make the
7197         test reusable.  Use them.
7198         * stdio-common/tst-fphex-wide.c: New file.
7200 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
7202         [BZ #6911]
7203         * manual/macros.texi (gnusystems): New macro.
7204         (nongnusystems): Likewise.
7205         (gnulinuxhurdsystems): Likewise.
7206         (gnuhurdsystems): Likewise..
7207         (gnulinuxsystems): Likewise.
7208         * manual/charset.texi: Use new macros or @theglibc{} to refer to
7209         variants of the GNU system, not "GNU system".
7210         * manual/conf.texi: Likewise.
7211         * manual/errno.texi: Likewise.  Update example of errno macro
7212         expansion.
7213         * manual/filesys.texi: Likewise.
7214         (getumask): Document as specific to GNU/Hurd.
7215         * manual/install.texi: Likewise.  Reword some references to
7216         GNU/Linux.
7217         * manual/intro.texi: Likewise.
7218         * manual/io.texi: Likewise.
7219         (File Name Portability): Detail which constraints are inapplicable
7220         to all GNU systems and which are only inapplicable to GNU/Hurd.
7221         * manual/job.texi: Likewise.
7222         * manual/llio.texi: Likewise.
7223         (O_NOCTTY): Document as present on GNU/Linux.
7224         * manual/maint.texi: Likewise.
7225         * manual/memory.texi: Likewise.
7226         * manual/pattern.texi: Likewise.
7227         * manual/pipe.texi: Likewise.
7228         * manual/process.texi: Likewise.
7229         * manual/resource.texi: Likewise.
7230         (RUSAGE_CHILDREN): Remove statement about specifying a particular
7231         child on GNU/Hurd.
7232         * manual/setjmp.texi: Likewise.
7233         * manual/signal.texi: Likewise.
7234         * manual/startup.texi: Likewise.
7235         * manual/stdio.texi: Likewise.
7236         * manual/terminal.texi: Likewise.
7237         (ONLCR): Document as POSIX.
7238         (OXTABS): Document availability on GNU/Linux as XTABS.
7239         (ONOEOT): Document availability separately from other bits.
7240         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
7241         * manual/time.texi: Likewise.
7242         * manual/users.texi: Likewise.
7243         * INSTALL: Regenerated.
7244         * sysdeps/gnu/errlist.c: Regenerated.
7246         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
7247         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
7248         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
7249         puts.
7250         * configure: Regenerated.
7252 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
7254         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
7255         default includes instead of AC_HEADER_CHECK.
7256         * sysdeps/i386/configure: Regenerated.
7258         [BZ #10716]
7259         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
7260         * math/s_cacoshf.c (__cacoshf): Likewise.
7261         * math/s_cacoshl.c (__cacoshl): Likewise.
7262         * math/s_casinh.c (__casinh): Set signs of result from argument.
7263         * math/s_casinhf.c (__casinhf): Likewise.
7264         * math/s_casinhl.c (__casinhl): Likewise.
7265         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
7266         (casinh_test): Add more tests.
7267         * sysdeps/i386/fpu/libm-test-ulps: Update.
7268         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7270 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
7272         * po/zh_TW.po: Update from translation team.
7274         * login/Makefile (distribute): Remove variable.
7275         * catgets/Makefile: Likewise.
7276         * mach/Makefile: Likewise.
7277         * malloc/Makefile: Likewise.
7278         * misc/Makefile: Likewise.
7279         * iconv/Makefile: Likewise.
7280         * nscd/Makefile: Likewise.
7281         * hurd/Makefile: Likewise.
7282         * manual/Makefile: Likewise.
7283         * locale/Makefile: Likewise.
7284         * intl/Makefile: Likewise.
7285         * conform/Makefile: Likewise.
7286         * nss/Makefile: Likewise.
7287         * time/Makefile: Likewise.
7288         * soft-fp/Makefile: Likewise.
7289         * dirent/Makefile: Likewise.
7290         * gmon/Makefile: Likewise.
7291         * po/Makefile: Likewise.
7292         * rt/Makefile: Likewise.
7293         * socket/Makefile: Likewise.
7294         * math/Makefile: Likewise.
7295         * signal/Makefile: Likewise.
7296         * debug/Makefile: Likewise.
7297         * elf/Makefile: Likewise.
7298         * timezone/Makefile: Likewise.
7299         * stdlib/Makefile: Likewise.
7300         * iconvdata/Makefile: Likewise.
7301         * sunrpc/Makefile: Likewise.
7302         * io/Makefile: Likewise.
7303         * argp/Makefile: Likewise.
7304         * inet/Makefile: Likewise.
7305         * hesiod/Makefile: Likewise.
7306         * grp/Makefile: Likewise.
7307         * csu/Makefile: Likewise.
7308         * wctype/Makefile: Likewise.
7309         * crypt/Makefile: Likewise.
7310         * libio/Makefile: Likewise.
7311         * string/Makefile: Likewise.
7312         * nis/Makefile: Likewise.
7313         * resolv/Makefile: Likewise.
7314         * stdio-common/Makefile: Likewise.
7315         * wcsmbs/Makefile: Likewise.
7316         * dlfcn/Makefile: Likewise.
7317         * posix/Makefile: Likewise.
7319         [BZ #6959]
7320         * timezone/Makefile: Don't install timezone files, just the programs
7321         and scripts.
7323 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
7325         * nss/databases.def: Add missing gshadow entry.
7327         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
7329 2012-03-06  Marek Polacek  <polacek@redhat.com>
7331         [BZ #13726]
7332         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
7333         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
7334         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
7335         * stdio-common/tst-long-dbl-fphex.c: New file.
7337 2012-03-06  David S. Miller  <davem@davemloft.net>
7339         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7340         (set_obp_int): New function.
7341         (get_obp_int): New function.
7342         (__get_clockfreq_via_dev_openprom): Likewise.
7343         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7344         Avoid unused variable warnings on 'val' and use builtin_expect.
7345         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
7346         __builtin_expect.
7347         (INLINE_CLONE_SYSCALL): Likewise.
7349 2012-03-05  David S. Miller  <davem@davemloft.net>
7351         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7353 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
7355         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7357         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
7358         only for |x| >= 40.
7359         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7361 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7363         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
7364         Replace gettimeofday with __vdso_gettimeofday.
7366         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7367         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
7368         __vdso_clock_gettime and __vdso_getcpu.
7370         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
7371         time with __vdso_time.
7373 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7375         * manual/lang.texi (size_t): Note types to which size_t may be
7376         equivalent with the GNU C Library, but do not describe when
7377         differences between them are significant.
7379 2012-03-05  Andreas Jaeger  <aj@suse.de>
7381         * sysdeps/i386/fpu/libm-test-ulps: Update.
7383 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7385         [BZ #3976]
7386         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
7387         (__ieee754_pow): Save and restore rounding mode and use
7388         round-to-nearest for main computations.
7389         * math/libm-test.inc (pow_test_tonearest): New function.
7390         (pow_test_towardzero): Likewise.
7391         (pow_test_downward): Likewise.
7392         (pow_test_upward): Likewise.
7393         (main): Call the new functions.
7394         * sysdeps/i386/fpu/libm-test-ulps: Update.
7395         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7397         [BZ #3976]
7398         * math/libm-test.inc (cosh_test_tonearest): New function.
7399         (cosh_test_towardzero): Likewise.
7400         (cosh_test_downward): Likewise.
7401         (cosh_test_upward): Likewise.
7402         (sinh_test_tonearest): Likewise.
7403         (sinh_test_towardzero): Likewise.
7404         (sinh_test_downward): Likewise.
7405         (sinh_test_upward): Likewise.
7406         (main): Call the new functions.
7407         * sysdeps/i386/fpu/libm-test-ulps: Update.
7408         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7410 2012-03-05  Tom de Vries  <tom@codesourcery.com>
7412         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
7413         default stack guard is set in last bytes.
7414         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
7416 2012-03-05  Kees Cook  <keescook@chromium.org>
7418         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
7420         [BZ #13656]
7421         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
7422         possibly allocate from heap instead of stack.
7423         * stdio-common/bug-vfprintf-nargs.c: New file.
7424         * stdio-common/Makefile (tests): Add nargs overflow test.
7426 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7428         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7430 2012-03-03  Marek Polacek  <polacek@redhat.com>
7432         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
7433         * math/math_private.h: Likewise.
7434         * stdlib/tst-strtod.c: Likewise.
7435         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7436         * sysdeps/x86_64/bits/atomic.h: Likewise.
7438 2012-03-02  David S. Miller  <davem@davemloft.net>
7440         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
7441         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
7442         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
7443         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
7444         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
7445         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
7446         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
7447         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
7449 2012-03-02  Roland McGrath  <roland@hack.frob.com>
7451         [BZ #13792]
7452         * manual/examples/README: New file, says the example source files
7453         can be used under GPL>=2.
7454         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
7455         line containing just "*/".
7456         * manual/examples/add.c: Add copyright header (GPL>=2).
7457         * manual/examples/argp-ex1.c: Likewise.
7458         * manual/examples/argp-ex2.c: Likewise.
7459         * manual/examples/argp-ex3.c: Likewise.
7460         * manual/examples/argp-ex4.c: Likewise.
7461         * manual/examples/atexit.c: Likewise.
7462         * manual/examples/db.c: Likewise.
7463         * manual/examples/dir.c: Likewise.
7464         * manual/examples/dir2.c: Likewise.
7465         * manual/examples/execinfo.c: Likewise.
7466         * manual/examples/filecli.c: Likewise.
7467         * manual/examples/filesrv.c: Likewise.
7468         * manual/examples/fmtmsgexpl.c: Likewise.
7469         * manual/examples/genpass.c: Likewise.
7470         * manual/examples/inetcli.c: Likewise.
7471         * manual/examples/inetsrv.c: Likewise.
7472         * manual/examples/isockad.c: Likewise.
7473         * manual/examples/longopt.c: Likewise.
7474         * manual/examples/memopen.c: Likewise.
7475         * manual/examples/memstrm.c: Likewise.
7476         * manual/examples/mkfsock.c: Likewise.
7477         * manual/examples/mkisock.c: Likewise.
7478         * manual/examples/mygetpass.c: Likewise.
7479         * manual/examples/pipe.c: Likewise.
7480         * manual/examples/popen.c: Likewise.
7481         * manual/examples/rprintf.c: Likewise.
7482         * manual/examples/search.c: Likewise.
7483         * manual/examples/select.c: Likewise.
7484         * manual/examples/setjmp.c: Likewise.
7485         * manual/examples/sigh1.c: Likewise.
7486         * manual/examples/sigusr.c: Likewise.
7487         * manual/examples/stpcpy.c: Likewise.
7488         * manual/examples/strdupa.c: Likewise.
7489         * manual/examples/strftim.c: Likewise.
7490         * manual/examples/strncat.c: Likewise.
7491         * manual/examples/subopt.c: Likewise.
7492         * manual/examples/swapcontext.c: Likewise.
7493         * manual/examples/termios.c: Likewise.
7494         * manual/examples/testopt.c: Likewise.
7495         * manual/examples/testpass.c: Likewise.
7496         * manual/examples/timeval_subtract.c: Likewise.
7498         [BZ #13792]
7499         * manual/time.texi (Elapsed Time): Move timeval_subtract example
7500         function to ...
7501         * manual/timeval_subtract.c.texi: ... here, new file.
7503 2012-03-02  David S. Miller  <davem@davemloft.net>
7505         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
7507 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
7509         [BZ #3976]
7510         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
7511         (__sin): Save and restore rounding mode and use round-to-nearest
7512         for all computations.
7513         (__cos): Save and restore rounding mode and use round-to-nearest
7514         for all computations.
7515         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
7516         <fenv.h>.
7517         (tan): Save and restore rounding mode and use round-to-nearest for
7518         all computations.
7519         * math/libm-test.inc (cos_test_tonearest): New function.
7520         (cos_test_towardzero): Likewise.
7521         (cos_test_downward): Likewise.
7522         (cos_test_upward): Likewise.
7523         (sin_test_tonearest): Likewise.
7524         (sin_test_towardzero): Likewise.
7525         (sin_test_downward): Likewise.
7526         (sin_test_upward): Likewise.
7527         (tan_test_tonearest): Likewise.
7528         (tan_test_towardzero): Likewise.
7529         (tan_test_downward): Likewise.
7530         (tan_test_upward): Likewise.
7531         (main): Call the new functions.
7532         * sysdeps/i386/fpu/libm-test-ulps: Update.
7533         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7535         [BZ #10135]
7536         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
7537         small n, then large n, before computing and testing k+n.
7538         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7539         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7540         Likewise.
7541         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7542         Likewise.
7543         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
7544         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7545         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7546         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7547         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7548         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7549         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7550         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
7551         * math/libm-test.inc (scalbn_test): Add more tests.
7552         (scalbln_test): Likewise.
7554         * manual/filesys.texi (mode_t): Describe constraints on size and
7555         signedness, not exact equivalence to a particular type.
7556         (ino_t): Likewise.
7557         (ino64_t): Likewise.
7558         (dev_t): Likewise.
7559         (nlink_t): Likewise.
7560         (blkcnt_t): Likewise.
7561         (blkcnt64_t): Likewise.
7562         * manual/llio.texi (off_t): Likewise.
7564         [BZ #3976]
7565         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
7566         (__ieee754_exp): Save and restore rounding mode and use
7567         round-to-nearest for all computations.
7568         * math/libm-test.inc (exp_test_tonearest): New function.
7569         (exp_test_towardzero): Likewise.
7570         (exp_test_downward): Likewise.
7571         (exp_test_upward): Likewise.
7572         (main): Call the new functions.
7573         * sysdeps/i386/fpu/libm-test-ulps: Update.
7574         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7576 2012-03-01  Chris Demetriou  <cgd@google.com>
7578         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
7579         have predictable order.
7581 2012-03-01  David S. Miller  <davem@davemloft.net>
7583         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
7585         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
7586         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
7587         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
7588         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
7590         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
7591         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
7592         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
7593         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
7594         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
7595         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
7596         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
7597         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
7598         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
7600         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7602         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
7603         * sysdeps/sparc/fpu/libm-test-ulps: to here.
7604         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
7606         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
7607         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7608         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7609         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
7610         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
7611         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
7612         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
7613         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7614         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7615         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
7616         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
7617         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7618         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7619         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
7620         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7621         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7622         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
7623         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
7624         * sysdeps/sparc/elf/configure: Regenerated.
7626 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
7628         * configure.in (AS, LD): Require binutils 2.20 or later.
7629         * configure: Regenerated.
7630         * manual/install.texi (Tools for Compilation): Give binutils 2.20
7631         as required minimum version.
7632         * INSTALL: Regenerated.
7634         [BZ #2541]
7635         [BZ #4108]
7636         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
7637         before squaring exponent.
7638         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
7639         bottom long double and 27 bits of top long double before squaring
7640         exponent.
7641         * math/libm-test.inc (erfc_test): Add more tests.
7642         * sysdeps/i386/fpu/libm-test-ulps: Update.
7643         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7644         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7646 2012-03-01  Kai Tietz  <ktietz@redhat.com>
7648         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
7649         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
7650         containing bit-fields.
7651         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7652         * soft-fp/single.h (_FP_UNION_S): Likewise.
7653         * soft-fp/double.h (_FP_UNION_D): Likewise.
7655 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7657         [BZ #13786]
7658         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
7659         not include ../strcmp.S.
7660         [USE_AS_STRNCASECMP_L]: Likewise.
7661         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
7662         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
7663         * sysdeps/i386/i686/multiarch/strncase_l-c.c
7664         (__strncasecmp_l_ia32): Define as alias to
7665         __strncasecmp_l_nonascii.
7667         [BZ #5794]
7668         * math/libm-test.inc (expm1_test): Add test for bug 5794.
7669         * sysdeps/i386/fpu/libm-test-ulps: Update.
7670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7672         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
7673         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7675 2012-02-29  Jeff Law  <law@redhat.com>
7677         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
7678         out of bounds read.
7680 2012-02-29  Marek Polacek  <polacek@redhat.com>
7682         [BZ #13706]
7683         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
7684         * elf/Makefile: Add rules to run tst-unused-dep.out.
7686 2012-02-28  David S. Miller  <davem@davemloft.net>
7688         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
7689         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
7690         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
7691         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
7692         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
7693         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
7695 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7697         * math/libm-test.inc (llround_test): Move one test from
7698         lround_test.  Use TEST_f_L in moved test.
7699         (lround_test): Move misplaced test to llround_test.  Add testcase
7700         from bug 2561.
7702 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
7704         * sysdeps/x86_64/fpu/e_expf.S: New file.
7705         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
7707 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
7709         [BZ #13637]
7710         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
7711         of remain_len that may cause incomplete multi-byte character and
7712         false match.
7713         * posix/bug-regex33.c: New file.
7714         * posix/Makefile (tests): Add bug-regex33.
7716 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
7718         * manual/macros.texi: New file.
7719         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
7720         * manual/libc.texinfo: Include macros.texi.
7721         * manual/creatute.texi: Likewise.
7722         * manual/install.texi: Likewise.
7723         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
7724         @glibcadj{} in references to the GNU C Library.
7725         * manual/charset.texi: Likewise.
7726         * manual/conf.texi: Likewise.
7727         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
7728         when not using those macros.
7729         * manual/creature.texi: Likewise.
7730         * manual/crypt.texi: Likewise.
7731         * manual/errno.texi: Likewise.
7732         * manual/filesys.texi: Likewise.
7733         * manual/header.texi: Likewise.
7734         * manual/install.texi: Likewise.
7735         * manual/intro.texi: Likewise.
7736         * manual/io.texi: Likewise.
7737         * manual/job.texi: Likewise.
7738         * manual/lang.texi: Likewise.
7739         * manual/libc.texiinfo: Likewise.
7740         * manual/llio.texi: Likewise.
7741         * manual/locale.texi: Likewise.
7742         * manual/maint.texi: Likewise.
7743         * manual/math.texi: Likewise.
7744         * manual/memory.texi: Likewise.
7745         * manual/message.texi: Likewise.
7746         * manual/nss.texi: Likewise.
7747         * manual/pattern.texi: Likewise.
7748         * manual/process.texi: Likewise.
7749         * manual/resource.texi: Likewise.
7750         * manual/search.texi: Likewise.
7751         * manual/setjmp.texi: Likewise.
7752         * manual/signal.texi: Likewise.
7753         * manual/socket.texi: Likewise.
7754         * manual/startup.texi: Likewise.
7755         * manual/stdio.texi: Likewise.
7756         * manual/string.texi: Likewise.
7757         * manual/sysinfo.texi: Likewise.
7758         * manual/syslog.texi: Likewise.
7759         * manual/terminal.texi: Likewise.
7760         * manual/time.texi: Likewise.
7761         * manual/users.texi: Likewise.
7762         * INSTALL: Regenerated.
7763         * NOTES: Regenerated.
7764         * sysdeps/gnu/errlist.c: Regenerated.
7766 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
7768         * include/dirent.h: Include <dirstream.h> before
7769         <dirent/dirent.h>.
7771 2012-02-28  David S. Miller  <davem@davemloft.net>
7773         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
7774         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
7775         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
7776         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
7778 2012-02-27  David S. Miller  <davem@davemloft.net>
7780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
7781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
7782         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
7783         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
7785         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
7786         frame pointer instead of stack pointer relative arg slot.
7787         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7788         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7789         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7791 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
7793         [BZ #3992]
7794         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
7796 2012-02-27  David S. Miller  <davem@davemloft.net>
7798         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
7799         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7801         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
7802         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7803         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7804         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
7805         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
7807 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7809         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
7810         later.  Allow versions 5-9.
7811         * configure: Regenerated.
7812         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
7813         required minimum version and 4.6 as recommended version.  Do not
7814         mention bugs in GCC 2.7 and 2.8.
7815         * INSTALL: Regenerated.
7817 2012-02-27  David S. Miller  <davem@davemloft.net>
7819         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
7820         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
7821         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
7822         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
7823         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
7824         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
7825         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
7826         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
7828         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
7829         manipulate bits before adding and subtracting TWO112[sx].
7830         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7832 2012-02-27  Roland McGrath  <roland@hack.frob.com>
7834         [BZ #13775]
7835         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
7836         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
7837         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
7838         being in POSIX, because they are in 1003.1-2008.
7840         * rt/tst-aio.c: Include <fcntl.h>.
7841         * rt/tst-aio7.c: Likewise.
7842         * rt/tst-aio64.c: Likewise.
7844         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
7846 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7848         * manual/install.texi (--with-headers): Describe headers as
7849         interface headers, not private headers.
7850         (Specific advice for GNU/Linux systems): Describe use of headers
7851         from "make headers_install", not private headers from older
7852         kernels.
7853         * INSTALL: Regenerated.
7854         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
7855         Change to 2.6.19.
7856         * sysdeps/unix/sysv/linux/configure: Regenerated.
7858         * manual/llio.texi (fclean): Remove documentation.
7860         * manual/Makefile (libc-texi-generated): New variable.  Include
7861         version.texi.
7862         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
7863         $(libc-texi-generated), not duplicated list of files.
7864         (version.texi, stamp-version): New rules.
7865         (realclean): Remove $(libc-texi-generated), not individual files
7866         from that list.  Do not remove dir-add.texinfo.
7867         * manual/libc.texinfo: Comment out uses of edition numbers and
7868         references to printed manual.  Remove last-updated dates.
7869         (EDITION): Comment out.
7870         (ISBN): Likewise.
7871         (VERSION, UPDATED): Remove.
7872         (version.texi): Include.
7874 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
7876         * sysdeps/posix/spawni.c: Include <signal.h>.
7877         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
7878         * sysdeps/pthread/aio_fsync.c: Likewise.
7880 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
7882         * conform/Makefile (tests): Run only when not cross-compiling and
7883         when fast-check is not defined.
7885         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
7886         * conform/data/limits.h-data: Fixes for POSIX2008.
7887         * conform/run-conformtest.sh: Run all tests.
7888         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
7889         headers.
7890         * include/bits/dlfcn.h: Likewise.
7891         * include/langinfo.h: Likewise.
7892         * include/monetary.h: Likewise.
7893         * include/sys/poll.h: Likewise.
7895         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
7896         for __USE_GNU.
7897         * posix/spawn.h: Define __need_sigset_t.
7898         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
7899         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
7900         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
7901         to get sigevent_t only.
7902         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
7903         only for __USE_GNU.
7904         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7905         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7906         process_vm_writev only for __USE_GNU.
7907         * termios/termios.h: Declare tcgetsid also for POSIX2008.
7909         * conform/Makefile: For now ignore errors from run-conformtest.
7910         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
7911         POSIX to avoid namespace pollution.  Don't prepend headers.
7912         * conform/data/aio.h-data: Fixes for POSIX testing.
7913         * conform/data/fcntl.h-data: Likewise.
7914         * conform/data/glob.h-data: Likewise.
7915         * conform/data/grp.h-data: Likewise.
7916         * conform/data/pthread.h-data: Likewise.
7917         * conform/data/pwd.h-data: Likewise.
7918         * conform/data/signal.h-data: Likewise.
7919         * conform/data/spawn.h-data: Likewise.
7920         * conform/data/stdio.h-data: Likewise.
7921         * conform/data/stdlib.h-data: Likewise.
7922         * conform/data/stropts.h-data: Likewise.
7923         * conform/data/sys/mman.h-data: Likewise.
7924         * conform/data/sys/stat.h-data: Likewise.
7925         * conform/data/sys/types.h-data: Likewise.
7926         * conform/data/sys/wait.h-data: Likewise.
7927         * conform/data/time.h-data: Likewise.
7928         * conform/data/unistd.h-data: Likewise.
7929         * conform/data/utime.h-data: Likewise.
7931         * io/sys/stat.h: fchmod was always in POSIX.
7932         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
7933         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
7934         * rt/aio.h: Define __need_timespec before including <time.h>.
7935         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
7936         struct.  Add forward declaration of pthread_attr_t and use it in
7937         sigevent.
7938         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7939         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7940         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
7941         always remove CLK_TCK definition.
7943 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
7945         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
7947 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
7949         * conform/run-conformtest.sh: New file.
7950         * conform/Makefile: Run run-conformtest for tests.
7951         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
7952         support.
7954         * conform/data/uchar.h-data: New file.
7955         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
7956         * conform/data/arpa/inet.h-data: Likewise.
7957         * conform/data/assert.h-data: Likewise.
7958         * conform/data/complex.h-data: Likewise.
7959         * conform/data/cpio.h-data: Likewise.
7960         * conform/data/ctype.h-data: Likewise.
7961         * conform/data/dirent.h-data: Likewise.
7962         * conform/data/dlfcn.h-data: Likewise.
7963         * conform/data/errno.h-data: Likewise.
7964         * conform/data/fcntl.h-data: Likewise.
7965         * conform/data/float.h-data: Likewise.
7966         * conform/data/fmtmsg.h-data: Likewise.
7967         * conform/data/fnmatch.h-data: Likewise.
7968         * conform/data/ftw.h-data: Likewise.
7969         * conform/data/glob.h-data: Likewise.
7970         * conform/data/grp.h-data: Likewise.
7971         * conform/data/iconv.h-data: Likewise.
7972         * conform/data/inttypes.h-data: Likewise.
7973         * conform/data/langinfo.h-data: Likewise.
7974         * conform/data/libgen.h-data: Likewise.
7975         * conform/data/limits.h-data: Likewise.
7976         * conform/data/locale.h-data: Likewise.
7977         * conform/data/math.h-data: Likewise.
7978         * conform/data/monetary.h-data: Likewise.
7979         * conform/data/mqueue.h-data: Likewise.
7980         * conform/data/ndbm.h-data: Likewise.
7981         * conform/data/net/if.h-data: Likewise.
7982         * conform/data/netdb.h-data: Likewise.
7983         * conform/data/netinet/in.h-data: Likewise.
7984         * conform/data/nl_types.h-data: Likewise.
7985         * conform/data/poll.h-data: Likewise.
7986         * conform/data/pthread.h-data: Likewise.
7987         * conform/data/pwd.h-data: Likewise.
7988         * conform/data/regex.h-data: Likewise.
7989         * conform/data/sched.h-data: Likewise.
7990         * conform/data/search.h-data: Likewise.
7991         * conform/data/semaphore.h-data: Likewise.
7992         * conform/data/setjmp.h-data: Likewise.
7993         * conform/data/signal.h-data: Likewise.
7994         * conform/data/spawn.h-data: Likewise.
7995         * conform/data/stdarg.h-data: Likewise.
7996         * conform/data/stdio.h-data: Likewise.
7997         * conform/data/stdlib.h-data: Likewise.
7998         * conform/data/string.h-data: Likewise.
7999         * conform/data/strings.h-data: Likewise.
8000         * conform/data/stropts.h-data: Likewise.
8001         * conform/data/sys/ipc.h-data: Likewise.
8002         * conform/data/sys/mman.h-data: Likewise.
8003         * conform/data/sys/msg.h-data: Likewise.
8004         * conform/data/sys/resource.h-data: Likewise.
8005         * conform/data/sys/select.h-data: Likewise.
8006         * conform/data/sys/sem.h-data: Likewise.
8007         * conform/data/sys/shm.h-data: Likewise.
8008         * conform/data/sys/socket.h-data: Likewise.
8009         * conform/data/sys/stat.h-data: Likewise.
8010         * conform/data/sys/statvfs.h-data: Likewise.
8011         * conform/data/sys/time.h-data: Likewise.
8012         * conform/data/sys/timeb.h-data: Likewise.
8013         * conform/data/sys/times.h-data: Likewise.
8014         * conform/data/sys/types.h-data: Likewise.
8015         * conform/data/sys/uio.h-data: Likewise.
8016         * conform/data/sys/un.h-data: Likewise.
8017         * conform/data/sys/utsname.h-data: Likewise.
8018         * conform/data/sys/wait.h-data: Likewise.
8019         * conform/data/syslog.h-data: Likewise.
8020         * conform/data/tar.h-data: Likewise.
8021         * conform/data/termios.h-data: Likewise.
8022         * conform/data/utime.h-data: Likewise.
8023         * conform/data/utmpx.h-data: Likewise.
8024         * conform/data/varargs.h-data: Likewise.
8025         * conform/data/wchar.h-data: Likewise.
8026         * conform/data/wctype.h-data: Likewise.
8027         * conform/data/wordexp.h-data: Likewise.
8029         * include/stropts.h: New file.
8030         * include/uchar.h: New file.
8031         * include/aio.h: Changes to allow conformtest.pl to use the headers.
8032         * include/assert.h: Likewise.
8033         * include/ctype.h: Likewise.
8034         * include/dirent.h: Likewise.
8035         * include/dlfcn.h: Likewise.
8036         * include/fcntl.h: Likewise.
8037         * include/fnmatch.h: Likewise.
8038         * include/glob.h: Likewise.
8039         * include/grp.h: Likewise.
8040         * include/libio.h: Likewise.
8041         * include/locale.h: Likewise.
8042         * include/math.h: Likewise.
8043         * include/net/if.h: Likewise.
8044         * include/netdb.h: Likewise.
8045         * include/netinet/in.h: Likewise.
8046         * include/pthread.h: Likewise.
8047         * include/pwd.h: Likewise.
8048         * include/regex.h: Likewise.
8049         * include/sched.h: Likewise.
8050         * include/search.h: Likewise.
8051         * include/setjmp.h: Likewise.
8052         * include/signal.h: Likewise.
8053         * include/stdio.h: Likewise.
8054         * include/stdlib.h: Likewise.
8055         * include/string.h: Likewise.
8056         * include/sys/cdefs.h: Likewise.
8057         * include/sys/mman.h: Likewise.
8058         * include/sys/msg.h: Likewise.
8059         * include/sys/resource.h: Likewise.
8060         * include/sys/select.h: Likewise.
8061         * include/sys/socket.h: Likewise.
8062         * include/sys/stat.h: Likewise.
8063         * include/sys/statvfs.h: Likewise.
8064         * include/sys/time.h: Likewise.
8065         * include/sys/times.h: Likewise.
8066         * include/sys/uio.h: Likewise.
8067         * include/sys/utsname.h: Likewise.
8068         * include/sys/wait.h: Likewise.
8069         * include/termios.h: Likewise.
8070         * include/time.h: Likewise.
8071         * include/ulimit.h: Likewise.
8072         * include/unistd.h: Likewise.
8073         * include/utime.h: Likewise.
8074         * include/wchar.h: Likewise.
8075         * include/wctype.h: Likewise.
8076         * include/wordexp.h: Likewise.
8078         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
8080         * time/time.h: TIME_UTC must be a macro.
8081         Make timespec_get available for ISO C11 only as well.
8083 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
8085         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
8086         Reported by Peng Haitao <penght@cn.fujitsu.com>.
8088 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8090         * configure.in: Use -o not -a in test for unsupported multi-arch.
8092 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8094         * manual/texinfo.tex: Update to version 2012-01-19.16.
8096 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8098         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
8100 2012-02-24  Roland McGrath  <roland@hack.frob.com>
8102         [BZ #13738]
8103         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
8104         * manual/fdl-1.3.texi: New file.
8105         * manual/fdl-1.1.texi: File removed.
8107         [BZ #13738]
8108         * manual/libc.texinfo (FDL_VERSION): New @set.
8109         Use it for mention of FDL in cover text.
8110         (Documentation License): Use it in @include file name.
8112 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8113             Roland McGrath  <roland@hack.frob.com>
8115         [BZ #5461]
8116         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
8117         not LONG_LONG_MAX and LONG_LONG_MIN.
8118         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
8119         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
8120         name.
8121         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
8123 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8125         [BZ #2547]
8126         [BZ #11365]
8127         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
8128         manipulate bits before adding and subtracting TWO23[sx].
8129         * math/libm-test.inc (nearbyint_test): Add more tests.
8131 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8133         [BZ #2548]
8134         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
8135         bits before adding and subtracting TWO23[sx].
8136         * math/libm-test.inc (rint_test): Add more tests.
8137         (rint_test_tonearest): Likewise.
8138         (rint_test_towardzero): Likewise.
8139         (rint_test_downward): Likewise.
8140         (rint_test_upward: Likewise.
8142 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8144         [BZ #10110]
8145         * include/stdc-predef.h: New file.  Extracted from features.h.
8146         * include/features.h: Include stdc-predef.h.
8147         * Makefile (headers): Add stdc-predef.h.
8148         * CONFORMANCE (Compiler limitations): Update.
8150 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8152         * manual/libc.texinfo (VERSION, UPDATED): Revert.
8154 2012-02-21  David S. Miller  <davem@davemloft.net>
8156         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
8157         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8159 2012-02-20  David S. Miller  <davem@davemloft.net>
8161         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
8162         using a normal save/restore sequence, rather than allocating a
8163         dummy stack frame just to store a frame pointer and restore.
8164         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8166 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8168         * manual/install.texi: Fix stray word in line-wrapped comment.
8170 2012-02-20  David S. Miller  <davem@davemloft.net>
8172         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
8173         both binutils and gcc support GOTDATA.
8175         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
8176         "rd %pc" in the PIC register setup sequences.
8178         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
8179         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
8180         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8181         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
8182         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8183         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8184         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8185         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8186         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
8187         (SYSCALL_ERROR_HANDLER): Likewise.
8188         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8189         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8190         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
8191         (SYSCALL_ERROR_HANDLER): Likewise.
8193         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
8194         (HAVE_GCC_GOTDATA): New.
8195         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
8196         relocation support in both binutils and gcc.
8197         * sysdeps/sparc/elf/configure: Regenerate.
8199         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
8200         * sysdeps/sparc/sparc32/elf/configure: Delete.
8201         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
8202         * sysdeps/sparc/sparc64/elf/configure: Delete.
8203         * sysdeps/sparc/elf/configure.in: New file.
8204         * sysdeps/sparc/elf/configure: Generate.
8206         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
8207         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
8208         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8209         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
8210         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
8212 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8214         * manual/install.texi: Do not mention specific glibc version
8215         numbers.
8216         * manual/libc.texinfo (VERSION, UPDATED): Update.
8217         (@copying): Use @copyright{} and range of years.
8219 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8221         [BZ #13695]
8222         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
8223         [crti.S not in sysdirs] (generated): Do not append.
8224         [crti.S not in sysdirs] (omit-deps): Likewise.
8225         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
8226         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
8227         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
8228         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
8229         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
8230         Likewise.
8231         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
8232         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
8233         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
8234         * csu/defs.awk: Remove file.
8235         * sysdeps/generic/initfini.c: Likewise.
8236         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
8237         variable.
8238         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
8239         Likewise.
8241 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8243         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
8244         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
8245         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
8246         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
8247         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8248         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
8249         <bits/epoll.h>.
8250         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
8251         (__EPOLL_PACKED): Define to empty if not defined by
8252         <bits/epoll.h>.
8253         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
8254         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8255         bits/epoll.h.
8257 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8259         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
8260         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
8261         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
8262         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
8263         <bits/timerfd.h>.
8264         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
8265         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8266         bits/timerfd.h.
8268 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8270         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
8271         in C locale.
8272         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8273         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8274         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
8275         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8277 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
8279         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8280         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8282 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
8284         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
8285         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
8286         defined.
8287         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
8288         Likewise.
8289         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
8290         entry for 2.16.
8292 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
8294         * math/w_acos.c: Use non-signaling floating-point comparisons.
8295         * math/w_acosf.c: Likewise.
8296         * math/w_acosh.c: Likewise.
8297         * math/w_acoshf.c: Likewise.
8298         * math/w_acoshl.c: Likewise.
8299         * math/w_acosl.c: Likewise.
8300         * math/w_asin.c: Likewise.
8301         * math/w_asinf.c: Likewise.
8302         * math/w_asinl.c: Likewise.
8303         * math/w_atanh.c: Likewise.
8304         * math/w_atanhf.c: Likewise.
8305         * math/w_atanhl.c: Likewise.
8306         * math/w_exp2.c: Likewise.
8307         * math/w_exp2f.c: Likewise.
8308         * math/w_exp2l.c: Likewise.
8309         * math/w_j0.c: Likewise.
8310         * math/w_j0f.c: Likewise.
8311         * math/w_j0l.c: Likewise.
8312         * math/w_j1.c: Likewise.
8313         * math/w_j1f.c: Likewise.
8314         * math/w_j1l.c: Likewise.
8315         * math/w_jn.c: Likewise.
8316         * math/w_jnf.c: Likewise.
8317         * math/w_log.c: Likewise.
8318         * math/w_log10.c: Likewise.
8319         * math/w_log10f.c: Likewise.
8320         * math/w_log10l.c: Likewise.
8321         * math/w_log2.c: Likewise.
8322         * math/w_log2f.c: Likewise.
8323         * math/w_log2l.c: Likewise.
8324         * math/w_logf.c: Likewise.
8325         * math/w_logl.c: Likewise.
8326         * math/w_sqrt.c: Likewise.
8327         * math/w_sqrtf.c: Likewise.
8328         * math/w_sqrtl.c: Likewise.
8329         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8330         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
8331         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8332         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8333         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8335 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8337         [BZ #9739]
8338         * manual/string.texi (strnlen): Use correct parameter name in
8339         equivalent expression.
8341 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8343         [BZ #11174]
8344         * manual/users.texi (seteuid): Consistently use neweuid for
8345         argument name.
8347 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8349         [BZ #13704]
8350         * manual/nss.texi (Services in the NSS configuration): Correct
8351         list of services in example configuration file.
8353 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
8355         [BZ #11322]
8356         * manual/arith.texi: Remove statements about negative zero
8357         behaving identically to zero.
8359 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8361         [BZ #5993]
8362         * manual/install.texi: Do not document upgrading from libc5.
8364 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8366         [BZ #4596]
8367         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
8369 2012-02-18  David S. Miller  <davem@davemloft.net>
8371         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
8372         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
8373         %o7 across the call.
8374         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
8375         instead.
8376         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
8377         SETUP_PIC_REG_LEAF.
8378         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8379         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
8380         * sysdeps/sparc/crtn.S: Likewise.
8382 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
8384         * aout/Makefile: Remove.
8386 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
8388         [BZ #13058]
8389         * manual/examples/argp-ex1.c (main): Format definition in GNU
8390         style.
8391         * manual/examples/argp-ex2.c (main): Likewise.
8392         * manual/examples/argp-ex3.c (main): Likewise.
8393         * manual/examples/argp-ex4.c (main): Likewise.
8394         * manual/examples/longopt.c (main): Use new-style prototype
8395         definition.
8396         * manual/examples/strncat.c (main): Specify return type and use
8397         (void) for arguments.
8398         * manual/examples/subopt.c (main): Use char **argv argument.
8400 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8402         [BZ #5077]
8403         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
8404         rounding modes.
8406 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
8408         [BZ #6907]
8409         * manual/string.texi (strchr): Change when strchrnul is
8410         recommended.
8412 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
8414         [BZ #174]
8415         * manual/locale.texi (setlocale): Document LOCPATH.
8417 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8419         [BZ #10210]
8420         * manual/process.texi (execle): Move @dots{} before last argument.
8422 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
8424         [BZ #12047]
8425         * manual/charset.texi (Generic Charset Conversion): Fix typo
8426         (LC_TYPE -> LC_CTYPE).
8428 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
8430         [BZ #5805]
8431         * manual/arith.texi (scalbn): Use @var{} on parameter names.
8432         (scalbnf): Likewise.
8433         (scalbnl): Likewise.
8434         (scalbln): Likewise.
8435         (scalblnf): Likewise.
8436         (scalblnl): Likewise.
8437         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
8438         (vwarnx): Likewise.
8439         (verr): Likewise.
8440         (verrx): Likewise.
8441         * manual/filesys.texi (telldir): Use braces around return type.
8442         * manual/llio.texi (mmap): Add space after comma.
8443         (mmap64): Likewise.
8444         * manual/math.texi (jn): Use @var{} on parameter names.
8445         (jnf): Likewise.
8446         (jnl): Likewise.
8447         (yn): Likewise.
8448         (ynf): Likewise.
8449         (ynl): Likewise.
8450         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
8451         line.
8452         * manual/resource.texi (ulimit): Use @dots{} instead of literal
8453         "...".
8454         (sched_get_priority_min): Remove semicolon on @deftypefun line.
8455         (sched_get_priority_max): Likewise.
8456         * manual/signal.texi (sigvec): Add space after comma.
8457         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
8458         names.
8459         (if_indextoname): Likewise.
8460         (if_freenameindex): Likewise.
8461         (sendto): Use ',' instead of '.' in prototype.
8462         * manual/startup.texi (syscall): Use @dots{} instead of literal
8463         "...".
8464         * manual/stdio.texi (__fpending): Separate initial words of
8465         paragraph from @deftypefun line.
8466         * manual/syslog.texi (syslog): Use @dots{} instead of literal
8467         "...".
8468         (vsyslog): Use @var{} on parameter names.
8469         * manual/terminal.texi (stty): Use @var{} on parameter names.
8470         * manual/users.texi (getutmp): Use @var{} on parameter names.
8471         (getutmpx): Likewise.
8473 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8475         [BZ #6884]
8476         * manual/stdio.texi (fopen): Fix typos in description of
8477         ",ccs=STRING".
8479 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
8481         [BZ #4026]
8482         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
8483         get clock_id definition.
8485 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
8487         [BZ #4822]
8488         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
8489         (madvise): Cast every argument to void on its own.
8491 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8493         [BZ #9902]
8494         * manual/startup.texi (Exit Status): Fix typo.
8496 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8498         [BZ #10140]
8499         * manual/examples/argp-ex1.c: Include <stdlib.h>.
8500         * manual/examples/argp-ex2.c: Likewise.
8501         * manual/examples/argp-ex3.c: Likewise.
8503 2012-02-16  Richard Henderson  <rth@redhat.com>
8505         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
8506         * sysdeps/s390/s390-32/initfini.c: Remove.
8507         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
8508         * sysdeps/s390/s390-64/initfini.c: Remove.
8510 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8512         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
8513         compiler output for sysdeps/generic/initfini.c.
8514         * sysdeps/sh/elf/initfini.c: Remove file.
8516 2012-02-16  David S. Miller  <davem@davemloft.net>
8518         [BZ #11494]
8519         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
8521         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
8522         * sysdeps/sparc/crti.S: New file.
8523         * sysdeps/sparc/crtn.S: New file.
8524         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
8525         * sysdeps/sparc/sparc64/Makefile: Likewise.
8527 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
8529         [BZ #3335]
8530         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
8532 2012-02-15  Roland McGrath  <roland@hack.frob.com>
8534         [BZ #4822]
8535         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
8537         * mach/devstream.c (cookie_io_functions_t): Macro removed.
8538         (write, read, close): Likewise.
8539         Patch by Aurelien Jarno <aurelien@aurel32.net>.
8541 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
8543         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
8544         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
8545         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
8546         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
8547         <bits/signalfd.h>.
8548         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
8549         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8550         bits/signalfd.h.
8552 2012-02-14  Marek Polacek  <polacek@redhat.com>
8554         * sysdeps/x86_64/crti.S: New file.
8555         * sysdeps/x86_64/crtn.S: New file.
8556         * sysdeps/x86_64/elf/initfini.c: Remove file.
8558 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8560         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
8561         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
8562         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
8563         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
8564         <bits/inotify.h>.
8565         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
8566         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8567         bits/inotify.h.
8569 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8571         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
8572         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
8573         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
8574         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
8575         <bits/eventfd.h>.
8576         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
8577         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8578         bits/eventfd.h.
8580 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
8582         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
8583         __feraiseexcept instead of feraiseexcept.
8585         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
8586         nanosleep invocations.
8587         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
8588         strings, and add error checking for a nanosleep invocations.
8590 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8592         Replace FSF snail mail address with URLs, as per GNU coding standards.
8593         Most of the snail mail addresses were wrong anyway, and omitting
8594         them makes the source code easier to maintain.  Almost all of the
8595         changes are to license notices and to locale LC_IDENTIFICATION
8596         addresses, except for this one:
8597         * manual/libc.texinfo: In "Published by", give the FSF's URL,
8598         not its snail mail address.
8600 2012-02-09  Richard Henderson  <rth@twiddle.net>
8602         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
8603         of kernel-features.h.
8605         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
8607 2012-02-08  Marek Polacek  <polacek@redhat.com>
8609         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
8610         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
8611         * sysdeps/gnu/_G_config.h: Likewise.
8612         * sysdeps/generic/_G_config.h: Likewise.
8614 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
8616         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
8617         tests.
8618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8620         * sysdeps/powerpc/powerpc32/crti.S: New file.
8621         * sysdeps/powerpc/powerpc32/crtn.S: New file.
8622         * sysdeps/powerpc/powerpc64/crti.S: New file.
8623         * sysdeps/powerpc/powerpc64/crtn.S: New file.
8625         * Makeconfig (have-initfini): Don't set.
8626         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
8627         * configure.in (nopic_initfini): Don't substitute.
8628         * config.h.in (HAVE_INITFINI): Don't #undef.
8629         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
8630         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
8632 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
8634         Support crti.S and crtn.S provided directly by architectures.
8635         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
8636         [crti.S in sysdirs] (omit-deps): Likewise.
8637         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
8638         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
8639         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
8640         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
8641         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
8642         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
8643         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
8644         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
8645         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
8646         compiler output for sysdeps/generic/initfini.c.
8647         * sysdeps/i386/elf/Makefile: Remove file.
8648         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
8650 2012-02-07  Marek Polacek  <polacek@redhat.com>
8652         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
8653         * sysdeps/gnu/_G_config.h: Likewise.
8654         * sysdeps/mach/hurd/_G_config.h: Likewise.
8656 2012-02-07  Marek Polacek  <polacek@redhat.com>
8658         * math/Makefile (tests): Add tst-CMPLX2.
8659         * math/tst-CMPLX2.c: New file.
8661 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
8663         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8665         * math/libm-test.inc (jn_test): Add missing L suffix.
8667 2012-02-06  Marek Polacek  <polacek@redhat.com>
8669         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
8670         * sysdeps/i386/fpu/e_powf.S: Likewise.
8671         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8672         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8673         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8674         * sysdeps/i386/fpu/e_pow.S: Likewise.
8675         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
8676         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8677         * sysdeps/i386/fpu/s_expm1.S: Likewise.
8678         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
8679         * sysdeps/i386/fpu/e_log2.S: Likewise.
8680         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8681         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8682         * sysdeps/i386/fpu/e_powl.S: Likewise.
8683         * sysdeps/i386/fpu/s_log1p.S: Likewise.
8684         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8685         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
8686         * sysdeps/i386/fpu/e_logl.S: Likewise.
8687         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
8688         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
8689         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
8690         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
8691         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8692         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8693         * sysdeps/i386/fpu/e_log.S: Likewise.
8694         * sysdeps/i386/fpu/s_cexp.S: Likewise.
8695         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8696         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
8697         * sysdeps/i386/fpu/e_logf.S: Likewise.
8698         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8699         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8700         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
8701         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
8702         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8703         * sysdeps/i386/fpu/e_log10.S: Likewise.
8704         * sysdeps/i386/fpu/s_frexp.S: Likewise.
8705         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8706         * sysdeps/i386/fpu/s_asinh.S: Likewise.
8707         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
8708         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8709         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
8710         * sysdeps/i386/asm-syntax.h: Likewise.
8711         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8712         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8713         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8714         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
8715         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
8716         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8717         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8718         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8719         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8720         * sysdeps/powerpc/sysdep.h: Likewise.
8721         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
8722         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8724 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8726         [BZ #411]
8727         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
8729 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8731         * sysdeps/i386/sysdep.h: Include <features.h>.
8732         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
8733         version.
8735 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
8737         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
8738         Define.
8739         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
8740         LOAD_PIC_REG_STR.
8742 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8744         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
8745         (SETUP_PIC_REG): Use GET_PC_THUNK.
8746         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
8747         macro.
8749 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8751         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
8752         for non-PIC compilation.
8753         (SETUP_PIC_REG): Add .p2align directive.
8754         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
8755         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
8756         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8757         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8758         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
8759         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8760         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
8761         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
8762         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8763         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8764         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8765         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8766         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8767         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8768         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8769         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
8770         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
8771         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8772         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8773         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8774         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8775         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
8776         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8777         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8778         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
8779         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
8780         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8781         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
8782         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8783         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8784         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8785         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8786         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8787         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8788         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8789         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8790         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8791         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8792         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8793         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8794         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8796 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8798         * math/tst-CMPLX.c: Include <stdio.h>.
8800 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
8802         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
8803         float.
8804         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8805         * sysdeps/sparc/bits/mathdef.h: Likewise.
8807 2012-01-31  Marek Polacek  <polacek@redhat.com>
8809         * libio/libio.h: Don't define _PARAMS.
8810         * locale/programs/config.h: Don't define PARAMS.
8811         * stdlib/strtol_l.c: Likewise.
8812         (__strtol_l): Remove PARAMS from the prototype.
8814 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
8816         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
8817         names.  Just use the correct names.  Remove unnecessary wrapper
8818         functions.
8819         * malloc/arena.c: Likewise.
8820         * malloc/hooks.c: Likewise.
8822         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
8823         ARENA_TEST says not to.  Simplify test for creation of a new arena.
8824         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
8826 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
8828         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
8829         into tail calls.
8830         (update_get_addr): New function.
8831         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
8832         GET_ADDR_MODULE parameter.
8834 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8836         * crypt/cert.c: Remove __STDC__ conditionals.
8837         * crypt/crypt-entry.c: Likewise.
8838         * crypt/crypt_util.c: Likewise.
8839         * libio/filedoalloc.c: Likewise.
8840         * libio/fileops.c: Likewise.
8841         * libio/genops.c: Likewise.
8842         * libio/iofclose.c: Likewise.
8843         * libio/iofdopen.c: Likewise.
8844         * libio/iofopen.c: Likewise.
8845         * libio/iofopen64.c: Likewise.
8846         * libio/iogetdelim.c: Likewise.
8847         * libio/iopopen.c: Likewise.
8848         * libio/obprintf.c: Likewise.
8849         * libio/oldfileops.c: Likewise.
8850         * libio/oldiofclose.c: Likewise.
8851         * libio/oldiofdopen.c: Likewise.
8852         * libio/oldiofopen.c: Likewise.
8853         * libio/oldiopopen.c: Likewise.
8854         * libio/wfiledoalloc.c: Likewise.
8855         * libio/wgenops.c: Likewise.
8856         * locale/programs/xmalloc.c: Likewise.
8857         * misc/syslog.c: Likewise.
8858         * stdio-common/xbug.c: Likewise.
8859         * string/memchr.c: Likewise.
8860         * string/memcmp.c: Likewise.
8861         * string/memrchr.c: Likewise.
8862         * string/rawmemchr.c: Likewise.
8863         * sysdeps/posix/getcwd.c: Likewise.
8864         * time/strftime_l.c: Likewise.
8866 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8868         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
8869         * config.make.in (config-cflags-sse2avx): Define.
8870         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
8871         Fix typo.
8873 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
8875         * scripts/config.guess: Update from upstream config git repository.
8876         * scripts/config.sub: Likewise.
8878 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
8880         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
8881         (EM_NUM): Update.
8882         (R_TILEPRO_*, R_TILEGX_*): New macros.
8884         * scripts/firstversions.awk: Fix bug in version range handling.
8886         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
8888         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
8890         * include/sys/epoll.h: New file.
8891         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
8892         libc_hidden_def.
8894 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
8896         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
8897         Avoid unnecessary __WORDSIZE == 64 test.
8898         (fmaxf): Use VEX format if possible.
8899         (fmax): Likewise.
8900         (fminf): Likewise.
8901         (fmin): Likewise.
8903         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
8904         * math/math_private.h: Remove libc_fegetround* and
8905         libc_fesetround*.
8906         * sysdeps/i386/configure.in: Check for -msse2avx.
8907         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
8908         also if SSE2AVX is defined.
8909         Remove libc_fegetround* and libc_fesetround*.
8910         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
8911         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
8912         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
8913         of HAS_YMM_USABLE.
8914         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8915         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8916         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8917         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8918         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8920         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
8922 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8924         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
8925         size is not set.
8926         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
8928 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
8930         [BZ #13618]
8931         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
8932         relocation.
8933         * Makeconfig (libm): Define.
8934         * elf/Makefile: Add rules to build and run tst-relsort1.
8935         * elf/tst-relsort1.c: New file.
8936         * elf/tst-relsort1mod1.c: New file.
8937         * elf/tst-relsort1mod2.c: New file.
8939 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
8941         * math/s_ldexp.c: Remove __STDC__ conditionals.
8942         * math/s_ldexpf.c: Likewise.
8943         * math/s_ldexpl.c: Likewise.
8944         * math/s_nextafter.c: Likewise.
8945         * math/s_nexttowardf.c: Likewise.
8946         * math/s_significand.c: Likewise.
8947         * math/s_significandf.c: Likewise.
8948         * math/s_significandl.c: Likewise.
8949         * math/w_jnl.c: Likewise.
8950         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8951         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8952         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8953         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8954         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8955         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8956         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
8957         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8958         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8959         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8960         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8961         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8962         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8963         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8964         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8965         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8966         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8967         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8968         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8969         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8970         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8971         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8972         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8973         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8974         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8975         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8976         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8977         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8978         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8979         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8980         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8981         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8982         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8983         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8984         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8985         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8986         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8987         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8988         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8989         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8990         * sysdeps/ieee754/k_standard.c: Likewise.
8991         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8992         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8993         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8994         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8995         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8996         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8997         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8998         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8999         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9000         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9001         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9002         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9003         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9004         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9005         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9006         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9007         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9008         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9009         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9010         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9011         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9012         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9013         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9014         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9015         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9016         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9017         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9018         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9019         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9020         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9021         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9022         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
9023         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9024         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9025         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9026         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9027         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
9028         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9029         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9030         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
9031         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
9032         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9033         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
9034         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
9035         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9036         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
9037         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
9038         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9039         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9040         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9041         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9042         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9043         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9044         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9045         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9046         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9047         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9048         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9049         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9050         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9051         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9052         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9053         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9054         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9055         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9056         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9057         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9058         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9059         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9060         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9061         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9062         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9063         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9064         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9065         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9066         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9067         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9068         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9069         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9070         * sysdeps/ieee754/s_matherr.c: Likewise.
9071         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9072         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9073         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9074         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9076 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9078         * crypt/md5.h: Remove __STDC__ conditionals.
9079         * libio/libioP.h: Likewise.
9080         * locale/programs/config.h: Likewise.
9081         * sysdeps/generic/sysdep.h: Likewise.
9082         * sysdeps/i386/asm-syntax.h: Likewise.
9083         * sysdeps/s390/asm-syntax.h: Likewise.
9084         * sysdeps/unix/sysdep.h: Likewise.
9085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9088 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9090         * libio/libio.h: Remove __STDC__ conditionals.
9091         * malloc/obstack.h: Likewise.
9092         * math/complex.h: Likewise.
9093         * math/math.h: Likewise.
9094         * sysdeps/generic/_G_config.h: Likewise.
9095         * sysdeps/gnu/_G_config.h: Likewise.
9096         * sysdeps/mach/hurd/_G_config.h: Likewise.
9097         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9098         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9099         * sysdeps/sparc/bits/mathdef.h: Likewise.
9101 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
9103         [BZ #13583]
9104         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
9105         Clean up HAS_* macros.
9106         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
9107         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
9108         possible.
9109         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
9110         HAS_AVX.
9111         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9112         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9113         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9114         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9115         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9117 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
9119         * elf/tst-unique3.cc (gets): Remove declaration.
9120         * elf/tst-unique3lib.cc (gets): Likewise.
9121         * elf/tst-unique3lib2.cc (gets): Likewise.
9122         * elf/tst-unique4.cc (gets): Likewise.
9124 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
9126         * include/stdio.h: Add C++ protection.  Add gets declarations and
9127         definitions.
9128         * debug/tst-chk1.c: Don't declare gets here.
9129         * stdio-common/tst-gets.c: Likewise.
9131 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9133         * posix/glob: Remove directory.
9135 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9137         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
9139 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
9141         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
9142         of the non-standard EPFNOSUPPORT.
9144 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9146         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
9147         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
9148         ANYWHERE set to 1 only on KERN_NO_SPACE error.
9150 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
9152         * wcsmbs/uchar.h: Test __STDC_VERSION__.
9154 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
9156         * nscd/aicache.c (addhstaiX): Do not cache negative results of
9157         transient errors.
9158         * nscd/grpcache.c (cache_addgr): Likewise.
9159         * nscd/hstcache.c (cache_addhst): Likewise.
9160         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9161         * nscd/pwdcache.c (cache_addpw): Likewise.
9162         * nscd/servicescache.c (cache_addserv): Likewise.
9164 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
9166         * malloc/malloc.c: Various cleanups.
9167         * malloc/hooks.c: Likewise.
9169         * stdlib/Makefile (tests): Add bug-fmtmsg1.
9170         * stdlib/bug-fmtmsg1.c: New file.
9172         * stdlib/fmtmsg.c (init): Add missing unlock.
9173         Patch by Peng Haitao <penght@cn.fujitsu.com>.
9175 2012-01-12  Marek Polacek  <polacek@redhat.com>
9177         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
9178         and _GNU_SOURCE.
9180 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9182         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
9183         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
9184         macro to ensure uniqueness of label name.
9185         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9186         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9188 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
9190         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
9192         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
9193         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9194         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9195         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
9197 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
9199         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
9201         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
9202         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9203         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9205         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
9207         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
9208         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9209         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9210         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
9212         * math/bits/math-finite.h: Add ldexp support.
9214 2012-01-10  Marek Polacek  <polacek@redhat.com>
9216         * locale/programs/localedef.h (show_archive_content): Add noreturn
9217         attribute.
9219 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
9221         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
9223 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9225         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
9227         * io/Makefile (headers): Add bits/poll2.h.
9229 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
9231         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
9232         typo #include statement.
9234 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9236         * include/sys/cdefs.h: Define __attribute_alloc_size.
9237         * catgets/gencat.c: Add alloc_size attribute and apply consistently
9238         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
9239         * elf/pldd.c: Likewise.
9240         * iconv/iconv_charmap.c: Likewise.
9241         * iconv/iconvconfig.c: Likewise.
9242         * iconv/strtab.c: Likewise.
9243         * locale/programs/locale.c: Likewise.
9244         * locale/programs/localedef.h: Likewise.
9245         * locale/programs/simple-hash.c: Likewise.
9246         * nscd/nscd.h: Likewise.
9247         * nss/makedb.c: Likewise.
9248         * sysdeps/generic/ldconfig.h: Likewise.
9249         * locale/programs/localedef.c: Remove xmalloc prototype.
9250         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
9252 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9254         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
9255         appropriate.
9257 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9259         * math/Makefile (tests): Add tst-CMPLX.
9260         * math/tst-CMPLX.c: New file.
9262         * math/complex.h (CMPLXL): Fix typo.
9264         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
9265         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
9266         GLIBC_2.16.
9267         * debug/tst-chk1.c: Add poll and ppoll tests.
9268         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
9269         * include/sys/poll.h: Add hidden proto for ppoll.
9270         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
9271         * sysdeps/mach/hurd/ppoll.c: Likewise.
9272         * io/ppoll.c: Likewise.
9273         * debug/poll_chk.c: New file.
9274         * debug/ppoll_chk.c: New file.
9275         * include/bits/poll2.h: New file.
9276         * io/bits/poll2.h: New file.
9278         [BZ #1350]
9279         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
9281         * configure.in: static is always set to yes.  Remove.
9282         * config.make.in: Don't set build-static.
9283         * Makeconfig: Remove use of build-static.
9284         * dlfcn/Makefile: Likewise.
9285         * elf/Makefile: Likewise.
9286         * math/Makefile: Likewise.
9287         * misc/Makefile: Likewise.
9288         * nptl/Makefile: Likewise.
9289         * sysdeps/mach/hurd/Makefile: Likewise.
9291         * configure.in: PWD_P is not used anymore.
9292         * config.make.in: Remove PWD_P entry.
9294         * configure.in: Remove last remnants of RANLIB.
9295         No need to check for signed size_t anymore.
9296         Don't set libc_commonpagesize and libc_relro_required here for Alpha
9297         and IA-64.
9298         Remove __builtin_expect test because we require at least gcc 3.4.
9299         * aclocal.m4: Likewise.
9301         * wcsmbs/mbrtoc16.c: Implement using towc function.
9302         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
9303         * wcsmbs/wcsmbsload.c: Likewise.
9304         * iconv/gconv_simple.c: Likewise.
9305         * iconv/gconv_int.h: Likewise.
9306         * iconv/gconv_builtin.h: Likewise.
9307         * iconv/iconv_prog.c: Remove CHAR16 handling.
9309         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
9311         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
9313         * configure.in: Remove --with-elf and --enable-bounded options.
9314         Dont set base_machine for ia64.  More non-ELF conditions removed.
9315         Remove testing and setting of leading underscore information.
9316         * config.make.in (build-bounded): Set to no.
9317         * config.h.in: Remove NO_UNDERSCORES entry.
9318         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
9319         them.
9320         * csu/start.c: Remove !NO_UNDERSCORE code.
9321         * locale/localeinfo.h: Likewise.
9322         * sysdeps/generic/machine-gmon.h: Likewise.
9323         * sysdeps/generic/sysdep.h: Likewise.
9324         * sysdeps/i386/sysdep.h: Likewise.
9325         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9326         * sysdeps/mach/sysdep.h: Likewise.
9327         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9328         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9329         * sysdeps/sh/sysdep.h: Likewise.
9330         * sysdeps/sparc/sparc32/alloca.S: Likewise.
9331         * sysdeps/unix/i386/sysdep.S: Likewise.
9332         * sysdeps/unix/sparc/start.c: Likewise.
9333         * sysdeps/unix/sparc/sysdep.S: Likewise.
9334         * sysdeps/unix/sparc/sysdep.h: Likewise.
9335         * sysdeps/unix/start.c: Likewise.
9336         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9337         * sysdeps/x86_64/sysdep.h: Likewise.
9339 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
9341         [BZ #13553]
9342         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
9343         for non-gcc.
9344         * argp/argp-fmtstream.h: Use const instead __const.
9345         * argp/argp.h: Likewise.
9346         * assert/assert.h: Likewise.
9347         * bits/fenv.h: Likewise.
9348         * bits/sched.h: Likewise.
9349         * bits/sigset.h: Likewise.
9350         * bits/sigthread.h: Likewise.
9351         * catgets/nl_types.h: Likewise.
9352         * conform/data/pthread.h-data: Likewise.
9353         * crypt/crypt-private.h: Likewise.
9354         * crypt/crypt.h: Likewise.
9355         * crypt/crypt_util.c: Likewise.
9356         * ctype/ctype.h: Likewise.
9357         * debug/execinfo.h: Likewise.
9358         * debug/mbsnrtowcs_chk.c: Likewise.
9359         * debug/mbsrtowcs_chk.c: Likewise.
9360         * debug/wcsnrtombs_chk.c: Likewise.
9361         * debug/wcsrtombs_chk.c: Likewise.
9362         * debug/wcstombs_chk.c: Likewise.
9363         * dirent/dirent.h: Likewise.
9364         * dlfcn/dlfcn.h: Likewise.
9365         * elf/neededtest4.c: Likewise.
9366         * grp/grp.h: Likewise.
9367         * gshadow/gshadow.h: Likewise.
9368         * iconv/gconv.h: Likewise.
9369         * iconv/gconv_int.h: Likewise.
9370         * iconv/gconv_simple.c: Likewise.
9371         * iconv/iconv.h: Likewise.
9372         * iconv/loop.c: Likewise.
9373         * iconv/skeleton.c: Likewise.
9374         * include/aio.h: Likewise.
9375         * include/aliases.h: Likewise.
9376         * include/argz.h: Likewise.
9377         * include/arpa/inet.h: Likewise.
9378         * include/assert.h: Likewise.
9379         * include/dirent.h: Likewise.
9380         * include/dlfcn.h: Likewise.
9381         * include/execinfo.h: Likewise.
9382         * include/fcntl.h: Likewise.
9383         * include/fenv.h: Likewise.
9384         * include/glob.h: Likewise.
9385         * include/grp.h: Likewise.
9386         * include/libintl.h: Likewise.
9387         * include/mntent.h: Likewise.
9388         * include/netdb.h: Likewise.
9389         * include/pwd.h: Likewise.
9390         * include/rpc/netdb.h: Likewise.
9391         * include/sched.h: Likewise.
9392         * include/search.h: Likewise.
9393         * include/shadow.h: Likewise.
9394         * include/signal.h: Likewise.
9395         * include/stdio.h: Likewise.
9396         * include/stdlib.h: Likewise.
9397         * include/string.h: Likewise.
9398         * include/sys/socket.h: Likewise.
9399         * include/sys/stat.h: Likewise.
9400         * include/sys/statfs.h: Likewise.
9401         * include/sys/statvfs.h: Likewise.
9402         * include/sys/syslog.h: Likewise.
9403         * include/sys/time.h: Likewise.
9404         * include/sys/uio.h: Likewise.
9405         * include/time.h: Likewise.
9406         * include/unistd.h: Likewise.
9407         * include/utmp.h: Likewise.
9408         * include/wchar.h: Likewise.
9409         * include/wctype.h: Likewise.
9410         * inet/aliases.h: Likewise.
9411         * inet/arpa/inet.h: Likewise.
9412         * inet/netinet/ether.h: Likewise.
9413         * inet/netinet/in.h: Likewise.
9414         * intl/libintl.h: Likewise.
9415         * io/bits/fcntl2.h: Likewise.
9416         * io/fcntl.h: Likewise.
9417         * io/ftw.h: Likewise.
9418         * io/sys/poll.h: Likewise.
9419         * io/sys/stat.h: Likewise.
9420         * io/sys/statfs.h: Likewise.
9421         * io/sys/statvfs.h: Likewise.
9422         * io/utime.h: Likewise.
9423         * libio/bits/stdio.h: Likewise.
9424         * libio/bits/stdio2.h: Likewise.
9425         * libio/libio.h: Likewise.
9426         * libio/libioP.h: Likewise.
9427         * libio/stdio.h: Likewise.
9428         * locale/lc-ctype.c: Likewise.
9429         * locale/locale.h: Likewise.
9430         * login/utmp.h: Likewise.
9431         * malloc/arena.c: Likewise.
9432         * malloc/malloc.c: Likewise.
9433         * malloc/malloc.h: Likewise.
9434         * malloc/mcheck.c: Likewise.
9435         * malloc/mtrace.c: Likewise.
9436         * math/bits/mathcalls.h: Likewise.
9437         * math/fenv.h: Likewise.
9438         * math/math_private.h: Likewise.
9439         * misc/bits/error.h: Likewise.
9440         * misc/bits/syslog.h: Likewise.
9441         * misc/err.h: Likewise.
9442         * misc/error.h: Likewise.
9443         * misc/fstab.h: Likewise.
9444         * misc/mntent.h: Likewise.
9445         * misc/regexp.h: Likewise.
9446         * misc/search.h: Likewise.
9447         * misc/sgtty.h: Likewise.
9448         * misc/sys/mman.h: Likewise.
9449         * misc/sys/syslog.h: Likewise.
9450         * misc/sys/uio.h: Likewise.
9451         * misc/sys/xattr.h: Likewise.
9452         * misc/ttyent.h: Likewise.
9453         * nis/rpcsvc/ypclnt.h: Likewise.
9454         * nss/nss.h: Likewise.
9455         * posix/bits/unistd.h: Likewise.
9456         * posix/fnmatch.h: Likewise.
9457         * posix/glob.h: Likewise.
9458         * posix/sched.h: Likewise.
9459         * posix/spawn.h: Likewise.
9460         * posix/sys/wait.h: Likewise.
9461         * posix/unistd.h: Likewise.
9462         * posix/wordexp.h: Likewise.
9463         * pwd/pwd.h: Likewise.
9464         * resolv/netdb.h: Likewise.
9465         * resource/sys/resource.h: Likewise.
9466         * rt/aio.h: Likewise.
9467         * rt/bits/mqueue2.h: Likewise.
9468         * rt/mqueue.h: Likewise.
9469         * shadow/shadow.h: Likewise.
9470         * signal/signal.h: Likewise.
9471         * socket/send.c: Likewise.
9472         * socket/sendto.c: Likewise.
9473         * socket/sys/socket.h: Likewise.
9474         * stdio-common/printf.h: Likewise.
9475         * stdlib/bits/stdlib.h: Likewise.
9476         * stdlib/fmtmsg.h: Likewise.
9477         * stdlib/monetary.h: Likewise.
9478         * stdlib/stdlib.h: Likewise.
9479         * stdlib/ucontext.h: Likewise.
9480         * streams/stropts.h: Likewise.
9481         * string/argz.h: Likewise.
9482         * string/bits/string2.h: Likewise.
9483         * string/string.h: Likewise.
9484         * string/strings.h: Likewise.
9485         * sunrpc/rpc/auth.h: Likewise.
9486         * sunrpc/rpc/auth_des.h: Likewise.
9487         * sunrpc/rpc/clnt.h: Likewise.
9488         * sunrpc/rpc/netdb.h: Likewise.
9489         * sunrpc/rpc/pmap_clnt.h: Likewise.
9490         * sunrpc/rpc/xdr.h: Likewise.
9491         * sysdeps/generic/inttypes.h: Likewise.
9492         * sysdeps/generic/net/if.h: Likewise.
9493         * sysdeps/generic/sys/swap.h: Likewise.
9494         * sysdeps/gnu/net/if.h: Likewise.
9495         * sysdeps/gnu/utmpx.h: Likewise.
9496         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
9497         * sysdeps/i386/i486/bits/string.h: Likewise.
9498         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
9499         * sysdeps/s390/bits/string.h: Likewise.
9500         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
9501         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
9502         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9503         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
9504         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9505         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9506         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9507         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
9508         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
9509         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
9510         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
9511         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9512         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
9513         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9514         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9515         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
9516         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9517         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9518         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9519         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9520         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9521         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
9522         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
9523         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
9524         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
9525         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
9526         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
9527         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9528         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
9529         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
9530         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
9531         * sysvipc/sys/ipc.h: Likewise.
9532         * sysvipc/sys/msg.h: Likewise.
9533         * sysvipc/sys/sem.h: Likewise.
9534         * sysvipc/sys/shm.h: Likewise.
9535         * termios/termios.h: Likewise.
9536         * time/sys/time.h: Likewise.
9537         * time/time.h: Likewise.
9538         * wcsmbs/bits/wchar2.h: Likewise.
9539         * wcsmbs/uchar.h: Likewise.
9540         * wcsmbs/wchar.h: Likewise.
9541         * wctype/wctype.h: Likewise.
9543         [BZ #13551]
9544         * Makeconfig: Remove all but ELF support including AIX support.
9545         * Makerules: Likewise.
9546         * config.h.in: Likewise.
9547         * config.make.in: Likewise.
9548         * configure: Likewise.
9549         * configure.in: Likewise.
9550         * csu/Makefile: Likewise.
9551         * csu/version.c: Likewise.
9552         * debug/Makefile: Likewise.
9553         * dlfcn/Makefile: Likewise.
9554         * elf/Makefile: Likewise.
9555         * extra-lib.mk: Likewise.
9556         * iconv/Makefile: Likewise.
9557         * include/libc-symbols.h: Likewise.
9558         * include/shlib-compat.h: Likewise.
9559         * resolv/Makefile: Likewise.
9560         * resolv/res_libc.c: Likewise.
9561         * rt/Makefile: Likewise.
9562         * sysdeps/i386/asm-syntax.h: Likewise.
9563         * sysdeps/i386/sysdep.h: Likewise.
9564         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9565         * sysdeps/mach/sysdep.h: Likewise.
9566         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
9567         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
9568         * sysdeps/s390/asm-syntax.h: Likewise.
9569         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9570         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9571         * sysdeps/sh/sysdep.h: Likewise.
9572         * sysdeps/unix/sparc/sysdep.h: Likewise.
9573         * sysdeps/wordsize-32/divdi3.c: Likewise.
9574         * sysdeps/x86_64/sysdep.h: Likewise.
9576         * argp/Versions: Remove _argp_unlock_xxx.
9578         [BZ #13559]
9579         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
9580         * abilist/libBrokenLocale.abilist: Likewise.
9581         * abilist/libanl.abilist: Likewise.
9582         * abilist/libc.abilist: Likewise.
9583         * abilist/libcrypt.abilist: Likewise.
9584         * abilist/libdl.abilist: Likewise.
9585         * abilist/libm.abilist: Likewise.
9586         * abilist/libnsl.abilist: Likewise.
9587         * abilist/libpthread.abilist: Likewise.
9588         * abilist/libresolv.abilist: Likewise.
9589         * abilist/librt.abilist: Likewise.
9590         * abilist/libthread_db.abilist: Likewise.
9591         * abilist/libutil.abilist: Likewise.
9592         * abilist/libnss_db.abilist: New file.
9594         * scripts/abilist.awk: Add support for indirect functions.
9596         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
9598         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
9600         * shlib-versions: Remove entries for ports architectures.
9602         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
9603         files in ports.
9604         * elf/stackguard-macros.h: Remove support for IA-64.
9605         * elf/tst-auditmod1.c: Likewise.
9606         * sysdeps/generic/ldsodefs.h: Likewise.
9608         * sysdeps/unix/sysv/linux/configure.in: Ports should define
9609         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
9610         configure files.
9612         [BZ #13552]
9613         * configure.in: Remove --enable-omitfp support.
9614         * FAQ.in: Adjust.
9615         * config.make.in: Likewise.
9616         * Makeconfig: Likewise.
9617         * manual/install.texi: Likewise.
9619         In case anyone cares, the IA-64 architecture could move to ports.
9620         * sysdeps/ia64/*: Removed.
9621         * sysdeps/unix/sysv/linux/ia64/*: Removed.
9622         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
9624         [BZ #13555]
9625         * configure.in: Remove entries for unsupported architectures.
9627         [BZ #13533]
9628         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
9629         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
9630         routines.
9631         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
9632         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
9633         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
9634         fall back to using wcrtomb.
9635         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
9636         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
9637         renaming.
9638         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
9639         * wcsmbs/tst-c16c32-1.c: New file.
9641         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
9642         local variable.
9644         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
9646         * elf/tst-unique3.cc: Add explicit declaration of gets.
9647         * elf/tst-unique3lib.cc: Likewise.
9648         * elf/tst-unique3lib2.cc: Likewise.
9649         * elf/tst-unique4.cc: Likewise.
9651         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
9653 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
9655         [BZ #13566]
9656         * assert/assert.h (static_assert): Don't define for C++.
9657         * libio/stdio.h (gets): Do declare for C++ <= C++11.
9658         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
9660 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
9662         * iconv/loop.c (single loop): Fix assertion in storing of
9663         remaining bytes.
9665         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
9667 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
9669         * posix/getconf.c: Update copyright year.
9670         * nss/getent.c: Likewise.
9671         * nss/makedb.c: Likewise.
9672         * iconv/iconvconfig.c: Likewise.
9673         * iconv/iconv_prog.c: Likewise.
9674         * elf/ldconfig.c: Likewise.
9675         * elf/pldd.c: Likewise.
9676         * elf/sotruss.ksh: Likewise.
9677         * catgets/gencat.c: Likewise.
9678         * csu/version.c: Likewise.
9679         * elf/ldd.bash.in: Likewise.
9680         * elf/sprof.c (print_version): Likewise.
9681         * locale/programs/locale.c: Likewise.
9682         * locale/programs/localedef.c: Likewise.
9683         * login/programs/pt_chown.c: Likewise.
9684         * nscd/nscd.c (print_version): Likewise.
9685         * debug/xtrace.sh: Likewise.
9686         * malloc/memusage.sh: Likewise.
9687         * malloc/mtrace.pl: Likewise.
9688         * debug/catchsegv.sh: Likewise.
9690 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
9692         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
9693         pure attribute.
9695 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
9697         [BZ #13533]
9698         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
9699         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
9700         transformations.
9701         * iconv/gconv_int.h: Likewise.
9702         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
9703         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
9704         from libc for GLIBC_2.16.
9705         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
9706         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
9707         * wcsmbs/uchar.h: Really define mbstate_t.
9708         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
9709         * wcsmbs/c16rtomb.c: New file.
9710         * wcsmbs/mbrtoc16.c: New file.
9711         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
9712         for C/POSIX locale.
9713         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
9714         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
9716         * wcsmbs/wchar.h: Add missing __restrict.
9718 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9720         [BZ #13532]
9721         * time/Makefile (routines): Add timespec_get.
9722         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
9723         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
9724         timespec for ISO C11.
9725         * time/timespec_get.c: New file.
9726         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
9727         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
9729         [BZ #13531]
9730         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
9731         * stdlib/stdlib.h: Declare aligned_alloc.
9732         * Versions.def: Add GLIBC_2.16 for libc.
9733         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
9735         [BZ 13527]
9736         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
9737         ISO C11.
9739         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
9740         code.
9742         [BZ #13528]
9743         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
9745         [BZ #13529]
9746         * assert/assert.h (static_assert): Define.
9748         * version.h: Update for 2.16 development version.
9750         [BZ #13526]
9751         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
9752         _ISOC11_SOURCE.
9754         * version.h (RELEASE): Bump for 2.15 release.
9755         * include/features.h (__GLIBC_MINOR__): Bump to 15.
9757         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
9758         Patch by Marek Polacek <mpolacek@redhat.com>.
9760         * bits/byteswap.h: Protect long long constants with __extension__.
9761         * sysdeps/i386/bits/byteswap.h: Likewise.
9762         * sysdeps/ia64/bits/byteswap.h: Likewise.
9763         * sysdeps/s390/bits/byteswap.h: Likewise.
9764         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9766 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9768         [BZ #13540]
9769         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
9770         destination buffer.
9771         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
9773 2011-12-23  Marek Polacek  <polacek@redhat.com>
9775         * elf/dl-addr.c (determine_info): Add inline keyword.
9776         * elf/tst-auditmod4b.c (check_avx): Likewise.
9777         * elf/tst-auditmod6b.c (check_avx): Likewise.
9778         * elf/tst-auditmod6c.c (check_avx): Likewise.
9779         * elf/tst-auditmod7b.c (check_avx): Likewise.
9781 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9783         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
9784         !__SSE_MATH__.
9786 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9788         [BZ #13540]
9789         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
9790         processing for last bytes.
9792 2011-08-06  Bruno Haible  <bruno@clisp.org>
9794         [BZ #13061]
9795         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
9796         U+0385, not to U+1FEE.
9798         [BZ #13062]
9799         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
9800         entry for U+00A5 U+0301.
9802 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9804         [BZ #13166]
9805         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
9806         buffer for the output is too small.
9808         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
9809         optimization.
9811         [BZ #13185]
9812         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
9813         SSE flags if possible.
9815 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9817         [BZ #13540]
9818         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
9819         processing for last bytes.
9821 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
9823         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
9824         (syscall-list-default-options, syscall-list-default-condition)
9825         (syscall-list-includes): Define.
9826         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
9827         list of ABIs and options and #if conditions for each ABI.  Do not
9828         handle common syscalls between ABIs specially.
9829         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
9830         Remove.
9831         (syscall-list-variants, syscall-list-32bit-options)
9832         (syscall-list-32bit-condition, syscall-list-64bit-options)
9833         (syscall-list-64bit-condition): Define.
9834         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
9835         (syscall-list-variants, syscall-list-32bit-options)
9836         (syscall-list-32bit-condition, syscall-list-64bit-options)
9837         (syscall-list-64bit-condition): Define.
9838         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
9839         Remove.
9840         (syscall-list-variants, syscall-list-32bit-options)
9841         (syscall-list-32bit-condition, syscall-list-64bit-options)
9842         (syscall-list-64bit-condition): Define.
9843         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
9844         Remove.
9845         (syscall-list-variants, syscall-list-32bit-options)
9846         (syscall-list-32bit-condition, syscall-list-64bit-options)
9847         (syscall-list-64bit-condition): Define.
9849 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9851         * locale/iso-639.def: Add brx entry.
9853         [BZ #13328]
9854         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
9855         Proposed by Mariusz_Cukr <marcukr@op.pl>.
9857         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
9858         __feraiseexcept_renamed.
9860 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9862         [BZ #13538]
9863         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
9864         EPOLLET with unsigned values.
9865         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9866         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9868         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
9869         to large cancellation.
9870         * math/s_cacoshf.c: Likewise.
9871         * math/s_cacoshl.c: Likewise.
9873 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
9875         [BZ #13305]
9876         [BZ #12786]
9877         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
9878         * math/s_cacoshf.c: Likewise.
9879         * math/s_cacoshl.c: Likewise.
9881 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9883         [BZ #13439]
9884         * iconv/gconv.h: Define __GCONV_SWAP.
9885         * iconvdata/unicode.c: The swap bit must be stored in __flags.
9886         * iconvdata/utf-16.c: Likewise.
9887         * iconvdata/utf-32.c: Likewise.
9889 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
9891         [BZ #13524]
9892         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
9893         numerator after shifting it by one limb.
9895 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
9897         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
9898         under [__USE_EXTERN_INLINES].
9900 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9902         [BZ #13446]
9903         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
9905 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9907         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
9908         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
9909         optimized code.
9910         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
9911         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
9912         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
9913         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
9914         for strncasecmp/strncasecmp_l compilation.
9915         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
9916         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
9918 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
9920         [BZ #13484]
9921         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
9922         of __asm__.
9924 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9926         [BZ #13506]
9927         * time/tzfile.c (__tzfile_read): Check values from file header.
9929 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9931         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
9932         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
9933         * powerpc/powerpc32/dl-start.S: Likewise.
9934         * powerpc/powerpc32/elf/start.S: Likewise.
9935         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
9936         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
9937         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
9938         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
9939         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
9940         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
9941         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
9942         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
9943         * powerpc/powerpc32/fpu/s_round.S: Likewise.
9944         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
9945         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
9946         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
9947         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
9948         * powerpc/powerpc32/memset.S: Likewise.
9949         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
9950         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
9951         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
9952         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
9953         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
9954         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
9955         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
9956         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
9957         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
9958         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
9959         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
9960         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9961         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9963 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9965         * math/libm-test.inc: Added more nearbyint tests.
9966         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
9967         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
9968         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
9969         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
9971 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
9973         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
9974         FD_CLOEXEC.
9976 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9978         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
9979         Add wcscpy-ssse3 wcscpy-c.
9980         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
9981         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
9982         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
9983         * sysdeps/x86_64/wcschr.S: New file.
9984         * sysdeps/x86_64/wcsrchr.S: New file.
9985         * string/test-strcmp.c: Remove checking of wcscmp function for
9986         wrong alignments.
9987         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
9988         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
9989         wcsrchr-sse2 wcsrchr-c.
9990         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
9991         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
9992         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
9993         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
9994         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
9995         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
9996         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
9997         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
9998         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
9999         * wcsmbc/wcschr.c (WCSCHR): New macro.
10001 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10003         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
10004         * wcsmbs/test-wcsrchr.c: New file.
10005         * string/test-strrchr.c: Add wcsrchr support.
10006         (WIDE): New macro.
10007         * wcsmbs/test-wcscpy.c: New file.
10008         * string/test-strcpy.c: Add wcscpy support.
10009         (WIDE): New macro.
10011 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
10013         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
10014         the inner loop.
10016 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
10018         [BZ #13472]
10019         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
10021 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
10023         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
10024         Minor optimizations.
10026         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
10027         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
10028         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
10030 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
10032         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
10033         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
10034         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
10035         for gcc to avoid warnings.
10036         * inet/Makefile (tests): Add tst-checks.
10037         * inet/tst-checks.c: New file.
10039         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
10040         warning.
10042         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
10043         __wmemcmp_sse2.
10045         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
10046         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
10048         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
10050 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
10052         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
10053         problem.
10055         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
10057 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
10059         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
10060         conditional on GCC version.
10061         (__arch_compare_and_exchange_val_8_acq)
10062         (__arch_compare_and_exchange_val_16_acq)
10063         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
10064         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
10065         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
10067 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
10069         * sysdeps/sh/backtrace.c: New file.
10071 2011-12-02  Andreas Schwab  <schwab@redhat.com>
10073         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
10074         parenthesis.
10076 2011-12-01  Andreas Schwab  <schwab@redhat.com>
10078         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
10079         falling back to utime.
10081 2011-11-30  Andreas Schwab  <schwab@redhat.com>
10083         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
10084         expectations for float.
10086 2011-11-29  Andreas Schwab  <schwab@redhat.com>
10088         * locale/weight.h (findidx): Add parameter len.
10089         * locale/weightwc.h (findidx): Likewise.
10090         * posix/fnmatch_loop.c (FCT): Adjust caller.
10091         * posix/regcomp.c (build_equiv_class): Likewise.
10092         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
10093         * posix/regexec.c (check_node_accept_bytes): Likewise.
10094         * string/strcoll_l.c (STRCOLL): Likewise.
10095         * string/strxfrm_l.c (STRXFRM): Likewise.
10097 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
10099         * Makefile.in: Remove CVSOPT handling.
10100         * configure.in: Remove use of AC_REVISION.
10101         * iconvdata/Makefile (distribute): No need to filter out CVS.
10102         * scripts/list-sources.sh: Remove CVS, subversion and monotone
10103         handling.
10105 2011-11-16  Andreas Schwab  <schwab@redhat.com>
10107         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
10108         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
10109         [USE_AS_STRNCASECMP_L]: Likewise.
10110         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
10111         NO_TLS_DIRECT_SEG_REFS.
10112         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
10113         Fix argument offsets for non-PIC.
10114         [USE_AS_STRNCASECMP_L]: Likewise.
10115         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
10116         NO_TLS_DIRECT_SEG_REFS.
10118 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10120         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
10121         O_CLOEXEC.
10122         * locale/loadlocale.c (_nl_load_locale): Likewise.
10124 2011-11-15  Andreas Schwab  <schwab@redhat.com>
10126         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
10127         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
10128         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
10129         (SYSCALL_GETTIME): Set errno on error.
10131         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
10132         count references to noai6ai_cached.
10134 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10136         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
10138         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
10139         FD_CLOEXEC for /proc/self/maps.
10141         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
10142         FD_CLOEXEC for /proc/meminfo.
10144         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
10145         gai.conf.
10147         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
10148         FD_CLOEXEC for given file.
10150         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
10152         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
10153         FD_CLOEXEC for /etc/hosts.
10154         (_gethtent): Likewise.
10156         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
10158         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
10159         cancellation and set FD_CLOEXEC for /etc/netgroup.
10161         * nss/nss_files/files-key.c (search): Don't allow cancellation when
10162         reading /etc/publickey.
10164         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
10165         allow cancellation when reading /etc/group.
10167         * nss/nss_files/files-alias.c (internal_setent): Don't allow
10168         cancellation.
10169         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
10171         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
10172         when using data file.
10174         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
10176         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
10177         (write_nis_obj): Use "c" and "e" in fopen.
10179         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
10181         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
10183         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
10185         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
10187         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
10188         locale.alias.
10190         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
10192         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
10194         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
10196         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
10197         file parsing and set FD_CLOEXEC.
10199 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10201         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
10203 2011-11-14  Andreas Schwab  <schwab@redhat.com>
10205         * malloc/arena.c (arena_get2): Don't call reused_arena when
10206         _int_new_arena failed.
10208 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10210         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
10211         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
10212         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
10213         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10214         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10215         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
10216         to compile strcasecmp and strncasecmp.
10217         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
10218         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
10220         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
10222 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
10224         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
10225         locale-defines.sym to gen-as-const-headers.
10226         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
10227         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
10228         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
10229         to compile strcasecmp and strncasecmp.
10230         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
10231         strcasecmp_l and strncasecmp_l.
10232         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
10233         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
10234         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
10235         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
10236         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
10237         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
10238         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
10239         * sysdeps/i386/i686/multiarch/strncase.S: New file.
10240         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
10241         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
10242         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
10244 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
10246         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
10247         result of SYSDEP_GETTIME_CPU to retval.
10248         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
10249         parameter list to macro.  Remove trailing semicolon.  Adjust users.
10251         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
10252         variable.
10254         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
10255         mantissa words.
10256         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10258         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
10259         from unused variable.
10261         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
10262         DWARF definitions.
10263         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
10264         for assembling.
10266         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
10267         over namespaces.
10269         * sunrpc/rpc_prot.c (rejected): Fix case value.
10271         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
10272         unsigned long long int to avoid warnings in shift.
10274         * posix/regex_internal.c (re_string_reconstruct): Actually use result
10275         of use of trans.
10276         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
10277         variable tmp.
10279         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
10280         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
10281         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
10283         * nis/nis_table.c (nis_list): Use variable of correct type for
10284         result of __follow_path call.
10286 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10288         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
10289         of math functions ceil, trunc, floor, round, and sqrt, when
10290         avaliable on the platform.
10291         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
10292         name clash.
10293         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10294         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10295         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10297 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
10299         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
10300         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
10302 2011-11-11  Roland McGrath  <roland@hack.frob.com>
10304         * include/unistd.h: Fix __readlink return type.
10305         Reported by Chris Metcalf <cmetcalf@tilera.com>.
10307 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
10309         * stdlib/ucontext.h: Undo last change for makecontext.
10311 2011-11-11  Andreas Schwab  <schwab@redhat.com>
10313         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
10315         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
10316         * setjmp/setjmp.h: Mark functions as non-leaf.
10317         * setjmp/bits/setjmp2.h: Likewise.
10318         * stdlib/ucontext.h: Likewise.
10320 2011-11-10  Andreas Schwab  <schwab@redhat.com>
10322         * malloc/arena.c (_int_new_arena): Don't increment narenas.
10323         (reused_arena): Don't check arena limit.
10324         (arena_get2): Atomically check arena limit.
10326 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
10328         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
10329         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
10331         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
10332         instructions.
10334 2011-11-07  Andreas Schwab  <schwab@redhat.com>
10336         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
10337         handler when locking.
10339         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10340         Fix size of allocated buffer.
10342 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10344         [BZ #10103]
10345         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
10346         declarations for long double functions.
10347         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
10349         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
10351 2011-11-03  Andreas Schwab  <schwab@redhat.com>
10353         * nscd/nscd.c (main): Don't start AVC thread until credentials are
10354         installed.
10356         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
10357         is disabled.
10359 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10361         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
10363 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
10365         * include/alloca.h (stackinfo_alloca_round): Define.
10366         (extend_alloca): Use it.
10367         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
10368         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
10369         here.
10371         * scripts/check-local-headers.sh: Ignore libaudit.h.
10373         * nscd/Makefile (extra-objs): Make recursively expanded.
10375 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
10377         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
10378         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
10380         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
10381         * posix/tst-rfc3484-2.c: Likewise.
10382         * posix/tst-rfc3484-3.c: Likewise.
10384         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10385         process_vm_writev.
10386         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
10387         process_vm_writev.
10388         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
10389         process_vm_writev from libc using GLIBC_2.15 version.
10391         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
10393 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10395         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
10396         stack usage.
10398 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
10400         [BZ #13367]
10401         * nss/getent.c (initgroups_keys): Show error message in case no group
10402         names are given.
10404         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
10405         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
10406         __bump_nl_timestamp.
10407         * nscd/connections (nscd_init): When host database is served open
10408         netlink socket and request notification about configuration changes.
10409         (main_loop_poll): Track netlink file descriptor and bump timestamp
10410         in case data becomes available.
10411         (main_loop_epoll): Likewise.
10412         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
10413         (database_pers_head): Add extra_data fileds.
10414         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
10415         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
10416         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
10417         Adjust caller.
10418         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
10419         in6ai data, call __free_in6ai.
10420         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
10421         Add -DHAVE_NETLINK.
10422         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
10423         interface information.  Reuse previous data if netlink timestamp
10424         is not changed.
10425         (__bump_nl_timestamp): New function.
10426         (__free_in6ai): New function.
10428 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
10430         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
10431         close_not_cancel_no_status here.
10432         (__check_pf): Reorganize code a bit to not call close twice if OOM.
10434 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10436         [BZ #13276]
10437         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
10438         return value.
10440         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
10441         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
10442         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
10444 2011-07-03  Andreas Jaeger  <aj@suse.de>
10446         [BZ #10709]
10447         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
10448         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
10449         * math/libm-test.inc (sin_test): Add test case.
10451 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10453         [BZ #13337]
10454         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
10455         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10457         * elf/chroot_canon.c (chroot_canon): Cleanups.
10459         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
10461         [BZ #13335]
10462         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
10463         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10465         * string/test-strchr.c: Make usable for strchrnul testing.
10466         * string/test-strchrnul.c: New file.
10467         * string/Makefile (strop-tests): Add strchrnul.
10469         * po/it.po: Update from translation team.
10470         * po/es.po: Likewise.
10472 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
10474         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
10475         the three constants needed as parameters.  Drop the others.
10476         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
10477         __m128i_strloadu_tolower.
10478         Create and initialize variable zero and use it in all the places
10479         where _mm_setzero_si128 was used.
10481         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
10482         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
10483         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
10484         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
10485         anymore.
10486         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
10487         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
10488         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
10489         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
10490         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
10491         __mpranred, __mptan.
10492         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
10493         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
10494         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
10495         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
10496         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
10497         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
10498         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
10499         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
10500         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
10502 2011-10-28  Andreas Schwab  <schwab@redhat.com>
10504         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
10505         redefine if SHARED.
10506         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
10508         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
10509         wide char related routines to wcsmbs subdir.
10511 2011-10-27  Andreas Schwab  <schwab@redhat.com>
10513         [BZ #13344]
10514         * misc/sys/cdefs.h (__THROWNL): Define.
10515         * posix/unistd.h: Use __THREADNL instead of __THREAD
10516         for memory synchronization functions.
10518 2011-10-26  Roland McGrath  <roland@hack.frob.com>
10520         [BZ #13349]
10521         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
10522         doesn't exist.
10523         * manual/stdio.texi (Obstack Streams): Node removed.
10525 2011-10-26  Andreas Schwab  <schwab@redhat.com>
10527         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
10528         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10529         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10531         * math/math_private.h (math_force_eval): Allow non-addressable
10532         arguments.
10533         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
10535 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10537         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
10538         file is not needed.
10540         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
10541         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10542         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10543         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10544         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10545         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10546         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10547         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
10548         Add AVX variants.
10549         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
10550         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
10551         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
10552         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
10553         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
10554         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
10555         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
10556         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
10557         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
10558         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
10559         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
10560         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
10561         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
10562         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
10563         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
10564         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
10565         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
10566         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
10567         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
10569         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
10570         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
10572         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
10573         place.  Use VEX encoding when compiling for AVX.
10575 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10577         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
10578         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10580         * string/test-strchr.c (do_test): Don't generate NUL bytes.
10582 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10584         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
10585         useless if() expression.
10586         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10587         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10588         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10589         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10590         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10591         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10592         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10593         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10594         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10595         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10596         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10597         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10598         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10599         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10600         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10601         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10602         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10603         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10604         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10606         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
10608 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10610         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
10611         condition.
10612         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10614 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10616         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
10617         .text section.  Avoid duplicate constants.
10618         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10619         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10620         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10621         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10622         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10623         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10624         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10625         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10626         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10627         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
10628         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10629         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10630         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10631         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10632         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10633         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10634         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10635         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10636         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10637         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10638         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10639         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10640         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10641         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
10642         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
10643         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
10644         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
10645         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
10646         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
10647         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
10648         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
10649         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
10650         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10651         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
10652         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
10653         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
10654         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
10655         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
10656         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
10657         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
10658         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
10659         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
10660         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
10661         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
10662         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
10664 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
10666         * sysdeps/x86_64/dla.h: Move to ...
10667         * sysdeps/x86_64/fpu/dla.h: ...here.
10668         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
10669         situations.  Use __builtin_fma only for gcc 4.6 and up.
10671         * config.make.in: Add have-mfma4 entry.
10672         * configure.in: Substitute libc_cv_cc_fma4.
10673         * math/Makefile (dbl-only-routines): Add sincostab.
10674         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
10675         Use __sincostab not sincos.
10676         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
10677         name is a macro.
10678         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10679         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10680         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10681         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
10682         using __copysign.
10683         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
10684         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
10685         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
10686         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
10687         and __inv.
10688         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
10689         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
10690         __copysign.
10691         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
10692         define aliases when function name is a macro.
10693         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
10694         sysdeps/ieee754/dbl-64/sincos.tbl.
10695         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
10696         fma4-enabled routines.
10697         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
10698         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
10699         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
10700         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
10701         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
10702         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
10703         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
10704         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
10705         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
10706         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
10707         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
10708         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
10709         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
10710         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
10711         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
10712         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
10713         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
10714         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
10715         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
10716         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
10717         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
10718         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
10719         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
10720         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
10721         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
10722         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
10723         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
10724         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
10725         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
10726         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
10728         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
10729         rename.
10730         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10731         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10732         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10733         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10734         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10735         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10736         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10737         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10739 2011-10-24  Andreas Schwab  <schwab@redhat.com>
10741         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
10743 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10745         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
10747         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
10748         prediction.
10749         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
10751         * string/strnlen.c: Don't define STRNLEN, reverse logic.
10752         Remove unused variable magic_bits.
10753         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
10755         * string/strnlen.c: Define and use STRNLEN macro.
10756         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
10757         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
10758         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
10759         * wcsmbs/wcslen.c: Define and use WCSLEN.
10760         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
10761         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
10762         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
10763         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
10764         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
10765         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
10766         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10768 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10770         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10771         strnlen-sse2-no-bsf.
10772         Rename strlen-no-bsf to strlen-sse2-no-bsf.
10773         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
10774         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
10775         Add strnlen support.
10776         (USE_AS_STRNLEN): New macro.
10777         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
10778         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
10779         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
10780         * sysdeps/x86_64/wcslen.S: New file.
10782 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
10784         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10785         XMM-moves are used for copying on small sizes.
10787 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10789         * wcsmbs/Makefile (strop-tests): Add wcschr.
10790         * wcsmbs/test-wcschr.c: New file.
10791         * string/test-strchr.c: Update.
10792         Add wcschr support.
10793         (WIDE): New macro.
10795 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10797         * wcsmbs/Makefile (strop-tests): Add wcslen.
10798         * wcsmbs/test-wcslen.c: New file.
10799         * string/test-strlen.c: Update.
10800         Add wcslen support.
10801         (WIDE): New macro.
10803 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10805         * po/it.po: Update from translation team.
10807 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10809         * sysdeps/x86_64/wcscmp.S: Update.
10810         Fix wrong comparison semantics.
10811         wcscmp shall use signed comparison not unsigned.
10812         Don't use substraction to avoid overflow bug.
10813         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
10814         * wcsmbc/wcscmp.c: Likewise.
10815         * string/test-strcmp.c: Likewise.
10816         Add new tests to check cases with negative values.
10818 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10820         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
10821         * sysdeps/x86_64/dla.h: ...here.  New file.
10822         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
10823         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10824         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10825         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10826         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10827         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10828         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10829         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10830         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10832 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
10834         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
10835         __ynl_finite aliases.
10837 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10839         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10841         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
10842         define DLA_FMA.
10843         [DLA_FMA] (EMULV): Use DLA_FMA.
10844         [DLA_FMA] (MUL12): Use EMULV.
10845         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
10846         that are not needed.
10847         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10848         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10849         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10850         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10851         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10852         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10853         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10855 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
10857         * math/s_nan.c: Undef __nan.
10858         * math/s_nanf.c: Undef __nanf.
10859         * math/s_nanl.c: Undef __nanl.
10860         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
10861         "math_private.h".
10863 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10865         * math/s_catan.c: Add branch predictions.
10866         * math/s_catanf.c: Likewise.
10867         * math/s_catanh.c: Likewise.
10868         * math/s_catanhf.c: Likewise.
10869         * math/s_catanhl.c: Likewise.
10870         * math/s_catanl.c: Likewise.
10871         * math/s_cexp.c: Likewise.
10872         * math/s_cexpf.c: Likewise.
10873         * math/s_cexpl.c: Likewise.
10874         * math/s_clog.c: Likewise.
10875         * math/s_clog10.c: Likewise.
10876         * math/s_clog10f.c: Likewise.
10877         * math/s_clog10l.c: Likewise.
10878         * math/s_clogf.c: Likewise.
10879         * math/s_clogl.c: Likewise.
10880         * math/s_csqrt.c: Likewise.
10881         * math/s_csqrtf.c: Likewise.
10882         * math/s_csqrtl.c: Likewise.
10883         * math/s_ctanf.c: Likewise.
10884         * math/s_ctanh.c: Likewise.
10885         * math/s_ctanhf.c: Likewise.
10886         * math/s_ctanhl.c: Likewise.
10887         * math/s_ctanl.c: Likewise.
10889         * math/math_private.h: Define __nan, __nanf, __nanl.
10890         * math/s_cacosh.c: Include <math_private.h>.
10891         * math/s_cacoshl.c: Likewise.
10892         * math/s_casinh.c: Likewise.
10893         * math/s_casinhf.c: Likewise.
10894         * math/s_casinhl.c: Likewise.
10895         * math/s_ccos.c: Rely entire on ccosh.
10896         * math/s_ccosf.c: Rely entire on ccoshf.
10897         * math/s_ccosl.c: Rely entirely on ccoshl.
10898         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
10899         Remove tests for FE_INVALID.
10900         * math/s_ccoshf.c: Likewise.
10901         * math/s_ccoshl.c: Likewise.
10902         * math/s_csin.c: Likewise.
10903         * math/s_csinf.c: Likewise.
10904         * math/s_csinh.c Likewise.
10905         * math/s_csinhf.c: Likewise.
10906         * math/s_csinhl.c: Likewise.
10907         * math/s_csinl.c: Likewise.
10908         * math/s_ctan.c: Likewise.
10909         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
10910         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
10911         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
10913 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
10915         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
10916         compilation problems.
10918         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
10919         __builtin_expect.
10921 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
10923         * sysdeps/i386/configure.in: Test for -mfma4 option.
10924         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
10925         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
10926         COMMON_CPUID_INDEX_80000001.
10927         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
10928         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
10929         use it if FMA3 is not supported.
10930         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
10932         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
10933         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10935 2011-10-20  Andreas Schwab  <schwab@redhat.com>
10937         [BZ #12892]
10938         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
10939         it would create a cycle with a link time dependency.
10941 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
10943         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
10944         instruction.
10945         * string/Makefile (strop-tests): Add rawmemchr.
10946         * string/test-rawmemchr.c: New file.
10948         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
10949         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
10950         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
10951         when compiling str{,n}casecmp and when AVX is available.  Hook up
10952         new optimized code in initializers.
10954 2011-10-19  Andreas Schwab  <schwab@redhat.com>
10956         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
10957         __feraiseexcept instead of feraiseexcept.
10959 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
10961         * math/math_private.h: Define defaults for libc_fetestexcept and
10962         libc_feupdateenv.
10963         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
10964         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10965         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
10966         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
10967         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10968         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10969         libc_fetestexcept and libc_feupdateenv.
10971         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
10972         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
10973         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
10974         * sysdeps/x86_64/fpu/math_private.h: Define special version of
10975         libc_feholdexcept_setround.
10977         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
10978         Add s_nearbyint-c and s_nearbyintf-c.
10979         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
10980         nearbyintf inlines.
10981         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
10982         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
10983         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
10984         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
10986         * math/math_private.h: Define defaults for libc_fegetround,
10987         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
10988         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
10989         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
10990         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
10991         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
10992         standard functions.
10993         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10994         Remove comments and hacks for old compiler versions.
10995         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10996         libc_fegetround, libc_fesetround, libc_feholdexcept, and
10997         libc_feholdexceptl.
10999 2011-10-18  Andreas Schwab  <schwab@redhat.com>
11001         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
11002         (__feraiseexcept_renamed): Add __NTH.
11003         (feraiseexcept): Add __NTH.  Rename local variables to fix
11004         namespace violations.
11006 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
11008         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
11010         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
11012         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
11013         recently added interfaces.
11014         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
11016         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
11017         about macro parameter expansion.
11019         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
11020         __NO_MATH_INLINES is defined.  Cleanups.
11022         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
11023         and __floorf is target has SSE4.1.
11024         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
11025         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
11026         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
11027         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
11029         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
11030         name.
11031         (floorf): Likewise.
11033         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
11035 2011-10-17  Andreas Schwab  <schwab@redhat.com>
11037         * misc/sys/cdefs.h: Fix last change.
11039         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
11040         database lookup.
11042 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
11044         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
11046         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
11047         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11048         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11049         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11050         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11051         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11052         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11053         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11054         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11055         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
11056         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
11057         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
11058         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
11059         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
11060         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
11061         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
11062         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
11063         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
11064         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
11065         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
11066         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
11067         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
11069         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
11070         ceil, ceilf, floor, floorf.
11072         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
11073         Perform IRELATIVE relocations last.
11075         * elf/do-rel.h: Add another parameter nrelative, replacing the
11076         local variable with the same name.  Change name of the function
11077         to end in Rel or Rela (uppercase).
11078         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
11079         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
11080         elf_dynamic_do_##reloc function.
11082 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11084         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
11085         is sufficient, at least on modern CPUs.
11087         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
11089         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
11090         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
11092         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
11093         __expl_finite.
11094         * math/bits/math-finite.h: Add entries for exp.
11095         * math/e_expl.c: Add __*_finite alias.
11096         * sysdeps/i386/fpu/e_exp.S: Likewise.
11097         * sysdeps/i386/fpu/e_expf.S: Likewise.
11098         * sysdeps/i386/fpu/e_expl.c: Likewise.
11099         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11100         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11101         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11102         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11103         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
11104         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11105         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11107         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
11108         is sufficient, at least on modern CPUs.
11110         * ctype/ctype-info.c (__ctype_init): Define.
11111         * include/ctype.h (__ctype_init): Declare.
11112         (__ctype_b_loc): The variable is always initialized.
11113         (__ctype_toupper_loc): Likewise.
11114         (__ctype_tolower_loc): Likewise.
11115         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
11116         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
11118 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
11120         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
11122         * configure.in: Also look in $cxxmachine/include for C++ system
11123         headers.
11125 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11127         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
11128         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
11129         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
11130         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
11131         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
11132         (USE_AS_WMEMCMP): New macro.
11133         Fixing indents.
11134         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
11135         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
11136         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
11137         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
11138         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11139         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
11140         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
11141         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
11142         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
11143         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
11144         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
11145         (USE_AS_WMEMCMP): New macro.
11146         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
11147         * sysdeps/string/test-memcmp.c: Update.
11148         Fix simple_wmemcmp.
11149         Add new tests.
11150         * wcsmbs/wmemcmp.c: Update.
11151         (WMEMCMP): New macro.
11152         Fix overflow bug.
11154 2011-10-12  Andreas Jaeger  <aj@suse.de>
11156         [BZ #13268]
11157         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
11159 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11161         * libio/iofwide.c (do_length): Avoid warning.
11163         * ctype/ctype.h (__isctype_f): Add missing __THROW.
11165 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
11167         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
11169         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
11170         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
11171         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
11172         * sysdeps/i386/i686/fpu/e_log.S: New file.
11173         * sysdeps/i386/i686/fpu/e_logf.S: New file.
11174         * sysdeps/i386/i686/fpu/e_logl.S: New file.
11176         * ctype/ctype.h: Add support for inlined isXXX functions when
11177         compiling C++ code.
11179 2011-10-14  Andreas Schwab  <schwab@redhat.com>
11181         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11183         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
11185 2011-10-13  Roland McGrath  <roland@hack.frob.com>
11187         [BZ #13291]
11188         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
11190 2011-10-13  Andreas Schwab  <schwab@redhat.com>
11192         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
11193         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
11194         feraiseexcept.
11196         * sysdeps/x86_64/memrchr.S: Check for zero size.
11198         * string/stratcliff.c: Add memrchr tests.
11200 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11202         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11203         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
11204         rawmemchr-sse2 rawmemchr-sse2-bsf.
11205         * sysdeps/i386/i686/multiarch/memchr.S: New file.
11206         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
11207         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
11208         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
11209         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
11210         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
11211         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
11212         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
11213         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
11214         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
11215         * string/memrchr.c (MEMRCHR): New macro.
11217 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
11219         Add integration with gcc's -ffinite-math-only and optimize wrapper
11220         functions in libm.
11221         * Versions.def: Define GLIBC_2.15 version for libm.
11222         * math/Makefile (headers): Add bits/math-finite.h.
11223         * math/bits/math-finite.h: New file.
11224         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
11225         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
11226         * math/e_acoshl.c: Add __*_finite alias.
11227         * math/e_acosl.c: Likewise.
11228         * math/e_asinl.c: Likewise.
11229         * math/e_atan2l.c: Likewise.
11230         * math/e_atanhl.c: Likewise.
11231         * math/e_coshl.c: Likewise.
11232         * math/e_exp10.c: Likewise.
11233         * math/e_exp10f.c: Likewise.
11234         * math/e_exp10l.c: Likewise.
11235         * math/e_exp2l.c: Likewise.
11236         * math/e_fmodl.c: Likewise.
11237         * math/e_gammal_r.c: Likewise.
11238         * math/e_hypotl.c: Likewise.
11239         * math/e_j0l.c: Likewise.
11240         * math/e_j1l.c: Likewise.
11241         * math/e_jnl.c: Likewise.
11242         * math/e_lgammal_r.c: Likewise.
11243         * math/e_log10l.c: Likewise.
11244         * math/e_log2l.c: Likewise.
11245         * math/e_logl.c: Likewise.
11246         * math/e_powl.c: Likewise.
11247         * math/e_sinhl.c: Likewise.
11248         * math/e_sqrtl.c: Likewise.
11249         * math/e_scalb.c: Completely rewritten and optimized.
11250         * math/e_scalbf.c: Likewise.
11251         * math/e_scalbl.c: Likewise.
11252         * math/w_acos.c: Likewise.
11253         * math/w_acosf.c: Likewise.
11254         * math/w_acosl.c: Likewise.
11255         * math/w_acosh.c: Likewise.
11256         * math/w_acoshf.c: Likewise.
11257         * math/w_acoshl.c: Likewise.
11258         * math/w_asin.c: Likewise.
11259         * math/w_asinf.c: Likewise.
11260         * math/w_asinl.c: Likewise.
11261         * math/w_atan2.c: Likewise.
11262         * math/w_atan2f.c: Likewise.
11263         * math/w_atan2l.c: Likewise.
11264         * math/w_atanh.c: Likewise.
11265         * math/w_atanhf.c: Likewise.
11266         * math/w_atanhl.c: Likewise.
11267         * math/w_exp10.c: Likewise.
11268         * math/w_exp10f.c: Likewise.
11269         * math/w_exp10l.c: Likewise.
11270         * math/w_fmod.c: Likewise.
11271         * math/w_fmodf.c: Likewise.
11272         * math/w_fmodl.c: Likewise.
11273         * math/w_j0.c: Likewise.
11274         * math/w_j0f.c: Likewise.
11275         * math/w_j0l.c: Likewise.
11276         * math/w_j1.c: Likewise.
11277         * math/w_j1f.c: Likewise.
11278         * math/w_j1l.c: Likewise.
11279         * math/w_jn.c: Likewise.
11280         * math/w_jnf.c: Likewise.
11281         * math/w_log.c: Likewise.
11282         * math/w_logf.c: Likewise.
11283         * math/w_logl.c: Likewise.
11284         * math/w_log10.c: Likewise.
11285         * math/w_log10f.c: Likewise.
11286         * math/w_log10l.c: Likewise.
11287         * math/w_log2.c: Likewise.
11288         * math/w_log2f.c: Likewise.
11289         * math/w_log2l.c: Likewise.
11290         * math/w_pow.c: Likewise.
11291         * math/w_powf.c: Likewise.
11292         * math/w_powl.c: Likewise.
11293         * math/w_remainder.c: Likewise.
11294         * math/w_remainderf.c: Likewise.
11295         * math/w_remainderl.c: Likewise.
11296         * math/w_scalb.c: Likewise.
11297         * math/w_scalbf.c: Likewise.
11298         * math/w_scalbl.c: Likewise.
11299         * math/w_sqrt.c: Likewise.
11300         * math/w_sqrtf.c: Likewise.
11301         * math/w_sqrtl.c: Likewise.
11302         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
11303         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
11304         used.
11305         * math/math_private.h: Declare __kernel_standard_f.
11306         * math/w_cosh.c: Remove cruft and optimize a bit.
11307         * math/w_coshf.c: Likewise.
11308         * math/w_coshl.c: Likewise.
11309         * math/w_exp2.c: Likewise.
11310         * math/w_exp2f.c: Likewise.
11311         * math/w_exp2l.c: Likewise.
11312         * math/w_hypot.c: Likewise.
11313         * math/w_hypotf.c: Likewise.
11314         * math/w_hypotl.c: Likewise.
11315         * math/w_lgamma.c: Likewise.
11316         * math/w_lgamma_r.c: Likewise.
11317         * math/w_lgammaf.c: Likewise.
11318         * math/w_lgammaf_r.c: Likewise.
11319         * math/w_lgammal.c: Likewise.
11320         * math/w_lgammal_r.c: Likewise.
11321         * math/w_sinh.c: Likewise.
11322         * math/w_sinhf.c: Likewise.
11323         * math/w_sinhl.c: Likewise.
11324         * math/w_tgamma.c: Likewise.
11325         * math/w_tgammaf.c: Likewise.
11326         * math/w_tgammal.c: Likewise.
11327         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11328         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11329         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
11330         Minor optimizations.  Pretty printing.  Remove cruft.
11331         * sysdeps/i386/fpu/e_acosf.S: Likewise.
11332         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11333         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11334         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11335         * sysdeps/i386/fpu/e_acosl.c: Likewise.
11336         * sysdeps/i386/fpu/e_asin.S: Likewise.
11337         * sysdeps/i386/fpu/e_asinf.S: Likewise.
11338         * sysdeps/i386/fpu/e_atan2.S: Likewise.
11339         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
11340         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
11341         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11342         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11343         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11344         * sysdeps/i386/fpu/e_exp10.S: Likewise.
11345         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
11346         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
11347         * sysdeps/i386/fpu/e_exp2.S: Likewise.
11348         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
11349         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
11350         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11351         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
11352         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11353         * sysdeps/i386/fpu/e_hypot.S: Likewise.
11354         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
11355         * sysdeps/i386/fpu/e_log.S: Likewise.
11356         * sysdeps/i386/fpu/e_log10.S: Likewise.
11357         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11358         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11359         * sysdeps/i386/fpu/e_log2.S: Likewise.
11360         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11361         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11362         * sysdeps/i386/fpu/e_logf.S: Likewise.
11363         * sysdeps/i386/fpu/e_logl.S: Likewise.
11364         * sysdeps/i386/fpu/e_pow.S: Likewise.
11365         * sysdeps/i386/fpu/e_powf.S: Likewise.
11366         * sysdeps/i386/fpu/e_powl.S: Likewise.
11367         * sysdeps/i386/fpu/e_remainder.S: Likewise.
11368         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
11369         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
11370         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11371         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11372         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11373         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
11374         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
11375         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
11376         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11377         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11378         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11379         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11380         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11381         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11382         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11383         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11384         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11385         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11386         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11387         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11388         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11389         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11390         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11391         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11392         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11393         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11394         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11395         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11396         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11397         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11398         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11399         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11400         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11401         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11402         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11403         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11404         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11405         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11406         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11407         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11408         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11409         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11410         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11411         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11412         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11413         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11414         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11415         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11416         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11417         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11418         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11419         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11420         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11421         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11422         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11424         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11425         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11426         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11427         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11428         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11429         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11430         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11431         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11432         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11433         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11434         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11435         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11436         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11437         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11438         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11439         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11440         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11441         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11442         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11443         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11444         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11445         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11446         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11447         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11448         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11449         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11450         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11451         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11452         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11453         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11454         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11455         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11456         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11457         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11458         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11459         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11460         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11461         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11462         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11463         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11464         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11465         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11466         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11467         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11468         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11469         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11470         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11471         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11472         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11473         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
11474         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
11475         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
11476         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
11477         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
11478         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
11479         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
11480         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11481         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11482         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11483         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11484         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
11485         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11486         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
11487         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
11488         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
11489         (__isnanf): Likewise.
11490         (__isinf_ns): Likewise.
11491         (__isinf_nsf): Likewise.
11492         (__finite): Likewise.
11493         (__finitef): Likewise.
11494         (__ieee754_sqrt): Define as macro.
11495         (__ieee754_sqrtf): Define as macro.
11496         (__ieee754_sqrtl): Define as macro.
11497         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
11498         inlined copy.
11499         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
11500         __FINITE_MATH_ONLY__ consistent.
11501         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
11503 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
11505         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
11506         of rawmemchr.
11508         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
11510 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
11512         * po/ja.po: Update from translation team.
11514 2011-10-08  Roland McGrath  <roland@hack.frob.com>
11516         * locale/programs/locarchive.c (prepare_address_space): New function.
11517         (create_archive, enlarge_archive, open_archive): Use it.
11519         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
11520         inside [SHARED], where it is used.
11522         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
11524         * nss/getent.c (netgroup_keys): Remove unused variable.
11525         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11527 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
11529         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
11530         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
11531         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
11532         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
11533         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
11534         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
11535         * math/Makefile (libm-calls): Add s_isinf_ns.
11536         * math/divtc3.c: Use __isinf_nsl instead of isinf.
11537         * math/multc3.c: Likewise.
11538         * math/s_casin.c: Likewise.
11539         * math/s_casinf.c: Likewise.
11540         * math/s_casinl.c: Likewise.
11541         * math/s_ccos.c: Likewise.
11542         * math/s_ccosf.c: Likewise.
11543         * math/s_ccosl.c: Likewise.
11544         * math/s_ctan.c: Likewise.
11545         * math/s_ctanf.c: Likewise.
11546         * math/s_ctanh.c: Likewise.
11547         * math/s_ctanhf.c: Likewise.
11548         * math/s_ctanhl.c: Likewise.
11549         * math/s_ctanl.c: Likewise.
11550         * math/w_fmod.c: Likewise.
11551         * math/w_fmodf.c: Likewise.
11552         * math/w_fmodl.c: Likewise.
11553         * math/w_remainder.c: Likewise.
11554         * math/w_remainderf.c: Likewise.
11555         * math/w_remainderl.c: Likewise.
11556         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
11557         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
11558         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
11559         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
11560         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
11561         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
11562         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
11563         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
11565         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
11566         of the number.
11567         * stdio-common/printf_fphex.c: Likewise.
11568         * stdio-common/printf_size.c: Likewise.
11570         * math/e_exp10.c: Include math_private.h using <...> not "...".
11571         * math/e_exp10f.c: Likewise.
11572         * math/e_exp10l.c: Likewise.
11573         * math/e_exp2l.c: Likewise.
11574         * math/e_j0l.c: Likewise.
11575         * math/e_j1l.c: Likewise.
11576         * math/e_jnl.c: Likewise.
11577         * math/e_lgammal_r.c: Likewise.
11578         * math/e_rem_pio2l.c: Likewise.
11579         * math/e_scalb.c: Likewise.
11580         * math/e_scalbf.c: Likewise.
11581         * math/e_scalbl.c: Likewise.
11582         * math/k_cosl.c: Likewise.
11583         * math/k_sinl.c: Likewise.
11584         * math/k_tanl.c: Likewise.
11585         * math/s_cacoshf.c: Likewise.
11586         * math/s_catan.c: Likewise.
11587         * math/s_catanf.c: Likewise.
11588         * math/s_catanh.c: Likewise.
11589         * math/s_catanhf.c: Likewise.
11590         * math/s_catanhl.c: Likewise.
11591         * math/s_catanl.c: Likewise.
11592         * math/s_ccosh.c: Likewise.
11593         * math/s_ccoshf.c: Likewise.
11594         * math/s_ccoshl.c: Likewise.
11595         * math/s_cexp.c: Likewise.
11596         * math/s_cexpf.c: Likewise.
11597         * math/s_cexpl.c: Likewise.
11598         * math/s_clog.c: Likewise.
11599         * math/s_clog10.c: Likewise.
11600         * math/s_clog10f.c: Likewise.
11601         * math/s_clog10l.c: Likewise.
11602         * math/s_clogf.c: Likewise.
11603         * math/s_clogl.c: Likewise.
11604         * math/s_csin.c: Likewise.
11605         * math/s_csinf.c: Likewise.
11606         * math/s_csinh.c: Likewise.
11607         * math/s_csinhf.c: Likewise.
11608         * math/s_csinhl.c: Likewise.
11609         * math/s_csinl.c: Likewise.
11610         * math/s_csqrt.c: Likewise.
11611         * math/s_csqrtf.c: Likewise.
11612         * math/s_csqrtl.c: Likewise.
11613         * math/s_ctan.c: Likewise.
11614         * math/s_ctanf.c: Likewise.
11615         * math/s_ctanh.c: Likewise.
11616         * math/s_ctanhf.c: Likewise.
11617         * math/s_ctanhl.c: Likewise.
11618         * math/s_ctanl.c: Likewise.
11619         * math/s_ldexp.c: Likewise.
11620         * math/s_ldexpf.c: Likewise.
11621         * math/s_ldexpl.c: Likewise.
11622         * math/s_significand.c: Likewise.
11623         * math/s_significandf.c: Likewise.
11624         * math/s_significandl.c: Likewise.
11625         * math/w_acos.c: Likewise.
11626         * math/w_acosf.c: Likewise.
11627         * math/w_acosh.c: Likewise.
11628         * math/w_acoshf.c: Likewise.
11629         * math/w_acoshl.c: Likewise.
11630         * math/w_acosl.c: Likewise.
11631         * math/w_asin.c: Likewise.
11632         * math/w_asinf.c: Likewise.
11633         * math/w_asinl.c: Likewise.
11634         * math/w_atan2.c: Likewise.
11635         * math/w_atan2f.c: Likewise.
11636         * math/w_atan2l.c: Likewise.
11637         * math/w_atanh.c: Likewise.
11638         * math/w_atanhf.c: Likewise.
11639         * math/w_atanhl.c: Likewise.
11640         * math/w_cosh.c: Likewise.
11641         * math/w_coshf.c: Likewise.
11642         * math/w_coshl.c: Likewise.
11643         * math/w_dremf.c: Likewise.
11644         * math/w_exp10.c: Likewise.
11645         * math/w_exp10f.c: Likewise.
11646         * math/w_exp10l.c: Likewise.
11647         * math/w_exp2.c: Likewise.
11648         * math/w_exp2f.c: Likewise.
11649         * math/w_fmod.c: Likewise.
11650         * math/w_fmodf.c: Likewise.
11651         * math/w_fmodl.c: Likewise.
11652         * math/w_hypot.c: Likewise.
11653         * math/w_hypotf.c: Likewise.
11654         * math/w_hypotl.c: Likewise.
11655         * math/w_j0.c: Likewise.
11656         * math/w_j0f.c: Likewise.
11657         * math/w_j0l.c: Likewise.
11658         * math/w_j1.c: Likewise.
11659         * math/w_j1f.c: Likewise.
11660         * math/w_j1l.c: Likewise.
11661         * math/w_jn.c: Likewise.
11662         * math/w_jnf.c: Likewise.
11663         * math/w_jnl.c: Likewise.
11664         * math/w_lgamma.c: Likewise.
11665         * math/w_lgamma_r.c: Likewise.
11666         * math/w_lgammaf.c: Likewise.
11667         * math/w_lgammaf_r.c: Likewise.
11668         * math/w_lgammal.c: Likewise.
11669         * math/w_lgammal_r.c: Likewise.
11670         * math/w_log.c: Likewise.
11671         * math/w_log10.c: Likewise.
11672         * math/w_log10f.c: Likewise.
11673         * math/w_log10l.c: Likewise.
11674         * math/w_log2.c: Likewise.
11675         * math/w_log2f.c: Likewise.
11676         * math/w_log2l.c: Likewise.
11677         * math/w_logf.c: Likewise.
11678         * math/w_logl.c: Likewise.
11679         * math/w_pow.c: Likewise.
11680         * math/w_powf.c: Likewise.
11681         * math/w_powl.c: Likewise.
11682         * math/w_remainder.c: Likewise.
11683         * math/w_remainderf.c: Likewise.
11684         * math/w_remainderl.c: Likewise.
11685         * math/w_scalb.c: Likewise.
11686         * math/w_scalbf.c: Likewise.
11687         * math/w_scalbl.c: Likewise.
11688         * math/w_sinh.c: Likewise.
11689         * math/w_sinhf.c: Likewise.
11690         * math/w_sinhl.c: Likewise.
11691         * math/w_sqrt.c: Likewise.
11692         * math/w_sqrtf.c: Likewise.
11693         * math/w_sqrtl.c: Likewise.
11694         * math/w_tgamma.c: Likewise.
11695         * math/w_tgammaf.c: Likewise.
11696         * math/w_tgammal.c: Likewise.
11698         * po/ja.po: Update from translation team.
11700 2011-09-29  Andreas Jaeger  <aj@suse.de>
11702         [BZ #13179]
11703         * sunrpc/netname.c (netname2host): Fix logic.
11705         [BZ #6779]
11706         [BZ #6783]
11707         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
11708         correctly.
11709         * math/w_remainder.c (__remainder): Likewise.
11710         * math/w_remainderf.c (__remainderf): Likewise.
11711         * math/libm-test.inc (remainder_test): Add test cases.
11713 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11715         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
11716         sdiv_qrnnd.
11718 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11720         * string/test-memcmp.c: Avoid unncessary #defines.
11721         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11723 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11725         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
11726         Use new sse2 version for core i3 - i7 as it's faster
11727         than sse42 version.
11728         (bit_Prefer_PMINUB_for_stringop): New.
11729         * sysdeps/x86_64/rawmemchr.S: Update.
11730         Replace with faster SSE2 version.
11731         * sysdeps/x86_64/memrchr.S: New file.
11732         * sysdeps/x86_64/memchr.S: Update.
11733         Replace with faster SSE2 version.
11735 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
11737         * elf/dl-load.c (lose): Add cast to avoid warning.
11739 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11741         * po/ca.po: Update from translation team.
11743         * inet/getnetgrent_r.c: Hook up nscd.
11744         * nscd/Makefile (routines): Add nscd_netgroup.
11745         (nscd-modules): Add netgroupcache.
11746         (CFLAGS-netgroupcache.c): Define.
11747         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
11748         (cache_search): Add const to second parameter.
11749         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
11750         INNETGR.
11751         (dbs): Add netgrdb entry.
11752         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
11753         (verify_persistent_db): Handle netgrdb.
11754         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
11755         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
11756         GETFDNETGR.
11757         (netgroup_response_header): Define.
11758         (innetgroup_response_header): Define.
11759         (datahead): Add netgroup_response_header and innetgroup_response_header
11760         elements.
11761         * nscd/nscd.conf: Add entries for netgroup cache.
11762         * nscd/nscd.h (dbtype): Add netgrdb.
11763         (_PATH_NSCD_NETGROUP_DB): Define.
11764         (netgroup_iov_disabled): Declare.
11765         (xmalloc, xcalloc, xrealloc): Move declarations here.
11766         (cache_search): Adjust prototype.
11767         Add netgroup-related prototypes.
11768         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
11769         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
11770         (__nscd_innetgr): Declare.
11771         * nscd/selinux.c (perms): Use access_vector_t as element type and
11772         add netgroup-related initializers.
11773         * nscd/netgroupcache.c: New file.
11774         * nscd/nscd_netgroup.c: New file.
11775         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
11776         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
11777         For four parameters use innetgr.
11778         * nss/nss_files/files-init.c: Add definition and callback for netgr.
11779         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
11780         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
11781         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
11783         * nscd/connections.c (register_traced_file): Don't register file
11784         for disabled databases.
11786 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
11788         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
11790         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
11791         from tree and freeing node.
11793 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
11795         * nss/nsswitch.c (__nss_database_lookup): Handle
11796         nss_parse_service_list out of memory case.
11798 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
11800         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
11801         out of memory case.
11803 2011-10-04  Andreas Schwab  <schwab@redhat.com>
11805         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
11806         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
11807         pass it down.
11808         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
11809         elf_machine_rela, elf_machine_lazy_rel.
11810         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
11811         (ELF_DYNAMIC_DO_REL): Likewise.
11812         (ELF_DYNAMIC_DO_RELA): Likewise.
11813         (ELF_DYNAMIC_RELOCATE): Likewise.
11814         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
11815         to ELF_DYNAMIC_DO_REL.
11816         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
11817         (dl_main): In trace mode always set __RTLD_NOIFUNC.
11818         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
11819         elf_machine_rela.
11820         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
11821         skip_ifunc, don't call ifunc function if non-zero.
11822         (elf_machine_rela): Likewise.
11823         (elf_machine_lazy_rel): Likewise.
11824         (elf_machine_lazy_rela): Likewise.
11825         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
11826         (elf_machine_lazy_rel): Likewise.
11827         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
11828         Likewise.
11829         (elf_machine_lazy_rel): Likewise.
11830         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11831         Likewise.
11832         (elf_machine_lazy_rel): Likewise.
11833         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
11834         (elf_machine_lazy_rel): Likewise.
11835         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
11836         (elf_machine_lazy_rel): Likewise.
11837         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11838         (elf_machine_lazy_rel): Likewise.
11839         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
11840         (elf_machine_lazy_rel): Likewise.
11841         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
11842         (elf_machine_lazy_rel): Likewise.
11843         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
11844         (elf_machine_lazy_rel): Likewise.
11846 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
11848         * nss/nss_files/files-init.c (_nss_files_init): Use static
11849         initialization for all the *_traced_file variables.
11851 2011-09-28  Andreas Schwab  <schwab@redhat.com>
11853         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11855 2011-09-27  Roland McGrath  <roland@hack.frob.com>
11857         [BZ #13226]
11858         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
11860 2011-09-27  Andreas Schwab  <schwab@redhat.com>
11862         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11863         Reread the line before reparsing it.
11865 2011-09-26  Andreas Schwab  <schwab@redhat.com>
11867         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
11869 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
11870             Maxim Kuvyrkov  <maxim@codesourcery.com>
11871             Joseph Myers  <joseph@codesourcery.com>
11873         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
11874         if needed for __stack_chk_guard.
11876 2011-09-19  Roland McGrath  <roland@hack.frob.com>
11878         * sysdeps/posix/spawni.c (script_execute): Always define it.
11879         It will be optimized away if unused.
11880         (maybe_script_execute): New function.
11881         (__spawni): Call it.
11883         * Makerules: Don't include tls.make.
11884         (config-tls): Always set to thread.
11885         * tls.make.c: File removed.
11887 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
11889         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
11890         * config.make.in (CPPFLAGS-config): New substituted variable.
11892 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11894         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
11896         [BZ #13192]
11897         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
11898         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
11900 2011-09-15  Roland McGrath  <roland@hack.frob.com>
11902         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
11903         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
11904         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11905         (CALL_FAIL): Likewise.
11906         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
11907         (CALL_FAIL): Macro removed.
11908         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
11910 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11912         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
11913         for __FINITE_MATH_ONLY__ == 1.
11915 2011-09-15  Andreas Schwab  <schwab@redhat.com>
11917         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
11918         __ieee754_sqrt instead of sqrt.
11919         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
11920         __ieee754_sqrtf instead of sqrtf.
11921         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
11922         __floorf instead of floorf.
11923         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
11924         __floorf, __truncf instead of floorf, truncf.
11926 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
11928         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
11930         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
11931         __extern_always_inline.
11932         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
11933         32-bit.
11935 2011-09-14  Andreas Schwab  <schwab@redhat.com>
11937         * elf/rtld.c (dl_main): Also relocate in dependency order when
11938         doing symbol dependency testing.
11940 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
11942         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11943         Always define `refsym'.
11945 2011-09-13  Andreas Schwab  <schwab@redhat.com>
11947         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
11948         (__FD_ELT): Renamed from __FDELT.
11949         * misc/bits/select2.h (__FD_ELT): Likewise.
11950         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
11951         __FD_MASK instead of __FDELT, __FDMASK.
11952         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11953         Likewise.
11954         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11955         Likewise.
11957         * elf/Makefile (gen-ldd): Fix pattern.
11959         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
11960         (init_tls): Likewise.
11962 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
11964         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
11966 2011-09-12  Andreas Schwab  <schwab@redhat.com>
11968         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
11969         `struct cmsghdr *' instead of `void *'.
11970         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
11971         Likewise.
11973 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
11975         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
11976         if non-absolute.
11977         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
11978         ldd_rewrite_script.
11980 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
11982         * configure.in: Remove --with-tls option.
11983         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
11984         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
11985         out in case it is missing.
11986         * sysdeps/ia64/elf/configure.in: Likewise.
11987         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
11988         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
11989         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
11990         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
11991         * sysdeps/sh/elf/configure.in: Likewise.
11992         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
11993         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11994         * sysdeps/x86_64/elf/configure.in: Likewise.
11995         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
11996         * sysdeps/mach/hurd/tls.h: Likewise.
11998         [BZ #13067]
11999         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
12001         [BZ #13090]
12002         * configure.in: Fix use of AC_INIT.
12004         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
12006 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
12008         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
12009         __set_errno.
12010         * malloc/hooks.c: Likewise.
12012         [BZ #11929]
12013         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
12014         variables statically.
12015         (narenas): Initialize.
12016         (list_lock): Initialize.
12017         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
12018         initializtion of main_arena and list_lock.  Small cleanups.
12019         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
12020         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
12021         Add initializers to main_arena and mp_.
12022         (malloc_state): Remove pagesize member.  Change all users to use
12023         GLRO(dl_pagesize).
12025         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
12026         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
12027         is always initialized.
12029         * malloc/malloc.c: Removed unused configurations and dead code.
12030         * malloc/arena.c: Likewise.
12031         * malloc/hooks.c: Likewise.
12032         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
12034         * include/tls.h: Removed.  USE___THREAD must always be defined.
12035         * bits/libc-tsd.h: Don't handle !USE___THREAD.
12036         * elf/dl-libc.c: Likewise.
12037         * elf/dl-tsd.c: Likewise.
12038         * include/errno.h: Likewise.
12039         * include/netdb.h: Likewise.
12040         * include/resolv.h: Likewise.
12041         * inet/herrno-loc.c: Likewise.
12042         * inet/herrno.c: Likewise.
12043         * malloc/arena.c: Likewise.
12044         * malloc/hooks.c: Likewise.
12045         * malloc/malloc.c: Likewise.
12046         * resolv/res-state.c: Likewise.
12047         * resolv/res_libc.c: Likewise.
12048         * sysdeps/i386/dl-machine.h: Likewise.
12049         * sysdeps/ia64/dl-machine.h: Likewise.
12050         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12051         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12052         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12053         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12054         * sysdeps/sh/dl-machine.h: Likewise.
12055         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12056         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12057         * sysdeps/unix/i386/sysdep.S: Likewise.
12058         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12059         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12060         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12061         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12062         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12063         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12064         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
12065         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12066         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12067         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12068         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12069         * sysdeps/x86_64/dl-machine.h: Likewise.
12070         * tls.make.c: Likewise.
12072         * configure.in: Remove --with-__thread option.  Make tests for
12073         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
12074         tls_model attribute fail if no support is available.  Remove
12075         USE_IN_LIBIO.
12076         * Makeconfig: Adjust for dropped configure option.  All features are
12077         now mandatory.
12078         * Makerules: Likewise.
12079         * Versions.def: Likewise.
12080         * argp/argp-fmtstream.c: Likewise.
12081         * argp/argp-fmtstream.h: Likewise.
12082         * argp/argp-help.c: Likewise.
12083         * assert/assert.c: Likewise.
12084         * config.h.in: Likewise.
12085         * config.make.in: Likewise.
12086         * configure: Likewise.
12087         * configure.in: Likewise.
12088         * csu/Versions: Likewise.
12089         * csu/init.c: Likewise.
12090         * elf/tst-audit2.c: Likewise.
12091         * elf/tst-tls10.c: Likewise.
12092         * elf/tst-tls10.h: Likewise.
12093         * elf/tst-tls11.c: Likewise.
12094         * elf/tst-tls12.c: Likewise.
12095         * elf/tst-tls14.c: Likewise.
12096         * elf/tst-tlsmod11.c: Likewise.
12097         * elf/tst-tlsmod12.c: Likewise.
12098         * elf/tst-tlsmod13.c: Likewise.
12099         * elf/tst-tlsmod13a.c: Likewise.
12100         * elf/tst-tlsmod14a.c: Likewise.
12101         * elf/tst-tlsmod15b.c: Likewise.
12102         * elf/tst-tlsmod16a.c: Likewise.
12103         * elf/tst-tlsmod16b.c: Likewise.
12104         * elf/tst-tlsmod7.c: Likewise.
12105         * elf/tst-tlsmod8.c: Likewise.
12106         * elf/tst-tlsmod9.c: Likewise.
12107         * gmon/gmon.c: Likewise.
12108         * grp/fgetgrent_r.c: Likewise.
12109         * grp/putgrent.c: Likewise.
12110         * hurd/fopenport.c: Likewise.
12111         * include/libc-symbols.h: Likewise.
12112         * include/tls.h: Likewise.
12113         * intl/gettextP.h: Likewise.
12114         * intl/loadinfo.h: Likewise.
12115         * locale/global-locale.c: Likewise.
12116         * locale/localeinfo.h: Likewise.
12117         * mach/devstream.c: Likewise.
12118         * malloc/arena.c: Likewise.
12119         * malloc/set-freeres.c: Likewise.
12120         * misc/err.c: Likewise.
12121         * misc/getttyent.c: Likewise.
12122         * misc/mntent_r.c: Likewise.
12123         * posix/getopt.c: Likewise.
12124         * posix/wordexp.c: Likewise.
12125         * pwd/fgetpwent_r.c: Likewise.
12126         * resolv/Versions: Likewise.
12127         * resolv/res_hconf.c: Likewise.
12128         * shadow/fgetspent_r.c: Likewise.
12129         * shadow/putspent.c: Likewise.
12130         * stdio-common/printf_fphex.c: Likewise.
12131         * stdio-common/tmpfile.c: Likewise.
12132         * stdlib/abort.c: Likewise.
12133         * stdlib/fmtmsg.c: Likewise.
12134         * sunrpc/auth_unix.c: Likewise.
12135         * sunrpc/clnt_perr.c: Likewise.
12136         * sunrpc/clnt_tcp.c: Likewise.
12137         * sunrpc/clnt_udp.c: Likewise.
12138         * sunrpc/clnt_unix.c: Likewise.
12139         * sunrpc/openchild.c: Likewise.
12140         * sunrpc/svc_simple.c: Likewise.
12141         * sunrpc/svc_tcp.c: Likewise.
12142         * sunrpc/svc_udp.c: Likewise.
12143         * sunrpc/svc_unix.c: Likewise.
12144         * sunrpc/xdr.c: Likewise.
12145         * sunrpc/xdr_array.c: Likewise.
12146         * sunrpc/xdr_rec.c: Likewise.
12147         * sunrpc/xdr_ref.c: Likewise.
12148         * sunrpc/xdr_stdio.c: Likewise.
12150 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12152         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12154 2011-07-03  Andreas Jaeger  <aj@suse.de>
12156         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
12157         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
12158         regenerate with gen-libm-tests.pl.
12160 2010-05-12  Petr Baudis  <pasky@suse.cz>
12162         [BZ #11589]
12163         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
12164         around j0() zero points by switching to j1().
12165         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12166         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12167         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12168         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12170 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12172         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
12173         instead of 0.
12174         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
12175         instead of 0.                              .
12176         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12177         Patch in part by Pavel Roskin <proski@gnu.org>.
12179         [BZ #13138]
12180         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
12181         realloc.
12182         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
12183         Free memory block if necessary.
12185         [BZ #12847]
12186         * libio/genops.c (INTDEF): For string streams the _lock pointer can
12187         be NULL.  Don't lock in this case.
12189 2011-09-09  Roland McGrath  <roland@hack.frob.com>
12191         * elf/elf.h (ELFOSABI_GNU): New macro.
12192         (ELFOSABI_LINUX): Define to that.
12194 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
12196         * string/strncat.c (strncat): Undef the symbol in case it has been
12197         defined in bits/string.h.
12199 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12201         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
12203         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
12204         link map.
12206 2011-08-17  Andreas Jaeger  <aj@suse.de>
12208         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
12210 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12211             Ian Lance Taylor  <iant@google.com>
12213         * math/libm-test.inc (lround_test): New testcase.
12214         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
12216 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
12218         * Makefile: Remove support for automatic cvs check-ins.
12219         * Makerules: Likewise.
12220         * config.make.in: Likewise.
12221         * configure.in: Likewise.
12222         * intl/Makefile: Likewise.
12223         * locale/Makefile: Likewise.
12224         * po/Makefile: Likewise.
12225         * posix/Makefile: Likewise.
12226         * sysdeps/gnu/Makefile: Likewise.
12227         * sysdeps/mach/hurd/Makefile: Likewise.
12228         * sysdeps/sparc/sparc32/Makefile: Likewise.
12230         [BZ #13118]
12231         * posix/Makefile (bug-regex32-ENV): Define.
12232         Patch by John Stanley <jpsinthemix@verizon.net>.
12234         * misc/Makefile (headers): Add bits/select2.h.
12235         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
12236         * misc/bits/select2.h: New file.
12237         * include/bits/select2.h: New file.
12238         * debug/Makefile (routines): Add fdelt_chk.
12239         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
12240         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
12241         FD_ISSET.
12242         * debug/fdelt_chk.c: New file.
12244         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
12245         * wcsmbs/test-wmemcmp.c: Likewise.
12246         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
12247         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
12249 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12251         * string/Makefile (strop-tests): Add memcmp.
12252         * string/test-wmemcmp.c: New file.
12253         * string/test-memcmp.c: Add wmemcmp support.
12255 2011-09-08  Roland McGrath  <roland@hack.frob.com>
12257         [BZ #13153]
12258         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
12259         2011-07-19 change.
12261         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
12262         garbage value in a __mach_port_mod_refs call in the cases of the
12263         task-self and thread-self ports.
12265 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12267         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
12269 2011-09-08  Andreas Schwab  <schwab@redhat.com>
12271         * elf/dl-load.c (lose): Check for non-null L.
12273 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12275         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
12277         * elf/dl-libc.c (dlerror_run): Pass back error code from
12278         dl_catch_error.
12280         [BZ #13123]
12281         * elf/dl-load.c (lose): Free l_origin if it is valid.
12283         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
12284         names.
12285         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
12286         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12287         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12288         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12289         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
12290         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
12292 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12294         * sysdeps/powerpc/fpu/e_hypot.c: New file.
12295         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
12296         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
12297         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
12298         * sysdeps/powerpc/fpu/k_cosf.c: New file.
12299         * sysdeps/powerpc/fpu/k_sinf.c: New file.
12300         * sysdeps/powerpc/fpu/s_cosf.c: New file.
12301         * sysdeps/powerpc/fpu/s_sinf.c: New file.
12302         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
12303         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
12305 2011-08-15  Alan Modra  <amodra@gmail.com>
12307         [BZ #13092]
12308         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
12309         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
12310         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
12311         ppc_mcount to static-only-routines.
12312         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
12313         __mcount_internal.
12314         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
12315         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
12317 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
12319         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
12320         for finite and infinity parameters.
12322 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12324         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
12325         and add nop instructions for throughput optimization.
12326         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12328 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
12330         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
12331         aligned copy for power7 with vector-scalar instructions.
12332         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12334 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12336         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
12337         AVX check.
12339 2011-09-07  Andreas Schwab  <schwab@redhat.com>
12341         [BZ #13144]
12342         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
12343         last change.
12345 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12347         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12348         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
12349         syscall wrapper around clock_gettime in __vdso_clock_gettime.
12350         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
12351         clock_gettime.
12353 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12355         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
12356         Forgot to demangle the pointer.
12358         * sysdeps/i386/sysdep.h: Define atom_text_section.
12359         * sysdeps/x86_64/sysdep.h: Likewise.
12360         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
12361         section with atom_text_section.
12362         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12363         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12364         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
12365         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12366         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
12368         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
12369         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
12370         already be defined.  Change to take two parameters and don't assign
12371         result to variable.  Adjust all users.
12372         Define INTERNAL_GETTIME if not already defined.
12373         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
12374         call.
12375         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
12376         HAVE_CLOCK_GETTIME_VSYSCALL.
12377         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
12379         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
12380         gettimeofday vsyscall, just use time.
12382 2011-09-06  Andreas Schwab  <schwab@redhat.com>
12384         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
12385         <errno.h>.
12387 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12389         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
12390         syscall on x86-64.
12391         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
12392         syscall.
12393         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
12394         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
12395         syscall if possible.
12397 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12399         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
12400         e_ident.  Don't pass to find_mapsXX.
12401         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
12403 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12405         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12406         strchr-sse2-no-bsf strrchr-sse2-no-bsf
12407         * sysdeps/x86_64/multiarch/strchr.S: Update.
12408         Check bit_slow_BSF bit.
12409         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12410         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
12411         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
12413 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12415         [BZ #13134]
12416         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
12417         before glibc 2.15.
12418         (tryshell): Define.
12419         (__spawni): Change last parameter to be flag.  Test
12420         SPAWN_XFLAGS_USE_PATH flag to use path or not.
12421         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
12422         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
12423         * posix/spawni.c: Likewise.
12424         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
12425         * posix/spawnp.c: Likewise.  Change normal version to use
12426         SPAWN_XFLAGS_USE_PATH.
12427         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
12428         SPAWN_XFLAGS_TRY_SHELL.
12430         [BZ #13150]
12431         * posix/glob.h: Remove gcc 1.x support.
12433         [BZ #13068]
12434         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
12436 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12438         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12439         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
12440         strrchr-sse2-bsf
12441         * sysdeps/i386/i686/multiarch/strchr.S: New file.
12442         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
12443         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
12444         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
12445         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
12446         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
12448 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12450         * sysdeps/x86_64/wcscmp.S: New file.
12452         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
12453         wcscmp-c wcscmp-sse2
12454         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
12455         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
12456         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
12457         * wcsmbs/wcscmp.c: Allow renaming.
12459 2011-09-05  David S. Miller  <davem@davemloft.net>
12461         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
12462         stack slot, rather than the struct return pointer slot.
12463         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
12464         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
12465         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
12466         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
12468 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12470         * po/ja.po: Update from translation team.
12472         [BZ #13144]
12473         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
12474         kernel in 64-bit binaries.
12476 2011-09-01  David S. Miller  <davem@davemloft.net>
12478         * elf/elf.h (HWCAP_SPARC_*): Move to..
12479         * sysdeps/sparc/sysdep.h: this new file and add new values.
12480         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
12481         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
12482         _DL_HWCAP_COUNT to 24.
12483         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
12484         entries.
12485         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
12486         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
12487         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
12488         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
12489         instead of magic constants.
12490         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12492 2011-08-31  David S. Miller  <davem@davemloft.net>
12494         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
12495         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
12496         Reimplement to do errno handling inline.
12497         (SYSCALL_ERROR_HANDLER): New macro.
12498         (__SYSCALL_STRING): Do not do errno handling in asm.
12499         (__CLONE_SYSCALL_STRING): Delete.
12500         (__INTERNAL_SYSCALL_STRING): Delete.
12501         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12502         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
12503         (PSEUDO): Reimplement to do errno handling inline.
12504         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
12505         (SYSCALL_ERROR_HANDLER): New macro.
12506         (__SYSCALL_STRING): Do not do errno handling in asm.
12507         (__CLONE_SYSCALL_STRING): Delete.
12508         (__INTERNAL_SYSCALL_STRING): Delete.
12509         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
12510         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
12511         i386.
12512         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
12513         (inline_syscall*): Add 'err' argument.
12514         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
12515         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
12516         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
12517         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
12519         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
12520         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
12522 2011-08-30  Andreas Schwab  <schwab@redhat.com>
12524         * elf/rtld.c (dl_main): Relocate objects in dependency order.
12526 2011-08-29  Jiri Olsa <jolsa@redhat.com>
12528         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
12529         directive.
12531 2011-08-24  David S. Miller  <davem@davemloft.net>
12533         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
12535 2011-08-24  Andreas Schwab  <schwab@redhat.com>
12537         * elf/Makefile: Add rules to build and run unload8 test.
12538         * elf/unload8.c: New file.
12539         * elf/unload8mod1.c: New file.
12540         * elf/unload8mod1x.c: New file.
12541         * elf/unload8mod2.c: New file.
12542         * elf/unload8mod3.c: New file.
12544         * elf/dl-close.c (_dl_close_worker): Reset private search list if
12545         it wasn't used.
12547 2011-08-23  David S. Miller  <davem@davemloft.net>
12549         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
12550         subtract stack bias.
12551         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
12552         %sp not %fp in calculations.
12553         (_JMPBUF_UNWINDS_ADJ): Likewise.
12555         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
12556         (aio_suspend): Call it to force an exception region around the
12557         AIO_MISC_WAIT() invocation.
12559 2011-08-23  Andreas Schwab  <schwab@redhat.com>
12561         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
12562         backslash.
12564 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
12566         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
12567         protection macro.
12568         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
12569         and <dl-machine.h>.
12570         (Elf64_FuncDesc): Remove.
12572 2011-08-22  David S. Miller  <davem@davemloft.net>
12574         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
12575         sigaltstack check, add missing cfi directives.
12576         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
12577         missing cfi directives, and sigaltstack handling.
12579 2011-08-16  Andreas Schwab  <schwab@redhat.com>
12581         [BZ #11724]
12582         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
12583         object is seen twice.
12584         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12586         * elf/Makefile (distribute): Add tst-initorder2.c.
12587         (tests): Add tst-initorder2.
12588         (modules-names): Add tst-initorder2a tst-initorder2b
12589         tst-initorder2c tst-initorder2d.  Add rules to build them.
12590         ($(objpfx)tst-initorder2.out): New rule.
12591         * elf/tst-initorder2.c: New file.
12592         * elf/tst-initorder2.exp: New file.
12594 2011-08-22  Andreas Schwab  <schwab@redhat.com>
12596         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
12598         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
12599         dependencies back to end of function.
12601         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12602         $(elfobjdir)/ld.so.
12604 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
12606         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
12607         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
12608         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12609         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12610         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
12611         of __vdso_gettimeofday.
12612         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
12613         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
12614         attribute_hidden.
12615         (_libc_vdso_platform_setup): Remove initialization of
12616         __vdso_gettimeofday and __vdso_time.
12618 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12620         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
12621         and fgetc_unlocked.
12622         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
12623         getc_unlocked.
12625         * elf/dl-open.c (add_to_global): Report additions to the global scope
12626         for LD_DEBUG=scopes.
12627         (dl_open_worker): Also print scope of newly loaded dependencies.
12628         (_dl_show_scope): Indicate if there is no scope.
12630         [BZ #13114]
12631         * stdio-common/Makefile (tests): Add bug24.
12632         * stdio-common/bug24.c: New file.
12634 2011-08-19  Andreas Jaeger  <aj@suse.de>
12636         [BZ #13114]
12637         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
12638         non-existant file when using close-on-exec mode.
12640 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12642         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
12643         the very first instruction.
12645         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
12646         the CFI state in the end.
12647         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
12648         inclusion of dl-trampoline.h.
12649         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
12651 2011-08-19  Andreas Schwab  <schwab@redhat.com>
12653         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
12654         expectations for long double.
12656         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
12657         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
12659 2011-08-14  David S. Miller  <davem@davemloft.net>
12661         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
12662         artificual limit depends upon the system page size.
12664 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12666         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
12667         * resolv/Makefile: Define CFLAGS-libresolv.
12669 2011-08-17  Andreas Schwab  <schwab@redhat.com>
12671         * nss/makedb.c (compute_tables): Make variables used in nested
12672         function static.
12674 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12676         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
12677         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
12678         if buffer was too small.
12680         * elf/pldd.c (main): Attach to all threads in the process.
12681         Rewrite /proc handling to use *at functions.
12683 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
12685         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
12686         specifies first scope to show.
12687         (dl_open_worker): Update callers.  Move printing scope of new
12688         object to before the relocation.
12689         * elf/rtld.c (dl_main): Update _dl_show_scope call.
12690         * sysdeps/generic/ldsodefs.h: Update declaration.
12692         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
12693         string for the scope number.
12695 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
12697         * nscd/servicescache.c (cache_addserv): Make sure written is always
12698         initialized.
12700 2011-08-14  Roland McGrath  <roland@hack.frob.com>
12702         * sysdeps/i386/i486/bits/atomic.h
12703         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
12704         statement expression, so as to suppress "set but not used" warning.
12705         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
12707         * string/strncat.c (STRNCAT): Use prototype definition.
12709         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
12710         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
12711         -Iprograms here.
12712         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
12713         (localedef-modules): Add localedef.
12714         (locale-modules): Add locale.
12716         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
12717         * elf/rtld.c (dl_main): Invert order of assignment in last change,
12718         to avoid a warning.
12720 2011-08-14  David S. Miller  <davem@davemloft.net>
12722         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
12723         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
12725 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
12727         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
12728         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
12729         * elf/rtld.c (dl_main): Set l_name of vDSO.
12730         Call _dl_show_scope when DL_DEBUG_SCOPES.
12731         (process_dl_debug): Recognize scopes flag and also set it for all.
12732         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
12733         Declare _dl_show_scope.
12735         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
12736         (do_dlopen): Pass caller_dlopen to dl_open.
12737         (__libc_dlopen_mode): Initialize caller_dlopen.
12739         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
12740         of libc.  Make tolower call locale-independent.  Optimize a bit by
12741         using isdigit instead of isalnum.
12742         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
12744 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
12746         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
12747         was a dependency or dynamically loaded.
12749 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
12751         * intl/l10nflist.c: Allow architecture-specific pop function.
12752         * sysdeps/x86_64/l10nflist.c: New file.
12754         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
12755         classification.
12757 2011-08-10  Andreas Schwab  <schwab@redhat.com>
12759         * include/dirent.h: Add libc_hidden_proto for scandirat and
12760         scandirat64.  Don't declare __scandirat64.
12761         * dirent/scandirat.c: Add libc_hidden_def.
12762         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
12763         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
12765 2011-08-10  David S. Miller  <davem@davemloft.net>
12767         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
12768         enum.
12769         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12770         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12771         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12773 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
12775         * Versions.def [libc]: Add GLIBC_2.15.
12776         * dirent/Makefile (routines): Add scandirat and scandirat64.
12777         * dirent/Versions [libc]: Export scandirat and scandirat64 for
12778         GLIBC_2.15.
12779         * dirent/dirent.h: Declare scandirat and scandirat64.
12780         * dirent/scandirat.c: New file.
12781         * dirent/scandirat64.c: New file.
12782         * sysdeps/wordsize-64/scandirat.c: New file.
12783         * sysdeps/wordsize-64/scandirat64.c: New file.
12784         * dirent/opendir.c: Define opendirat.
12785         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
12786         using scandirat.
12787         * dirent/scandir64.c: Adjust for scandir.c change.
12788         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
12789         __scandirat64, and __scandir_cancel_handler.
12790         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
12791         additional parameter and use openat instead of open (outside of ld.so).
12792         Add new __opendir as wrapper around __opendirat.
12793         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
12794         here without requiring old scandirat implementation.
12796 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
12798         * dirent/scandir.c (cancel_handler): Renamed to
12799         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
12800         defined.  Adjust users.
12801         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
12802         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12804 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
12806         * string/test-string.h (IMPL): Use __STRING to expand name and then
12807         stringify it.
12809         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
12810         of cleanups.
12812 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12814         * string/Makefile: Update.
12815         (strop-tests): Append strncat.
12816         * string/test-wcscmp.c: New file.
12817         New comprehensive test for wcscmp.
12818         * string/test-strcmp.c: Update.
12819         (WIDE): New define.
12821 2011-07-22  Andreas Schwab  <schwab@redhat.com>
12823         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
12824         line.
12826 2011-07-26  Andreas Schwab  <schwab@redhat.com>
12828         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
12829         encoding to ACE if AI_IDN.
12831 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
12833         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
12834         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
12836 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12838         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
12839         Fix overflow bug in strncat.
12840         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
12842         * string/test-strncat.c: Update.
12843         Add new tests for checking overflow bugs.
12845 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12847         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12848         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
12849         * sysdeps/i386/i686/multiarch/strcat.S: New file.
12850         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
12851         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
12852         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
12853         * sysdeps/i386/i686/multiarch/strncat.S: New file.
12854         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
12855         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
12857         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
12858         (USE_AS_STRCAT): Define.
12859         Add strcat and strncat support.
12860         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12862 2011-07-25  Andreas Schwab  <schwab@redhat.com>
12864         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
12865         __n bigger than INT_MAX+1.
12866         (__strncmp_g): Likewise.
12868 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
12870         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
12871         * libio/stido.h: Likewise.
12873         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
12874         (AF_NFC): Define.
12875         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
12876         (AF_NFC): Define.
12878         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
12879         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12880         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12881         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12882         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12884         [BZ #13021]
12885         * scripts/test-installation.pl: Don't expect libnss_test1 to be
12886         installed.
12888         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
12889         typo.
12890         (_dl_x86_64_save_sse): Likewise.
12892 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
12894         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
12895         OSXSAVE.
12896         (_dl_x86_64_save_sse): Likewise.
12898         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
12900         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
12902 2011-07-21  Andreas Schwab  <schwab@redhat.com>
12904         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
12905         change.
12906         (_dl_x86_64_save_sse): Use correct AVX check.
12908 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12910         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
12911         bug in strncpy/strncat.
12912         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
12914 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
12916         * string/tester.c (test_strcat): Add tests for different alignments
12917         of source and destination.
12918         (test_strncat): Likewise.
12920 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12922         [BZ #12852]
12923         * posix/glob.c (glob): Check passed in values before using them in
12924         expressions to avoid some overflows.
12925         (glob_in_dir): Likewise.
12927         [BZ #13007]
12928         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
12929         check for AVX enablement so that we don't crash with old kernels and
12930         new hardware.
12931         * elf/tst-audit4.c: Add same checks here.
12932         * elf/tst-audit6.c: Likewise.
12934         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
12936 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
12938         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
12940 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12942         * po/cs.po: Update from translation team.
12943         * po/bg.po: Likewise.
12945 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
12947         * misc/sys/cdefs.h: Add support for const attribute.
12948         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
12949         to gnu_dev_{major,minor,makedev} functions.
12951 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
12953         * intl/dcigettext.c (get_output_charset): Add missing bracket.
12955 2011-07-20  Andreas Schwab  <schwab@redhat.com>
12957         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
12958         strlen results.
12960 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12962         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
12963         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
12964         register in order to avoid conflicts with the soft frame pointer
12965         being held in r11 when necessary.
12966         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
12967         (INTERNAL_VSYSCALL_NCS): Likewise.
12969 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
12971         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
12972         * elf/dl-fini.c (_dl_fini): Adjust caller.
12973         * elf/dl-close.c (_dl_close_worker): Likewise.
12974         * sysdeps/generic/ldsodefs.h: Adjust declaration.
12976 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
12978         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
12979         "aux_cache->nlibs < 0".
12981         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
12982         in the reload-count case.
12984 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12986         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12987         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
12988         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
12989         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
12990         * sysdeps/x86_64/multiarch/strcat.S: New file.
12991         * sysdeps/x86_64/multiarch/strncat.S: New file.
12992         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
12993         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
12994         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
12995         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
12996         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
12997         (USE_AS_STRCAT): Define.
12998         Add strcat and strncat support.
12999         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
13000         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
13001         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
13002         * string/strncat.c: Update.
13003         (USE_AS_STRNCAT): Define.
13004         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13005         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
13006         and i7.
13007         * sysdeps/x86_64/multiarch/init-arch.h
13008         (bit_Prefer_PMINUB_for_stringop): New.
13009         (index_Prefer_PMINUB_for_stringop): Likewise.
13010         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
13011         bit_Prefer_PMINUB_for_stringop.
13013 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13015         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
13016         buffer64.
13017         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
13018         of casting of buffer.
13019         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
13020         buffer32 and buffer64.
13021         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
13022         writes instead of casting of buffer.
13023         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
13024         buffer32.
13025         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
13026         casting of buffer.
13028 2011-07-19  Andreas Schwab  <schwab@redhat.com>
13030         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
13032 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
13034         * nscd/nscd.c (termination_handler): Don't do anything for a database
13035         if it has not yet been initialized.
13037 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13039         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13041 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13043         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13045 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13047         * po/nl.po: Update from translation team.
13048         * po/sv.po: Likewise.
13050 2011-07-16  Roland McGrath  <roland@hack.frob.com>
13052         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
13053         now disallowed by GCC.
13055         * configure.in (use-default-link): Default to yes if a test -shared
13056         link meets our qualifications.
13057         * configure: Regenerated.
13059         * config.make.in (output-format): New variable.
13060         * configure.in: Check for ld --print-output-format support.
13061         * configure: Regenerated.
13062         * Makerules ($(common-objpfx)format.lds)
13063         [$(output-format) != unknown]: Just use $(output-format),
13064         instead of the linker-script munging.
13066 2011-07-14  Roland McGrath  <roland@hack.frob.com>
13068         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
13069         of $(common-objpfx)shlib.lds.
13070         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
13072         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
13073         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
13075         * configure.in (-z relro check): Adjust test code to add a large
13076         writable data section after it.
13077         * configure: Regenerated.
13079 2011-07-11  Roland McGrath  <roland@hack.frob.com>
13081         * configure.in (-z relro check): Fix test code to make the variable
13082         truly const.
13083         * configure: Regenerated.
13085 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
13087         * nscd/nscd.h (struct traced_file): Define.
13088         (struct database_dyn): Remove inotify_descr, reset_res, and filename
13089         elements.  Add traced_files.
13090         (inotify_fd): Declare.
13091         (register_traced_file): Declare.
13092         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
13093         (inotify_fd): Export.
13094         (resolv_conf_descr): Remove.
13095         (nscd_init): Move inotify descriptor creation to main.
13096         Don't register files for notification here.
13097         (register_traced_file): New function.
13098         (invalidate_cache): Don't use reset_res to determine whether to call
13099         res_init, go through the list of registered files.
13100         (main_loop_poll): The inotify descriptors are now stored in the
13101         structures for the traced files.
13102         (main_loop_epoll): Likewise
13103         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
13104         to __nss_disable_nscd.
13105         * nscd/cache.c (prune_cache): There is no single inotify descriptor
13106         for a database anymore.  Check the records for all the registered
13107         files instead.
13108         * nss/Makefile (libnss_files-routines): Add files-init.
13109         (libnss_db-routines): Add db-init.
13110         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
13111         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
13112         * nss/nss_db/db-init.c: New file.
13113         * nss/nss_files/files-init.c: New file.
13114         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
13115         __nss_lookup_function.
13116         (__nss_lookup_function): Call nss_load_library.
13117         (nss_load_all_libraries): New function.
13118         (__nss_disable_nscd): Take parameter with callback function for files
13119         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
13120         used for the cached services.
13121         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
13122         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
13123         options for features to all the files in nscd.
13125         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
13127 2011-07-10  Roland McGrath  <roland@hack.frob.com>
13129         * csu/elf-init.c (__libc_csu_init): Comment typo.
13131 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
13133         * po/pl.po: Update from translation team.
13134         * po/ja.po: Likewise.
13135         * po/ru.po: Likewise.
13136         * po/ko.po: Likewise.
13137         * po/fr.po: Likewise.
13139 2011-07-09  Roland McGrath  <roland@hack.frob.com>
13141         * configure.in (.ctors/.dtors header and trailer check):
13142         Use an empirical test on a built program.
13143         * configure: Regenerated.
13145         * configure.in (-z relro check): Use an empirical test on a built DSO.
13146         Detect, but do not require, on ia64.
13147         * configure: Regenerated.
13149         * configure.in (READELF): Find it with AC_CHECK_TOOL.
13150         Update tests that use readelf to use $READELF instead.
13151         * configure: Regenerated.
13153 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
13155         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
13156         if the result is not used.
13158 2011-07-05  Andreas Jaeger  <aj@suse.de>
13160         [BZ#9696]
13161         * stdlib/tst-strtod.c: Add testcase.
13163 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13165         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
13166         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
13167         The latter has a higher limit.  Take additional parameter to pass to
13168         the new function.
13169         (__pathconf): Pass file to __statfs_link_max.
13170         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
13171         __statfs_link_max.
13172         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
13173         __statfs_link_max.
13175         [BZ #12868]
13176         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
13177         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13178         Handle Lustre.
13179         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
13180         (__statfs_filesize_max): Likewise.
13181         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
13183 2011-07-05  Andreas Jaeger  <aj@suse.de>
13185         * resolv/res_comp.c (dn_skipname): Remove unused variable.
13187 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
13189         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
13190         `status' variable.
13191         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
13192         Likewise.
13194 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
13196         * Makefile (strop-tests): Add strncat.
13197         * string/test-strncat.c: New file.
13199 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
13201         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
13203 2011-06-21  Andreas Jaeger  <aj@suse.de>
13205         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
13206         Copy rule from iconvdata/Makefile.
13208 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13210         [BZ #12922]
13211         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
13212         but no long options are defined, just return 'W'.
13214 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
13216         [BZ #9696]
13217         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
13219 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13221         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
13222         netgroups to read.
13223         (innetgr): Likewise.
13225 2011-07-05  Roland McGrath  <roland@hack.frob.com>
13227         * config.make.in (install_root): Default to $(DESTDIR).
13229 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
13231         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
13233 2011-07-02  Roland McGrath  <roland@hack.frob.com>
13235         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
13237         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
13238         containing directory rather than embedding absolute directory names.
13240         * scripts/check-local-headers.sh: Rewritten using awk.
13241         Match by word, not by line.  Print error messages for matches.
13242         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
13244         * Makerules [shlib-lds-flags empty]:
13245         ($(common-objpfx)libc_pic.opts): New target.
13246         ($(common-objpfx)libc_pic.os.clean): New target.
13247         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
13249         * config.make.in (OBJCOPY): New variable.
13250         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
13251         * configure: Regenerated.
13253         * config.make.in (use-default-link): New variable.
13254         * configure.in (use_default_link): Grok --with-default-link to set it.
13255         * configure: Regenerated.
13256         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
13257         (shlib-lds, shlib-lds-flags): Define to empty.
13259         * Makerules (shlib-lds): New variable.
13260         (shlib-lds-flags): New variable.
13261         (build-shlib, build-moduile, build-module-asneeded): Use it.
13262         ($(common-objpfx)libc.so): Use $(shlib-lds).
13263         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
13264         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
13266         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
13267         DT_FLAGS/DT_FLAGS_1 with zero flags.
13269         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
13270         linker script munging.
13272 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
13274         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
13275         as 128-bit value.
13276         * crypt/sha512.c (sha512_process_block): Perform total addition using
13277         128-bit if possible.
13278         (__sha512_finish_ctx): Likewise.
13279         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
13280         as 64-bit value.
13281         * crypt/sha256.c (SWAP64): Define.
13282         (sha256_process_block): Perform total addition using 64-bit if
13283         possible.
13284         (__sha256_finish_ctx): Likewise.
13286 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
13288         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
13289         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13290         * nscd/hstcache.c (cache_addhst): Likewise.
13291         * nscd/grpcache.c (cache_addgr): Likewise.
13292         * nscd/aicache.c (addhstaiX): Likewise
13293         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
13295 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
13297         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
13298         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13299         * nscd/hstcache.c (cache_addhst): Likewise.
13300         * nscd/grpcache.c (cache_addgr): Likewise.
13301         * nscd/aicache.c (addhstaiX): Likewise
13303 2011-07-01  Andreas Schwab  <schwab@redhat.com>
13305         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
13306         domain only when needed.
13308 2011-06-30  Andreas Schwab  <schwab@redhat.com>
13310         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
13311         is always restored.
13313 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
13315         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
13316         are re-adding the entry.
13317         * nscd/servicescache.c (cache_addserv): Likewise.
13319 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13321         * sysdeps/generic/dl-irel.h: fix protection against multiple
13322         inclusions.
13323         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
13325 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
13327         [BZ #12935]
13328         * malloc/memusage.sh: Fix quoting in message.
13329         * debug/xtrace.sh: Likewise.
13331         * configure.in: Remove support for --experimental-malloc option, make
13332         it the default.
13333         * config.make.in: Likewise.
13334         * malloc/Makefile: Likewise.
13336 2011-06-27  Andreas Schwab  <schwab@redhat.com>
13338         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
13339         two-byte characters.
13341 2011-06-27  Roland McGrath  <roland@hack.frob.com>
13343         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
13344         AC_CACHE_CHECK invocation.
13345         * configure: Regenerated.
13347         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
13349 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
13351         [BZ #12350]
13352         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
13353         bit from old_res_options.
13355         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
13357         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
13358         value type for setfct.
13360 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13362         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13363         __gettimeofday instead of gettimeofday.
13365 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
13367         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
13369 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13371         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
13373         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
13374         info.
13376 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13378         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13379         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13380         strcpy-sse2-unaligned strncpy-sse2-unaligned
13381         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
13382         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
13383         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
13384         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
13385         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
13386         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
13387         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
13388         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
13389         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
13390         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
13391         (STRCPY): Support SSE2 and SSSE3 versions.
13393 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
13395         [BZ #12874]
13396         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
13397         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
13398         kernels which artificially limit size of requests.
13400 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13402         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13403         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13404         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
13405         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
13406         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
13407         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
13408         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
13409         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
13410         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
13411         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
13412         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
13413         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
13414         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
13415         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
13416         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
13417         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13418         Enable unaligned load optimization for Intel Core i3, i5 and i7
13419         processors.
13420         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
13421         Define.
13422         (index_Fast_Unaligned_Load): Define.
13423         (HAS_FAST_UNALIGNED_LOAD): Define.
13425 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
13427         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
13429 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13431         [BZ #12907]
13432         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
13433         until it is clear that the information is realy needed.
13434         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
13436 2011-06-22  Andreas Schwab  <schwab@redhat.com>
13438         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
13440 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13442         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13443         /sys/devices/system/cpu/online if it is usable.
13445         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
13446         reading the information from the /proc filesystem to once a second.
13448 2011-06-21  Andreas Jaeger  <aj@suse.de>
13450         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
13451         NULL after inclusion of kernel headers.
13453 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
13455         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
13456         calls to internal_setent.
13458         [BZ #12885]
13459         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
13460         addresses using gethostbyname4_r ignore IPv4 addresses.
13462         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
13463         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
13465         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
13467 2011-06-20  David S. Miller  <davem@davemloft.net>
13469         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
13470         inclusions.
13471         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
13473         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
13474         (elf_irel): Use it.
13475         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
13476         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
13477         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
13478         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
13479         * sysdeps/x86_64/dl-irel.h: Likewise.
13481         * elf/dl-runtime.c: Use elf_ifunc_invoke.
13482         * elf/dl-sym.c: Likewise.
13484 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13486         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
13487         need to dereference resplen2.
13489 2011-06-14  Andreas Schwab  <schwab@redhat.com>
13491         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
13493 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13495         * Makeconfig: Define vardbdir and inst_vardbdir.
13496         * nss/Makefile: Add rules to install db-Makefile.
13498         * nss/nss_db/db-XXX.c: Cleanup.
13500         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
13501         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
13502         GLIBC_PRIVATE.
13503         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
13504         * nss/makedb.c: Implement -g option to specify that value strings
13505         are generated and should not be added to table iterated over for
13506         get*ent calls.
13507         * nss/nss_db/db-initgroups.c: New file.
13509         * nss/getent.c: Add support for initgroups lookups through getgrouplist
13510         interface.
13512         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
13513         (internal_getgrouplist): Adjust to name change.
13514         Update use_initgroups_entry if this is not the first call.
13515         * nss/databases.def: Add initgroups entry.
13517         * nss/makedb.c (compute_tables): Check result of multiple hash table
13518         sizes to minimize maximum chain length.
13520 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
13522         * Versions.def: Add entry for libnss_db.
13523         * shlib-versions: Likewise.
13524         * nss/Makefile: Add rules to build libnss_db.
13525         * nss/Versions: Add libnss_db information.  Organize libnss_files
13526         entries better.
13527         * nss/db-Makefile: Add gshadow support.  Change rules for the new
13528         makedb progra.  Some minor improvements to generate smaller files.
13529         * nss/nss_db/nss_db.h: Move NSS database header data structures to
13530         here from...
13531         * nss/makedb.c: ...here.
13532         Improve database format to be smaller and require less memory at
13533         runtime.
13534         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
13535         db anymore.
13536         * nss/nss_db/db-netgrp.c: Likewise.
13537         * nss/nss_db/db-open.c: Likewise.
13538         * nss/nss_files/flies-XXX.x: Adjust comments.
13539         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
13540         * nss/nss_files/files-grp.c: Likewise.
13541         * nss/nss_files/files-hosts.c: Likewise.
13542         * nss/nss_files/files-network.c: Likewise.
13543         * nss/nss_files/files-proto.c: Likewise.
13544         * nss/nss_files/files-pwd.c: Likewise.
13545         * nss/nss_files/files-rpc.c: Likewise.
13546         * nss/nss_files/files-service.c: Likewise.
13547         * nss/nss_files/files-sgrp.c: Likewise.
13548         * nss/nss_files/files-spwd.c: Likewise.
13549         * nss/nss_db/db-alias.c: Removed.
13550         * nss/nss_db/dummy-db.h: Removed.
13552 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
13554         * nss/makedb.c: Rewritten to not use database library.
13555         * nss/Makefile: Update to build new makedb program.
13557 2011-06-14  Andreas Jaeger  <aj@suse.de>
13559         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
13560         memset declaration.
13562 2011-06-10  Andreas Schwab  <schwab@redhat.com>
13564         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
13565         tmpbuf.
13567 2011-06-10  Roland McGrath  <roland@hack.frob.com>
13569         * Makerules (shlib.lds): Fail if the linker script comes out empty.
13570         * elf/Makefile ($(objpfx)ld.so): Likewise.
13572         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
13573         Don't list ld.so twice in dependencies.
13575         * posix/bug-regex31.c: Include <stdlib.h>.
13577         * nscd/hstcache.c (cache_addhst): Remove unused variable.
13579         * nis/nss_compat/compat-spwd.c
13580         (getspent_next_nss_netgr): Remove unused variable.
13581         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
13583         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
13584         nonmembers" output to use the right array.
13586         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
13588         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
13590         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
13591         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
13592         * catgets/gencat.c (read_input_file): Likewise.
13593         * locale/programs/locarchive.c (enlarge_archive): Likewise.
13595         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
13596         variable definition inside #if's controlling its use.
13598         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
13600         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
13602         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
13604         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
13605         unreachable code.
13607         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
13609         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
13610         * configure: Regenerated.
13612         * Makerules: Revert last change.
13613         * elf/Makefile: Likewise.
13615 2011-06-09  Roland McGrath  <roland@hack.frob.com>
13617         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
13618         * elf/Makefile ($(objpfx)librtld.os): Likewise.
13619         (reloc-link): Likewise.
13621 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
13623         * elf/Makefile: Add rules to build pldd.
13624         * elf/pldd.c: New file.
13625         * elf/pldd-xx.c: New file.
13627 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
13629         * version.h: Update for 2.15 development version.
13631 2011-06-07  David S. Miller  <davem@davemloft.net>
13633         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
13634         ifuncs.
13635         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
13636         elf_machine_lazy_rel): Likewise.
13637         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
13638         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
13639         elf_machine_lazy_rel): Likewise.
13640         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
13641         dl_hwcap via passed in argument.
13642         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
13643         Likewise.
13645 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13647         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
13649 2011-06-06  Roland McGrath  <roland@hack.frob.com>
13651         [BZ #12849]
13652         * manual/fdl-1.1.texi: New file, verbatim from:
13653         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
13654         * manual/lgpl-2.1.texi: New file, verbatim from:
13655         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
13656         * manual/Makefile (licenses): New variable, list those new file names.
13657         (texis): Use it.
13658         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
13660         * manual/fdl.texi: File removed.
13661         * manual/lesser.texi: File removed.
13662         * manual/libc.texinfo (Copying, Documentation License):
13663         Use new @include file names, put @appendix directive before @include.
13665 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13667         [BZ #12841]
13668         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
13669         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
13670         (mq_open): Add __NTH.
13672 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
13674         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13675         Assume Intel Core i3/i5/i7 processor if AVX is available.
13677 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13679         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
13680         typo.
13682 2011-05-31  Andreas Schwab  <schwab@redhat.com>
13684         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
13685         memory.  Use alloca_account.  Fix memory leak when retrying.
13687 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13689         * version.h (RELEASE): Bump for 2.14 release.
13690         * include/features.h (__GLIBC_MINOR__): Bump to 14.
13692         * config.make.in (RANLIB): Remove entry.
13694 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
13696         * po/Makefile (po-sed-cmd): Add ksh to extensions.
13697         (libc.pot): Work around missing support for .ksh extension in xgettext.
13699         [BZ #12684]
13700         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
13701         if both request failed.
13702         (send_dg): In case of server errors clear resplen or *resplen2.
13704         [BZ #12454]
13705         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
13706         when there are multiple maps.
13707         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
13708         (_dl_fini): Remove test here.
13710         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
13712 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
13714         [BZ #12350]
13715         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
13716         bit from old_res_options.
13717         (gaih_inet): Likewise.
13719         [BZ #11099]
13720         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
13721         as signed.
13723         * resolv/res_init.c (res_setoptions): Make the code more compact.
13725         [BZ #11558]
13726         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
13727         set RES_USEVC.
13729         [BZ #11634]
13730         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
13732         * malloc/malloc.h: Mark malloc hook variables as deprecated.
13734         [BZ #11781]
13735         * malloc/malloc.h: Declare malloc hook variables as volatile.
13737         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
13738         in last patch.
13740         [BZ #11799]
13741         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
13742         raise in the comment.
13743         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13744         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13745         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
13747 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
13749         [BZ #12811]
13750         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
13751         grow the buffers more if it already has to be sufficient.
13752         (build_wcs_upper_buffer): Likewise.
13753         * posix/regexec.c (check_matching): Likewise.
13754         (clean_state_log_if_needed): Likewise.
13755         (extend_buffers): Don't enlarge buffers beyond size of the input
13756         buffer.
13757         Patches mostly by Emil Wojak <emil@wojak.eu>.
13758         * posix/bug-regex32.c: New file.
13759         * posix/Makefile (tests): Add bug-regex32.
13761         * locale/findlocale.c (_nl_find_locale): Return right away if
13762         _nl_explode_name failed.
13763         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13765         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
13767         * debug/xtrace.sh: Unify messages.
13768         * malloc/memusage.sh: Likewise.
13770         [BZ #12813]
13771         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
13772         time symbol from vDSO.  Substitute with vsyscall if not available.
13773         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
13774         __vdso_time.
13776         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
13777         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
13778         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
13779         Add sendmmsg and internal_sendmmsg.
13780         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
13781         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
13782         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
13784         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
13785         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
13786         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
13788 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
13790         [BZ #12813]
13791         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
13792         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
13793         available.
13794         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
13795         __vdso_getcpu.
13797         [BZ #12814]
13798         * iconvdata/Makefile (tests): Add bug-iconv9.
13799         * iconvdata/bug-iconv9.c: New file.
13801 2011-05-27  Andreas Schwab  <schwab@redhat.com>
13803         [BZ #12814]
13804         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
13806 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13808         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13809         (struct user_regs_struct): Change intcs field back to cs.
13811 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
13813         * po/ja.po: Update from translation team.
13815 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
13817         [BZ #12795]
13818         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
13819         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
13821 2011-05-20  Andreas Schwab  <schwab@redhat.com>
13823         * stdlib/longlong.h: Update from GCC.
13825 2011-05-23  Andreas Schwab  <schwab@redhat.com>
13827         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
13828         parameter name.
13829         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
13830         Add parameter name.
13831         (__sysconf): Pass it down.
13833 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
13835         [BZ #12671]
13836         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
13837         some situations.
13838         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
13839         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
13840         add in in __libc_use_alloca calls.  Adjust callers.
13841         (glob): Use malloc in some situations.
13843         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
13844         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
13845         pltexit.
13847 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
13849         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
13850         and CLOCK_BOOTTIME_ALARM.
13852         [BZ #12782]
13853         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
13854         is returned.
13856         * string/_strerror.c (__strerror_r): Print negative errors as signed
13857         numbers.
13859         [BZ #12777]
13860         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
13861         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
13862         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
13864         * configure.in: Fix typo in redirection and correct removal of test
13865         files in two cases.
13867         [BZ #12788]
13868         * locale/setlocale.c (new_composite_name): Fix test to check for
13869         identical name of all categories.
13871         [BZ #12792]
13872         * libio/filedoalloc.c (local_isatty): New function.
13873         (_IO_file_doallocate): Use local_isatty.
13874         * stdio-common/perror.c (perror): In case a new stream is used
13875         forward the stream error.
13876         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
13877         error flag.
13879 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
13881         [BZ #11869]
13882         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
13883         alloca.
13884         * include/alloca.h (extend_alloca_account): Define.
13886         [BZ #11857]
13887         * posix/regex.h: Fix comments with documentation of user-accessible
13888         fields after compilation and describe correct free'ing of pattern
13889         after re_compile_pattern.
13890         Patch by Reuben Thomas <rrt@sc3d.org>.
13892 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
13894         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
13895         and -mno-altivec to prevent the compiler from using Altivec and/or
13896         VSX instructions when the corresponding registers are not available.
13898 2011-05-19  Andreas Schwab  <schwab@redhat.com>
13900         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
13902 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
13904         * libio/freopen.c (freopen): Use __dup2, not dup2.
13905         * libio/freopen64.c (freopen64): Likewise.
13907 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13909         [BZ #12775]
13910         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
13911         * math/Makefile (tests): Add test-powl.
13912         (CFLAGS-test-powl.c): Define.
13913         * math/test-powl.c: New file.
13915 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13917         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
13919 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
13921         [BZ #11837]
13922         * iconvdata/gb18030.c: Update to GB18020-2005.
13924 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
13926         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
13927         RE_SYNTAX_POSIX_AWK): Update to match recent development.
13928         Patch by Aharon Robbins <arnold@skeeve.com>.
13930         [BZ #11892]
13931         * stdlib/putenv.c (putenv): Don't always create copy of the variable
13932         on the stack.
13934         [BZ #11895]
13935         * misc/pselect.c (__pselect): Handle timeout value errors hidden
13936         through underflows.
13938         [BZ #12766]
13939         * misc/error.c (error_at_line): Ensure file_name and old_file_name
13940         point to strings before performing equality test for error_one_per_line
13941         mode.
13943         [BZ #11697]
13944         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
13946         [BZ #11820]
13947         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13948         (struct user_fpregs_struct): Avoid __uint*_t types.
13950         [BZ #6420]
13951         * malloc/mtrace.c (tr_where): Add additional parameter to point to
13952         symbol info.  Use it instead of calling _dl_addr locally.
13953         (lock_and_info): New function.
13954         (tr_freehook): Call lock_and_info and pass symbol info as additional
13955         parameter to tr_where.
13956         (tr_mallochook): Likewise.
13957         (tr_reallochook): Likewise.
13958         (tr_memalignhook): Likewise.
13960         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
13961         used and couldn't be at all thread-safe.
13963 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
13965         * libio/freopen.c (freopen): Don't close old file descriptor
13966         before the new one is opened.  Instead dup the new file descriptor
13967         to the old one after the new stream is created.
13968         * libio/freopen64.c (freopen64): Likewise.
13969         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
13970         * libio/fileops.c (_IO_new_file_close_it): Handle new
13971         _IO_FLAGS2_NOCLOSE flag.
13972         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
13973         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
13974         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
13975         _IO_FLAGS2_NOCLOSE flag.
13976         * include/unistd.h: Add hidden_proto for dup3.
13977         Define __have_dup3.
13978         * io/dup3.c: Define hidden symbol.
13979         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
13981         [BZ #7101]
13982         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
13983         when an incomplete long option is used.
13984         * posix/tst-getopt_long1.c: New file.
13985         * posix/Makefile (tests): Add tst-getopt_long1.
13987         [BZ #10138]
13988         * scripts/config.guess: Update from autoconf-2.68.
13989         * scripts/config.sub: Likewise.
13991         [BZ #10157]
13992         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
13993         tests into ...
13994         (has_cpuclock): ...this.  New function.
13995         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
13996         macro here based on has_cpuclock code.
13998         [BZ #10149]
13999         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14000         First byte (not low byte) is now always NUL.
14001         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
14003         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
14004         Use non-cancelable interfaces.
14006         [BZ #9809]
14007         * locale/iso-639.def: Add entry for Sorani.
14009         [BZ #11901]
14010         * include/stdlib.h: Move include protection to the right place.
14011         Define abort_msg_s.  Declare __abort_msg with it.
14012         * stdlib/abort.c (__abort_msg): Adjust type.
14013         * assert/assert.c (__assert_fail_base): New function.  Majority
14014         of code from __assert_fail.  Allocate memory for __abort_msg with
14015         mmap.
14016         (__assert_fail): Now call __assert_fail_base.
14017         * assert/assert-perr.c: Remove bulk of implementation.  Use
14018         __assert_fail_base.
14019         * include/assert.hL Declare __assert_fail_base.
14020         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
14021         mmap.
14022         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
14024 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
14026         [BZ #11952]
14027         [BZ #12453]
14028         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
14029         until all modules are registered in the DTV.
14030         * elf/Makefile: Add rules to build and run tst-tls19.
14031         * elf/tst-tls19.c: New file.
14032         * elf/tst-tls19mod1.c: New file.
14033         * elf/tst-tls19mod2.c: New file.
14034         * elf/tst-tls19mod3.c: New file.
14035         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
14037         [BZ #12083]
14038         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
14039         correctly.
14041         [BZ #12601]
14042         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
14043         two-byte sequence errors.
14044         * iconvdata/Makefile (tests): Add bug-iconv8.
14045         * iconvdata/bug-iconv8.c: New file.
14047         [BZ #12626]
14048         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
14049         buf2 definition.
14051         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
14053         [BZ #12432]
14054         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
14055         (dummy_getcfa): New function.
14056         (init): Get _Unwind_GetCFA address, use dummy if not found.
14057         (backtrace_helper): In recursion check, also check whether CFA changes.
14058         (__backtrace): Completely initialize arg.
14060         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
14061         storing incomplete byte sequence in state object.  Avoid testing for
14062         guaranteed too small input if we know there is enough data available.
14064 2011-05-11  Andreas Schwab  <schwab@redhat.com>
14066         * Makeconfig (+link-pie): Indent.
14067         * Rules (binaries-pie): Define if $(have-fpie) and
14068         $(build-shared).
14069         (binaries-shared): Also filter out $(binaries-pie).
14070         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
14071         * nscd/Makefile (others-pie): Add nscd.
14072         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
14073         ($(objpfx)nscd): Remove command override.
14074         * login/Makefile (others-pie): Add pt_chown.
14075         ($(objpfx)pt_chown): Remove command override.
14076         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
14077         remove command overrides.
14079 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
14081         * libio/tst_putwc.c: Fix error messages.
14083         [BZ #12724]
14084         * libio/fileops.c (_IO_new_file_close_it): Always flush when
14085         currently writing and seek to current position when not.
14086         * libio/Makefile (tests): Add bug-fclose1.
14087         * libio/bug-fclose1.c: New file.
14089 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
14091         [BZ #12511]
14092         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
14093         don't set DF_1_NODELETE here.
14094         (do_lookup_x): When entering new entry test for copy relocation
14095         and if necessary set DF_1_NODELETE flag.
14096         * elf/tst-unique4.cc: New file.
14097         * elf/tst-unique4.h: New file.
14098         * elf/tst-unique4lib.cc: New file.
14099         * elf/Makefile: Add rules to build and run tst-unique4.
14100         Patch by Piotr Bury <pbury@goahead.com>.
14102 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14104         [BZ #12052]
14105         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
14107         [BZ #12625]
14108         * misc/mntent_r.c (addmntent): Flush the stream after the output
14110         [BZ #12393]
14111         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
14112         (is_trusted_path_normalize): Skip initial colon.  Append slash
14113         to empty buffer.  Duplicate is_trusted_path code but allow
14114         constructed patch to be prefix.
14115         (is_dst): Allow $ORIGIN followed by /.
14116         (_dl_dst_substitute): Correct clearing of check_for_trusted.
14117         Correct testing of result of is_trusted_path_normalize
14118         (decompose_rpath): Fix warning.
14120 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
14122         [BZ #11257]
14123         * grp/initgroups.c (internal_getgrouplist): When we found the service
14124         list through the initgroups entry in nsswitch.conf do not always
14125         continue on a successful lookup.  Don't always use the
14126         __nss_group_database value if it is set.
14127         * nss/nsswitch.conf (initgroups): Change action for successful db
14128         lookup to continue for compatibility.
14130 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
14132         [BZ #11532]
14133         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
14134         and CP774 modules.
14135         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
14136         and CP774 modules.
14137         * iconvdata/tst-tables.sh: Likewise.
14138         * iconvdata/cp770.c: New file.
14139         * iconvdata/cp771.c: New file.
14140         * iconvdata/cp772.c: New file.
14141         * iconvdata/cp773.c: New file.
14142         * iconvdata/cp774.c: New file.
14143         * iconvdata/testdata/CP770: New file.
14144         * iconvdata/testdata/CP770..UTF8: New file.
14145         * iconvdata/testdata/CP771: New file.
14146         * iconvdata/testdata/CP771..UTF8: New file.
14147         * iconvdata/testdata/CP772: New file.
14148         * iconvdata/testdata/CP772..UTF8: New file.
14149         * iconvdata/testdata/CP773: New file.
14150         * iconvdata/testdata/CP773..UTF8: New file.
14151         * iconvdata/testdata/CP774: New file.
14152         * iconvdata/testdata/CP774..UTF8: New file.
14154         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
14155         END CHARMAP line.
14156         * iconvdata/gen-8bit-gap.sh: Likewise.
14157         * iconvdata/gen-8bit.sh: Likewise.
14159         * locale/iso-639.def: Add ary entry.
14161         [BZ #11258]
14162         * locale/C-translit.h.in: Add U20A1 transliteration.
14164         [BZ #12178]
14165         * locale/iso-639.def: Add wae entry.
14166         Patch by Kevin Bortis <bortis@translate-wae.ch>.
14168         [BZ #12545]
14169         * locale/programs/localedef.c (construct_output_path): Use ssize_t
14170         for n.
14172         [BZ #12711]
14173         * locale/C-translit.h.in: Add entry for U20B9.
14174         Patch by pravin.d.s@gmail.com.
14176 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
14178         [BZ #12713]
14179         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
14180         ENAMETOOLONG use generic getcwd.
14181         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
14182         in rtld.  Use *stat64.
14183         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
14184         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
14185         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
14186         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
14187         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
14188         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
14189         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
14190         __fstatat64 macros.
14191         * include/dirent.h: Add libc_hidden_proto for rewinddir.
14192         * dirent/rewinddir.c: Add libc_hidden_def.
14193         * sysdeps/mach/hurd/rewinddir.c: Likewise.
14194         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
14196         * include/dirent.h (__alloc_dir): Add flags parameter.
14197         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
14198         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
14199         __alloc_dir.
14200         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
14201         from fdopendir if O_CLOEXEC is already set.
14203 2011-03-15  Alan Modra  <amodra@gmail.com>
14205         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
14206         l_tls_firstbyte_offset non-zero.  Save padding offset in
14207         l_tls_firstbyte_offset for later use.
14208         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
14209         freeing static tls block.
14211 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
14213         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
14214         where #ifdef was intended.  The intent is to prevent ARG_MAX from
14215         being defined by the kernel headers.
14217 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
14219         [BZ #12734]
14220         * resolv/resolv.h: Define RES_NOTLDQUERY.
14221         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
14222         no-tld-query and set RES_NOTLDQUERY.
14223         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
14224         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
14225         modern BIND to search name as TLD unless forbidden.
14227 2011-05-07  Petr Baudis  <pasky@suse.cz>
14228             Ulrich Drepper  <drepper@gmail.com>
14230         [BZ #12393]
14231         * elf/dl-load.c (fillin_rpath): Move trusted path check...
14232         (is_trusted_path): ...to here.
14233         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
14234         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
14235         using is_trusted_path_normalize() in setuid scripts.
14237 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14239         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
14240         __BEGIN/__END_DECLS.
14242 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
14244         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
14245         NSS_STATUS_NOTFOUND if no record was found.
14247 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14249         * sunrpc/Makefile (headers): Add rpc/netdb.h.
14250         (headers-not-in-tirpc): Remove rpc/netdb.h
14251         * resolv/netdb.h: Revert last change.
14253 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14255         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
14256         circular dependency between libgcc.a and libc.a.
14258 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14260         * resolv/netdb.h: Don't include <rpc/netdb.h>.
14261         * nis/Makefile: Don't install rpcsvc/*.
14262         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
14263         instead of <rpc/types.h>.
14264         (MAXHOSTNAMELEN): Define.
14266 2011-05-03  Andreas Schwab  <schwab@redhat.com>
14268         * elf/ldconfig.c (add_dir): Don't crash on empty path.
14270 2011-04-28  Maciej Babinski  <mbabinski@google.com>
14272         [BZ #12714]
14273         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
14274         gethostbyname4_r when IPv6 results are possible.
14276 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
14278         [BZ #12723]
14279         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
14280         _PC_PIPE_BUF handling.
14282 2011-04-30  Bruno Haible  <bruno@clisp.org>
14284         [BZ #12717]
14285         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
14286         * resolv/netdb.h (getnameinfo): Change type of flags parameter
14287         to 'int'.
14288         * inet/getnameinfo.c (getnameinfo): Likewise.
14290 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
14292         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
14293         to groups setting in database lookup.
14294         * nss/nsswitch.conf: Add initgroups entry.
14296 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
14298         [BZ #12685]
14299         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
14300         mode string.
14301         Patch by Eric Blake <eblake@redhat.com>.
14303 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14305         * sunrpc/Makefile (need-export-routines): Add svc_run.
14306         (routines): Remove svc_run.
14307         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
14308         * sunrpc/clnt_perr.c (clnt_perrno): Export.
14309         * sunrpc/svc_run.c (svc_run): Likewise.
14310         * sunrpc/svc_udp.c (svcudp_create): Likewise.
14312 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
14314         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
14315         problem in reallocation in last patch.
14317 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
14319         * sunrpc/Makefile: Move inclusion of Rules.
14321 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14323         * nss/nss_files/files-initgroups.c: New file.
14324         * nss/Makefile (libnss_files-routines): Add files-initgroups.
14325         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
14326         _nss_files_initgroups_dyn.
14328 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
14330         * elf/elf.h (R_ARM_IRELATIVE): Define.
14332 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14334         * po/ru.po: Update from translation team.
14336 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14338         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
14339         dependencies.
14341 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
14343         [BZ #12653]
14344         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
14345         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
14346         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14347         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14348         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14350 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
14352         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
14353         differing bytes.
14354         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14355         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14356         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14358 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14360         [BZ #12420]
14361         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
14362         storing it.
14363         * stdlib/bug-getcontext.c: New file.
14364         * stdlib/Makefile: Add rules to build and run bug-getcontext.
14366 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14368         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
14369         instructions into .machine "z9-109".
14370         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14371         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14373 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14375         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
14376         between environment variables and auxiliary vector.
14378 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
14380         * Makefile: Add rules to build linkobj/libc.so.
14381         * include/libc-symbols.h: Define libc_hidden_nolink.
14382         * include/rpc/auth.h: Mark functions which are to be hidden.
14383         * include/rpc/auth_des.h: Likewise.
14384         * include/rpc/auth_unix.h: Likewise.
14385         * include/rpc/clnt.h: Likewise.
14386         * include/rpc/des_crypt.h: Likewise.
14387         * include/rpc/key_prot.h: Likewise.
14388         * include/rpc/pmap_clnt.h: Likewise.
14389         * include/rpc/pmap_prot.h: Likewise.
14390         * include/rpc/pmap_rmt.h: Likewise.
14391         * include/rpc/rpc_msg.h: Likewise.
14392         * include/rpc/svc.h: Likewise.
14393         * include/rpc/svc_auth.h: Likewise.
14394         * include/rpc/xdr.h: Likewise.
14395         * nis/Makefile: Link all DSOs against linkobj/libc.so.
14396         * nss/Makefile: Likewise.
14397         * sunrpc/Makefile: Don't install headers.  Build library with normal
14398         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
14399         * sunrpc/auth_des.c: Hide exported symbols by default, export some
14400         for the compat linking library.  Remove use of INTDEF/INTUSE.
14401         * sunrpc/auth_none.c: Likewise.
14402         * sunrpc/auth_unix.c: Likewise.
14403         * sunrpc/authdes_prot.c: Likewise.
14404         * sunrpc/authuxprot.c: Likewise.
14405         * sunrpc/clnt_gen.c: Likewise.
14406         * sunrpc/clnt_perr.c: Likewise.
14407         * sunrpc/clnt_raw.c: Likewise.
14408         * sunrpc/clnt_simp.c: Likewise.
14409         * sunrpc/clnt_tcp.c: Likewise.
14410         * sunrpc/clnt_udp.c: Likewise.
14411         * sunrpc/clnt_unix.c: Likewise.
14412         * sunrpc/des_crypt.c: Likewise.
14413         * sunrpc/des_soft.c: Likewise.
14414         * sunrpc/get_myaddr.c: Likewise.
14415         * sunrpc/key_call.c: Likewise.
14416         * sunrpc/key_prot.c: Likewise.
14417         * sunrpc/netname.c: Likewise.
14418         * sunrpc/pm_getmaps.c: Likewise.
14419         * sunrpc/pm_getport.c: Likewise.
14420         * sunrpc/pmap_clnt.c: Likewise.
14421         * sunrpc/pmap_prot.c: Likewise.
14422         * sunrpc/pmap_prot2.c: Likewise.
14423         * sunrpc/pmap_rmt.c: Likewise.
14424         * sunrpc/publickey.c: Likewise.
14425         * sunrpc/rpc_cmsg.c: Likewise.
14426         * sunrpc/rpc_common.c: Likewise.
14427         * sunrpc/rpc_dtable.c: Likewise.
14428         * sunrpc/rpc_prot.c: Likewise.
14429         * sunrpc/rpc_thread.c: Likewise.
14430         * sunrpc/rtime.c: Likewise.
14431         * sunrpc/svc.c: Likewise.
14432         * sunrpc/svc_auth.c: Likewise.
14433         * sunrpc/svc_authux.c: Likewise.
14434         * sunrpc/svc_raw.c: Likewise.
14435         * sunrpc/svc_run.c: Likewise.
14436         * sunrpc/svc_simple.c: Likewise.
14437         * sunrpc/svc_tcp.c: Likewise.
14438         * sunrpc/svc_udp.c: Likewise.
14439         * sunrpc/svc_unix.c: Likewise.
14440         * sunrpc/svcauth_des.c: Likewise.
14441         * sunrpc/xcrypt.c: Likewise.
14442         * sunrpc/xdr.c: Likewise.
14443         * sunrpc/xdr_array.c: Likewise.
14444         * sunrpc/xdr_float.c: Likewise.
14445         * sunrpc/xdr_intXX_t.c: Likewise.
14446         * sunrpc/xdr_mem.c: Likewise.
14447         * sunrpc/xdr_rec.c: Likewise.
14448         * sunrpc/xdr_ref.c: Likewise.
14449         * sunrpc/xdr_sizeof.c: Likewise.
14450         * sunrpc/xdr_stdio.c: Likewise.
14452 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
14454         [BZ #12650]
14455         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
14456         * sysdeps/ia64/dl-tls.h: Likewise.
14457         * sysdeps/powerpc/dl-tls.h: Likewise.
14458         * sysdeps/s390/dl-tls.h: Likewise.
14459         * sysdeps/sh/dl-tls.h: Likewise.
14460         * sysdeps/sparc/dl-tls.h: Likewise.
14461         * sysdeps/x86_64/dl-tls.h: Likewise.
14462         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
14464 2011-03-14  Andreas Schwab  <schwab@redhat.com>
14466         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
14467         rpath element also skip the following colon.
14468         (expand_dynamic_string_token): Add is_path parameter and pass
14469         down to DL_DST_REQUIRED and _dl_dst_substitute.
14470         (decompose_rpath): Call expand_dynamic_string_token with
14471         non-zero is_path.  Ignore empty rpaths.
14472         (_dl_map_object_from_fd): Call expand_dynamic_string_token
14473         with zero is_path.
14475 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
14477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14478         Make cancelable.
14480 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
14482         [BZ #12655]
14483         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
14484         Patch by Filipe David Manana <fdmanana@apache.org>.
14486 2011-04-07  Andreas Schwab  <schwab@redhat.com>
14488         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
14489         Maintain aligned stack.
14490         (CHECK_RSP): Remove unused macro.
14492 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
14494         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
14495         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
14497 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
14499         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
14501         * include/features.h: Mention __USE_XOPEN2K8 in comment.
14503 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
14505         [BZ #12518]
14506         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
14507         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
14508         * sysdeps/x86_64/memmove.c: New file.
14509         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
14510         (memcpy): Renamed to ...
14511         (__new_memcpy): This.
14512         (memcpy): Provide GLIBC_2_14 memcpy.
14513         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
14514         (memcpy): Provide GLIBC_2_2_5 memcpy.
14516 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14518         [BZ #12631]
14519         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
14521 2011-03-30  Andreas Schwab  <schwab@redhat.com>
14523         * misc/syncfs.c: New file.
14524         * misc/Makefile (routines): Add syncfs.
14525         * posix/unistd.h: Declare syncfs.
14526         * sysdeps/unix/syscalls.list: Add syncfs.
14528 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14530         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
14531         open_by_handle_at.
14532         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14533         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14534         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14535         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14536         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14537         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
14538         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14540 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14542         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
14543         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14544         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14545         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14546         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14547         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14548         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14550         * io/Makefile: Compile fallocate.c, fallocate64.c, and
14551         sync_file_range.c with -fexceptions.
14552         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
14553         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
14554         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
14555         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
14556         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
14557         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
14558         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
14559         sync_file_range as cancellation point
14560         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
14561         now a wrapper around __call_sync_file_range with cancellation handling.
14562         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
14563         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
14564         function name to __call_sync_file_range.
14565         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
14566         Add call_sync_file_range.
14568 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14570         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14571         bits/timex.h.
14573 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14575         * iconv/iconv.h: Fix typo in comment.
14576         * io/fcntl.h: Likewise.
14577         * libio/stdio.h: Likewise.
14578         * posix/spawn.h: Likewise.
14579         * posix/unistd.h: Likewise.
14580         * stdlib/stdlib.h: Likewise.
14581         * time/time.h: Likewise.
14582         * wcsmbs/wchar.h: Likewise.
14584         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
14585         open_by_handle): Add.
14586         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
14587         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
14588         Augment a few comments.
14589         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14590         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14591         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14592         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14593         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14594         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
14595         open_by_handle.
14597         * io/fcntl.h (AT_EMPTY_PATH): Define.
14599 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
14601         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
14602         * sysdeps/unix/sysv/linux/bits/time.h: New file.
14603         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
14604         to...
14605         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
14606         * Versions.def: Add GLIBC_2.14.
14607         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
14608         Export.
14610 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
14612         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
14613         round counter.
14614         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14616 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14618         [BZ #12597]
14619         * string/test-strncmp.c (do_page_test): New function.
14620         (check2): Likewise.
14621         (test_main): Call check2.
14622         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
14624 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
14626         [BZ #12587]
14627         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
14628         Handle cache information in CPU leaf 4.
14629         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14631 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
14633         [BZ #12583]
14634         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
14635         character representation.
14636         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
14638 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
14640         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
14641         END(__isnan) to END(__isnanf) to match function entry point/label
14642         EALIGN(__isnanf,...).
14644 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
14646         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
14648 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
14650         [BZ #12510]
14651         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
14652         copy from the symbol referenced in the relocation to initialize the
14653         used variable.
14654         Patch by Piotr Bury <pbury@goahead.com>.
14655         * elf/Makefile: Add rules to build and tst-unique3.
14656         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
14657         * elf/tst-unique3.cc: New file.
14658         * elf/tst-unique3.h: New file.
14659         * elf/tst-unique3lib.cc: New file.
14660         * elf/tst-unique3lib2.cc: New file.
14662         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
14664 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
14666         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
14667         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
14668         to _start.
14670 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
14672         * elf/dl-load.c (_dl_map_object): If we are looking for the first
14673         to-be-loaded object along a path to loader is ld.so.
14675 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14676             Ulrich Drepper  <drepper@gmail.com>
14678         * sysdeps/x86_64/memset.S: After aligning destination, code
14679         branches to different locations depending on the value of
14680         misalignment, when multiarch is enabled. Fix this.
14682 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14684         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
14685         Set _x86_64_preferred_memory_instruction for AMD processsors.
14686         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14687         Set bit_Prefer_SSE_for_memop for AMD processors.
14689 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
14691         * libio/fmemopen.c (fmemopen): Optimize a bit.
14693 2011-03-03  Andreas Schwab  <schwab@redhat.com>
14695         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
14697 2011-03-03  Roland McGrath  <roland@redhat.com>
14699         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
14701 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
14703         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
14704         __bzero_ultra1 instead of __memset_ultra1.
14706 2011-02-23  Andreas Schwab  <schwab@redhat.com>
14707             Ulrich Drepper  <drepper@gmail.com>
14709         [BZ #12509]
14710         * include/link.h (struct link_map): Add l_orig_initfini.
14711         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
14712         returning unsuccessfully.
14713         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
14714         close of a file loaded at startup, restore the original l_initfini
14715         list.
14716         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
14717         list, store the pointer.
14718         * elf/Makefile ($(objpfx)noload-mem): New rule.
14719         (noload-ENV): Define.
14720         (tests): Add $(objpfx)noload-mem.
14721         * elf/noload.c: Include <memcheck.h>.
14722         (main): Call mtrace.  Close all opened handles.
14724 2011-02-17  Andreas Schwab  <schwab@redhat.com>
14726         [BZ #12454]
14727         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
14728         dependencies are missing.
14730 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14732         Fix __if_freereq crash: Unlike the generic version which uses free,
14733         Hurd needs munmap.
14734         * sysdeps/mach/hurd/ifreq.h: New file.
14736 2011-01-27  Petr Baudis  <pasky@suse.cz>
14737             Ulrich Drepper  <drepper@gmail.com>
14739         [BZ 12445]#
14740         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
14741         to extend_alloca().
14742         * stdio-common/bug23.c: New file.
14743         * stdio-common/Makefile (tests): Add bug23.
14745 2010-09-28  Andreas Schwab  <schwab@redhat.com>
14746             Ulrich Drepper  <drepper@gmail.com>
14748         [BZ #12489]
14749         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
14750         before performing relro protection.  At old place add assertion
14751         to make sure nothing changed.
14753 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
14754             Glauber de Oliveira Costa  <glommer@gmail.com>
14756         * elf/elf.h: Add new ARM TLS relocs.
14758 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
14760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
14761         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
14762         cast from r3.
14763         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
14764         'tests' variable.
14765         * sysdeps/wordsize-64/tst-writev.c: New file.
14767 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
14769         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
14770         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
14771         insns in _dl_start to prevent a TOC reference before relocs are
14772         resolved.
14774 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
14776         [BZ #12469]
14777         * Makeconfig: Remove RANLIB definition.
14778         * Makerules: Don't use RANLIB.
14779         * aclocal.m4: Remove ranlib test.
14780         * configure.in: No need to check for ranlib.
14781         * elf/rtld-Rules: Don't use RANLIB.
14783 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14785         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
14786         protection macro.
14787         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
14788         inclusion protection macro.
14790         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
14791         SIGRTMIN and SIGRTMAX and print information in that case only when
14792         SIGRTMIN is defined.
14794 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
14796         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
14797         arginfo fn returning -1.
14799         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
14800         and thousands string is zero terminated.
14802 2011-02-03  Andreas Schwab  <schwab@redhat.com>
14804         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
14805         sysdeps/unix/sysv/linux/bits/socket.h.
14807 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14809         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
14810         (__CPU_COUNT): Remove old macros.
14811         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
14812         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
14813         (__CPU_ALLOC, __CPU_FREE): Add macros.
14814         (__sched_cpualloc, __sched_cpufree): Add declarations.
14816 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
14818         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
14819         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
14820         * nscd/aicache.c (addhstaiX): Return timeout of added value.
14821         (readdhstai): Return value of addhstaiX call.
14822         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
14823         (addgrbyX): Return value returned by cache_addgr.
14824         (readdgrbyname): Return value returned by addgrbyX.
14825         (readdgrbygid): Likewise.
14826         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
14827         (addpwbyX): Return value returned by cache_addpw.
14828         (readdpwbyname): Return value returned by addhstbyX.
14829         (readdpwbyuid): Likewise.
14830         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
14831         (addservbyX): Return value returned by cache_addserv.
14832         (readdservbyname): Return value returned by addservbyX:
14833         (readdservbyport): Likewise.
14834         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
14835         (addhstbyX): Return value returned by cache_addhst.
14836         (readdhstbyname): Return value returned by addhstbyX.
14837         (readdhstbyaddr): Likewise.
14838         (readdhstbynamev6): Likewise.
14839         (readdhstbyaddrv6): Likewise.
14840         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
14841         (readdinitgroups): Return value returned by addinitgroupsX.
14842         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
14843         (prune_cache): Keep track of timeout value of re-added entries.
14844         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
14845         * nscd/nscd.h: Adjust prototypes of readd* functions.
14847 2011-02-04  Roland McGrath  <roland@redhat.com>
14849         * nis/nis_server.c (nis_servstate): Use the right name for 0.
14850         (nis_stats): Likewise.
14851         * nis/nis_modify.c (nis_modify): Likewise.
14852         * nis/nis_remove.c (nis_remove): Likewise.
14853         * nis/nis_add.c (nis_add): Likewise.
14855         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
14857         * posix/fnmatch_loop.c: Add some consts.
14859         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
14861 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
14863         [BZ #12460]
14864         * config.make.in (config-cflags-novzeroupper): Define.
14865         * configure.in: Substitute libc_cv_cc_novzeroupper.
14866         * elf/Makefile (AVX-CFLAGS): Define.
14867         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
14868         (CFLAGS-tst-auditmod4a.c): Likewise.
14869         (CFLAGS-tst-auditmod4b.c): Likewise.
14870         (CFLAGS-tst-auditmod6b.c): Likewise.
14871         (CFLAGS-tst-auditmod6c.c): Likewise.
14872         (CFLAGS-tst-auditmod7b.c): Likewise.
14873         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
14875 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
14877         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
14878         function to the callback.
14879         Patch partly by Jiri Olsa <jolsa@redhat.com>.
14881 2011-02-02  Andreas Schwab  <schwab@redhat.com>
14883         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
14884         of errno.
14886 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
14888         [BZ #11724]
14889         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
14890         of constructors.
14891         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
14892         of destructors.
14893         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
14895         [BZ #11724]
14896         * elf/Makefile: Add rules to build and run new test.
14897         * elf/tst-initorder.c: New file.
14898         * elf/tst-initorder.exp: New file.
14899         * elf/tst-initordera1.c: New file.
14900         * elf/tst-initordera2.c: New file.
14901         * elf/tst-initordera3.c: New file.
14902         * elf/tst-initordera4.c: New file.
14903         * elf/tst-initorderb1.c: New file.
14904         * elf/tst-initorderb2.c: New file.
14905         * elf/tst-order-a1.c: New file.
14906         * elf/tst-order-a2.c: New file.
14907         * elf/tst-order-a3.c: New file.
14908         * elf/tst-order-a4.c: New file.
14909         * elf/tst-order-b1.c: New file.
14910         * elf/tst-order-b2.c: New file.
14911         * elf/tst-order-main.c: New file.
14912         New test case by George Gensure <werkt0@gmail.com>.
14914 2010-10-01  Andreas Schwab  <schwab@redhat.com>
14916         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14917         decoding ACE if AI_CANONIDN.
14919 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
14921         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
14923 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
14925         * version.h (RELEASE): Bump for 2.13 release.
14926         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
14928         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
14930         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
14931         MADV_NOHUGEPAGE.
14932         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
14933         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
14934         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
14935         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
14936         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
14937         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
14939         * posix/getconf.c: Update copyright year.
14940         * catgets/gencat.c: Likewise.
14941         * csu/version.c: Likewise.
14942         * debug/catchsegv.sh: Likewise.
14943         * debug/xtrace.sh: Likewise.
14944         * elf/ldconfig.c: Likewise.
14945         * elf/ldd.bash.in: Likewise.
14946         * elf/sprof.c (print_version): Likewise.
14947         * iconv/iconv_prog.c: Likewise.
14948         * iconv/iconvconfig.c: Likewise.
14949         * locale/programs/locale.c: Likewise.
14950         * locale/programs/localedef.c: Likewise.
14951         * malloc/memusage.sh: Likewise.
14952         * malloc/mtrace.pl: Likewise.
14953         * nscd/nscd.c (print_version): Likewise.
14954         * nss/getent.c: Likewise.
14956         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
14957         PF_CAIF, and PF_ALG.
14958         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14960 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
14962         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
14963         (modules-names): Use them.
14964         (ifunc-test-modules, ifunc-pie-tests): Define.
14965         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
14966         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
14967         (test-extras): Likewise.
14968         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
14969         $(compile-command.c).
14970         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
14971         (all-built-dso): Define.
14972         (check-textrel.out, check-execstack.out): Depend on it.
14974         * configure.in: Don't override --enable-multi-arch.
14976 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
14978         [BZ #6812]
14979         * nscd/hstcache.c (tryagain): Define.
14980         (cache_addhst): Return tryagain not notfound for temporary errors.
14981         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
14982         failed.
14984 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
14986         [BZ #10563]
14987         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
14988         to make the syscall.
14989         * sysdeps/unix/sysv/linux/setgroups.c: New file.
14991         [BZ #12378]
14992         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
14993         and fall back to matching as normal character if the string ends before
14994         the matching ']' is found.  This is what POSIX requires.
14995         * posix/testfnm.c: Adjust test result.
14996         * posix/globtest.sh: Adjust test result.  Add new test.
14997         * posix/tst-fnmatch.input: Likewise.
14998         * posix/tst-fnmatch2.c: Add new test.
15000 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
15002         * elf/Makefile (check-execstack): Revert last change.  Depend on
15003         check-execstack.h.
15004         (check-execstack.h): New target.
15005         (generated): Add check-execstack.h.
15006         * elf/check-execstack.c: Include "check-execstack.h".
15007         (main): Revert last change.
15008         (handle_file): Return zero if GNU_STACK is absent and
15009         DEFAULT_STACK_PERMS doesn't include PF_X.
15011 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
15013         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
15014         in child fails because the descriptor is already closed.
15015         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
15016         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
15017         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
15019         [BZ #12397]
15020         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
15021         syscall.
15023         [BZ #10484]
15024         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
15025         temporary buffer used to handle multi lookups locally.
15026         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
15028 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15030         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
15031         loader is ld.so.
15033 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
15035         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
15036         alignment for SSE2.
15038 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
15040         [BZ #12394]
15041         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
15042         characters.  When rounding increased number of integer digits recompute
15043         number of groups.
15044         * stdio-common/tst-grouping.c: New file.
15045         * stdio-common/Makefile: Add rules to build and run tst-grouping.
15047 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
15049         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
15050         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
15052         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
15053         void.
15054         * bits/select.h: Likewise.
15056 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
15058         * po/ja.po: Update from translation team.
15060 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
15062         [BZ #11155]
15063         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
15064         implementation just like for lxstat, fxstatat, et al.
15066 2010-12-27  Jim Meyering  <meyering@redhat.com>
15068         [BZ #12348]
15069         * posix/regexec.c (build_trtable): Return failure indication upon
15070         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15072 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
15074         [BZ #12201]
15075         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
15076         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
15077         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
15078         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
15080         [BZ #12207]
15081         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
15083         [BZ #12204]
15084         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
15085         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
15087 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
15089         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
15090         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
15091         script has SORT_BY_INIT_PRIORITY.
15092         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
15093         NO_CTORS_DTORS_SECTIONS is defined.
15094         * elf/soinit.c: Likewise.
15095         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
15096         NO_CTORS_DTORS_SECTIONS is defined.
15097         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
15098         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
15099         * sysdeps/sh/init-first.c: Likewise.
15100         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
15102 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
15104         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
15105         always use the slow path.
15107 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
15109         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
15110         similar rule which adds the sysdep directories to the header search in
15111         order to pick up the correct platform stackinfo.h.
15112         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
15113         perform test if it is, otherwise return successfully without testing.
15114         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
15115         DEFAULT_STACK_PERMS define in stackinfo.h.
15116         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
15117         defined in stackinfo.h.
15118         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
15119         DEFAULT_STACK_PERMS defined in stackinfo.h.
15120         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
15121         * sysdeps/ia64/stackinfo.h: Likewise.
15122         * sysdeps/s390/stackinfo.h: Likewise.
15123         * sysdeps/sh/stackinfo.h: Likewise.
15124         * sysdeps/sparc/stackinfo.h: Likewise.
15125         * sysdeps/x86_64/stackinfo.h: Likewise.
15126         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
15127         PF_X for powerpc64.  Retain PF_X for powerpc32.
15129 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
15131         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
15132         accurately.
15133         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
15134         GETDENTS_64BIT_ALIGNED.
15136 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
15138         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
15140 2010-12-10  Andreas Schwab  <schwab@redhat.com>
15142         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
15143         _GNU_SOURCE.
15145         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
15146         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
15147         Remove __restrict.
15148         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
15149         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
15151 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
15153         [BZ #11655]
15154         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
15155         are initialized.
15157 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
15159         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
15161 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
15163         * po/it.po: Update from translation team.
15165 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
15167         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
15168         unused codes.
15170 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
15172         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
15174 2010-11-24  Andreas Schwab  <schwab@redhat.com>
15176         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
15177         specially.
15178         (gaih_getanswer_slice): Likewise.
15180 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
15182         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
15184 2010-05-31  Petr Baudis  <pasky@suse.cz>
15186         [BZ #11149]
15187         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
15188         silently even in the chroot mode.
15190 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
15192         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
15193         last patch a bit.  Pretty printing
15195 2010-05-31  Petr Baudis <pasky@suse.cz>
15197         [BZ #10085]
15198         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
15199         initialization of skip_initgroups_dyn.
15201 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
15203         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
15204         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15206 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
15208         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
15210 2010-11-11  Andreas Schwab  <schwab@redhat.com>
15212         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
15213         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
15214         (tst-fnmatch-ENV): Set MALLOC_TRACE.
15215         ($(objpfx)tst-fnmatch-mem): New rule.
15216         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
15217         * posix/tst-fnmatch.c (main): Call mtrace.
15219 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
15221         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15222         Support Intel processor model 6 and model 0x2c.
15224 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
15226         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
15227           signed comparison.
15229 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
15231         [BZ #12205]
15232         * string/test-strncasecmp.c (check_result): New function.
15233         (do_one_test): Use it.
15234         (check1): New function.
15235         (test_main): Use it.
15236         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
15237         Support strcasecmp and strncasecmp.
15239 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
15241         [BZ #12194]
15242         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
15243         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15245 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15247         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
15248         IFUNC support.
15249         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15250         memset-x86-64.
15251         * sysdeps/x86_64/multiarch/bzero.S: New file.
15252         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
15253         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
15254         * sysdeps/x86_64/multiarch/memset.S: New file.
15255         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
15256         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15257         Set bit_Prefer_SSE_for_memop for Intel processors.
15258         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
15259         Define.
15260         (index_Prefer_SSE_for_memop): Define.
15261         (HAS_PREFER_SSE_FOR_MEMOP): Define.
15263 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
15265         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
15266         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
15268 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
15270         [BZ #12191]
15271         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15272         (__x86_64_raw_data_cache_size_half): Likewise.
15273         (__x86_64_raw_shared_cache_size): Likewise.
15274         (__x86_64_raw_shared_cache_size_half): Likewise.
15276         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15277         (__x86_64_raw_data_cache_size_half): Likewise.
15278         (__x86_64_raw_shared_cache_size): Likewise.
15279         (__x86_64_raw_shared_cache_size_half): Likewise.
15280         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
15281         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
15282         and __x86_64_raw_shared_cache_size_half.  Round
15283         __x86_64_data_cache_size_half, __x86_64_data_cache_size
15284         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
15285         to multiple of 256 bytes.
15287 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
15289         [BZ #12167]
15290         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
15291         of inacessible symlinks.  Verify result of symlink before returning it.
15292         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15293         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
15295 2010-10-28  Erich Ritz  <erichritz@gmail.com>
15297         * math/math.h (isinf): Fix typo in comment.
15299 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
15301         * po/da.po: Update from translation team.
15303 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
15305         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
15306         is added to the list.
15308 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15309             Ulrich Drepper  <drepper@gmail.com>
15311         * elf/dl-object.c (_dl_new_object): Don't append the new object to
15312         the global list here.  Move code to...
15313         (_dl_add_to_namespace_list): ...here.  New function.
15314         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
15315         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
15316         * elf/dl-load.c (lose): Don't remove the element from the list.
15317         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
15318         (_dl_map_object): Likewise.
15320 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
15322         [BZ #12159]
15323         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
15324         into all bytes of SSE register.
15325         Patch by Richard Li <richardpku@gmail.com>.
15327 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
15329         [BZ #12140]
15330         * malloc/malloc.c (_int_free): Fill correct number of bytes when
15331         perturbing.
15333 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
15335         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
15336         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
15337         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
15338         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
15340         submachine.
15341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15343 2010-10-22  Andreas Schwab  <schwab@redhat.com>
15345         * include/dlfcn.h (__RTLD_SECURE): Define.
15346         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
15347         mode & __RTLD_SECURE instead.
15348         (open_path): Rename preloaded parameter to secure.
15349         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
15350         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
15351         * elf/dl-deps.c (openaux): Likewise.
15352         * elf/rtld.c (struct map_args): Remove is_preloaded.
15353         (map_doit): Don't use it.
15354         (dl_main): Likewise.
15355         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
15356         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
15358 2010-09-09  Andreas Schwab  <schwab@redhat.com>
15360         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
15361         (sysd-rules-targets): Remove duplicates.
15362         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
15363         rtld-%.$o dependency.
15365 2010-10-18  Andreas Schwab  <schwab@redhat.com>
15367         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
15368         _dl_map_object do it.
15370 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
15372         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
15373         fast fma builtins, define the macros in the C99 standard.
15374         (FP_FAST_FMAF): Likewise.
15375         (FP_FAST_FMAL): Likewise.
15376         * sysdeps/x86_64/bits/mathdef.h: Likewise.
15378         * bits/mathdef.h: Update copyright year.
15379         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15381 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15383         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
15384         builtins, define the macros in the C99 standard.
15385         (FP_FAST_FMAF): Likewise.
15386         (FP_FAST_FMAL): Likewise.
15387         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
15388         multiply/add.
15389         (FP_FAST_FMAF): Likewise.
15391 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
15393         [BZ #3268]
15394         * math/libm-test.inc (fma_test): Some new testcases.
15395         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
15396         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
15397         y and infinite z.  Do multiplication by C already in long double.
15398         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
15399         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
15400         y and infinite z.  Do bitwise or of inexact bit into u.d.
15401         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
15402         * sysdeps/i386/fpu/s_fmaf.S: Removed.
15403         * sysdeps/i386/fpu/s_fma.S: Removed.
15404         * sysdeps/i386/fpu/s_fmal.S: Removed.
15406 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
15408         [BZ #3268]
15409         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
15410         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
15411         computation is not scheduled after fetestexcept.  Fix value
15412         of minimum denormal long double.
15414 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
15416         [BZ #3268]
15417         * math/libm-test.inc (fma_test): Add some more tests.
15418         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
15419         correctly.
15421 2010-10-15  Andreas Schwab  <schwab@redhat.com>
15423         * scripts/data/localplt-s390-linux-gnu.data: New file.
15424         * scripts/data/localplt-s390x-linux-gnu.data: New file.
15426 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
15428         [BZ #3268]
15429         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
15430         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
15431         instead of dbl-64.
15432         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
15433         inlines.
15434         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
15435         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
15436         if one of x and y is very large and the other is subnormal.
15437         * sysdeps/s390/fpu/s_fmaf.c: New file.
15438         * sysdeps/s390/fpu/s_fma.c: New file.
15439         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
15440         * sysdeps/powerpc/fpu/s_fma.S: New file.
15441         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
15442         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
15443         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
15445 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
15447         [BZ #3268]
15448         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
15449         fma tests.
15450         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
15451         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
15452         * sysdeps/i386/i686/multiarch/s_fma.c: Include
15453         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
15454         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
15455         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
15456         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
15458 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
15460         [BZ #12078]
15461         * posix/regcomp.c (parse_branch): One more memory leak plugged.
15462         * posix/bug-regex31.input: Add test case.
15464 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15466         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
15467         * posix/bug-regex31.input: New file.
15469         [BZ #12078]
15470         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
15471         (parse_sub_exp): Fix last change, use postorder.
15473         * posix/bug-regex31.c: New file.
15474         * posix/Makefile: Add rules to build and run bug-regex31.
15476         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
15478         [BZ #12078]
15479         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
15481         [BZ #12108]
15482         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
15483         to have entries in sys_siglist.
15485         [BZ #12093]
15486         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
15487         be NULL.
15489 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
15491         [BZ #3268]
15492         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
15493         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
15494         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
15495         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
15496         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15497         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
15498         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
15499         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
15500         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
15501         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
15502         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
15503         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
15504         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
15505         * math/ftestexcept.c (fetestexcept): Likewise.
15506         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
15507         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
15508         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
15509         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
15510         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
15511         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
15512         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
15514 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15516         [BZ #12107]
15517         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
15518         newline.
15520 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
15522         * string/bug-strstr1.c: New file.
15523         * string/Makefile: Add rules to build and run bug-strstr1.
15525 2010-10-05  Eric Blake  <eblake@redhat.com>
15527         [BZ #12092]
15528         * string/str-two-way.h (two_way_long_needle): Always clear memory
15529         when skipping input due to the shift table.
15531 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
15533         [BZ #12005]
15534         * malloc/mcheck.c: Handle large requests.
15536         [BZ #12077]
15537         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
15538         for strncmp and strncasecmp.
15539         * string/stratcliff.c: Add tests for strcmp and strncmp.
15540         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
15542 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15544         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
15545         __set_fpscr.
15547 2010-09-30  Andreas Jaeger  <aj@suse.de>
15549         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
15550         (CGROUP_SUPER_MAGIC): Define.
15551         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15552         Handle btrfs and cgroup file systems.
15553         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
15554         Likewise.
15556 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
15558         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
15559         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
15561 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15563         [BZ #12067]
15564         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
15565         trying to locate the ELF header.
15567 2010-09-27  Andreas Schwab  <schwab@redhat.com>
15569         [BZ #11611]
15570         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
15571         Mask out sign-bit copies when constructing f_fsid.
15573 2010-09-24  Petr Baudis <pasky@suse.cz>
15575         * debug/stack_chk_fail_local.c: Add missing licence exception.
15576         * debug/warning-nop.c: Likewise.
15578 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
15580         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
15581         implementing getdents64 using getdents syscall, set d_type if
15582         __ASSUME_GETDENTS32_D_TYPE.
15584 2010-09-16  Andreas Schwab  <schwab@redhat.com>
15586         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
15587         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
15589 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
15591         [BZ #12037]
15592         * posix/unistd.h: Undo change of feature selection for ftruncate from
15593         2010-01-11.
15595 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
15597         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
15598         detection.
15600 2010-09-20  Andreas Schwab  <schwab@redhat.com>
15602         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
15603         fanotify_mark.
15604         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
15606 2010-09-14  Andreas Schwab  <schwab@redhat.com>
15608         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
15609         variables after CHECK_SP call.
15610         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
15612 2010-09-13  Andreas Schwab  <schwab@redhat.com>
15613             Ulrich Drepper  <drepper@redhat.com>
15615         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
15616         re-relocationg ld.so.
15617         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
15618         _dl_init_paths call.
15619         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
15620         here anymore.
15622 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
15624         * resolv/res_init.c (__res_vinit): Count the default server we added.
15626 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
15627             Ulrich Drepper  <drepper@redhat.com>
15629         [BZ #11968]
15630         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15631         (____longjmp_chk): Use %ebx for saving value across system call.
15632         Add unwind info.
15634 2010-09-06  Andreas Schwab  <schwab@redhat.com>
15636         * manual/Makefile: Don't mix pattern rules with normal rules.
15638 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15640         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
15641         operation.
15642         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15643         * libio/iofopncook.c (_IO_cookie_init): Likewise.
15644         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15645         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15646         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15647         Likewise.
15649 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
15651         [BZ #11979]
15652         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
15653         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
15655 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
15657         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
15658         * sysdeps/x86_64/addmul_1.S: Likewise.
15659         * sysdeps/x86_64/lshift.S: Likewise.
15660         * sysdeps/x86_64/mul_1.S: Likewise.
15661         * sysdeps/x86_64/rshift.S: Likewise.
15662         * sysdeps/x86_64/sub_n.S: Likewise.
15663         * sysdeps/x86_64/submul_1.S: Likewise.
15665 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15667         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
15668         Define __sched_param instead of SCHED_* and sched_param when
15669         <bits/sched.h> is included with __need_schedparam defined.
15670         * bits/sched.h [__need_schedparam]
15671         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
15672         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
15673         (__defined_schedparam): Define to 1.
15674         (__sched_param): New structure, identical to sched_param.
15675         (__need_schedparam): Undefine.
15677 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
15679         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
15680         (epoll_create1): Declare.
15682         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
15684 2010-08-31  Andreas Schwab  <schwab@redhat.com>
15686         [BZ #7066]
15687         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
15688         shifting retval into place.
15690 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
15692         * nis/rpcsvc/nis.h: Update copyright notice.
15693         * nis/rpcsvc/nis.x: Likewise.
15694         * nis/rpcsvc/nis_callback.h: Likewise.
15695         * nis/rpcsvc/nis_callback.x: Likewise.
15696         * nis/rpcsvc/nis_object.x: Likewise.
15697         * nis/rpcsvc/nis_tags.h: Likewise.
15698         * nis/rpcsvc/yp.h: Likewise.
15699         * nis/rpcsvc/yp.x: Likewise.
15700         * nis/rpcsvc/ypupd.h: Likewise.
15701         * nis/yp_xdr.c: Likewise.
15702         * nis/ypupdate_xdr.c: Likewise.
15704         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
15705         mainly the body of pmap_getport.  Add parameters to specify timeouts.
15706         (pmap_getport): Use __libc_rpc_getport.
15707         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
15708         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
15709         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
15711 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
15713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
15714         fanotify_mark.
15716 2010-08-27  Roland McGrath  <roland@redhat.com>
15718         * sysdeps/i386/i686/multiarch/Makefile
15719         (CFLAGS-varshift.c): New variable.
15721 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
15723         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
15724         * sysdeps/i386/i686/multiarch/varshift.c: New file.
15726         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
15728         * sysdeps/x86_64/strlen.S: Minimal code improvement.
15730 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
15732         * sysdeps/x86_64/strlen.S: Unroll the loop.
15733         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15734         strlen-sse2 strlen-sse2-bsf.
15735         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
15736         __strlen_no_bsf if bit_Slow_BSF is set.
15737         (__strlen_sse42): Removed.
15738         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
15739         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
15741 2010-08-25  Roland McGrath  <roland@redhat.com>
15743         * sysdeps/x86_64/multiarch/varshift.S: File removed.
15744         * sysdeps/x86_64/multiarch/varshift.c: New file.
15745         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
15746         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
15747         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
15748         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
15750 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
15752         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15753         strlen-sse2 strlen-sse2-bsf.
15754         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
15755         __strlen_sse2_bsf if bit_Slow_BSF is unset.
15756         (__strlen_sse2): Removed.
15757         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
15758         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
15759         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15760         bit_Slow_BSF for Atom.
15761         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
15762         (index_Slow_BSF): Define.
15763         (HAS_SLOW_BSF): Define.
15765 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
15767         [BZ #10851]
15768         * resolv/res_init.c (__res_vinit): When no server address at all
15769         is given default to loopback.
15771 2010-08-24  Roland McGrath  <roland@redhat.com>
15773         * configure.in: Remove config-name.h generation.
15774         * configure: Regenerated.
15775         * config-name.in: File removed.
15776         * scripts/config-uname.sh: New file.
15777         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
15778         ($(objdir)config-name.h): New target.
15780         * sunrpc/rpc_parse.h: Avoid nested comment.
15782 2010-08-24  Richard Henderson  <rth@redhat.com>
15783             Ulrich Drepper  <drepper@redhat.com>
15784             H.J. Lu  <hongjiu.lu@intel.com>
15786         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
15787         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
15788         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
15789         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
15790         _mm_alignr_epi8 with _mm_loadu_si128.
15791         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
15792         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
15793         (__m128i_shift_right): Removed.
15794         * sysdeps/i386/i686/multiarch/varshift.h: New file.
15795         * sysdeps/i386/i686/multiarch/varshift.S: New file.
15796         * sysdeps/x86_64/multiarch/varshift.h: New file.
15797         * sysdeps/x86_64/multiarch/varshift.S: New file.
15799 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
15801         * configure.in: Move assembler checks to before sysdep dir checking.
15803 2010-08-20  Petr Baudis  <pasky@suse.cz>
15805         * LICENSES: Sync the sunrpc license.
15807 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
15809         * sunrpc/auth_des.c: Update copyright notice once again.
15810         * sunrpc/auth_none.c: Likewise.
15811         * sunrpc/auth_unix.c: Likewise.
15812         * sunrpc/authdes_prot.c: Likewise.
15813         * sunrpc/authuxprot.c: Likewise.
15814         * sunrpc/bindrsvprt.c: Likewise.
15815         * sunrpc/clnt_gen.c: Likewise.
15816         * sunrpc/clnt_perr.c: Likewise.
15817         * sunrpc/clnt_raw.c: Likewise.
15818         * sunrpc/clnt_simp.c: Likewise.
15819         * sunrpc/clnt_tcp.c: Likewise.
15820         * sunrpc/clnt_udp.c: Likewise.
15821         * sunrpc/clnt_unix.c: Likewise.
15822         * sunrpc/des_crypt.c: Likewise.
15823         * sunrpc/des_soft.c: Likewise.
15824         * sunrpc/get_myaddr.c: Likewise.
15825         * sunrpc/getrpcport.c: Likewise.
15826         * sunrpc/key_call.c: Likewise.
15827         * sunrpc/key_prot.c: Likewise.
15828         * sunrpc/openchild.c: Likewise.
15829         * sunrpc/pm_getmaps.c: Likewise.
15830         * sunrpc/pm_getport.c: Likewise.
15831         * sunrpc/pmap_clnt.c: Likewise.
15832         * sunrpc/pmap_prot.c: Likewise.
15833         * sunrpc/pmap_prot2.c: Likewise.
15834         * sunrpc/pmap_rmt.c: Likewise.
15835         * sunrpc/rpc/auth.h: Likewise.
15836         * sunrpc/rpc/auth_unix.h: Likewise.
15837         * sunrpc/rpc/clnt.h: Likewise.
15838         * sunrpc/rpc/des_crypt.h: Likewise.
15839         * sunrpc/rpc/key_prot.h: Likewise.
15840         * sunrpc/rpc/netdb.h: Likewise.
15841         * sunrpc/rpc/pmap_clnt.h: Likewise.
15842         * sunrpc/rpc/pmap_prot.h: Likewise.
15843         * sunrpc/rpc/pmap_rmt.h: Likewise.
15844         * sunrpc/rpc/rpc.h: Likewise.
15845         * sunrpc/rpc/rpc_des.h: Likewise.
15846         * sunrpc/rpc/rpc_msg.h: Likewise.
15847         * sunrpc/rpc/svc.h: Likewise.
15848         * sunrpc/rpc/svc_auth.h: Likewise.
15849         * sunrpc/rpc/types.h: Likewise.
15850         * sunrpc/rpc/xdr.h: Likewise.
15851         * sunrpc/rpc_clntout.c: Likewise.
15852         * sunrpc/rpc_cmsg.c: Likewise.
15853         * sunrpc/rpc_common.c: Likewise.
15854         * sunrpc/rpc_cout.c: Likewise.
15855         * sunrpc/rpc_dtable.c: Likewise.
15856         * sunrpc/rpc_hout.c: Likewise.
15857         * sunrpc/rpc_main.c: Likewise.
15858         * sunrpc/rpc_parse.c: Likewise.
15859         * sunrpc/rpc_parse.h: Likewise.
15860         * sunrpc/rpc_prot.c: Likewise.
15861         * sunrpc/rpc_sample.c: Likewise.
15862         * sunrpc/rpc_scan.c: Likewise.
15863         * sunrpc/rpc_scan.h: Likewise.
15864         * sunrpc/rpc_svcout.c: Likewise.
15865         * sunrpc/rpc_tblout.c: Likewise.
15866         * sunrpc/rpc_util.c: Likewise.
15867         * sunrpc/rpc_util.h: Likewise.
15868         * sunrpc/rpcinfo.c: Likewise.
15869         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
15870         * sunrpc/rpcsvc/key_prot.x: Likewise.
15871         * sunrpc/rpcsvc/klm_prot.x: Likewise.
15872         * sunrpc/rpcsvc/mount.x: Likewise.
15873         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
15874         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
15875         * sunrpc/rpcsvc/rex.x: Likewise.
15876         * sunrpc/rpcsvc/rstat.x: Likewise.
15877         * sunrpc/rpcsvc/rusers.x: Likewise.
15878         * sunrpc/rpcsvc/sm_inter.x: Likewise.
15879         * sunrpc/rpcsvc/spray.x: Likewise.
15880         * sunrpc/rpcsvc/yppasswd.x: Likewise.
15881         * sunrpc/rtime.c: Likewise.
15882         * sunrpc/svc.c: Likewise.
15883         * sunrpc/svc_auth.c: Likewise.
15884         * sunrpc/svc_authux.c: Likewise.
15885         * sunrpc/svc_raw.c: Likewise.
15886         * sunrpc/svc_run.c: Likewise.
15887         * sunrpc/svc_simple.c: Likewise.
15888         * sunrpc/svc_tcp.c: Likewise.
15889         * sunrpc/svc_udp.c: Likewise.
15890         * sunrpc/svc_unix.c: Likewise.
15891         * sunrpc/svcauth_des.c: Likewise.
15892         * sunrpc/xcrypt.c: Likewise.
15893         * sunrpc/xdr.c: Likewise.
15894         * sunrpc/xdr_array.c: Likewise.
15895         * sunrpc/xdr_float.c: Likewise.
15896         * sunrpc/xdr_mem.c: Likewise.
15897         * sunrpc/xdr_rec.c: Likewise.
15898         * sunrpc/xdr_ref.c: Likewise.
15899         * sunrpc/xdr_sizeof.c: Likewise.
15900         * sunrpc/xdr_stdio.c: Likewise.
15902         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
15903         handling.
15905 2010-08-19  Andreas Schwab  <schwab@redhat.com>
15907         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
15909 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
15911         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
15912         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
15913         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
15914         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
15915         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
15916         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
15917         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
15918         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
15919         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
15920         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
15921         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
15922         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
15923         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
15924         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
15926 2010-07-26  Anton Blanchard  <anton@samba.org>
15928         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
15929         * malloc/arena.c (heap_trim): Likewise.
15931 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
15933         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
15934         here.  Not...
15935         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
15936         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
15938 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
15940         * sysdeps/i386/elf/Makefile: New file.
15942 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15944         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
15945         from fanotify_init.
15946         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
15947         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15949 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
15951         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
15952         of strncasecmp_l.
15953         * sysdeps/multiarch/strcmp.S: Likewise.
15955 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
15957         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
15958         strncase_l-nonascii.
15959         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
15960         Add strncase_l-ssse3.
15961         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
15962         * sysdeps/x86_64/strcmp.S: Likewise.
15963         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
15964         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
15965         * sysdeps/x86_64/strncase.S: New file.
15966         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
15967         * sysdeps/x86_64/strncase_l.S: New file.
15968         * string/Makefile (strop-tests): Add strncasecmp.
15969         * string/test-strncasecmp.c: New file.
15971         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
15972         warning.
15974         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
15975         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
15977 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15979         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
15981 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
15983         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
15984         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
15985         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
15987 2010-05-01  Alan Modra  <amodra@gmail.com>
15989         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
15990         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
15991         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
15992         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
15993         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
15994         tidying.  Don't tail-call __sigjmp_save for static lib.
15995         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
15996         save location.
15997         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
15998         (CALL_MCOUNT): Add eh info, and nop after bl.
15999         (TAIL_CALL_SYSCALL_ERROR): New macro.
16000         (PSEUDO_RET): Use it.
16001         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
16002         Correct save location of integer regs and cr.
16003         (_dl_profile_resolve): Correct cr save location.  Delete nops
16004         after bl when SHARED.  Reduce cfi size a little by better
16005         placement of cfi directives.
16006         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
16007         make a stack frame.  Instead use parm save area as a temp.
16008         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
16009         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
16010         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
16011         Don't make a stack frame for parent, use parm save area.
16012         Increase child stack frame to 112 bytes.  Don't save unused reg,
16013         and adjust reg usage.  Set up cfi on error recovery and
16014         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
16015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
16016         (__makecontext): Add dummy nop after jump to exit.
16017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
16018         Use correct parm save area and cr save, reduce stack frame.
16019         Correct cfi for possible PSEUDO_RET frame setup.
16020         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
16021         Branch to local label emitted by PSEUDO_RET rather than
16022         __syscall_error.
16024 2010-08-12  Andreas Schwab  <schwab@redhat.com>
16026         [BZ #11904]
16027         * locale/programs/locale.c (print_assignment): New function.
16028         (show_locale_vars): Use it.
16030 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
16032         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
16033         field.
16034         (struct statfs64): Likewise.
16035         (_STATFS_F_FLAGS): Define.
16036         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
16037         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
16038         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
16039         (ST_VALID): Define locally.
16040         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
16041         __statvfs_getflags, use the provided value.
16042         * sysdeps/unix/sysv/linux/kernel-features.h: Define
16043         __ASSUME_STATFS_F_FLAGS.
16045         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
16047         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
16048         Add sys/fanotify.h.
16049         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
16050         fanotify_mask for GLIBC_2.13.
16051         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
16052         fanotify_init and fanotify_mark.
16053         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16054         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
16056         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
16057         Add prlimit.
16058         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
16059         prlimit64 for GLIBC_2.13.
16060         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
16061         prlimit64.
16062         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
16063         syscall.
16064         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16065         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16066         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
16067         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
16068         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
16069         add prlimit alias.
16070         * sysdeps/unix/sysv/linux/prlimit.c: New file.
16072         [BZ #11903]
16073         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
16074         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
16076         * nss/Makefile: Add rules to build and run tst-nss-test1.
16077         * shlib-versions: Add entry for libnss_test1.
16078         * nss/nss_test1.c: New file.
16079         * nss/tst-nss-test1.c: New file.
16081         * nss/nsswitch.c (__nss_database_custom): Define new variable.
16082         (__nss_configure_lookup): Set appropriate entry in
16083         __nss_configure_lookup to true.
16084         * nss/nsswitch.h: Define enum with indeces of databases in
16085         databases and __nss_database_custom arrays.  Declare
16086         __nss_database_custom.
16087         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
16088         to avoid using nscd when custom rules are installed.
16089         * nss/getXXbyYY_r.c: Likewise.
16090         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
16092         * nss/nss_files/files-parse.c: Whitespace fixes.
16094 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
16096         [BZ #11883]
16097         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
16098         * posix/fnmatch_loop.c: Likewise.
16100 2010-07-17  Andi Kleen  <ak@linux.intel.com>
16102         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
16103         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
16104         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
16105         * Versions.def [GLIBC_2.13]: Add.
16107 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
16109         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16110         Also fail if tpwd after pwuid call is NULL.
16112 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16114         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
16115         when converting to ms.
16117 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16119         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
16120         EOPNOTSUPP errors with ENOTTY.
16121         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
16122         EOPNOTSUPP errors with ENOTTY.
16124 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
16126         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16127         Add strcasecmp_l-ssse3.
16128         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
16129         strcasecmp.
16130         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
16131         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
16132         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
16134 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
16136         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
16138         * string/Makefile (strop-tests): Add strcasecmp.
16139         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16140         strcasecmp_l-nonascii.
16141         (gen-as-const-headers): Add locale-defines.sym.
16142         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
16143         * sysdeps/x86_64/strcasecmp.S: New file.
16144         * sysdeps/x86_64/strcasecmp_l.S: New file.
16145         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
16146         * sysdeps/x86_64/locale-defines.sym: New file.
16147         * string/test-strcasecmp.c: New file.
16149         * string/test-strcasestr.c: Test both ends of the range of characters.
16150         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
16152 2010-07-29  Roland McGrath  <roland@redhat.com>
16154         [BZ #11856]
16155         * manual/locale.texi (Yes-or-No Questions): Fix example code.
16157 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
16159         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
16160         for ld.so.
16162 2010-07-27  Andreas Schwab  <schwab@redhat.com>
16164         * manual/memory.texi (Malloc Tunable Parameters): Document
16165         M_PERTURB.
16167 2010-07-26  Roland McGrath  <roland@redhat.com>
16169         [BZ #11840]
16170         * configure.in (-fgnu89-inline check): Set and substitute
16171         gnu89_inline, not libc_cv_gnu89_inline.
16172         * configure: Regenerated.
16173         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
16175 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
16177         * string/test-strnlen.c: New file.
16178         * string/Makefile (strop-tests): Add strnlen.
16179         * string/tester.c (test_strnlen): Add a few more test cases.
16180         * string/tst-strlen.c: Better error reporting.
16182         * sysdeps/x86_64/strnlen.S: New file.
16184 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
16186         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
16187         lower-latency instructions.
16189 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
16191         * string/test-strcasestr.c: New file.
16192         * string/test-strstr.c: New file.
16193         * string/Makefile (strop-tests): Add strstr and strcasestr.
16194         * string/str-two-way.h: Don't undefine MAX.
16195         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
16197 2010-07-21  Andreas Schwab  <schwab@redhat.com>
16199         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16200         strcasestr-nonascii.
16201         (CFLAGS-strcasestr-nonascii.c): Define.
16202         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
16203         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
16204         Remove unused attribute.
16206 2010-07-20  Roland McGrath  <roland@redhat.com>
16208         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
16209         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
16210         ld.so.cache was broken.  With it, there is no way to disable dsocaps
16211         like LD_HWCAP_MASK can disable hwcaps.
16213 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16215         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
16217 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
16219         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
16220         call in strcasestr.
16221         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
16222         __strcasestr_sse42_nonascii.
16223         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
16224         strcasestr-nonascii.c.
16225         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
16227 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
16229         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
16230         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
16231         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
16232         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
16234 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
16236         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
16237         fcntl.
16239 2010-07-06  Andreas Schwab  <schwab@redhat.com>
16241         [BZ #11577]
16242         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
16243         dl_signal_cerror.
16245 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
16247         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
16248         _PC_PIPE_BUF using F_GETPIPE_SZ.
16250 2010-07-05  Roland McGrath  <roland@redhat.com>
16252         * manual/arith.texi (Rounding Functions): Fix rint description
16253         implicit in round description.
16255 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
16257         * elf/Makefile: Fix linking for a few tests to make recent linker
16258         happy.
16260 2010-06-30  Andreas Schwab  <schwab@redhat.com>
16262         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16263         $(common-objpfx)libc_nonshared.a.
16265 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
16267         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
16268         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
16269         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16270         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16271         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
16272         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
16273         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16274         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16275         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
16276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
16277         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
16278         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16279         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
16280         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16281         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
16282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
16283         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
16284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
16285         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
16287         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16288         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
16289         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
16290         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
16291         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
16292         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
16293         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
16294         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
16295         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
16296         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
16297         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
16298         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
16299         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
16300         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
16301         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
16302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
16303         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
16304         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
16305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
16306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
16307         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
16308         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
16309         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
16310         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
16311         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
16312         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
16313         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
16314         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
16316 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
16318         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
16319         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
16320         * string/memmove.c (memmove): Renamed to ...
16321         (MEMMOVE): ...this.  Default to memmove.
16322         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
16323         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
16324         (END_CHK): Define.
16325         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16326         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
16327         mempcpy-ssse3-back memmove-ssse3-back.
16328         * sysdeps/x86_64/multiarch/bcopy.S: New file .
16329         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
16330         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
16331         * sysdeps/x86_64/multiarch/memcpy.S: New file.
16332         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
16333         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
16334         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
16335         * sysdeps/x86_64/multiarch/memmove.c: New file.
16336         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
16337         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
16338         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
16339         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
16340         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
16341         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
16342         Define.
16343         (index_Fast_Copy_Backward): Define.
16344         (HAS_ARCH_FEATURE): Define.
16345         (HAS_FAST_REP_STRING): Define.
16346         (HAS_FAST_COPY_BACKWARD): Define.
16348 2010-06-21  Andreas Schwab  <schwab@redhat.com>
16350         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16351         Restore proper fallback handling.
16353 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
16355         [BZ #11701]
16356         * posix/group_member.c (__group_member): Correct checking loop.
16358         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
16359         OOM in getpwuid_r correctly.  Return error number when the caller
16360         should return, otherwise -1.
16361         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
16362         call returning > 0 value.
16363         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
16365 2010-06-07  Andreas Schwab  <schwab@redhat.com>
16367         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
16368         libc_nonshared.a from targets in modules-names.
16370 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
16372         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
16373         requires it.
16375 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
16377         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
16378         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
16379         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
16380         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
16382 2010-06-02  Andreas Schwab  <schwab@redhat.com>
16384         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
16386 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
16388         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
16389         and F_GETPIPE_SZ.
16390         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16391         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16392         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16393         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16394         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16395         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
16397 2010-06-14  Roland McGrath  <roland@redhat.com>
16399         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
16401 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
16403         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
16404         __REDIRECT followed by __THROW.
16405         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
16406         * posix/getopt.h (getopt): Likewise.
16408 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16410         * hurd/lookup-at.c (__file_name_lookup_at): Accept
16411         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
16412         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
16413         in AT_FLAGS.
16414         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
16415         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
16417 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
16419         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
16421 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
16423         [BZ #11640]
16424         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16425         Properly check family and model.
16427 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
16429         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
16431 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
16433         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
16435 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
16437         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
16438         symbol reference.
16440 2010-05-19  Andreas Schwab  <schwab@redhat.com>
16442         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
16443         symbol reference.
16445 2010-05-21  Andreas Schwab  <schwab@redhat.com>
16447         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
16448         and internal_recvmmsg.
16449         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
16450         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
16451         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
16452         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
16454         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
16455         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16456         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16458 2010-05-20  Andreas Schwab  <schwab@redhat.com>
16460         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
16462 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
16464         POWER7 optimizations.
16465         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
16466         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
16468 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
16470         * version.h: Update for 2.13 development version.
16472 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
16474         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
16475         exceptions.  Return 0.
16477 2010-05-07  Roland McGrath  <roland@redhat.com>
16479         * elf/ldconfig.c (main): Add a const.
16481 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
16483         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
16484         (args_options): Add no-idn option.
16485         (ahosts_keys_int): Add idn_flags to ai_flags.
16486         (parse_option): Handle 'i' option to clear idn_flags.
16488         * malloc/malloc.c (_int_free): Possible race in the most recently
16489         added check.  Only act on the data if no current modification
16490         happened.
16492 See ChangeLog.17 for earlier changes.