BZ#14218: Reword argp_parse description slightly.
[platform/upstream/glibc.git] / ChangeLog
1 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2
3         [BZ #14218]
4         * manual/argp.texi (Argp): Reword argp_parse description slightly.
5
6 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
7
8         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
9         (FE_UPWARD, FE_DOWNWARD): Don't define.
10         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
11         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
12
13         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
14         reading it.
15         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
16         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17
18 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
19
20         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
22         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
23         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
24
25 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
26
27         [BZ #14117]
28         * sysdeps/i386/fpu/bits/fenv.h: Removed.
29         * sysdeps/i386/fpu/Implies: New file.
30         * sysdeps/x86_64/fpu/Implies: Likewise.
31         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
32         * sysdeps/x86/fpu/bits/fenv.h: This.
33
34         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
35         __SSE_MATH__.
36
37 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
38
39         [BZ #14134]
40         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
41         character 0xffff that matches the last element of the
42         conversion table.
43
44 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
45
46         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
47         fmodl commit.
48
49 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
50
51         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
52         values higher than 25.6283.
53
54 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
55
56         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
57         subnormal exponent extraction and add some __builtin_expect.
58         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
59         Fix for subnormal mantissa calculation.
60
61 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
62
63         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
64         cpu2 is -1 and errno is not ENOSYS.
65
66 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
67
68         [BZ #14117]
69         * sysdeps/i386/i486/bits/string.h: Renamed to ...
70         * sysdeps/x86/bits/string.h: This.
71         * sysdeps/x86_64/bits/string.h: Removed.
72
73         * sysdeps/i386/i486/bits/string.h: Define inline functions only
74         if not compiling for x86-64, but compiling for >= i486.
75
76         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
77         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
78
79         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
80         New macro from Linux kernel 3.4.0.
81         (FP_XSTATE_MAGIC2): Likewise.
82         (FP_XSTATE_MAGIC2_SIZE): Likewise.
83         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
84         (struct _fpx_sw_bytes): New struct.
85         (struct _xsave_hdr): Likewise.
86         (struct _ymmh_state): Likewise.
87         (struct _xstate): Likewise.
88
89         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
90         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
91         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
92         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
93         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
94         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
95
96         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
97         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
98         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
99         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
100         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
101         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
102
103 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
104
105         [BZ #13743]
106         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
107         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
108         (sysdep_headers): Include sys/platform/ppc.h.
109         * sysdeps/powerpc/test-gettimebase.c: Test for
110         __ppc_get_timebase() to catch future ISA opcode/insn changes.
111         * manual/Makefile (appendices): Include platform.texi.
112         * manual/contrib.texi (Contributors): Update @node pointers.
113         * manual/maint.texi (Maintenance): Likewise.
114         (Platform): New node.
115         * manual/platform.texi: New file.  Document the new features.
116
117 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
118             Jakub Jelinek  <jakub@redhat.com>
119
120         [BZ #14188]
121         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
122         where __builtin_expect is unavailable.
123
124 2012-06-03  David S. Miller  <davem@davemloft.net>
125
126         * stdlib/longlong.h: Updated from GCC.
127
128 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
129
130         [BZ #14042]
131         * sysdeps/powerpc/powerpc32/mcount.c: New file.
132         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
133         __mcount_internal.
134         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
135         (GLIBC_2.16): Likewise.
136
137 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
138
139         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
140
141 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
142
143         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
144         (default-abi): New variable.
145         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
146         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
147         variable.
148         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
149         Likewise.
150         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
151         Likewise.
152         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
153         Likewise.
154
155         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
156         definition.  Document in comment.
157
158 2012-06-01  David S. Miller  <davem@davemloft.net>
159
160         * stdlib/longlong.h: Updated from GCC.
161
162 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
163
164         [BZ #14117]
165         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
166         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
167         sys/debugreg.h sys/io.h here.
168         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
169         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
170         sys/io.h.
171         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
172         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
173         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
174         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
175         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
176         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
177
178         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
179         Define only if __x86_64__ is defined.
180
181 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
182
183         [BZ #14048]
184         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
185         Use int64_t for variable i.
186         * math/libm-test.inc (fmod_test): Add more tests.
187
188         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
189         z computation is not scheduled after fetestexcept.
190         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
191         Use math_force_eval instead of asm to ensure calculation scheduled
192         before exception test.
193         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
194         Ensure a1 + u.d computation is not scheduled after fetestexcept.
195
196 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
197
198         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
199         computation is not scheduled after fetestexcept.
200
201 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
202
203         [BZ #14117]
204         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
205         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
206
207 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
208
209         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
210         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
211
212 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
213
214         [BZ #14117]
215         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
216         <bits/wordsize.h>.
217         (__WCHAR_MIN): Support __WORDSIZE == 64.
218         (__WCHAR_MAX): Likewise.
219
220         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
221         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
222
223         [BZ #14183]
224         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
225         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
226
227         [BZ #14117]
228         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
229         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
230
231         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
232         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
233
234         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
235         Defined to 1 if __x86_64__ isn't defined.
236         (_STAT_VER_LINUX_OLD): New.
237         (st_atime): Remove duplicate.
238         (st_mtime): Likewise.
239         (st_ctime): Likewise.
240
241 2012-05-31  David S. Miller  <davem@davemloft.net>
242
243         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
244         entries.
245
246 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
247
248         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
249         gen-libm-test.pl.
250
251         [BZ #14132]
252         * elf/dl-reloc.c: Include <_itoa.h>.
253         (_dl_reloc_bad_type): Remove use of INTUSE.
254         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
255         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
256         * stdio-common/psiginfo.c (psiginfo): Likewise.
257         * stdio-common/psignal.c (psignal): Likewise.
258         * string/strsignal.c (strsignal): Likewise.
259         * include/signal.h (_sys_siglist): Declare hidden proto.
260         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
261         INTVARDEF with libc_hidden_data_def.
262         * stdio-common/itoa-udigits.c: Likewise.
263         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
264         (_itoa_lower_digits_internal): Remove declaration.
265         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
266         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
267         (_sys_sigabbrev_internal): Remove aliases.
268         (_sys_siglist): Define hidden alias.
269
270 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
271
272         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
273         bits/sysctl.h.
274
275 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
276
277         [BZ #14117]
278         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
279         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
280
281         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
282         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
283         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
284         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
285         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
286         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
287
288         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
289         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
290         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
291
292         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
293         with __addr.
294         (insw): Likewise.
295         (insl): Likewise.
296         (outsb): Likewise.
297         (outsw): Likewise.
298         (outsl): Likewise.
299
300         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
301         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
302         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
303
304         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
305         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
306         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
307         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
308         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
309         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
310
311         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
312         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
313
314         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
315         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
316
317         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
318         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
319         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
320
321         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
322         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
323         to ...
324         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
325
326         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
327         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
328         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
329
330         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
331         for x86-64.
332         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
333
334 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
335
336         * math/math.h (M_El): Use two more decimal places.
337         (M_LOG2El): Likewise.
338         (M_LOG10El): Likewise.
339         (M_LN2l): Likewise.
340         (M_LN10l): Likewise.
341         (M_PIl): Likewise.
342         (M_PI_2l): Likewise.
343         (M_PI_4l): Likewise.
344         (M_1_PIl): Likewise.
345         (M_2_PIl): Likewise.
346         (M_2_SQRTPIl): Likewise.
347         (M_SQRT2l): Likewise.
348         (M_SQRT1_2l): Likewise.
349
350 2012-05-31  David S. Miller  <davem@davemloft.net>
351
352         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
353         values between float registers.
354         * sysdeps/sparc/sparc64/memset.S: Likewise.
355         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
356
357 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
358
359         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
360         -D_FORTIFY_SOURCE=1.
361         (CPPFLAGS-tst-longjmp_chk.c): Define.
362         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
363         (CPPFLAGS-tst-longjmp_chk2.c): Define.
364         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
365         CFLAGS-tst-wchar-h.c.
366
367 2012-05-31  Marek Polacek  <polacek@redhat.com>
368
369         [BZ #14132]
370         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
371         __endmntent_internal): Remove declaration.
372         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
373         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
374         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
375
376 2012-05-30  David S. Miller  <davem@davemloft.net>
377
378         * sysdeps/sparc/sparc32/soft-fp/q_util.c
379         (___Q_simulate_exceptions): Use real FP ops rather than writing
380         into the %fsr.
381         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
382         Likewise.
383
384 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
385
386         [BZ #14117]
387         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
388         * sysdeps/x86/bits/xtitypes.h: This.
389
390         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
391         * sysdeps/x86/bits/wordsize.h: This.
392
393         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
394         * sysdeps/x86/bits/huge_vall.h: This.
395
396         * sysdeps/i386/bits/select.h: Removed.
397         * sysdeps/x86_64/bits/select.h: Renamed to ...
398         * sysdeps/x86/bits/select.h: This.
399
400         * sysdeps/i386/bits/setjmp.h: Removed.
401         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
402         * sysdeps/x86/bits/setjmp.h: This.
403
404         * sysdeps/i386/bits/mathdef.h: Removed.
405         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
406         * sysdeps/x86/bits/mathdef.h: This.
407
408 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
409
410         [BZ #14132]
411         * include/sys/socket.h (__connect_internal)
412         (__libc_sa_len_internal): Remove declaration.
413         (__connect, __libc_sa_len): Declare hidden_proto.
414         (SA_LEN): Remove use of INTUSE.
415         * socket/connect.c: Add libc_hidden_def.
416         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
417         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
418         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
419         alias.
420         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
421         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
422         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
423         of adding _internal alias.
424
425 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
426
427         [BZ #14117]
428         * sysdeps/i386/bits/link.h: Removed.
429         * sysdeps/i386/bits/linkmap.h: Likewise.
430         * sysdeps/x86_64/bits/link.h: Renamed to ...
431         * sysdeps/x86/bits/link.h: This.
432         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
433         * sysdeps/x86/bits/linkmap.h: This.
434
435         * sysdeps/i386/bits/endian.h: Removed.
436         * sysdeps/x86_64/bits/endian.h: Renamed to ...
437         * sysdeps/x86/bits/endian.h: This.
438
439         * sysdeps/i386/bits/byteswap.h: Removed.
440         * sysdeps/i386/bits/byteswap-16.h: Likewise.
441         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
442         * sysdeps/x86/bits/byteswap.h: This.
443         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
444         * sysdeps/x86/bits/byteswap-16.h: This.
445         * sysdeps/i386/Implies: Add x86.
446         * sysdeps/x86_64/Implies: Likewise.
447
448 2012-05-30  David S. Miller  <davem@davemloft.net>
449
450         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
451         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
452         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
453         (FP_TRAPPING_EXCEPTIONS): Define.
454         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
455         (FP_TRAPPING_EXCEPTIONS): Define.
456         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
457         subnormals only when inexact has been signalled or underflow
458         exceptions are enabled.
459         (_FP_PACK_CANONICAL): Likewise.
460
461 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
462
463         [BZ #14183]
464         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
465         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
466
467 2012-05-30  Richard Henderson  <rth@twiddle.net>
468
469         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
470         with #ifndef NOT_IN_libc.
471
472         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
473         marked to avoid plt entry.
474
475 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
476
477         [BZ #14112]
478         * Makeconfig (default-abi): New macro.
479         (abi-includes): Likewise.
480         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
481         $(abi-$(default-abi)-lib-soname) for soname if defined.
482         ($(common-objpfx)gnu/lib-names.stmp): Generate from
483         abi-variants.
484         * Makefile (installed-stubs): Likewise.
485         * include/stubs-biarch.h: Removed.
486         * scripts/lib-names.awk: Only handle one library at a time.
487         * scripts/soversions.awk: Remove WORDSIZE support.
488         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
489         entries.
490         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
491         Removed.
492         (syscall-list-default-condition): Likewise.
493         (syscall-list-default-condition): Likewise.
494         (syscall-list-includes): Likewise.
495         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
496         syscall-list-* with abi-*.  Handle undefined abi-variants.
497         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
498         * sysdeps/unix/sysv/linux/i386/Implies: New file.
499         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
500         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
501         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
502         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
503         Removed.
504         (syscall-list-32-options): Likewise.
505         (syscall-list-32-condition): Likewise.
506         (syscall-list-64-options): Likewise.
507         (syscall-list-64-condition): Likewise.
508         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
509         macro.
510         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
511         Renamed to ...
512         (abi-*): This.
513         (abi-64-ld-soname): New macro.
514         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
515         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
516         Renamed to ...
517         (abi-*): This.
518         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
519         * sysdeps/x86_64/x32/shlib-versions: Likewise.
520
521 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
522
523         * sysdeps/unix/sysv/linux/kernel-features.h
524         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
525         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
526         include <kernel-features.h>.
527         [!__NR_ftruncate64]: Remove conditional code.
528         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
529         [__NR_ftruncate64]: Make code unconditional.
530         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
531         * sysdeps/unix/sysv/linux/truncate64.c: Do not
532         include <kernel-features.h>.
533         [!__NR_ftruncate64]: Remove conditional code.
534         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
535         [__NR_ftruncate64]: Make code unconditional.
536         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
537         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
538         include <kernel-features.h>.
539         [!__NR_ftruncate64]: Remove conditional code.
540         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
541         [__NR_ftruncate64]: Make code unconditional.
542         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
543         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
544         include <kernel-features.h>.
545         [!__NR_ftruncate64]: Remove conditional code.
546         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
547         [__NR_ftruncate64]: Make code unconditional.
548         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
549
550         * configure.in (libc_cv_fpie): Weaken to a compile test using
551         LIBC_TRY_CC_OPTION.
552         * configure: Regenerated.
553
554 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
555
556         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
557         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
558         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
559         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
560         Refreshed.
561         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
562         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
563         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
564         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
565         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
566         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
567         Refreshed.
568
569 2012-05-27  David S. Miller  <davem@davemloft.net>
570
571         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
572         (___Q_zero): New.
573         (__Q_simulate_exceptions): Return void.  Change to simulate
574         exceptions by writing into the %fsr.
575         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
576         (__Qp_handle_exceptions): Likewise.
577         (numbers): Delete.
578         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
579         __Qp_handle_exceptions.
580         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
581         __Qp_handle_exceptions.
582         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
583         as unused and give dummy FP_RND_NEAREST initializer.
584         (FP_INHIBIT_RESULTS): Define.
585         (___Q_simulate_exceptions): Update declaration.
586         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
587         formatting.
588         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
589         as unused and give dummy FP_RND_NEAREST initializer.
590         (__Qp_handle_exceptions): Update declaration.
591         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
592         formatting.
593
594 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
595
596         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
597         the temporary FPU control word.
598         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
599         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
600         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
601         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
602         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
603         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
604         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
605         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
606         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
607         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
608         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
609
610 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
611
612         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
613         fields.
614
615 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
616
617         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
618         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
619         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
620         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
621         Likewise.
622         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
623         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
624         Likewise.
625
626 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
627
628         * po/h.po: Update from translation team.
629
630 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
631
632         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
633
634         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
635         handling of denormals.
636         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
637         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
638         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
639         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
640         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
641         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
642         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
643         Likewise.
644
645 2012-05-26  Marek Polacek  <polacek@redhat.com>
646
647         [BZ #14152]
648         * math/libm-test.inc (fma_test): Don't always expect underflow
649         exception.
650
651 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
652
653         [BZ #12416]
654         * elf/tst-execstack.c: Include stackinfo.h.
655         (do_test): Adjust test case to ensure that pthread_getattr_np
656         behaviour remains the same after marking stack executable.
657
658 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
659
660         * sysdeps/unix/sysv/linux/kernel-features.h
661         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
662         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
663         kernel-features.h.
664         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
665         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
666         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
667         kernel-features.h.
668         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
669         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
670
671 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
672
673         * configure.in: Define the default includes to being none.
674         * configure: Regenerated.
675
676 2012-05-25  Roland McGrath  <roland@hack.frob.com>
677
678         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
679         * sysdeps/x86_64/setjmp.S: Likewise.
680         * sysdeps/i386/bsd-setjmp.S: Likewise.
681         * sysdeps/i386/bsd-_setjmp.S: Likewise.
682         * sysdeps/i386/setjmp.S: Likewise.
683         * sysdeps/i386/__longjmp.S: Likewise.
684         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
685         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
686
687         * include/stap-probe.h: New file.
688         * configure.in: Handle --enable-systemtap.
689         * configure: Regenerated.
690         * config.h.in (USE_STAP_PROBE): New #undef.
691         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
692         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
693         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
694
695 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
696
697         [BZ #13717]
698         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
699         to 2.4.0 where earlier.
700         * sysdeps/unix/sysv/linux/configure: Regenerated.
701         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
702         <kernel-features.h>.
703         [__ASSUME_32BITUIDS]: Make code unconditional.
704         [!__ASSUME_32BITUIDS]: Remove conditional code.
705         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
706         <kernel-features.h>.
707         [__ASSUME_32BITUIDS]: Make code unconditional.
708         [!__ASSUME_32BITUIDS]: Remove conditional code.
709         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
710         [__ASSUME_32BITUIDS]: Make code unconditional.
711         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
712         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
713         <kernel-features.h>.
714         [__ASSUME_32BITUIDS]: Make code unconditional.
715         [!__ASSUME_32BITUIDS]: Remove conditional code.
716         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
717         <kernel-features.h>.
718         [__ASSUME_32BITUIDS]: Make code unconditional.
719         [!__ASSUME_32BITUIDS]: Remove conditional code.
720         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
721         <kernel-features.h>.
722         [__ASSUME_32BITUIDS]: Make code unconditional.
723         [!__ASSUME_32BITUIDS]: Remove conditional code.
724         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
725         <kernel-features.h>.
726         [__ASSUME_32BITUIDS]: Make code unconditional.
727         [!__ASSUME_32BITUIDS]: Remove conditional code.
728         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
729         <kernel-features.h>.
730         [__ASSUME_32BITUIDS]: Make code unconditional.
731         [!__ASSUME_32BITUIDS]: Remove conditional code.
732         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
733         <kernel-features.h>.
734         [__ASSUME_32BITUIDS]: Make code unconditional.
735         [!__ASSUME_32BITUIDS]: Remove conditional code.
736         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
737         <kernel-features.h>.
738         [__ASSUME_32BITUIDS]: Make code unconditional.
739         [!__ASSUME_32BITUIDS]: Remove conditional code.
740         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
741         <kernel-features.h>.
742         [__ASSUME_32BITUIDS]: Make code unconditional.
743         [!__ASSUME_32BITUIDS]: Remove conditional code.
744         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
745         <kernel-features.h>.
746         [__ASSUME_32BITUIDS]: Make code unconditional.
747         [!__ASSUME_32BITUIDS]: Remove conditional code.
748         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
749         <kernel-features.h>.
750         [__ASSUME_32BITUIDS]: Make code unconditional.
751         [!__ASSUME_32BITUIDS]: Remove conditional code.
752         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
753         <kernel-features.h>.
754         [__NR_setresgid] (__setresgid): Do not declare.
755         [__ASSUME_32BITUIDS]: Make code unconditional.
756         [!__ASSUME_32BITUIDS]: Remove conditional code.
757         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
758         <kernel-features.h>.
759         [__NR_setresuid] (__setresuid): Do not declare.
760         [__ASSUME_32BITUIDS]: Make code unconditional.
761         [!__ASSUME_32BITUIDS]: Remove conditional code.
762         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
763         <kernel-features.h>.
764         [__ASSUME_32BITUIDS]: Make code unconditional.
765         [!__ASSUME_32BITUIDS]: Remove conditional code.
766         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
767         <kernel-features.h>.
768         [__ASSUME_32BITUIDS]: Make code unconditional.
769         [!__ASSUME_32BITUIDS]: Remove conditional code.
770         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
771         <kernel-features.h>.
772         [__ASSUME_32BITUIDS]: Make code unconditional.
773         [!__ASSUME_32BITUIDS]: Remove conditional code.
774         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
775         <kernel-features.h>.
776         [__ASSUME_32BITUIDS]: Make code unconditional.
777         [!__ASSUME_32BITUIDS]: Remove conditional code.
778         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
779         <kernel-features.h>.
780         [__ASSUME_32BITUIDS]: Make code unconditional.
781         [!__ASSUME_32BITUIDS]: Remove conditional code.
782         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
783         <kernel-features.h>.
784         [__ASSUME_32BITUIDS]: Make code unconditional.
785         [!__ASSUME_32BITUIDS]: Remove conditional code.
786         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
787         <kernel-features.h>.
788         [__ASSUME_32BITUIDS]: Make code unconditional.
789         [!__ASSUME_32BITUIDS]: Remove conditional code.
790         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
791         <kernel-features.h>.
792         [__ASSUME_32BITUIDS]: Make code unconditional.
793         [!__ASSUME_32BITUIDS]: Remove conditional code.
794         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
795         <kernel-features.h>.
796         [__ASSUME_32BITUIDS]: Make code unconditional.
797         [!__ASSUME_32BITUIDS]: Remove conditional code.
798         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
799         <kernel-features.h>.
800         [__ASSUME_32BITUIDS]: Make code unconditional.
801         [!__ASSUME_32BITUIDS]: Remove conditional code.
802         * sysdeps/unix/sysv/linux/kernel-features.h
803         (__ASSUME_SETRESUID_SYSCALL): Remove.
804         (__ASSUME_SETRESGID_SYSCALL): Likewise.
805         (__ASSUME_32BITUIDS): Likewise.
806         (__ASSUME_LDT_WORKS): Likewise.
807         (__ASSUME_O_DIRECTORY): Likewise.
808         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
809         architecture but not kernel version.
810         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
811         (__ASSUME_MMAP2_SYSCALL): Likewise.
812         (__ASSUME_STAT64_SYSCALL): Likewise.
813         (__ASSUME_IPC64): Likewise.
814         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
815         <kernel-features.h>.
816         [__ASSUME_32BITUIDS]: Make code unconditional.
817         [!__ASSUME_32BITUIDS]: Remove conditional code.
818         * sysdeps/unix/sysv/linux/opendir.c: Do not include
819         <kernel-features.h>.
820         [__ASSUME_O_DIRECTORY]: Make code unconditional.
821         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
822         132096]: Remove conditional code.
823         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
824         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
825         <kernel-features.h>.
826         [__ASSUME_32BITUIDS]: Make code unconditional.
827         [!__ASSUME_32BITUIDS]: Remove conditional code.
828         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
829         <kernel-features.h>.
830         [__ASSUME_32BITUIDS]: Make code unconditional.
831         [!__ASSUME_32BITUIDS]: Remove conditional code.
832         * sysdeps/unix/sysv/linux/setegid.c: Do not include
833         <kernel-features.h>.
834         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
835         unconditional.
836         (__setresgid): Do not declare.
837         [__ASSUME_32BITUIDS]: Make code unconditional.
838         [!__ASSUME_32BITUIDS]: Remove conditional code.
839         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
840         <kernel-features.h>.
841         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
842         unconditional.
843         (__setresuid): Do not declare.
844         [__ASSUME_32BITUIDS]: Make code unconditional.
845         [!__ASSUME_32BITUIDS]: Remove conditional code.
846         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
847         <kernel-features.h>.
848         [__ASSUME_32BITUIDS]: Make code unconditional.
849         [!__ASSUME_32BITUIDS]: Remove conditional code.
850         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
851         <kernel-features.h>.
852         [__ASSUME_32BITUIDS]: Make code unconditional.
853         [!__ASSUME_32BITUIDS]: Remove conditional code.
854
855 2012-05-25  Richard Henderson  <rth@twiddle.net>
856
857         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
858         dl_hwcap to ifunc resolver.
859         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
860         elf_ifunc_invoke.
861         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
862         dl_hwcap to ifunc resolver.
863         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
864
865 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
866
867         [BZ #14153]
868         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
869         for |x| <= 2**-26, not 2**-57.
870         * math/libm-test.inc (acos_test): Do not allow spurious underflow
871         exception.
872
873 2012-05-24  Jeff Law  <law@redhat.com>
874
875         * stdio-common/Makefile (tests): Add bug25.
876         * stdio-common/bug25.c: New test.
877
878 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
879
880         [BZ #13576]
881         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
882         multiple of MALLOC_ALIGNMENT in size.
883         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
884
885 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
886
887         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
888         Require >= 256.
889         (FILENAME_MAX): Use macro-int-constant.
890         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
891         (_IOFBF): Use macro-int-constant.
892         (_IOLBF): Likewise.
893         (_IONBF): Likewise.
894         (SEEK_CUR): Likewise.
895         (SEEK_END): Likewise.
896         (SEEK_SET): Likewise.
897         (TMP_MAX): Likewise.
898         (EOF): Use macro-int-constant.  Require < 0.
899         (NULL): Use macro-constant.  Require == 0.
900         (stdin): Require type to be FILE *.
901         (stdout): Likewise.
902         (stderr): Likewise.
903         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
904         macro-int-constant.
905         (EXIT_SUCCESS): Likewise.
906         (NULL): Use macro-constant.  Require == 0.
907         (RAND_MAX): Use macro-int-constant.
908         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
909         [C99-based standards] (strtof): Require function.
910         [C99-based standards] (strtold): Likewise.
911         [C99-based standards] (strtoll): Likewise.
912         [C99-based standards] (strtoull): Likewise.
913         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
914         [ISO || ISO99 || ISO11] (limits.h): Likewise.
915         [ISO || ISO99 || ISO11] (math.h): Likewise.
916         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
917         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
918         [ISO || ISO99 || ISO11] (*_t): Do not allow.
919
920 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
921
922         [BZ #14132]
923         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
924         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
925         * intl/dgettext.c (DCGETTEXT): Likewise.
926         * intl/gettext.c (DCGETTEXT): Likewise.
927         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
928         * posix/regex_internal.h (gettext): Likewise.
929         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
930         Remove declaration.
931         * include/argz.h (__argz_count_internal)
932         (__argz_stringify_internal): Remove declaration.
933         (__argz_count, __argz_stringify): Declare hidden proto.
934         * intl/dcgettext.c: Remove use of INTDEF.
935         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
936         * string/argz-stringify.c: Likewise.
937         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
938         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
939         Declare hidden proto.
940         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
941         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
942         Declare hidden proto.
943         * include/stdio.h (__asprintf_internal): Don't declare.
944         (__asprintf): Don't define as macro.  Declare hidden proto.
945         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
946         (__fsetlocking): Declare hidden proto.
947         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
948         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
949         hidden proto.
950         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
951         (_IO_setlinebuf): Remove use of INTUSE.
952         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
953         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
954         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
955         Remove declaration.
956         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
957         (_IO_do_flush): Remove use of INTUSE.
958         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
959         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
960         (_IO_adjust_column, _IO_least_wmarker)
961         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
962         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
963         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
964         (_IO_default_doallocate, _IO_wdefault_doallocate)
965         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
966         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
967         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
968         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
969         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
970         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
971         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
972         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
973         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
974         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
975         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
976         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
977         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
978         proto.
979         (_IO_flush_all_internal, _IO_adjust_column_internal)
980         (_IO_default_uflow_internal, _IO_default_finish_internal)
981         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
982         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
983         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
984         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
985         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
986         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
987         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
988         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
989         (_IO_file_close_internal, _IO_file_close_it_internal)
990         (_IO_file_underflow_internal, _IO_file_overflow_internal)
991         (_IO_file_init_internal, _IO_file_attach_internal)
992         (_IO_file_fopen_internal, _IO_file_read_internal)
993         (_IO_file_sync_internal, _IO_file_seek_internal)
994         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
995         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
996         (_IO_str_underflow_internal, _IO_str_overflow_internal)
997         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
998         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
999         (_IO_list_all_internal, _IO_link_in_internal)
1000         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
1001         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
1002         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
1003         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
1004         (_IO_do_write_internal, _IO_padn_internal)
1005         (_IO_getline_info_internal, _IO_getline_internal)
1006         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
1007         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
1008         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
1009         (_IO_vfscanf_internal, _IO_vfprintf_internal)
1010         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
1011         (_IO_init_internal, _IO_un_link_internal): Don't declare.
1012         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
1013         with libc_hidden_ver, remove use of INTUSE.
1014         * libio/genops.c: Likewise.
1015         * libio/freopen.c: Likewise.
1016         * libio/freopen64.c: Likewise.
1017         * libio/iofclose.c: Likewise.
1018         * libio/iofdopen.c: Likewise.
1019         * libio/iofflush.c: Likewise.
1020         * libio/iofflush_u.c: Likewise.
1021         * libio/iofgets.c: Likewise.
1022         * libio/iofgets_u.c: Likewise.
1023         * libio/iofopen.c: Likewise.
1024         * libio/iofopncook.c: Likewise.
1025         * libio/iofread.c: Likewise.
1026         * libio/iofread_u.c: Likewise.
1027         * libio/ioftell.c: Likewise.
1028         * libio/iofwrite.c: Likewise.
1029         * libio/iogetline.c: Likewise.
1030         * libio/iogets.c: Likewise.
1031         * libio/iogetwline.c: Likewise.
1032         * libio/iopadn.c: Likewise.
1033         * libio/iopopen.c: Likewise.
1034         * libio/ioseekoff.c: Likewise.
1035         * libio/ioseekpos.c: Likewise.
1036         * libio/iosetbuffer.c: Likewise.
1037         * libio/iosetvbuf.c: Likewise.
1038         * libio/ioungetc.c: Likewise.
1039         * libio/ioungetwc.c: Likewise.
1040         * libio/iovdprintf.c: Likewise.
1041         * libio/iovsprintf.c: Likewise.
1042         * libio/iovsscanf.c: Likewise.
1043         * libio/memstream.c: Likewise.
1044         * libio/obprintf.c: Likewise.
1045         * libio/oldfileops.c: Likewise.
1046         * libio/oldiofclose.c: Likewise.
1047         * libio/oldiofdopen.c: Likewise.
1048         * libio/oldiofopen.c: Likewise.
1049         * libio/oldiopopen.c: Likewise.
1050         * libio/oldstdfiles.c: Likewise.
1051         * libio/putc.c: Likewise.
1052         * libio/setbuf.c: Likewise.
1053         * libio/setlinebuf.c: Likewise.
1054         * libio/stdfiles.c: Likewise.
1055         * libio/strops.c: Likewise.
1056         * libio/vasprintf.c: Likewise.
1057         * libio/vscanf.c: Likewise.
1058         * libio/vsnprintf.c: Likewise.
1059         * libio/vswprintf.c: Likewise.
1060         * libio/wfiledoalloc.c: Likewise.
1061         * libio/wfileops.c: Likewise.
1062         * libio/wgenops.c: Likewise.
1063         * libio/wmemstream.c: Likewise.
1064         * libio/wstrops.c: Likewise.
1065         * libio/__fpurge.c: Likewise.
1066         * libio/__fsetlocking.c: Likewise.
1067         * assert/assert.c: Likewise.
1068         * debug/fgets_chk.c: Likewise.
1069         * debug/fgets_u_chk.c: Likewise.
1070         * debug/fread_chk.c: Likewise.
1071         * debug/fread_u_chk.c: Likewise.
1072         * debug/gets_chk.c: Likewise.
1073         * debug/obprintf_chk.c: Likewise.
1074         * debug/vasprintf_chk.c: Likewise.
1075         * debug/vdprintf_chk.c: Likewise.
1076         * debug/vsnprintf_chk.c: Likewise.
1077         * debug/vsprintf_chk.c: Likewise.
1078         * malloc/mtrace.c: Likewise.
1079         * misc/error.c: Likewise.
1080         * misc/syslog.c: Likewise.
1081         * stdio-common/asprintf.c: Likewise.
1082         * stdio-common/fxprintf.c: Likewise.
1083         * stdio-common/getw.c: Likewise.
1084         * stdio-common/isoc99_fscanf.c: Likewise.
1085         * stdio-common/isoc99_scanf.c: Likewise.
1086         * stdio-common/isoc99_vfscanf.c: Likewise.
1087         * stdio-common/isoc99_vscanf.c: Likewise.
1088         * stdio-common/isoc99_vsscanf.c: Likewise.
1089         * stdio-common/printf-prs.c: Likewise.
1090         * stdio-common/printf_fp.c: Likewise.
1091         * stdio-common/printf_fphex.c: Likewise.
1092         * stdio-common/printf_size.c: Likewise.
1093         * stdio-common/putw.c: Likewise.
1094         * stdio-common/scanf.c: Likewise.
1095         * stdio-common/sprintf.c: Likewise.
1096         * stdio-common/tmpfile.c: Likewise.
1097         * stdio-common/vfprintf.c: Likewise.
1098         * stdio-common/vfscanf.c: Likewise.
1099         * stdlib/strfmon_l.c: Likewise.
1100         * sunrpc/openchild.c: Likewise.
1101         * sunrpc/xdr_stdio.c: Likewise.
1102         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
1103         * sysdeps/mach/hurd/tmpfile.c: Likewise.
1104
1105 2012-05-24  Roland McGrath  <roland@hack.frob.com>
1106
1107         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1108
1109         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
1110         in the third column, to generate for the shared library an IFUNC
1111         that uses _dl_vdso_vsym.
1112         * Makerules (COMPILE.c, compile-stdin.c): New variables.
1113         * Makeconfig (object-suffixes-noshared): New variable.
1114
1115         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
1116         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
1117         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
1118         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
1119
1120         [BZ #14132]
1121         * include/sys/time.h (__gettimeofday): Remove macro.
1122         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
1123         * time/gettimeofday.c (__gettimeofday): Remove #undef.
1124         Remove INTDEF.
1125         (__gettimeofday): Add libc_hidden_def.
1126         (gettimeofday): Add libc_hidden_weak.
1127         * sysdeps/mach/gettimeofday.c: Likewise.
1128         * sysdeps/posix/gettimeofday.c: Likewise.
1129         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
1130         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
1131         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
1132         (__gettimeofday_internal): Remove strong_alias.
1133         (__gettimeofday): Add libc_hidden_def.
1134         (gettimeofday): Add libc_hidden_weak.
1135         * sysdeps/unix/syscalls.list (gettimeofday):
1136         Remove __gettimeofday_internal alias.
1137
1138 2012-05-24  Daniel Jacobowitz  <drow@false.org>
1139             H.J. Lu  <hongjiu.lu@intel.com>
1140
1141         [BZ #12495]
1142         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
1143         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
1144         (largebin_index_32_big): New.
1145         (largebin_index): Use it for 16-byte alignment.
1146         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
1147         correction with front_misalign.
1148
1149 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1150
1151         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
1152         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
1153         Likewise.
1154         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
1155         Likewise.
1156         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1157         Likewise.
1158         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
1159         Likewise.
1160         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
1161         Likewise.
1162         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
1163         Likewise.
1164         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
1165         Likewise.
1166         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1167         Likewise.
1168         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
1169         Likewise.
1170         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
1171         Likewise.
1172         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
1173         Likewise.
1174         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
1175         Likewise.
1176
1177         * scripts/data/c++-types-x32-linux-gnu.data: New file.
1178         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
1179
1180 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
1181
1182         [BZ #10846]
1183         [BZ #14036]
1184         * math/libm-test.inc (exp_test): Add test from bug 14036.
1185         (pow_test): Add test from bug 10846.
1186
1187         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
1188         and other flags.
1189         (special_function): Do not include flags in test name.
1190         (parse_args): Likewise.
1191         * sysdeps/i386/fpu/libm-test-ulps: Update.
1192         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
1193         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
1194         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
1195         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1196
1197         * math/gen-libm-test.pl (%beautify): Add entries for underflow
1198         exceptions.
1199         * math/libm-test.inc ("Philosophy"): Update comment about
1200         exception testing.
1201         (UNDERFLOW_EXCEPTION): New macro.
1202         (UNDERFLOW_EXCEPTION_OK): Likewise.
1203         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
1204         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
1205         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
1206         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
1207         (INVALID_EXCEPTION_OK): Update value.
1208         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
1209         (OVERFLOW_EXCEPTION_OK): Likewise.
1210         (IGNORE_ZERO_INF_SIGN): Likewise.
1211         (test_exceptions): Handle underflow exceptions.
1212         (acos_test): Update for underflow exception expectations.
1213         (cexp_test): Likewise.
1214         (clog_test): Likewise.
1215         (clog10_test): Likewise.
1216         (csqrt_test): Likewise.
1217         (ctan_test): Likewise.
1218         (ctanh_test): Likewise.
1219         (exp_test): Likewise.
1220         (exp10_test): Likewise.
1221         (exp2_test): Likewise.
1222         (expm1_test): Likewise.
1223         (fma_test): Likewise.
1224         (j0_test): Likewise.
1225         (jn_test): Likewise.
1226         (nexttoward_test): Likewise.
1227         (pow_test): Likewise.
1228         (scalbn_test): Likewise.
1229         (scalbln_test): Likewise.
1230         (tan_test): Likewise.
1231         (y1_test): Likewise.
1232         * sysdeps/i386/fpu/libm-test-ulps: Update.
1233         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1234
1235 2012-05-23  David S. Miller  <davem@davemloft.net>
1236
1237         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1238         (__libc_sigaction): Remove unused local variables.
1239
1240 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1241
1242         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
1243
1244 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1245
1246         mktime: avoid signed integer overflow
1247         * time/mktime.c (__mktime_internal): Do not mishandle the case
1248         where diff == INT_MIN.
1249
1250         mktime: simplify computation of average
1251         * time/mktime.c (ranged_convert): Use new time_t_avg function
1252         instead of rolling our own (probably-slower) code.
1253
1254         mktime: do not assume signed right shift propagates sign bit
1255         * time/mktime.c (isdst_differ): New static function.
1256         (__mktime_internal): No need to normalize tm_isdst now.
1257         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
1258         tm_isdst values.
1259
1260         mktime: merge another wrapv change from gnulib
1261         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
1262         from some compilers.
1263
1264         mktime: remove incorrect attempt at unusual arithmetics
1265         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
1266         The code didn't really work on such machines anyway.
1267         (TYPE_MINIMUM): Assume two's complement.
1268         (twos_complement_arithmetic): Verify that long_int and time_t
1269         are two's complement (or unsigned, in the latter case).
1270
1271         mktime: check signed shifts on long_int and time_t, too
1272         * time/mktime.c (SHR): Check that shifts work as desired
1273         on the types long_int and time_t too, as SHR is used on
1274         such types.
1275
1276         mktime: do not assume 'long' is wide enough
1277         * time/mktime.c (verify): Move decl up.
1278         (long_int): New type.
1279         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
1280         to remove assumption in the code that 'long' is wide enough to
1281         store year values.  This assumption is not true on x32 and on
1282         some non-glibc platforms.
1283
1284         mktime: merge wrapv change from gnulib
1285         * time/mktime.c (WRAPV): New macro.
1286         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
1287         (guess_time_tm, __mktime_internal): Do not assume that signed
1288         integer overflow wraps around; modern compilers generate code
1289         where this assumption is no longer valid.
1290
1291 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1292
1293         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1294         Replace "jmp L(pseudo_end)" with "ret".
1295         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
1296         Likewise.
1297
1298 2012-05-23  Andreas Jaeger  <aj@suse.de>
1299
1300         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
1301         * sysdeps/unix/sysv/linux/poll.c: Remove file.
1302
1303 2012-05-23  Andreas Jaeger  <aj@suse.de>
1304             Maximilian Attems  <max@stro.at>
1305
1306         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
1307         New macros.
1308
1309 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1310
1311         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
1312         code so that pseudo_end is just ret and the stack pointer is
1313         correct also for static library in error case.
1314
1315 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
1316
1317         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
1318         move to syscalls.list.
1319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
1320         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
1321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
1322         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
1323
1324         * manual/install.texi (Running make install): Do not mention Linux
1325         kernel version for which pt_chown is not needed.
1326         (Linux): Do not mention problems with nscd with 2.0 kernels.
1327         * INSTALL: Regenerated.
1328
1329 2012-05-23  Andreas Jaeger  <aj@suse.de>
1330
1331         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
1332         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
1333         macro.
1334         * sysdeps/unix/sysv/linux/s390/bits/mman.h
1335         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1336         * sysdeps/unix/sysv/linux/sh/bits/mman.h
1337         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1338         * sysdeps/unix/sysv/linux/i386/bits/mman.h
1339         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1340         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
1341         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1342         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
1343         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
1344         * sysdeps/unix/sysv/linux/bits/in.h
1345         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
1346
1347 2012-05-22  Roland McGrath  <roland@hack.frob.com>
1348
1349         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
1350         (PREPARE_VERSION): Just use assert instead, it will be elided
1351         under [NDEBUG] anyway.
1352
1353 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1354
1355         * sysdeps/unix/sysv/linux/Makefile: Include
1356         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
1357         (sysdep_routines): Remove sysctl.
1358         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
1359         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
1360         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
1361         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
1362         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
1363
1364 2012-05-22  Andreas Jaeger  <aj@suse.de>
1365
1366         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
1367         that pseudo_end is just ret and the stack pointer is correct also
1368         for static library in error case.
1369
1370 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
1371
1372         [BZ #14122]
1373         * nss/nsswitch.c (defconfig_entries): New variable.
1374         (__nss_database_lookup): Don't leak defconfig entries.
1375         (nss_parse_service_list): Don't leak on error paths.
1376         (free_database_entries): New function.
1377         (free_defconfig): New function.
1378         (free_mem): Move common code to free_database_entries.
1379
1380 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1381
1382         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
1383         Add arch_prctl.
1384         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
1385
1386         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
1387         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
1388         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
1389         New macro.
1390         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
1391         (INTERNAL_SYSCALL_TYPES): Likewise.
1392         (LOAD_ARGS_TYPES_[1-6]): Likewise.
1393         (LOAD_REGS_TYPES_[1-6]): Likewise.
1394         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
1395         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
1396
1397 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1398
1399         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
1400         copysignl for GLIBC_2_0.
1401         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
1402         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
1403         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
1404         logbl for GLIBC_2_0.
1405         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
1406         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
1407
1408 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1409
1410         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
1411         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1412
1413         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
1414         Use "neg %eax".
1415
1416         * time/mktime.c: Update copyright years.
1417
1418 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
1419
1420         mktime: merge comment-quoting-style change from gnulib
1421         * time/mktime.c: Quote 'like this' in comments.
1422         The GNU coding standards suggest that we no longer quote `like this',
1423         as "`" and "'" are typically rendered asymmetrically nowadays.
1424         The typical gnulib style is to quote 'like this' when quoting
1425         code, and "like this" when quoting English.
1426
1427         * time/mktime.c (compile-command): Add "-I.".
1428
1429         mktime: merge mktime-internal.h change from gnulib
1430         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
1431
1432         mktime: merge time_r change from gnulib
1433         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
1434
1435         mktime: merge DEBUG change from gnulib
1436         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
1437         case system <time.h> has a #define.
1438
1439         mktime: merge <sys/types.h> change from gnulib
1440         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
1441         since <time.t> is now guaranteed to define time_t.
1442
1443         mktime: merge HAVE_CONFIG_H change from gnulib
1444         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
1445
1446 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
1447
1448         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1449         Use "neg %eax".
1450
1451         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
1452         __rlim_t cast.
1453         (struct rusage): Use anonymous union to pad each field to
1454         __syscall_slong_t.
1455
1456 2012-05-21  David S. Miller  <davem@davemloft.net>
1457
1458         * Makefules (o-iterator): Remove .s cases.
1459         (compile-command.s): Delete.
1460         (COMPILE.s): Delete.
1461         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
1462
1463 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
1464
1465         * configure.in (libc_cv_predef_stack_protector): Only consider
1466         "foobar" and "__stack_chk_fail" lines in libc_undefs.
1467         * configure: Regenerated.
1468
1469 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1470
1471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
1472         New macro.  Use R*LP on int and pointer.
1473         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
1474         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
1475         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
1476         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
1477
1478         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
1479         [__WORDSIZE_TIME64_COMPAT32] instead of
1480         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
1481         (struct utmp): Likewise.
1482         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
1483         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
1484         Renamed to ...
1485         (__WORDSIZE_TIME64_COMPAT32): This.
1486         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
1487         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
1488         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
1489         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
1490         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
1491         (__WORDSIZE_TIME64_COMPAT32): New macro.
1492
1493 2012-05-21  Andreas Jaeger  <aj@suse.de>
1494
1495         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
1496         only if [SHARED]. Add prototype for __wcschr_ia32.
1497
1498 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1499
1500         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
1501         of %rbp unmolested in the jmp_buf while mangling the low bits.
1502         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
1503         unmolested high bits of %rbp while demangling the low bits.
1504         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
1505
1506 2012-05-21  Andreas Jaeger  <aj@suse.de>
1507
1508         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
1509         * sunrpc/svc_simple.c: Use it for registerrpc.
1510         * sunrpc/xcrypt.c: Use it for passwd2des.
1511
1512         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
1513
1514 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1515
1516         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
1517         Don't define if [__SYSCALL_WORDSIZE != 32].
1518         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
1519         New macro.
1520
1521 2012-05-21  Bruno Haible  <bruno@clisp.org>
1522             Andreas Jaeger  <aj@suse.de>
1523
1524         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
1525         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
1526         inptr and inend for must_buffer_ch.
1527         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
1528         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
1529         * stdio-common/Makefile (tests): Remove bug15.
1530         (bug15-ENV): Remove macro.
1531         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
1532         anymore.
1533
1534 2012-05-19  Andreas Jaeger  <aj@suse.de>
1535             Roland McGrath  <roland@hack.frob.com>
1536
1537         * manual/contrib.texi: Completely rewritten. It contains now an
1538         alphabetical list of contributors and their contributions.
1539
1540 2012-05-21  Richard Henderson  <rth@twiddle.net>
1541
1542         * misc/getauxval.c (__getauxval): Use unsigned long int.
1543         * misc/sys/auxv.h: Include <sys/cdefs.h>.
1544         (getauxval): Use unsigned long int.
1545
1546 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
1547
1548         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
1549
1550 2012-05-21  Roland McGrath  <roland@hack.frob.com>
1551
1552         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
1553         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
1554         __alignof__ (long double).
1555
1556 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1557
1558         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1559
1560 2012-05-20  Richard Henderson  <rth@twiddle.net>
1561
1562         * misc/getauxval.c: New file.
1563         * misc/sys/auxv.h: New file.
1564         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
1565         (routines): Add getauxval.
1566         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
1567         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
1568         * elf/dl-sysdep.c (_dl_auxv): Remove.
1569         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
1570         * elf/dl-support.c (_dl_auxv): New variable.
1571         (_dl_aux_init): Initialize it.
1572         * manual/startup.texi (Auxiliary Vector): New node.
1573         * sysdeps/generic/bits/hwcap.h: New file.
1574         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
1575         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
1576         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
1577         * sysdeps/sparc/sysdep.h: ... here.  Include it.
1578         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
1579         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
1580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1581         Update.
1582         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
1583         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
1584         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
1585         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
1586         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1587         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
1588         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
1589         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
1590
1591 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1592
1593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1594
1595 2012-05-19  David S. Miller  <davem@davemloft.net>
1596
1597         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1598
1599 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1600
1601         [BZ #14123]
1602         * math/s_ccosh.c: Include <float.h>
1603         (__ccosh): Avoid internal overflow calculating sinh and cosh
1604         values before multiplying by sin and cos values.
1605         * math/s_ccoshf.c: Likewise.
1606         * math/s_ccoshl.c: Likewise.
1607         * math/s_csin.c: Likewise.
1608         * math/s_csinf.c: Likewise.
1609         * math/s_csinl.c: Likewise.
1610         * math/s_csinh.c: Likewise.
1611         * math/s_csinhf.c: Likewise.
1612         * math/s_csinhl.c: Likewise.
1613         * math/libm-test.inc (ccos_test): Add more tests.
1614         (ccosh_test): Likewise.
1615         (csin_test): Likewise.
1616         (csinh_test): Likewise.
1617         * sysdeps/i386/fpu/libm-test-ulps: Update.
1618         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1619
1620 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
1621
1622         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
1623         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
1624
1625         * sysdeps/x86_64/x32/_itoa.h: Add comment.
1626
1627 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
1628
1629         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
1630         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
1631         * sysdeps/powerpc/soft-fp/Versions: Likewise.
1632         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
1633         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
1634         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
1635         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
1636         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
1637         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
1638         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
1639         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
1640         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
1641         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
1642         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
1643         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
1644         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
1645         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
1646         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
1647         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
1648         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
1649         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
1650         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
1651         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
1652         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
1653         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
1654         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
1655         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
1656         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
1657         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
1658         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
1659         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
1660
1661 2012-05-18  Andreas Jaeger  <aj@suse.de>
1662
1663         * csu/.gitignore: Delete.
1664
1665 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1666
1667         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
1668         (timex): Use __syscall_slong_t.
1669
1670 2012-05-18  Andreas Jaeger  <aj@suse.de>
1671             Carlos O'Donell  <carlos_odonell@mentor.com>
1672
1673         * manual/install.texi (Configuring and compiling): Update
1674         description about files modified in the source directory.
1675         * INSTALL: Regenerated.
1676
1677 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1678
1679         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
1680         value.  Use "or" to set return value to -1.
1681         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
1682         negate return value.
1683
1684 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
1685
1686         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
1687         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
1688         failure if the compiler has Graphite support disabled.
1689         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
1690         Likewise.
1691         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
1692         CFLAGS-memmove.c): Likewise.
1693         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
1694         Likewise.
1695
1696 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1697
1698         * sysdeps/x86_64/x32/_itoa.h: New file.
1699
1700         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
1701         getdents system call only if kernel and user dirents have the
1702         same d_ino and d_off.
1703
1704         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
1705         LLONG_MAX != LONG_MAX.
1706         (_itoa_word): Use _ITOA_WORD_TYPE on value.
1707         (_fitoa_word): Likewise.
1708
1709         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
1710         years.
1711         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
1712         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
1713         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
1714
1715         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
1716         include <bits/wordsize.h>.  Check __x86_64__ instead of
1717         __WORDSIZE.
1718         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
1719         if __x86_64__ is defined.  Use anonymous union on fpstate.
1720
1721         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
1722         anonymous union.
1723
1724 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
1725
1726         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
1727         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
1728         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
1729         Refer to _rtld_local_ro instead of _rtld_global_ro.
1730         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
1731         Likewise.
1732         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
1733         Likewise.
1734         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
1735         Likewise.
1736         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
1737         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
1738         of _rtld_global, and rtld_progname instead of _dl_argv[0].
1739
1740         * sysdeps/powerpc/powerpc32/dl-machine.c
1741         (__elf_machine_runtime_setup) [PROF]: Don't reference
1742         _dl_prof_resolve.
1743
1744 2012-05-18  Andreas Jaeger  <aj@suse.de>
1745
1746         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
1747         function only available for GCCs before 3.4 since GCC 3.4
1748         introduced a builtin.
1749         (lrint): Likewise.
1750         (llrintf): Likewise.
1751         (llrint): Likewise.
1752         (fmaxf): Likewise.
1753         (fmax): Likewise.
1754         (fminf): Likewise.
1755         (fmin): Likewise.
1756         (rint): Likewise.
1757         (rintf): Likewise.
1758         (nearbyint): Likewise.
1759         (nearbyintf): Likewise.
1760         (ceil): Likewise.
1761         (ceilf): Likewise.
1762         (floor): Likewise.
1763         (floorf): Likewise.
1764
1765 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1766
1767         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
1768         on both fields and cast pointer to __syscall_ulong_t.
1769
1770         * bits/types.h (__fsword_t): New type.
1771         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
1772         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
1773         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1774         (__FSWORD_T_TYPE): Likewise.
1775         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1776         (__FSWORD_T_TYPE): Likewise.
1777         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1778         (__FSWORD_T_TYPE): Likewise.
1779         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
1780         (__FSWORD_T_TYPE): Likewise.
1781         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
1782         __SWORD_TYPE with __fsword_t.
1783         (statfs64): Likewise.
1784
1785 2012-05-17  David S. Miller  <davem@davemloft.net>
1786
1787         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
1788
1789 2012-05-17  Andreas Jaeger  <aj@suse.de>
1790
1791         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
1792         warning.
1793
1794 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1795
1796         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
1797
1798 2012-05-17  Andreas Jaeger  <aj@suse.de>
1799
1800         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
1801         when it is used.
1802
1803 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1804
1805         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
1806
1807 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
1808
1809         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
1810         * sysdeps/x86_64/tst-mallocalign1.c: New file.
1811
1812 2012-05-17  Andreas Jaeger  <aj@suse.de>
1813             Carlos O'Donell  <carlos_odonell@mentor.com>
1814
1815         [BZ #14059]
1816         * sysdeps/x86_64/multiarch/init-arch.h
1817         (bit_YMM_Usable): Rename to...
1818         (bit_AVX_Usable): ... this.
1819         (bit_FMA4_Usable): New macro.
1820         (bit_XMM_state): New macro.
1821         (bit_YMM_state): New macro.
1822         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
1823         [__ASSEMBLER__] (index_AVX_Usable): ... this.
1824         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
1825         (CPUID_OSXSAVE): New macro.
1826         (CPUID_AVX): New macro.
1827         (CPUID_FMA4): New macro.
1828         (index_YMM_Usable): Rename to...
1829         (index_AVX_Usable): ... this.
1830         (HAS_AVX): Use HAS_ARCH_FEATURE.
1831         (HAS_FMA4): Likewise.
1832         (HAS_YMM_USABLE): Remove.
1833         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1834         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
1835         are present.
1836         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
1837         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
1838         * sysdeps/x86_64/multiarch/Makefile: Likewise.
1839         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
1840         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
1841
1842 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
1843
1844         * math/libm-test.c: Support platforms without multiple rounding modes.
1845         * math/bug-nextafter.c: Support platforms without FP exceptions.
1846         * math/bug-nexttoward.c: Likewise.
1847         * math/test-fenv.c: Likewise.
1848         * math/test-misc.c: Likewise.
1849         * stdlib/bug-getcontext.c: Likewise.
1850
1851 2012-05-17  Andreas Jaeger  <aj@suse.de>
1852
1853         * manual/examples/search.c (critter_cmp): Change signature to
1854         avoid warnings.
1855         * manual/string.texi (Collation Functions): Likewise.
1856
1857 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1858
1859         * bits/types.h: Fold copyright years.
1860         * bits/typesizes.h: Likewise.
1861         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
1862         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
1863         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
1864         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
1865         * time/time.h: Likewise.
1866
1867 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
1868
1869         [BZ #208]
1870         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
1871         in instead of returning them.  Return void.
1872         (__libc_mallinfo): Accumulate over all arenas.
1873         (__malloc_stats): Adjust for change in int_mallinfo interface.
1874
1875 2012-05-16  Roland McGrath  <roland@hack.frob.com>
1876
1877         [BZ #10375]
1878         * configure.in (NM): Add AC_CHECK_TOOL for it.
1879         (libc_extra_cflags): New substituted variable.
1880         Check for -fstack-protector being used implicitly.
1881         * configure: Regenerated.
1882         * config.make.in (config-extra-cflags): New variable,
1883         gets @libc_extra_cflags@.
1884         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
1885
1886         [BZ #10375]
1887         * configure.in: Check for _FORTIFY_SOURCE being predefined.
1888         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
1889         * configure: Regenerated.
1890         * config.make.in (CPPUNDEFS): New substituted variable.
1891         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
1892         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
1893         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
1894
1895 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1896
1897         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
1898         (mq_attr): Use __syscall_slong_t.
1899
1900 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1901
1902         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
1903         Check __x86_64__ instead of __WORDSIZE.
1904         (_STAT_VER_LINUX): Likewise.
1905         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
1906         __syscall_ulong_t and __syscall_slong_t.
1907         (stat64): Likewise.
1908
1909 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1910
1911         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
1912
1913 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1914
1915         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
1916
1917 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1918
1919         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
1920         __syscall_ulong_t.
1921
1922         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
1923         include <bits/wordsize.h>.  Check __x86_64__ instead of
1924         __WORDSIZE.
1925         (greg_t): Use "__extension__ long long int" if __x86_64__ is
1926         defined.
1927         (mcontext_t): Replace "unsigned long" with "unsigned long long".
1928
1929         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
1930         include <bits/wordsize.h>.  Check __x86_64__ instead of
1931         __WORDSIZE.
1932         (user_regs_struct): Use "__extension__ unsigned long long"
1933         instead of "unsigned long" if __x86_64__ is defined.
1934         (user): Likewise.  Pad after pointer field if __ILP32__ is
1935         defined.
1936
1937 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
1938
1939         * configure.in (makeinfo): Require version 4.5 or later.  Allow
1940         versions 5 to 9.
1941         * configure: Regenerated.
1942         * manual/install.texi (texinfo): Increase version requirement to
1943         4.5 or later.
1944         * INSTALL: Regenerated.
1945
1946         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
1947
1948 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1949
1950         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
1951
1952         * sysdeps/x86_64/x32/ffs.c: New file.
1953
1954         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
1955         __syscall_ulong_t.
1956         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
1957         defined.  Use __syscall_ulong_t.
1958         (shminfo): Use __syscall_ulong_t.
1959         (shm_info): Likewise.
1960
1961         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
1962         __syscall_ulong_t.
1963
1964         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
1965         <bits/wordsize.h>.
1966         (msgqnum_t): Use __syscall_ulong_t.
1967         (msglen_t): Likewise.
1968         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
1969         __syscall_ulong_t.
1970
1971         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
1972         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1973
1974         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
1975
1976         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
1977         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
1978
1979         * sysvipc/sys/msg.h (msgbuf): Replace long int with
1980         __syscall_slong_t.
1981
1982         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
1983         include <bits/wordsize.h>.  Check __x86_64__ instead of
1984         __WORDSIZE.
1985
1986         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
1987         "unsigned long long int" if __x86_64__ is defined.
1988         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
1989
1990         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
1991         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1992         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
1993
1994         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
1995         <stdint.h>.
1996         (GET_PC): Cast to uintptr_t first.
1997         (GET_FRAME): Likewise.
1998         (GET_STACK): Likewise.
1999
2000         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
2001         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
2002         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
2003         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
2004         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
2005         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
2006         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
2007         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
2008         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
2009         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
2010         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
2011         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
2012         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
2013         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
2014         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
2015         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
2016         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
2017         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
2018         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
2019         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
2020         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
2021         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
2022         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
2023         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
2024         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
2025         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
2026         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
2027         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
2028         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
2029
2030 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
2031
2032         * Makerules (+depfiles): Also collect depfiles from .oS in
2033         $(extra-objs).
2034         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
2035         .oS, $(libnldbl-routines)).
2036
2037         * Makerules (native-compile-mkdep-flags): Define.
2038         * sunrpc/Makefile (extra-objs): Add $(addprefix
2039         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
2040         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
2041         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
2042         calling $(make-target-directory).
2043
2044 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2045
2046         * bits/types.h (__snseconds_t): Removed.
2047         * time/time.h (struct timespec): Replace __snseconds_t with
2048         __syscall_slong_t.
2049         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
2050         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
2051         Likewise.
2052         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2053         (__SNSECONDS_T_TYPE): Likewise.
2054         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2055         (__SNSECONDS_T_TYPE): Likewise.
2056         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2057         (__SNSECONDS_T_TYPE): Likewise.
2058
2059 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2060
2061         * sysdeps/mach/hurd/bits/typesizes.h
2062         (__SYSCALL_SLONG_TYPE): New macro.
2063         (__SYSCALL_ULONG_TYPE): Likewise.
2064
2065 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2066
2067         * bits/types.h (__syscall_slong_t): New type.
2068         (__syscall_ulong_t): Likewise.
2069
2070         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
2071         (__SYSCALL_ULONG_TYPE): Likewise.
2072         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
2073         (__SYSCALL_SLONG_TYPE): Likewise.
2074         (__SYSCALL_ULONG_TYPE): Likewise.
2075         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
2076         (__SYSCALL_SLONG_TYPE): Likewise.
2077         (__SYSCALL_ULONG_TYPE): Likewise.
2078         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
2079         (__SYSCALL_SLONG_TYPE): Likewise.
2080         (__SYSCALL_ULONG_TYPE): Likewise.
2081
2082 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2083
2084         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
2085         Add sigaltstack-offsets.sym.
2086         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
2087         <sigaltstack-offsets.h>.
2088         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
2089         longjmp_msg pointer.
2090         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
2091         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
2092         signal stack.
2093         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
2094
2095 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2096
2097         * elf/stackguard-macros.h: Remove file.
2098         * sysdeps/generic/stackguard-macros.h: New file.
2099         * sysdeps/i386/stackguard-macros.h: Likewise.
2100         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
2101         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
2102         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
2103         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
2104         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
2105         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
2106         * sysdeps/x86_64/stackguard-macros.h: Likewise.
2107         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
2108         <elf/stackguard-macros.h>.
2109
2110         [BZ #14109]
2111         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
2112         __aligned__ in attribute.
2113         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
2114         (gregset_t): Likewise.
2115
2116 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2117
2118         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
2119         * sysdeps/x86_64/64/Implies-after: Here.  New file.
2120         * sysdeps/x86_64/x32/Implies-after: New file.
2121
2122 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2123
2124         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
2125         and access return value for _dl_profile_fixup.  Use R10_LP to
2126         load frame size.
2127
2128 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2129
2130         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
2131
2132 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2133
2134         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
2135         * sysdeps/x86_64/x32/sysdep.h: New file.
2136
2137 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2138
2139         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
2140         * sysdeps/x86_64/setjmp.S: Likewise.
2141
2142 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2143
2144         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
2145         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
2146         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
2147         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
2148         remove unused global constant.
2149
2150 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
2151
2152         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
2153         include of <not-cancel.h>.
2154
2155 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2156
2157         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
2158
2159 2012-05-15  Jeff Law  <law@redhat.com>
2160             Andreas Jaeger  <aj@suse.de>
2161
2162         [BZ #13594]
2163         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
2164         out from...
2165         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
2166         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
2167         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
2168         code changing __hst_map_handle.map.
2169
2170 2012-05-15  Roland McGrath  <roland@hack.frob.com>
2171
2172         * configure.in (sysnames): Look for Implies-before and Implies-after
2173         files.
2174         * configure: Regenerated.
2175
2176 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2177
2178         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
2179         8-byte data alignment with LP_SIZE alignment.
2180
2181 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2182
2183         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
2184         into R10_LP.
2185
2186 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2187
2188         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
2189
2190 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2191
2192         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
2193         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
2194         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
2195         Likewise.
2196         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
2197
2198 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2199
2200         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
2201         (stackinfo_sub_sp): Likewise.
2202
2203 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2204
2205         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
2206         RAX_LP.
2207
2208 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2209
2210         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
2211         into R*_LP.
2212
2213 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2214
2215         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
2216         sizes into R*_LP.
2217
2218 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2219
2220         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
2221
2222 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2223
2224         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
2225         into R11_LP and load __x86_64_shared_cache_size_half into
2226         R8_LP.
2227
2228 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
2229
2230         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
2231         R8_LP.
2232
2233 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2234
2235         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
2236         logb for POWER7.
2237         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
2238         logbf for POWER7.
2239         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
2240         logbl for POWER7.
2241         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
2242         powerpc32/power7/fpu/s_logb.c via #include.
2243         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
2244         powerpc32/power7/fpu/s_logbf.c via #include.
2245         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
2246         powerpc32/power7/fpu/s_logbl.c via #include.
2247
2248 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
2249
2250         * README.libm: Remove file.
2251
2252 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2253
2254         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
2255         count for x32.  Use R*_LP and omit operand-size suffix.
2256
2257 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2258
2259         * shlib-versions: Move x86_64-.*-linux.* entries to ...
2260         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
2261         * sysdeps/x86_64/x32/shlib-versions: New file.
2262
2263 2012-05-14  Roland McGrath  <roland@hack.frob.com>
2264
2265         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
2266         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
2267         Use _dl_fatal_printf instead.
2268
2269 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2270
2271         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
2272         set if not set by the user.  Do not allow for being unset.
2273         * sysdeps/unix/sysv/linux/configure: Regenerated.
2274
2275 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2276
2277         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
2278         the `q' suffix from lea and replace .quad with ASM_ADDR.
2279
2280 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2281
2282         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
2283         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
2284         instead of $17.
2285         (PTR_DEMANGLE): Likewise.
2286
2287 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2288
2289         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
2290         (LP_OP): Likewise.
2291         (ASM_ADDR): Likewise.
2292         (RAX_LP): Likewise.
2293         (RBP_LP): Likewise.
2294         (RBX_LP): Likewise.
2295         (RCX_LP): Likewise.
2296         (RDI_LP): Likewise.
2297         (RSI_LP): Likewise.
2298         (RSP_LP): Likewise.
2299         (R8_LP): Likewise.
2300         (R9_LP): Likewise.
2301         (R10_LP): Likewise.
2302         (R10_LP): Likewise.
2303         (R11_LP): Likewise.
2304         (R12_LP): Likewise.
2305         (R13_LP): Likewise.
2306         (R14_LP): Likewise.
2307         (R15_LP): Likewise.
2308
2309 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2310
2311         * sysdeps/x86_64/x32/dl-machine.h: New file.
2312
2313 2012-05-14  Andreas Jaeger  <aj@suse.de>
2314
2315         * manual/Makefile (subdir): Remove export of subdir.
2316         (all): Remove target.
2317         (.PHONY): Remove all from list.
2318         (mkinstalldirs): Remove.
2319         (.PHONY): Remove installdirs from list.
2320         ($(inst_infodir)/libc.info): Use make-target-directory.
2321         (installdirs): Remove.
2322         (subdir_%): Remove.
2323         (glibc-targets): Remove.
2324         (lib): Remove.
2325         (stubs): Remove.
2326         ($(objpfx)stubs ../po/manual.pot): Remove.
2327         ($(objpfx)stamp%): Remove.
2328         (make-target-directory): Remove.
2329         (subdir_install): Remove.
2330         (routines): Remove.
2331         (aux): Remove.
2332         (sources): Remove.
2333         (objects): Remove.
2334         (headers): Remove.
2335
2336         [BZ #13750]
2337         * manual/.gitignore: Remove, it's not needed anymore.
2338         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
2339         all files in it.
2340         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
2341         directory.
2342         (texis): Renamed to $(objpfx)texis.
2343         (texis-path): New, contains path to generated files.
2344         (chapters.%): Use texis-path for complete path, add extra argument
2345         libc-texinfo.sh.
2346         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
2347         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
2348         (summary,texi, stamp-summary): Use complete path of
2349         files. Generate files in build dir.
2350         (dir-add.texi): Build in build dir.
2351         (libm-err.texi,stamp-libm-err): Likewise.
2352         (version.texi, stamp-version): Likewise.
2353         (.%c.texi): Likewise.
2354         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
2355         (mostlyclean): Remove target.
2356         (realclean): Remove target.
2357         (generated): Add new variable with contents from mostlyclean and
2358         realclean, remove entries duplicated in common-mostlyclean, add
2359         stamp-libm-err and stamp-version.
2360         (generated-dirs): Add libc directory.
2361         ($(inst_infodir)/libc.info): Install files from build dir.
2362
2363         * manual/install.texi (Configuring and compiling): Adjust since
2364         the info files are not part of the tar ball anymore.
2365
2366 2012-05-14  Andreas Jaeger  <aj@suse.de>
2367
2368         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
2369         variable.
2370
2371 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
2372
2373         [BZ #13717]
2374         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
2375         to 2.2.0 where earlier.
2376         * sysdeps/unix/sysv/linux/configure: Regenerated.
2377         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
2378         Remove conditional code.
2379         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
2380         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
2381         Remove conditional code.
2382         [!__NR_lchown]: Likewise.
2383         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2384         [__NR_lchown]: Likewise.
2385         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
2386         comment referencing __ASSUME_LCHOWN_SYSCALL.
2387         * sysdeps/unix/sysv/linux/i386/sigaction.c
2388         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2389         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2390         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
2391         Remove conditional code.
2392         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
2393         (__protocol_available): Remove #if 0 code.
2394         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
2395         conditional code.
2396         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
2397         * sysdeps/unix/sysv/linux/kernel-features.h
2398         (__ASSUME_GETCWD_SYSCALL): Don't define.
2399         (__ASSUME_REALTIME_SIGNALS): Likewise.
2400         (__ASSUME_PREAD_SYSCALL): Likewise.
2401         (__ASSUME_PWRITE_SYSCALL): Likewise.
2402         (__ASSUME_POLL_SYSCALL): Likewise.
2403         (__ASSUME_LCHOWN_SYSCALL): Likewise.
2404         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
2405         non-SPARC.
2406         (__ASSUME_SIOCGIFNAME): Don't define.
2407         (__ASSUME_MSG_NOSIGNAL): Likewise.
2408         (__ASSUME_SENDFILE): Define unconditionally.
2409         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
2410         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
2411         conditional code.
2412         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
2413         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
2414         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2415         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2416         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
2417         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
2418         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
2419         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
2420         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2421         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2422         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
2423         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2424         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2425         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
2426         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2427         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2428         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
2429         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2430         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2431         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
2432         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2433         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2434         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
2435         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
2436         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
2438         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2439         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2440         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
2441         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2442         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2443         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
2444         Remove conditional code.
2445         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2446         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2447         Remove conditional code.
2448         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2449         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
2450         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
2451         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2452         Remove conditional code.
2453         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2454         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
2455         Remove conditional code.
2456         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2457         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
2458         Remove conditional code.
2459         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2460         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
2461         Remove conditional code.
2462         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
2463         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
2464         Remove conditional code.
2465         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2466         * sysdeps/unix/sysv/linux/sh/pwrite64.c
2467         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
2468         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
2469         * sysdeps/unix/sysv/linux/sigaction.c
2470         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2471         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2472         * sysdeps/unix/sysv/linux/sigpending.c
2473         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2474         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2475         * sysdeps/unix/sysv/linux/sigprocmask.c
2476         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2477         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2478         * sysdeps/unix/sysv/linux/sigsuspend.c
2479         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
2480         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
2481         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
2482         (__libc_missing_rt_sigs): Remove.
2483         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
2484         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
2485         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
2486         Remove conditional code.
2487         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
2488         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
2489         return 1.
2490         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
2491         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
2492         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
2493         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
2494
2495 2012-05-14  Andreas Jaeger  <aj@suse.de>
2496
2497         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
2498         it's not used in glibc.
2499         (__coshm1): Likewise.
2500         (__acosh1p): Likewise.
2501         (__sgn): Likewise.
2502
2503         * manual/string.texi (Copying and Concatenation): Add missing
2504         variable in concat example.
2505         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
2506
2507 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2508
2509         [BZ #14103]
2510         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
2511         __builtin_clzl with __builtin_clzll.
2512
2513 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
2514
2515         [BZ #14104]
2516         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
2517         libc_freeres_ptr.
2518
2519 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2520
2521         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
2522         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
2523         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
2524         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
2525
2526 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
2527
2528         * NEWS: Update ia64 info.
2529
2530 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
2531
2532         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
2533         used as bcopy.
2534
2535 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
2536
2537         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
2538         * sysdeps/unix/syscalls.list (dup3): Likewise.
2539         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
2540         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
2541
2542 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2543
2544         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
2545         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
2546
2547 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
2548
2549         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
2550         thread pointer.
2551         (TLS_IE): Use mov/add instead of movq/addq to load thread
2552         pointer.
2553         (TLS_GD_PREFIX): New.
2554         (TLS_GD): Use it.
2555
2556 2012-05-11  David S. Miller  <davem@davemloft.net>
2557
2558         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
2559         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
2560         (_FPU_SETCW): Likewise.
2561
2562 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2563
2564         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
2565         is 32-byte aligned.
2566
2567 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
2568
2569         [BZ #11837]
2570         * iconvdata/gb18030.c: Update tables.
2571         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
2572         characters specially.
2573         (BODY for TO_LOOP): Add encoding of missing ranges.
2574
2575 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
2576
2577         [BZ #13673]
2578         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
2579         * sysdeps/mach/hurd/dup3.c: Likewise.
2580         * sysdeps/mach/hurd/readlinkat.c: Likewise.
2581         * sysdeps/powerpc/memmove.c:: Likewise.
2582
2583 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2584
2585         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
2586         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
2587
2588 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2589
2590         * elf/elf.h (R_X86_64_RELATIVE64): New.
2591         (R_X86_64_NUM): Updated.
2592         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2593         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
2594         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
2595         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
2596         tst-quad1pie tst-quad2pie
2597         (modules-names): Add tst-quadmod1 tst-quadmod2.
2598         ($(objpfx)tst-quad1): New dependency.
2599         ($(objpfx)tst-quad2): Likewise.
2600         ($(objpfx)tst-quad1pie): Likewise.
2601         ($(objpfx)tst-quad2pie): Likewise.
2602         * sysdeps/x86_64/tst-quad1.c: New file.
2603         * sysdeps/x86_64/tst-quad1pie.c: New file.
2604         * sysdeps/x86_64/tst-quad2.c: Likewise.
2605         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
2606         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
2607         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
2608         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
2609         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
2610
2611 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2612
2613         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
2614         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
2615         * streams/stropts.h (t_scalar_t): Define type.
2616
2617         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
2618         (_PATH_PRESERVE): Set to "/var/lib".
2619         (_PATH_RWHODIR): Set to "/var/spool/rwho".
2620
2621         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
2622         instead of int.
2623
2624         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
2625         if __dir_mkfile succeeded.
2626
2627         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
2628         checking for _hurd_dtablesize.  Unlock it right after having
2629         finished _hurd_dtable allocation.
2630
2631 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2632
2633         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
2634         * sysdeps/mach/hurd/configure: Regenerated.
2635         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
2636         special-casing to...
2637         * sysdeps/gnu/configure.in: ... this new file.
2638         * sysdeps/unix/sysv/linux/configure: Regenerated.
2639         * sysdeps/gnu/configure: New generated file.
2640
2641         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
2642         for Linux: use nsec instead of usec, as well as:
2643         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
2644         members of type struct timespec.
2645         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
2646         New macros.
2647         (struct stat64): Likewise.
2648         (_STATBUF_ST_NSEC): New macro.
2649         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
2650
2651         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
2652         __strtoul_internal rather than strtoul.
2653
2654 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2655
2656         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
2657         and reject them.
2658
2659 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2660
2661         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
2662         which preserves existing values.
2663         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
2664
2665 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2666
2667         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
2668         TIMEOUT values.  Return EINVAL for NFDS values either negative or
2669         greater than FD_SETSIZE.
2670
2671 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2672
2673         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
2674         allocated, call __vm_protect to finish enabling the existing space, and
2675         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
2676         allocate the remainder.
2677
2678 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2679
2680         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
2681         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
2682
2683 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2684
2685         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
2686         sysdeps/mach/hurd/readlink.c.
2687
2688         * posix/tst-sysconf.c (posix_options): Only use
2689         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
2690         _POSIX_SYNCHRONIZED_IO when they are defined
2691         * sysdeps/mach/hurd/bits/posix_opt.h:
2692         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
2693         (_XOPEN_REALTIME): Undefine macro.
2694         (_XOPEN_REALTIME_THREADS): Undefine macro.
2695         (_XOPEN_SHM): Undefine macro.
2696         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
2697         macro to -1.
2698         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
2699         macro to -1.
2700         (_POSIX_ASYNC_IO): Undefine macro.
2701         (_POSIX_PRIORITIZED_IO): Undefine macro.
2702         (_POSIX_SPIN_LOCKS): Define macro to -1.
2703
2704         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
2705         SA_NODEFER, SA_RESETHAND.
2706         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
2707         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
2708         F_DUPFD_CLOEXEC.
2709
2710 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2711
2712         * elf/Makefile (pldd-modules): Define unconditionally.
2713
2714 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2715
2716         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
2717
2718 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2719
2720         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
2721         Return ENOENT when name is empty.
2722         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
2723
2724 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2725
2726         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
2727
2728         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
2729
2730 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2731
2732         Fix mlock in all cases except non-readable pages.
2733         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
2734         instead of VM_PROT_ALL as parameter to __vm_wire function.
2735
2736         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
2737         (__mkdir): When path is `/', just fail with EEXIST.
2738         * sysdeps/mach/hurd/mkdirat.c: Likewise.
2739
2740 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2741
2742         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
2743         <sys/uio.h> (for writev).
2744         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
2745         and <sys/param.h> (for MIN).
2746
2747 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
2748
2749         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
2750         REQUESTED_TIME.  Properly set the remaining time and return EINTR
2751         if interrupted.
2752
2753 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2754
2755         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
2756         Depend on against $(link-rpcuserlibs).
2757
2758 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2759
2760         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
2761         (__libc_stack_end): Do not use attribute_relro.
2762         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
2763         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
2764         to libthread-provided value.
2765         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
2766         attribute_relro.
2767
2768 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2769
2770         [BZ #3748]
2771         * bits/libc-lock.h (__libc_once_get): New macro.
2772         * sysdeps/mach/bits/libc-lock.h: Likewise.
2773         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
2774         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
2775         instead of using implementation details.
2776
2777         * libio/fileops.c: Unconditionally include <kernel-features.h>.
2778         * libio/freopen.c: Likewise.
2779         * libio/freopen64.c: Likewise.
2780         * misc/syslog.c: Likewise.
2781         * nscd/connections.c: Likewise.
2782         * nscd/netgroupcache.c: Likewise.
2783         * sysdeps/posix/getcwd.c: Likewise.
2784
2785 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2786
2787         * math/w_ilogbf.c: Add #include <limits.h>.
2788
2789 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2790
2791         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
2792         path instead of returning without unlocking.
2793
2794         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
2795         immediate-write ioctls.
2796         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
2797
2798 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2799
2800         * sysdeps/mach/hurd/i386/init-first.c (init): Use
2801         __builtin_frame_address instead of making assumptions about the
2802         location of the return address relative to DATA.  Force early load of
2803         the return address.
2804         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
2805         __builtin_frame_address.
2806
2807         dup3 for GNU Hurd.
2808         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
2809         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
2810         implement dup3 and do some further code clean-ups.
2811         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
2812         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
2813
2814 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2815
2816         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
2817
2818         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
2819         HURD_CRITICAL_END around holding _hurd_dtable_lock.
2820         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
2821         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
2822         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
2823         d->port.lock.
2824
2825         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
2826         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
2827         when handler == SIG_ERR, not when handler != SIG_ERR.
2828
2829 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2830
2831         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
2832         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
2833         definitions.
2834
2835         accept4 for GNU Hurd.
2836         * include/sys/socket.h (__libc_accept4): New prototype.
2837         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
2838         to implement __libc_accept4.
2839         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
2840         __libc_accept4.
2841         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
2842
2843         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
2844         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
2845         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
2846         signal-defines.sym.
2847
2848 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2849
2850         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
2851
2852 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
2853
2854         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
2855         assertion on O_CLOEXEC flag.
2856         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
2857         * hurd/intern-fd.c: Likewise.
2858         * hurd/port2fd.c: Likewise.
2859
2860 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
2861
2862         [BZ #3906]
2863         * bits/in.h (IPV6_PKTINFO): Define new macro.
2864         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
2865
2866 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2867
2868         [BZ #13954]
2869         [BZ #13955]
2870         [BZ #13956]
2871         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
2872         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2873         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
2874         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2875         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2876         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2877         * math/libm-test.inc (logb_test) : Additional logb tests.
2878
2879 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
2880             Andreas Jaeger  <aj@suse.de>
2881
2882         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
2883         * configure: Regenerated.
2884         * config.h.in (LINK_OBSOLETE_RPC): New macro.
2885         * config.make.in (link-obsolete-rpc): New substituted variable.
2886         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
2887         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
2888         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2889         (shared-only-routines): Don't set it under [link-obsolete-rpc],
2890         so that libc.a contains the symbols.
2891         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2892         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
2893         * sunrpc/auth_none.c: Likewise.
2894         * sunrpc/auth_unix.c: Likewise.
2895         * sunrpc/authdes_prot.c: Likewise.
2896         * sunrpc/authuxprot.c: Likewise.
2897         * sunrpc/clnt_gen.c: Likewise.
2898         * sunrpc/clnt_perr.c: Likewise.
2899         * sunrpc/clnt_raw.c: Likewise.
2900         * sunrpc/clnt_simp.c: Likewise.
2901         * sunrpc/clnt_tcp.c: Likewise.
2902         * sunrpc/clnt_udp.c: Likewise.
2903         * sunrpc/clnt_unix.c: Likewise.
2904         * sunrpc/des_crypt.c: Likewise.
2905         * sunrpc/des_soft.c: Likewise.
2906         * sunrpc/get_myaddr.c: Likewise.
2907         * sunrpc/key_call.c: Likewise.
2908         * sunrpc/key_prot.c: Likewise.
2909         * sunrpc/netname.c: Likewise.
2910         * sunrpc/pm_getmaps.c: Likewise.
2911         * sunrpc/pm_getport.c: Likewise.
2912         * sunrpc/pmap_clnt.c: Likewise.
2913         * sunrpc/pmap_prot.c: Likewise.
2914         * sunrpc/pmap_prot2.c: Likewise.
2915         * sunrpc/pmap_rmt.c: Likewise.
2916         * sunrpc/publickey.c: Likewise.
2917         * sunrpc/rpc_cmsg.c: Likewise.
2918         * sunrpc/rpc_common.c: Likewise.
2919         * sunrpc/rpc_dtable.c: Likewise.
2920         * sunrpc/rpc_prot.c: Likewise.
2921         * sunrpc/rpc_thread.c: Likewise.
2922         * sunrpc/rtime.c: Likewise.
2923         * sunrpc/svc.c: Likewise.
2924         * sunrpc/svc_auth.c: Likewise.
2925         * sunrpc/svc_raw.c: Likewise.
2926         * sunrpc/svc_run.c: Likewise.
2927         * sunrpc/svc_tcp.c: Likewise.
2928         * sunrpc/svc_udp.c: Likewise.
2929         * sunrpc/svc_unix.c: Likewise.
2930         * sunrpc/svcauth_des.c: Likewise.
2931         * sunrpc/xcrypt.c: Likewise.
2932         * sunrpc/xdr.c: Likewise.
2933         * sunrpc/xdr_array.c: Likewise.
2934         * sunrpc/xdr_float.c: Likewise.
2935         * sunrpc/xdr_intXX_t.c: Likewise.
2936         * sunrpc/xdr_mem.c: Likewise.
2937         * sunrpc/xdr_rec.c: Likewise.
2938         * sunrpc/xdr_ref.c: Likewise.
2939         * sunrpc/xdr_sizeof.c: Likewise.
2940         * sunrpc/xdr_stdio.c: Likewise.
2941
2942 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2943
2944         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
2945         change.  Update copyright years.
2946
2947 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
2948
2949         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
2950
2951 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
2952             Joseph Myers  <joseph@codesourcery.com>
2953             Paul Pluzhnikov  <ppluzhnikov@google.com>
2954
2955         [BZ #14012]
2956         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
2957         requiring rpcgen.
2958         [cross-compiling] (extra-libs): Likewise.
2959         [cross-compiling] (extra-libs-others): Likewise.
2960         [cross-compiling] (librpcsvc-routines): Likewise.
2961         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
2962         [cross-compiling] (omit-deps): Likewise.
2963         (sunrpc-CPPFLAGS): New variable.
2964         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
2965         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
2966         (cross-rpcgen-objs): New variable.
2967         (extra-objs): Append $(cross-rpcgen-objs).
2968         ($(cross-rpcgen-objs)): New rule.
2969         ($(objpfx)cross-rpcgen): Likewise.
2970         (rpcgen-cmd): Define to use $(built-program-file).  Expand
2971         comment.
2972         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
2973         ($(objpfx)x%.stmp): Likewise.
2974         * sunrpc/proto.h [IS_IN_build] (_): Define.
2975         [IS_IN_build] (_libc_intl_domainname): Likewise.
2976
2977 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2978
2979         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
2980         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
2981         and R_X86_64_TPOFF64.
2982
2983 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
2984
2985         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
2986         sysdeps/unix/sysv/syscalls.list.
2987         (stime): Likewise.
2988         (utime): Likewise.
2989         * sysdeps/unix/sysv/syscalls.list: Remove file.
2990
2991 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2992
2993         [BZ #3440]
2994         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
2995         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
2996         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
2997         (__LC_IDENTIFICATION): Make these macros useful in #if
2998         expressions, as required by C99.
2999
3000 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
3001
3002         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
3003         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
3004         after this.
3005
3006 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3007
3008         * stdlib/longlong.h: Updated from GCC.
3009
3010 2012-05-09  Andreas Jaeger  <aj@suse.de>
3011
3012         * nscd/nscd.c (run_modes): Make named enum, reorder so that
3013         default is first entry.
3014         (run_mode): Set type.
3015         (main): Remove informal message about syslog.
3016         (options): Fix typo.
3017
3018         [BZ #14053]
3019         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
3020         to asm.
3021         (lrint): Likewise.
3022         (llrintf): Likewise.
3023         (llrint): Likewise.
3024         (rint): Likewise.
3025         (rintf): Likewise.
3026         (nearbyint): Likewise.
3027         (nearbyintf): Likewise.
3028
3029 2012-05-09  Andreas Jaeger  <aj@suse.de>
3030             Pedro Alves  <palves@redhat.com>
3031
3032         * nscd/nscd.c (run_mode): Use enum.
3033         (main): Cleanup coding style issue.
3034
3035 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
3036             Andreas Jaeger  <aj@suse.de>
3037
3038         * nscd/nscd.c (go_background): Replaced with...
3039         (run_mode): ... this.
3040         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
3041         (options): Add -F --foreground.
3042         (main): Implement it.
3043         (parse_opt): Parse it.
3044
3045 2012-05-09  Andreas Jaeger  <aj@suse.de>
3046
3047         [BZ #14083]
3048         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
3049         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
3050         -Wconversion warning.
3051         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
3052         Likewise.
3053
3054 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
3055
3056         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
3057         == 0.
3058         (LC_ALL): Use macro-int-constant.
3059         (LC_COLLATE): Likewise.
3060         (LC_CTYPE): Likewise.
3061         (LC_MESSAGES): Likewise.
3062         (LC_MONETARY): Likewise.
3063         (LC_NUMERIC): Likewise.
3064         (LC_TIME): Likewise.
3065         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
3066         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3067         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3068         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
3069         Specify type.
3070         [C99-based standards] (float_t): Expect type.
3071         [C99-based standards] (double_t): Expect type.
3072         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
3073         type.
3074         [C99-based standards] (HUGE_VALL): Likewise.
3075         [C99-based standards] (INFINITY): Likewise.
3076         [C99-based standards] (NAN): Likewise.
3077         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
3078         [C99-based standards] (FP_NAN): Likewise.
3079         [C99-based standards] (FP_NORMAL): Likewise.
3080         [C99-based standards] (FP_SUBNORMAL): Likewise.
3081         [C99-based standards] (FP_ZERO): Likewise.
3082         [C99-based standards] (FP_FAST_FMA): Use
3083         optional-macro-int-constant.  Specify type.  Require == 1.
3084         [C99-based standards] (FP_FAST_FMAF): Likewise.
3085         [C99-based standards] (FP_FAST_FMAL): Likewise.
3086         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
3087         [C99-based standards] (FP_ILOGBNAN): Likewise.
3088         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
3089         Specify type.
3090         [C99-based standards] (MATH_ERREXCEPT): Likewise.
3091         [C99-based standards] (math_errhandling): Specify type.
3092         [ISO99 || ISO11] (signgam): Do not allow.
3093         [non-C99-based standards] (copysignf): Do not allow.
3094         [non-C99-based standards] (exp2f): Likewise.
3095         [non-C99-based standards] (log2f): Likewise.
3096         [non-C99-based standards] (modff): Allow.
3097         [non-C99-based standards] (erff): Do not allow.
3098         [non-C99-based standards] (erfcf): Likewise.
3099         [non-C99-based standards] (gammaf): Likewise.
3100         [non-C99-based standards] (hypotf): Likewise.
3101         [non-C99-based standards] (j0f): Likewise.
3102         [non-C99-based standards] (j1f): Likewise.
3103         [non-C99-based standards] (jnf): Likewise.
3104         [non-C99-based standards] (lgammaf): Likewise.
3105         [non-C99-based standards] (tgammaf): Likewise.
3106         [non-C99-based standards] (y0f): Likewise.
3107         [non-C99-based standards] (y1f): Likewise.
3108         [non-C99-based standards] (ynf): Likewise.
3109         [non-C99-based standards] (isnanf): Likewise.
3110         [non-C99-based standards] (acoshf): Likewise.
3111         [non-C99-based standards] (asinhf): Likewise.
3112         [non-C99-based standards] (atanhf): Likewise.
3113         [non-C99-based standards] (cbrtf): Likewise.
3114         [non-C99-based standards] (expm1f): Likewise.
3115         [non-C99-based standards] (ilogbf): Likewise.
3116         [non-C99-based standards] (log1pf): Likewise.
3117         [non-C99-based standards] (logbf): Likewise.
3118         [non-C99-based standards] (nextafterf): Likewise.
3119         [non-C99-based standards] (remainderf): Likewise.
3120         [non-C99-based standards] (rintf): Likewise.
3121         [non-C99-based standards] (scalbf): Likewise.
3122         [non-C99-based standards] (copysignl): Likewise.
3123         [non-C99-based standards] (exp2l): Likewise.
3124         [non-C99-based standards] (log2l): Likewise.
3125         [non-C99-based standards] (modfl): Allow.
3126         [non-C99-based standards] (erfl): Do not allow.
3127         [non-C99-based standards] (erfcl): Likewise.
3128         [non-C99-based standards] (gammal): Likewise.
3129         [non-C99-based standards] (hypotl): Likewise.
3130         [non-C99-based standards] (j0l): Likewise.
3131         [non-C99-based standards] (j1l): Likewise.
3132         [non-C99-based standards] (jnl): Likewise.
3133         [non-C99-based standards] (lgammal): Likewise.
3134         [non-C99-based standards] (tgammal): Likewise.
3135         [non-C99-based standards] (y0l): Likewise.
3136         [non-C99-based standards] (y1l): Likewise.
3137         [non-C99-based standards] (ynl): Likewise.
3138         [non-C99-based standards] (isnanl): Likewise.
3139         [non-C99-based standards] (acoshl): Likewise.
3140         [non-C99-based standards] (asinhl): Likewise.
3141         [non-C99-based standards] (atanhl): Likewise.
3142         [non-C99-based standards] (cbrtl): Likewise.
3143         [non-C99-based standards] (expm1l): Likewise.
3144         [non-C99-based standards] (ilogbl): Likewise.
3145         [non-C99-based standards] (log1pl): Likewise.
3146         [non-C99-based standards] (logbl): Likewise.
3147         [non-C99-based standards] (nextafterl): Likewise.
3148         [non-C99-based standards] (remainderl): Likewise.
3149         [non-C99-based standards] (rintl): Likewise.
3150         [non-C99-based standards] (scalbl): Likewise.
3151         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3152         [non-C99-based standards] (FP_*): Do not allow.
3153         [C99-based standards] (FP_*): Change to
3154         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
3155         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3156         allow.
3157         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
3158         (SIG_ERR): Likewise.
3159         [X/Open-based standards] (SIG_HOLD): Likewise.
3160         (SIG_IGN): Likewise.
3161         (SIGABRT): Use macro-int-constant.  Specify type.  Require
3162         positive value.
3163         (SIGFPE): Likewise.
3164         (SIGILL): Likewise.
3165         (SIGINT): Likewise.
3166         (SIGSEGV): Likewise.
3167         (SIGTER): Likewise.
3168         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
3169         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
3170         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
3171         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
3172         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
3173         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
3174         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
3175         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
3176         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
3177         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
3178         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
3179         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
3180         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
3181         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
3182         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
3183         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
3184         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
3185         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
3186         [X/Open-based standards] (SIGTRAP): Likewise.
3187         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
3188         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
3189         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
3190         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
3191         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3192         allow.
3193
3194 2012-05-08  Ian Wienand  <ianw@vmware.com>
3195
3196         [BZ #14080]
3197         * time/tzset.c (__tzset_parse_tz): Update default rules for
3198         daylight time changes in the Energy Policy Act of 2005.
3199
3200 2012-05-09  Andreas Jaeger  <aj@suse.de>
3201
3202         [BZ #13983]
3203         * elf/ldconfig.c (parse_conf): Change string to make clear that
3204         ldconfig only issued a warning if ld.so.conf does not exist.
3205
3206 2012-05-08  David S. Miller  <davem@davemloft.net>
3207
3208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
3209         movxtod instead of popping the value on the stack.
3210
3211         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3212
3213 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
3214
3215         * config.h.in: Add HAVE_ARM_PCS_VFP.
3216
3217 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
3218
3219         [BZ #13979]
3220         * include/features.h: Warn if user requests __FORTIFY_SOURCE
3221         checking but the checks are disabled for any reason.
3222
3223 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
3224
3225         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
3226         and ELF64_R_TYPE with ELFW(R_TYPE).
3227
3228 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
3229
3230         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
3231         (ulimit): Likewise.
3232
3233         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
3234         (settimeofday): Likewise.
3235
3236 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
3237
3238         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
3239         a struct th_u2 inside the union, and move tu_block/tu_code into
3240         a new th_u3 union of tu_block/tu_code inside of that.  Move
3241         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
3242         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
3243         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
3244         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
3245         (th_stuff): Change to th_u1.tu_stuff.
3246         (th_data): Define.
3247         (th_msg): Change to th_u1.th_u2.tu_data.
3248
3249 2012-05-07  David S. Miller  <davem@davemloft.net>
3250
3251         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3252
3253         [BZ #14074]
3254         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
3255         (SETUP_PIC_REG): Use it.
3256         (SETUP_PIC_REG_LEAF): Use it.
3257
3258 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
3259
3260         [BZ #13885]
3261         [BZ #13923]
3262         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3263         USE_AS_EXPM1L.
3264         (EXPL_FINITE): Likewise.
3265         (FLDLOG): Likewise.
3266         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3267         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3268         e_expl.S.
3269         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3270         USE_AS_EXPM1L.
3271         (EXPL_FINITE): Likewise.
3272         (FLDLOG): Likewise.
3273         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
3274         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
3275         e_expl.S.
3276         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
3277         test of -max_value argument for long double.
3278         * sysdeps/i386/fpu/libm-test-ulps: Update.
3279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3280
3281 2012-05-06  David S. Miller  <davem@davemloft.net>
3282
3283         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
3284         quad soft-float symbols whose references which are compiler
3285         generated.
3286         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
3287
3288 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
3289
3290         [BZ #13884]
3291         [BZ #13914]
3292         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3293         USE_AS_EXP10L.
3294         (EXPL_FINITE): Likewise.
3295         (FLDLOG): Likewise.
3296         (c0): Likewise.
3297         (c1): Likewise.
3298         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3299         Adjust comments for base varying.
3300         (__expl_finite): Change alias to EXPL_FINITE.
3301         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
3302         e_expl.S.
3303         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
3304         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
3305         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
3306         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
3307         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
3308         USE_AS_EXP10L.
3309         (EXPL_FINITE): Likewise.
3310         (FLDLOG): Likewise.
3311         (c0): Likewise.
3312         (c1): Likewise.
3313         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
3314         Adjust comments for base varying.
3315         (__expl_finite): Change alias to EXPL_FINITE.
3316         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
3317         tests for bugs.
3318         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3319
3320         [BZ #14064]
3321         * math/libm-test.inc (check_float_internal): Correct ulp
3322         calculation for subnormal expected results.
3323
3324 2012-05-06  Andreas Jaeger  <aj@suse.de>
3325
3326         * Makeconfig (+math-flags): New, set to -frounding-math.
3327         (+cflags): Add +math-flags so that all of glibc gets compiled with
3328         it.
3329
3330         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
3331
3332 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
3333
3334         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
3335         Disable one test.
3336
3337         [BZ #13787]
3338         [BZ #13922]
3339         [BZ #14036]
3340         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
3341         (__ieee754_expl): Allow for and saturate large arguments.
3342         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
3343         (u_threshold): Likewise.
3344         (__exp): Call __ieee754_exp before checking for overflow and
3345         underflow.
3346         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
3347         (u_threshold): Likewise.
3348         (__expf): Call __ieee754_expf before checking for overflow and
3349         underflow.
3350         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
3351         (u_threshold): Likewise.
3352         (__expl): Call __ieee754_expl before checking for overflow and
3353         underflow.
3354         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
3355         (__ieee754_expl): Allow for and saturate large arguments.
3356         * math/libm-test.inc (exp_test): Add another test.  Do not allow
3357         missing overflow exception on overflow.
3358         (expm1_test): Do not allow missing overflow exception on overflow.
3359
3360         * sysdeps/i386/fpu/e_expl.c: Move to ...
3361         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
3362         rather than using inline asm.
3363         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
3364         * sysdeps/x86_64/fpu/e_expl.S: Copy from
3365         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
3366
3367         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
3368         (nice): Likewise.
3369         (poll): Likewise.
3370         (signal): Likewise.
3371         (time): Likewise.
3372         (times): Likewise.
3373
3374 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3375
3376         * sysdeps/unix/syscalls.list (adjtime): Add entry from
3377         sysdeps/unix/common/syscalls.list.
3378         (fchmod): Likewise.
3379         (fchown): Likewise.
3380         (ftruncate): Likewise.
3381         (getrusage): Likewise.
3382         (gettimeofday): Likewise.
3383         (setpgid): Likewise.
3384         (setregid): Likewise.
3385         (setreuid): Likewise.
3386         (sigaction): Likewise.
3387         (truncate): Likewise.
3388         (vhangup): Likewise.
3389         * sysdeps/unix/common/syscalls.list: Remove file.
3390         * sysdeps/unix/bsd/Implies: Don't include unix/common.
3391         * sysdeps/unix/sysv/linux/Implies: Likewise.
3392
3393 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
3394
3395         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
3396         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
3397         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
3398         Moved to ...
3399         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
3400         Here.
3401         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
3402         to ...
3403         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
3404         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
3405         to ...
3406         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
3407         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
3408         to ...
3409         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
3410         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
3411         to ...
3412         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
3413         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
3414         to ...
3415         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
3416         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
3417         to ...
3418         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
3419         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
3420         to ...
3421         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3422         Here.
3423         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
3424         to ...
3425         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
3426         Here.
3427         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
3428         to ...
3429         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
3430         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
3431         Moved to ...
3432         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
3433         Here.
3434         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
3435         to ...
3436         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
3437
3438 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3439
3440         * sysdeps/unix/common/bits/dirent.h: Remove file.
3441         * sysdeps/unix/common/bits/fcntl.h: Likewise.
3442
3443         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
3444         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
3445         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
3446         * sysdeps/unix/bsd/isatty.c: Likewise.
3447         * sysdeps/unix/bsd/tcdrain.c: Likewise.
3448         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
3449         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
3450
3451 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3452
3453         [BZ #13563]
3454         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
3455         long double comparison inaccuracies.
3456         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
3457         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3458
3459 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
3460
3461         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
3462         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
3463
3464 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
3465
3466         [BZ #14049]
3467         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
3468         nonzero digits before rounding a hex value.
3469         * stdlib/tst-strtod.c (tests): Add another test.
3470
3471 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3472
3473         * sysdeps/s390/fpu/libm-test-ulps: Update.
3474
3475 2012-05-03  Andreas Jaeger  <aj@suse.de>
3476
3477         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
3478         does not get optimized out.
3479         (malloc_opt_barrier): New.
3480
3481 2012-05-03  Andreas Jaeger  <aj@suse.de>
3482             Roland McGrath  <roland@hack.frob.com>
3483
3484         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
3485         intermediate file deletion.
3486         (generated): Add .symlist files.
3487
3488 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
3489
3490         [BZ #13775]
3491         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
3492         Redirect under this condition.
3493         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3494         [__USE_GNU] (__dprintf_chk): Not under this condition.
3495         [__USE_GNU] (__vdprintf_chk): Likewise.
3496         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
3497         under this condition.
3498         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
3499         [__USE_XOPEN2K8] (dprintf): Define under this condition.
3500         [__USE_XOPEN2K8] (vdprintf): Likewise.
3501         [__USE_GNU] (__dprintf_chk): Not under this condition.
3502         [__USE_GNU] (__vdprintf_chk): Likewise.
3503         [__USE_GNU] (dprintf): Likewise.
3504         [__USE_GNU] (vdprintf): Likewise.
3505
3506 2012-05-03  Roland McGrath  <roland@hack.frob.com>
3507
3508         * elf/Makefile (common-generated): Set this instead of generated for
3509         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
3510         $(all-built-dso)-derived lists.
3511
3512 2012-05-03  Andreas Jaeger  <aj@suse.de>
3513
3514         * sysdeps/i386/fpu/libm-test-ulps: Update.
3515
3516         * FAQ: Removed.
3517         * FAQ.in: Likewise.
3518         * scripts/gen-FAQ.pl: Likewise.
3519         * manual/install.texi (Installation): Point to online location of
3520         FAQ.
3521         * Makefile (files-for-dist): Remove FAQ.
3522         (FAQ): Remove.
3523
3524 2012-05-02  Allan McRae  <allan@archlinux.org>
3525
3526         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
3527         (LDFLAGS-reldepmod5.so): Likewise.
3528         (LDFLAGS-reldep6mod1.so): Likewise.
3529         (LDFLAGS-reldep6mod4.so): Likewise.
3530         (LDFLAGS-reldep8mod3.so): Likewise.
3531         (LDFLAGS-unload4mod1.so): Likewise.
3532         (LDFLAGS-unload4mod2.so): Likewise.
3533         (LDFLAGS-tst-initorder): Likewise.
3534         (LDFLAGS-tst-initordera2.so): Likewise.
3535         (LDFLAGS-tst-initordera3.so): Likewise.
3536         (LDFLAGS-tst-initordera4.so): Likewise.
3537         (LDFLAGS-tst-initorderb2.so): Likewise.
3538         (LDFLAGS-noload): Likewise.
3539         (LDFLAGS-next): Likewise.
3540         (LDFLAGS-order2mod1.so): Likewise.
3541         (LDFLAGS-order2mod2.so): Likewise.
3542         (LDFLAGS-tst-initorder2): Likewise.
3543         (LDFLAGS-tst-initorder2a.so): Likewise.
3544         (LDFLAGS-tst-initorder2b.so): Likewise.
3545         (LDFLAGS-tst-initorder2c.so): Likewise.
3546         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
3547
3548 2012-05-02  David S. Miller  <davem@davemloft.net>
3549
3550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3551
3552 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
3553
3554         [BZ #14055]
3555         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
3556
3557 2012-05-02  Andreas Jaeger  <aj@suse.de>
3558
3559         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
3560         since we manipulate rounding mode.
3561         (CPPFLAGS-test-idouble.c): Likewise.
3562         (CPPFLAGS-test-ifloat.c): Likewise.
3563         (CFLAGS-test-ldouble.c): Likewise.
3564         (CFLAGS-test-double.c): Likewise.
3565         (CFLAGS-test-float.c): Likewise.
3566         (CFLAGS-test-misc.c): Likewise.
3567         (CFLAGS-test-test-fenv.c): Likewise.
3568
3569 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3570
3571         [BZ #2550]
3572         [BZ #2570]
3573         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
3574         comparisons to determine direction to adjust input.
3575
3576 2012-05-01  Roland McGrath  <roland@hack.frob.com>
3577
3578         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
3579         output to the target.
3580
3581         * scripts/localplt.awk: New file.
3582         * elf/Makefile ($(objpfx)check-localplt): Target removed.
3583         (check-localplt-CFLAGS): Variable removed.
3584         ($(all-built-dso:=.jmprel)): New static pattern rule.
3585         (generated): Add those targets.
3586         (localplt-built-dso): New variable.
3587         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
3588
3589         * elf/check-localplt.c: File removed.
3590
3591         * scripts/check-execstack.awk: New file.
3592         * elf/Makefile ($(objpfx)check-execstack): Target removed.
3593         (check-execstack-CFLAGS): Variable removed.
3594         ($(objpfx)check-execstack.h): Target removed.
3595         ($(objpfx)execstack-default): New target.
3596         (generated): Add that instead of check-execstack.h.
3597         ($(all-built-dso:=.phdr)): New static pattern rule.
3598         (generated): Add those targets.
3599         * elf/check-execstack.c: File removed.
3600
3601         * scripts/check-textrel.awk: New file.
3602         * elf/Makefile ($(objpfx)check-textrel): Target removed.
3603         (check-textrel-CFLAGS): Variable removed.
3604         (all-built-dso): Use := to define.o
3605         ($(all-built-dso:=.dyn)): New static pattern rule.
3606         (generated): Add those targets.
3607         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
3608         * config.make.in (READELF): New substituted variable.
3609         * elf/check-textrel.c: File removed.
3610
3611 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
3612
3613         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
3614         allow.
3615         * conform/data/ctype.h-data [C99-based standards] (isblank):
3616         Expect function.
3617         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
3618         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
3619         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3620         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
3621         Specify type.  Require positive value.
3622         (EILSEQ): Likewise.
3623         (ERANGE): Likewise.
3624         [ISO || POSIX] (EILSEQ): Do not expect.
3625         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
3626         Specify type.  Require positive value.
3627         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
3628         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
3629         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
3630         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
3631         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
3632         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
3633         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
3634         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
3635         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
3636         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
3637         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
3638         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
3639         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
3640         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
3641         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
3642         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
3643         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
3644         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
3645         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
3646         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
3647         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
3648         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
3649         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
3650         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
3651         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
3652         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
3653         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
3654         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
3655         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
3656         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
3657         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
3658         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
3659         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
3660         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
3661         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
3662         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
3663         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
3664         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
3665         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
3666         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
3667         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
3668         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
3669         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
3670         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
3671         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
3672         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
3673         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
3674         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
3675         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
3676         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
3677         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
3678         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
3679         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
3680         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
3681         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
3682         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
3683         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
3684         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
3685         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
3686         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
3687         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
3688         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
3689         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
3690         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
3691         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
3692         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
3693         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
3694         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
3695         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
3696         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
3697         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
3698         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
3699         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
3700         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
3701         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
3702         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
3703         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
3704         Require >= 2.
3705         (FLT_ROUNDS): Expect as macro, not constant.
3706         (FLT_MANT_DIG): Use macro-int-constant.
3707         (DBL_MANT_DIG): Likewise.
3708         (LDBL_MANT_DIG): Likewise.
3709         (FLT_DIG): Likewise.
3710         (DBL_DIG): Likewise.
3711         (LDBL_DIG): Likewise.
3712         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
3713         (DBL_MIN_EXP): Likewise.
3714         (LDBL_MIN_EXP): Likewise.
3715         (FLT_MAX_EXP): Use macro-int-constant.
3716         (DBL_MAX_EXP): Likewise.
3717         (LDBL_MAX_EXP): Likewise.
3718         (FLT_MAX_10_EXP): Likewise.
3719         (DBL_MAX_10_EXP): Likewise.
3720         (LDBL_MAX_10_EXP): Likewise.
3721         (FLT_MAX): Use macro-constant.
3722         (DBL_MAX): Likewise.
3723         (LDBL_MAX): Likewise.
3724         (FLT_EPSILON): Use macro-constant.  Give upper bound.
3725         (DBL_EPSILON): Likewise.
3726         (LDBL_EPSILON): Likewise.
3727         (FLT_MIN): Likewise.
3728         (DBL_MIN): Likewise.
3729         (LDBL_MIN): Likewise.
3730         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
3731         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
3732         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
3733         [ISO11] (FLT_HAS_SUBNORM): Likewise.
3734         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
3735         [ISO11] (DBL_DECIMAL_DIG): Likewise.
3736         [ISO11] (FLT_DECIMAL_DIG): Likewise.
3737         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
3738         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
3739         [ISO11] (FLT_TRUE_MIN): Likewise.
3740         [ISO11] (LDBL_TRUE_MIN): Likewise.
3741         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3742         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
3743         (SCHAR_MIN): Use macro-int-constant.  Specify type.
3744         (SCHAR_MAX): Likewise.
3745         (UCHAR_MAX): Likewise.
3746         (CHAR_MIN): Likewise.
3747         (CHAR_MAX): Likewise.
3748         (MB_LEN_MAX): Use macro-int-constant.
3749         (SHRT_MIN): Use macro-int-constant.  Specify type.
3750         (SHRT_MAX): Likewise.
3751         (USHRT_MAX): Likewise.
3752         (INT_MAX): Likewise.
3753         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
3754         bound negative.
3755         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3756         bound with "U".
3757         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3758         bound with "L".
3759         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
3760         bound negative.  Suffix upper bound with "L".
3761         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
3762         bound with "UL".
3763         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
3764         Specify type.
3765         [C99-based standards] (LLONG_MAX): Likewise.
3766         [C99-based standards] (ULLONG_MAX): Likewise.
3767         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
3768         == 0.
3769         [ISO11] (max_align_t): Require type.
3770         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3771
3772         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
3773         from $CFLAGS, without defining away __attribute__ calls.
3774         (checknamespace): Use $CFLAGS_namespace.
3775
3776         * conform/conformtest.pl (@keywords): Only include C99 keywords
3777         for standards based on C99 or C11.
3778
3779         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
3780         Disable tests.
3781         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
3782         UNIX98]: Likewise.
3783
3784         * conform/conformtest.pl: Handle "macro-int-constant" and test for
3785         usability of symbols in #if.
3786
3787         * conform/conformtest.pl: If macro or constant types start
3788         "promoted:", expect the symbol to be of the following type
3789         promoted by the integer promotions.
3790
3791         * conform/conformtest.pl: Parse all "constant" and "macro" lines
3792         in one place.  Also handle "macro-constant".
3793
3794         * conform/conformtest.pl: Only accept expected macro values with
3795         "==".  Parse all "macro" lines in one place.
3796         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
3797
3798         * conform/conformtest.pl: Handle braced types on "constant" lines
3799         instead of handling "typed-constant".
3800         * conform/data/signal.h-data: Use "constant" instead of
3801         "typed-constant".
3802
3803         * conform/conformtest.pl: Handle "optional-" at start of lines in
3804         one place rather than duplicating several cases.  Handle each
3805         format of "macro" line with initial "optional-".
3806
3807         * conform/conformtest.pl: Only accept expected constant or
3808         optional-constant values with "==".  Parse all "constant" lines in
3809         one place.  Parse all "optional-constant" lines in one place.
3810         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
3811         * conform/data/fmtmsg.h-data: Likewise.
3812         * conform/data/netinet/in.h-data: Likewise.
3813         * conform/data/tar.h-data: Likewise.
3814         * conform/data/limits.h-data: Use "==" form on "constant" and
3815         "optional-constant" lines.
3816
3817         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
3818         Use -std=c99 for XOPEN2K.
3819         (@knownproblems): Remove.
3820         (newtoken): Don't check %isknown.
3821
3822         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
3823         Do not expect macro.
3824         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
3825         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
3826         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
3827         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
3828         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
3829         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
3830         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
3831         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
3832         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
3833         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
3834         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
3835         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
3836         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
3837         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
3838         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
3839         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
3840         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
3841         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
3842         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
3843         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
3844         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
3845         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
3846         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
3847         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
3848         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
3849         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
3850         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
3851         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
3852         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
3853         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
3854         [XPG3] (acosh): Likewise.
3855         [XPG3] (asinh): Likewise.
3856         [XPG3] (atanh): Likewise.
3857         [XPG3] (cbrt): Likewise.
3858         [XPG3] (expm1): Likewise.
3859         [XPG3] (ilogb): Likewise.
3860         [XPG3] (log1p): Likewise.
3861         [XPG3] (logb): Likewise.
3862         [XPG3] (nextafter): Likewise.
3863         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
3864         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
3865         [XPG3] (remainder): Likewise.
3866         [XPG3] (rint): Likewise.
3867         [XPG3 || XPG4 || UNIX98] (round): Likewise.
3868         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
3869         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
3870         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
3871         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
3872         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
3873         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
3874         [UNIX98 || XOPEN2K] (scalb): Expect.
3875         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
3876         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
3877         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
3878         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
3879         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
3880         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
3881         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
3882         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
3883         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
3884         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
3885         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
3886         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
3887         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
3888         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
3889         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
3890         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
3891         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
3892         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
3893         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
3894         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
3895         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
3896         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
3897         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
3898         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
3899         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
3900         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
3901         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
3902         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
3903         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
3904         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
3905         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
3906         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
3907         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
3908         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
3909         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
3910         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
3911         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
3912         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
3913         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
3914         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
3915         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
3916         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
3917         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
3918         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
3919         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
3920         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
3921         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
3922         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
3923         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
3924         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
3925         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
3926         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
3927         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
3928         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
3929         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
3930         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
3931         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
3932         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
3933         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
3934         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
3935         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
3936         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
3937         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
3938         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
3939         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
3940         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
3941         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
3942         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
3943         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
3944         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
3945         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
3946         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
3947         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
3948         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
3949         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
3950         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
3951         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
3952         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
3953         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
3954         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
3955         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
3956         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
3957         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
3958         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
3959         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
3960         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
3961         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
3962         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
3963         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
3964         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
3965         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
3966         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
3967         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
3968         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
3969         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
3970         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
3971         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
3972         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
3973         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
3974         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
3975         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
3976         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
3977         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
3978         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
3979         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
3980         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
3981         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
3982         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
3983         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
3984         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
3985         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
3986         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
3987         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
3988         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
3989         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
3990         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
3991         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
3992         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
3993         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
3994         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
3995         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
3996         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
3997         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
3998         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
3999         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
4000         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
4001         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
4002         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
4003         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
4004         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
4005         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
4006         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
4007         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
4008         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
4009         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
4010         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
4011         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
4012
4013         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
4014         _XOPEN_SOURCE_EXTENDED for XPG4.
4015
4016         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
4017
4018         * Makeconfig (localtime): Remove variable.
4019         (inst_localtime-file): Likewise.
4020
4021 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4022
4023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
4024         Update.
4025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4026         Update.
4027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
4028         Update.
4029         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
4030         Update.
4031         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
4032         Update.
4033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
4034         Update.
4035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
4036         Update.
4037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
4038         Update.
4039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4040         Update.
4041
4042 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
4043
4044         [BZ #2550]
4045         [BZ #2570]
4046         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
4047         comparisons to determine direction to adjust input.
4048         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
4049         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
4050         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
4051         Likewise.
4052         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
4053         Likewise.
4054         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
4055         Likewise.
4056         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
4057         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
4058         Likewise.
4059         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
4060         Likewise.
4061         * math/libm-test.inc (nexttoward_test): Add more tests.
4062
4063 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
4064
4065         [BZ #14040]
4066         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
4067         in version GLIBC_2.1, not GLIBC_2.0.
4068         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
4069         Likewise.
4070
4071 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
4072
4073         [BZ #13942]
4074         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
4075         (1 - x) * (1 + x).
4076         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4077         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
4078         * math/libm-test.inc (acos_test): Add more tests.
4079         (asin_test): Likewise.
4080         * sysdeps/i386/fpu/libm-test-ulps: Update.
4081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4082
4083         [BZ #14034]
4084         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
4085         of square root.
4086         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
4087         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
4088         * math/libm-test.inc (acos_test_tonearest): New function.
4089         (acos_test_towardzero): Likewise.
4090         (acos_test_downward): Likewise.
4091         (acos_test_upward): Likewise.
4092         (asin_test_tonearest): Likewise.
4093         (asin_test_towardzero): Likewise.
4094         (asin_test_downward): Likewise.
4095         (asin_test_upward): Likewise.
4096         (main): Call the new functions.
4097         * sysdeps/i386/fpu/libm-test-ulps: Update.
4098         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4099
4100         [BZ #13884]
4101         [BZ #13924]
4102         * math/e_exp10.c: Include <float.h>.
4103         (__ieee754_exp10): Handle underflow here rather than multiplying
4104         large negative argument by M_LN10.
4105         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
4106         of __ieee754_expf.
4107         * math/e_exp10l.c: Include <float.h>.
4108         (__ieee754_exp10l): Handle underflow here rather than multiplying
4109         large negative argument by M_LN10l.
4110         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
4111         spurious overflow exception on underflow.
4112
4113 2012-04-29  Marek Polacek  <polacek@redhat.com>
4114
4115         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
4116         (__fortify_function): New macro.
4117         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
4118         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
4119         __extern_always_inline.
4120         * libio/bits/stdio2.h: Likewise.
4121         * libio/bits/stdio.h: Likewise.
4122         * string/string.h: Likewise.
4123         * string/bits/string3.h: Likewise.
4124         * include/stdio.h: Likewise.
4125         * stdlib/bits/stdlib.h: Likewise.
4126         * stdlib/stdlib.h: Likewise.
4127         * rt/bits/mqueue2.h: Likewise.
4128         * rt/mqueue.h: Likewise.
4129         * posix/bits/unistd.h: Likewise.
4130         * posix/unistd.h: Likewise.
4131         * io/bits/poll2.h: Likewise.
4132         * io/bits/fcntl2.h: Likewise.
4133         * io/fcntl.h: Likewise.
4134         * io/sys/poll.h: Likewise.
4135         * misc/bits/syslog.h: Likewise.
4136         * misc/bits/syslog-ldbl.h: Likewise.
4137         * misc/sys/syslog.h: Likewise.
4138         * socket/bits/socket2.h: Likewise.
4139         * socket/sys/socket.h: Likewise.
4140         * debug/tst-chk1.c: Likewise.
4141         * wcsmbs/bits/wchar2.h: Likewise.
4142         * wcsmbs/bits/wchar-ldbl.h: Likewise.
4143         * wcsmbs/wchar.h: Likewise.
4144
4145 2012-04-29  Andreas Jaeger  <aj@suse.de>
4146
4147         * Makerules (tests): Remove enable-check-abi protection.
4148         (check-abi-warn): Remove.
4149         (check-abi-%): Remove check-abi-warn usage.
4150
4151         * configure.in: Remove check-abi configure option.
4152         * configure: Regenerated.
4153         * config.make.in (enable-check-abi): Remove.
4154
4155 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
4156
4157         [BZ #14033]
4158         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
4159         double functions to double *_finite functions.
4160
4161         [BZ #13941]
4162         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
4163         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
4164         LDBL_MIN_EXP.
4165         * stdio-common/Makefile (tests): Add tst-sprintf3.
4166         * stdio-common/tst-sprintf3.c: New file.
4167
4168         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
4169         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
4170
4171 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4172
4173         * conform/conformtest.pl: Remove duplicate typed-constant
4174         handling.
4175
4176 2012-04-28  David S. Miller  <davem@davemloft.net>
4177
4178         * Makerules (%.abilist): Add vpath on sysdep_dirs.
4179         (check-abi-%): Remove AWK script prerequisite and explicit
4180         abilist directory.
4181         (check-abi): Rewrite to just diff the symlist with the abilist.
4182         (config-tls, config-abi-config): Delete, no longer used.
4183         (update-abi-%): Remove AWK script and explicit abilist directory.
4184         (update-abi): Rewrite to simply compare and conditionally copy the
4185         symlist and the sysdep abilist file.  Remove update-abi-config
4186         checks.
4187         * abilist/ld.abilist: Remove.
4188         * abilist/libBrokenLocale.abilist: Remove.
4189         * abilist/libanl.abilist: Remove.
4190         * abilist/libcrypt.abilist: Remove.
4191         * abilist/libdl.abilist: Remove.
4192         * abilist/librt.abilist: Remove.
4193         * abilist/libthread_db.abilist: Remove.
4194         * abilist/libutil.abilist: Remove.
4195         * scripts/extract-abilist.awk: Remove.
4196         * scripts/merge-abilist.awk: Remove.
4197         * sysdeps/generic/libcidn.abilist: New file.
4198         * sysdeps/generic/libnss_compat.abilist: New file.
4199         * sysdeps/generic/libnss_db.abilist: New file.
4200         * sysdeps/generic/libnss_dns.abilist: New file.
4201         * sysdeps/generic/libnss_files.abilist: New file.
4202         * sysdeps/generic/libnss_hesiod.abilist: New file.
4203         * sysdeps/generic/libnss_nis.abilist: New file.
4204         * sysdeps/generic/libnss_nisplus.abilist: New file.
4205         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
4206         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
4207         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
4208         file.
4209         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
4210         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
4211         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
4212         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
4213         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
4214         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
4215         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
4216         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
4217         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
4218         file.
4219         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
4220         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
4221         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
4222         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
4223         file.
4224         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
4225         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
4226         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
4227         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
4228         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
4229         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
4230         file.
4231         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
4232         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
4233         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
4234         file.
4235         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
4236         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
4237         New file.
4238         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
4239         New file.
4240         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
4241         New file.
4242         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
4243         New file.
4244         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
4245         New file.
4246         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
4247         New file.
4248         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
4249         New file.
4250         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
4251         New file.
4252         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
4253         New file.
4254         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
4255         New file.
4256         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
4257         New file.
4258         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
4259         New file.
4260         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
4261         New file.
4262         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
4263         file.
4264         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
4265         New file.
4266         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
4267         New file.
4268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
4269         file.
4270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
4271         New file.
4272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
4273         New file.
4274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
4275         file.
4276         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
4277         New file.
4278         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
4279         New file.
4280         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
4281         New file.
4282         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
4283         New file.
4284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
4285         New file.
4286         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
4287         New file.
4288         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
4289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
4290         file.
4291         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
4292         New file.
4293         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
4294         file.
4295         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
4296         file.
4297         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
4298         file.
4299         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
4300         file.
4301         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
4302         file.
4303         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
4304         New file.
4305         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
4306         file.
4307         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
4308         file.
4309         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
4310         New file.
4311         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
4312         file.
4313         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
4314         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
4315         file.
4316         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
4317         New file.
4318         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
4319         file.
4320         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
4321         file.
4322         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
4323         file.
4324         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
4325         file.
4326         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
4327         file.
4328         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
4329         New file.
4330         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
4331         file.
4332         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
4333         file.
4334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
4335         New file.
4336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
4337         file.
4338         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
4339         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
4340         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
4341         file.
4342         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
4343         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
4344         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
4345         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
4346         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
4347         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
4348         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
4349         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
4350         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
4351         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
4352         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
4353         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
4354         file.
4355         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
4356         New file.
4357         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
4358         file.
4359         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
4360         file.
4361         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
4362         file.
4363         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
4364         file.
4365         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
4366         file.
4367         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
4368         New file.
4369         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
4370         New file.
4371         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
4372         file.
4373         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
4374         New file.
4375         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
4376         file.
4377         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
4378         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
4379         file.
4380         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
4381         New file.
4382         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
4383         file.
4384         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
4385         file.
4386         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
4387         file.
4388         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
4389         file.
4390         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
4391         file.
4392         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
4393         New file.
4394         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
4395         New file.
4396         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
4397         file.
4398         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
4399         New file.
4400         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
4401         file.
4402
4403 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
4404
4405         * conform/conformtest.pl: Fix typo in handling typed-constant from
4406         allow-header.
4407
4408 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4409
4410         * README: Cut down references to pre-2.6 Linux kernels and
4411         Linuxthreads.  Update lists of configurations in libc and ports
4412         and sort alphabetically.  Say "or newer" with Linux kernel version
4413         requirements.
4414
4415         * config.h.in [IS_IN_build]: Allow compiling without optimization.
4416
4417 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4418
4419         [BZ #887]
4420         * math/libm-test.inc (logb_test_downward): New test to expose
4421         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
4422         rounding mode.
4423
4424 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
4425
4426         [BZ #14027]
4427         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
4428         to be done.
4429         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
4430         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
4431
4432 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
4433
4434         * sysdeps/unix/i386/brk.S: Remove file.
4435         * sysdeps/unix/i386/dl-brk.S: Likewise.
4436         * sysdeps/unix/i386/pipe.S: Likewise.
4437         * sysdeps/unix/i386/sigreturn.S: Likewise.
4438         * sysdeps/unix/i386/syscall.S: Likewise.
4439         * sysdeps/unix/i386/vfork.S: Likewise.
4440         * sysdeps/unix/i386/wait.S: Likewise.
4441
4442         * sysdeps/unix/common/tcsendbrk.c: Move to ...
4443         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
4444
4445         * configure.in (arm*-none*): Do not allow without
4446         --enable-hacker-mode.
4447         (netbsd*): Remove case setting base_os.
4448         (386bsd*): Likewise.
4449         (freebsd*): Likewise.
4450         (bsdi*): Likewise.
4451         (osf*): Likewise.
4452         (sunos*): Likewise.
4453         (ultrix*): Likewise.
4454         (newsos*): Likewise.
4455         (dynix*): Likewise.
4456         (*bsd*): Likewise.
4457         (sysv*): Likewise.
4458         (isc*): Likewise.
4459         (esix*): Likewise.
4460         (sco*): Likewise.
4461         (minix*): Likewise.
4462         (irix4*): Likewise.
4463         (irix6*): Likewise.
4464         (solaris[2-9]*): Likewise.
4465         (none): Likewise.
4466         * configure: Regenerated.
4467
4468 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4469
4470         [BZ #11521]
4471         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
4472         overflow or cancellation in calculating denominator.
4473         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
4474         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
4475         down expression to avoid unexpected rounding in newer GCCs.
4476         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
4477
4478 2012-04-26  David S. Miller  <davem@davemloft.net>
4479
4480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
4481         long-double compat symbols.
4482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
4483         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
4484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
4485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
4486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
4487         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
4488         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
4489         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
4490         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
4491         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
4492         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
4493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
4494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
4495
4496 2012-04-25  David S. Miller  <davem@davemloft.net>
4497
4498         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
4499         HWCAP_* values only after the memory barriers have been defined.
4500         (atomic_full_barrier): Define.
4501         (atomic_read_barrier): Define.
4502         (atomic_write_barrier): Define.
4503
4504 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4505
4506         * shlib-versions: Add libgcc_s version information.
4507         * sysdeps/generic/libgcc_s.h: Remove.
4508         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
4509         libgcc_s.h.
4510         * sysdeps/gnu/unwind-resume.c: Likewise.
4511         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
4512
4513 2012-04-25  David S. Miller  <davem@davemloft.net>
4514
4515         * sysdeps/unix/sparc/brk.S: Delete.
4516         * sysdeps/unix/sparc/dl-brk.S: Delete.
4517         * sysdeps/unix/sparc/pipe.S: Delete.
4518         * sysdeps/unix/sparc/sysdep.S: Delete.
4519         * sysdeps/unix/sparc/sysdep.h: Delete.
4520         * sysdeps/unix/sparc/vfork.S: Delete.
4521         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
4522         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
4523         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
4524         ret_ERRVAL, r0, r1, MOVE): Define.
4525         (JUMPTARGET): Remove.
4526         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
4527         sysdeps/unix/sparc/sysdep.h
4528         (ENTRY, END): Remove.
4529         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
4530
4531 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
4532
4533         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
4534         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
4535         -DIS_IN_build.
4536
4537         * timezone/README: Update upstream location and email address for
4538         tzcode and tzdata.
4539         * timezone/zdump.c: Update from tzcode 2012b.
4540         * timezone/zic.c: Likewise.
4541
4542         * configure.in (libc_cv_as_needed): Remove test.
4543         * configure: Regenerated.
4544         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
4545         conditional definition.
4546         [$(have-as-needed) != yes] (no-as-needed): Likewise.
4547         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
4548         * config.make.in (have-as-needed): Remove variable.
4549
4550 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
4551             Paul Pluzhnikov  <ppluzhnikov@google.com>
4552
4553         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
4554         strings correctly.
4555
4556 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
4557
4558         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
4559         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
4560         * sysdeps/sh/strlen.S: Likewise.
4561
4562 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4563
4564         * sysdeps/unix/fork.S: Remove file.
4565         * sysdeps/unix/i386/fork.S: Likewise.
4566         * sysdeps/unix/sparc/fork.S: Likewise.
4567
4568         * sysdeps/unix/system.c: Remove file.
4569         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
4570
4571         * sysdeps/unix/getegid.S: Remove file.
4572         * sysdeps/unix/geteuid.S: Likewise.
4573
4574 2012-04-24  Roland McGrath  <roland@hack.frob.com>
4575
4576         * scripts/check-localplt.awk: New file.
4577         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
4578         of diff.
4579         * scripts/data/localplt-generic.data: Add a comment.
4580
4581         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
4582         NODE when __dir_mkfile failed.
4583         * sysdeps/mach/hurd/symlinkat.c: Likewise.
4584         Reported by Ludovic Courtès <ludo@gnu.org>.
4585
4586 2012-04-24  Andreas Jaeger  <aj@suse.de>
4587
4588         * Makerules (common-clean): Also remove gen-as-const-headers
4589         files.
4590
4591 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4592
4593         * Makerules (native-compile): Do not change working directory for
4594         build.  Use $(OUTPUT_OPTION) in command.
4595         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
4596
4597 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4598
4599         [BZ #13886]
4600         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
4601         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
4602         * math/libm-test.inc (floor_test): Add more tests.
4603         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
4604
4605 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
4606
4607         * sysdeps/unix/getdents.c: Remove file.
4608         * sysdeps/unix/sysv/getdents.c: Likewise.
4609         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
4610
4611         * sysdeps/unix/syscalls.list (madvise): Add syscall from
4612         sysdeps/unix/mman/syscalls.list.
4613         (mmap): Likewise.
4614         (mprotect): Likewise.
4615         (msync): Likewise.
4616         (munmap): Likewise.
4617         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
4618         * sysdeps/unix/mman/syscalls.list: Remove.
4619         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
4620
4621         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
4622         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
4623         * configure: Regenerated.
4624         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
4625         $(libgcc_s_suffix).
4626         * config.make.in (libgcc_s_suffix): Remove variable.
4627
4628 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
4629
4630         * sysdeps/unix/sysv/gethostname.c: Move to ...
4631         * sysdeps/posix/gethostname.c: ... here.
4632
4633         * sysdeps/unix/execve.S: Remove file.
4634
4635         * sysdeps/unix/_exit.S: Remove file.
4636
4637 2012-04-23  Andreas Jaeger  <aj@suse.de>
4638
4639         [BZ #13739]
4640         * manual/Makefile: Remove make dist support, there's no
4641         need for a stand-alone documentation tar ball.
4642         (TEXI2DVI): Define always, it's not in Makeconfig.
4643         (dist): Removed.
4644         (tar-it): Removed.
4645         (edition): Removed.
4646         (glibc-doc-$(edition).tar): Removed
4647         (%.Z): Removed.
4648         (%.gz): Removed.
4649         (%.uu): Removed.
4650         (ETAGS): Remove, it's in Makeconfig.
4651         (move-if-change): Remove, it's in Makeconfig.
4652
4653 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         [BZ #13970]
4656         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
4657         (strtod, strtof, strtold, strtol, strtoul, strtoq)
4658         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
4659         (strtod_l, strtof_l, strtold_l): Remove __wur.
4660         It is not necessarily an error to ignore strtol's return value.
4661         One can reliably look at the stored endptr to decide whether
4662         the number had valid syntax.
4663
4664 2012-04-21  Andreas Jaeger  <aj@suse.de>
4665
4666         [BZ #13739]
4667         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
4668
4669 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
4670
4671         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
4672         * sysdeps/unix/sysv/Versions: Remove file.
4673
4674 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
4675
4676         [BZ #13927]
4677         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4678
4679 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
4680
4681         [BZ #7064]
4682         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
4683         version from __vm86.
4684
4685 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
4686
4687         * sysdeps/unix/common/lxstat.c: Remove file.
4688         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
4689
4690         * sysdeps/unix/sysv/Makefile: Remove file.
4691
4692         * sysdeps/unix/sysv/direct.h: Remove file.
4693
4694         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
4695         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
4696         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
4697         * sysdeps/unix/sysv/bits/signum.h: Likewise.
4698         * sysdeps/unix/sysv/bits/stat.h: Likewise.
4699         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
4700         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
4701
4702         * sysdeps/unix/sysv/setrlimit.c: Remove file.
4703
4704         * sysdeps/unix/xmknod.c: Remove file.
4705         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
4706
4707         * sysdeps/unix/sysv/settimeofday.c: Remove file.
4708
4709         * sysdeps/unix/sysv/i386/time.S: Remove file.
4710
4711         * sysdeps/unix/fxstat.c: Remove file.
4712         * sysdeps/unix/xstat.c: Likewise.
4713         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
4714
4715         * sysdeps/unix/sysv/sigaction.c: Remove file.
4716
4717         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
4718         (sysdep_headers): Remove variable.
4719         [termio.h not in sysdep_headers] (generated): Likewise.
4720         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
4721         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
4722         * sysdeps/unix/sysv/tcdrain.c: Likewise.
4723         * sysdeps/unix/sysv/tcflow.c: Likewise.
4724         * sysdeps/unix/sysv/tcflush.c: Likewise.
4725         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
4726         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
4727         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
4728         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
4729         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
4730
4731         * sysdeps/unix/siglist.c: Remove file.
4732
4733         * sysdeps/unix/getppid.S: Remove file.
4734
4735         * sysdeps/unix/mkdir.c: Remove file.
4736         * sysdeps/unix/rmdir.c: Likewise.
4737
4738 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
4739
4740         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
4741         ERR_MAX value.
4742         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
4743         errlist-compat value.
4744
4745 2012-04-18  David S. Miller  <davem@davemloft.net>
4746
4747         * sysdeps/generic/memcopy.h (reg_char): Delete.
4748         * debug/strcat_chk.c: Use char, not reg_char.
4749         * debug/strcpy_chk.c: Likewise.
4750         * debug/strncat_chk.c: Likewise.
4751         * debug/strncpy_chk.c: Likewise.
4752         * string/memchr.c: Likewise.
4753         * string/memrchr.c: Likewise.
4754         * string/rawmemchr.c: Likewise.
4755         * string/strcat.c: Likewise.
4756         * string/strchr.c: Likewise.
4757         * string/strchrnul.c: Likewise.
4758         * string/strcmp.c: Likewise.
4759         * string/strcpy.c: Likewise.
4760         * string/strncat.c: Likewise.
4761         * string/strncmp.c: Likewise.
4762         * string/strncpy.c: Likewise.
4763
4764 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4765
4766         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
4767         __builtin_memcopy is called when src and dest ranges are known to not
4768         overlap.
4769
4770 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4771
4772         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
4773         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
4774         fwd_align_merge macro call.
4775         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
4776         bwd_align_merge macro call.
4777         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4778
4779 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
4780
4781         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
4782         bwd_align_merge macros.
4783         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
4784         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
4785         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4786
4787 2012-04-18  David S. Miller  <davem@davemloft.net>
4788
4789         * sysdeps/sparc/sparc64/memcopy.h: Delete.
4790
4791 2012-04-18  Andreas Jaeger  <aj@suse.de>
4792
4793         [BZ# 6794]
4794         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
4795         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
4796         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4797
4798         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
4799         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
4800         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4801
4802         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
4803         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
4804         Adjust for changed ldbl-128 files.
4805
4806         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
4807         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
4808         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
4809
4810 2012-04-17  David S. Miller  <davem@davemloft.net>
4811
4812         * sysdeps/sparc/sparc32/memcopy.h: Delete.
4813
4814 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
4815
4816         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
4817         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
4818         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
4819         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
4820         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
4821         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
4822
4823 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4824
4825         [BZ #6794]
4826         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
4827         * math/libm-test.inc: Add ilogb errno and exception tests.
4828         * math/w_ilogb.c: New file: ilogb wrapper.
4829         * math/w_ilogbf.c: New file: ilogbf wrapper.
4830         * math/w_ilogbl.c: New file: ilogbl wrapper.
4831         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
4832         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
4833         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
4834         exception being thrown with 0.0 as argument.
4835         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
4836         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
4837         exception being thrown with 0.0 as argument.
4838         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
4839         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4840         exception being thrown with 0.0 as argument.
4841         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
4842         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
4843         exception being thrown with 0.0 as argument.
4844         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
4845         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
4846         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
4847         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
4848         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
4849         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
4850         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
4851         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
4852         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
4853
4854 2012-04-17  Petr Baudis  <pasky@ucw.cz>
4855
4856         * include/sys/uio.h: Change __vector to __iovec to avoid clash
4857         with altivec.
4858
4859 2012-04-16  Marek Polacek  <polacek@redhat.com>
4860
4861         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
4862
4863 2012-04-16  Marek Polacek  <polacek@redhat.com>
4864
4865         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
4866         operands of fdivp instruction.
4867
4868 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4869
4870         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
4871         * elf/tst-auditmod3b.c: Likewise.
4872         * elf/tst-auditmod4b.c: Likewise.
4873         * elf/tst-auditmod5b.c: Likewise.
4874         * elf/tst-auditmod6b.c: Likewise.
4875         * elf/tst-auditmod6c.c: Likewise.
4876         * elf/tst-auditmod7b.c: Likewise.
4877         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
4878         * sysdeps/x86_64/preconfigure.in: Likewise.
4879         * sysdeps/x86_64/preconfigure: Regenerated.
4880
4881 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4882
4883         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
4884         __ILP32__.
4885
4886 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
4887
4888         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4889         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
4890
4891 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
4892
4893         [BZ #13973]
4894         * locale/iso-639.def: Fix gl language name. Spotted by
4895         Yaron Shahrabani.
4896
4897 2012-04-12  Roland McGrath  <roland@hack.frob.com>
4898
4899         [BZ #2074]
4900         * libio/libio.h (__io_write_fn): Update comment.
4901
4902 2012-04-12  Petr Baudis  <pasky@ucw.cz>
4903
4904         [BZ #2074]
4905         * stdio.texi (Hook Functions): The user provided writer function
4906         is not allowed to return -1.
4907
4908 2012-04-11  David S. Miller  <davem@davemloft.net>
4909
4910         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4911
4912 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
4913
4914         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
4915         Add a leading slash to rtkaio.
4916
4917 2012-04-11  Jim Meyering  <meyering@redhat.com>
4918
4919         [BZ #11959]
4920         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
4921         It is not necessarily an error to ignore fwrite's return
4922         value.  One can reliably use ferror to test for errors after
4923         the fact.
4924
4925 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4926
4927         * bits/types.h (__snseconds_t): New type.
4928         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
4929
4930         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
4931         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4932         (__SNSECONDS_T_TYPE): Likewise.
4933         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4934         (__SNSECONDS_T_TYPE): Likewise.
4935         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4936         (__SNSECONDS_T_TYPE): Likewise.
4937
4938 2012-04-10  Andreas Jaeger  <aj@suse.de>
4939
4940         [BZ #2636]
4941         * manual/time.texi (Processor Time): Return type of times is
4942         elapsed real time since an arbitrary point in the past.
4943         (CPU Time): Move CLK_TCK from here...
4944         (Processor Time): ...to here.  Correct description.
4945         * manual/conf.texi (Constants for Sysconf): Correct description of
4946         _SC_CLK_TCK.
4947
4948 2012-04-10  David S. Miller  <davem@davemloft.net>
4949
4950         [BZ #13967]
4951         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
4952         where the is a gap between DT_REL(A) and DT_JMPREL.
4953
4954 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4955
4956         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
4957         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
4958         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
4959
4960 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4961
4962         * elf/dl-support.c (_dl_inhibit_cache): New variable.
4963         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
4964         (dl_main): Handle --inhibit-cache.
4965         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
4966         _dl_inhibit_cache.
4967         * elf/dl-load.c (_dl_map_object): Use it.
4968         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
4969
4970 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
4971
4972         [BZ #13872]
4973         * sysdeps/i386/fpu/e_powl.S (p78): New object.
4974         (__ieee754_powl): Saturate large exponents rather than testing for
4975         overflow of y*log2(x).
4976         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4977         * math/libm-test.inc (pow_test): Do not permit spurious overflow
4978         exceptions.
4979
4980         [BZ #11521]
4981         * math/s_ctan.c: Include <float.h>.
4982         (__ctan): Avoid internal overflow or cancellation in calculating
4983         denominator.
4984         * math/s_ctanf.c: Likewise.
4985         * math/s_ctanl.c: Likewise.
4986         * math/s_ctanh.c: Likewise.
4987         * math/s_ctanhf.c: Likewise.
4988         * math/s_ctanhl.c: Likewise.
4989         * math/libm-test.inc (ctan_test): Add more tests.
4990         (ctanh_test): Likewise.
4991         * sysdeps/i386/fpu/libm-test-ulps: Update.
4992         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4993
4994 2012-04-09  Andreas Jaeger  <aj@suse.de>
4995
4996         [BZ #6894]
4997         * manual/filesys.texi (Directory Entries): Mention that d_namlen
4998         is an optional BSD extension.
4999
5000         [BZ #10254]
5001         * manual/stdio.texi (Opening Streams): Document additional fopen
5002         parameters.
5003
5004 2012-04-09  Roland McGrath  <roland@hack.frob.com>
5005
5006         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
5007         %eax without telling the compiler.
5008
5009 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
5010
5011         [BZ # 13963]
5012         * manual/install.texi: Use sourceware.org.
5013
5014 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
5015
5016         [BZ #13873]
5017         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
5018         (__ieee754_pow): Generate overflow and underflow using huge*huge
5019         and tiny*tiny rather than just returning constant infinity or zero
5020         for large exponents.
5021         * math/libm-test.inc (pow_test): Require overflow exceptions for
5022         applicable cases of large exponents.
5023
5024         [BZ #706]
5025         * sysdeps/i386/fpu/e_pow.S (p10): New object.
5026         (__ieee754_pow): Use iterative multiplication algorithm only for
5027         integer exponents with absolute value below 1024.  Check for odd
5028         integer exponents when using algorithm for real exponents.
5029         * math/libm-test.inc (pow_test): Add more tests.
5030         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5031
5032 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
5033
5034         [BZ #13705]
5035         * math/libm-test.inc (exp_test): Do not allow overflow exception
5036         on underflow test.
5037
5038 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
5039
5040         [BZ #13705]
5041         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
5042         instead of __kernel_standard_f.
5043
5044 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
5045
5046         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
5047         * sysdeps/x86_64/memset_chk.S: Likewise.
5048
5049 2012-04-08  Andreas Jaeger  <aj@suse.de>
5050
5051         [BZ #10153]
5052         * manual/startup.texi (Environment Access): Describe return value
5053         for putenv and setenv.
5054
5055         [BZ #6895]
5056         * manual/filesys.texi (Directory Entries): Add description for
5057         DT_LNK.
5058
5059         [BZ #6890]
5060         * manual/filesys.texi (Directory Entries): Clarify that it's file
5061         system not operating system in the description of DT_UNKNOWN.
5062
5063         [BZ #6578]
5064         * manual/syslog.texi (closelog): Fix reference, it's openlog.
5065
5066 2012-04-08  Stephen Compall  <s11@member.fsf.org>
5067
5068         [BZ #6649]
5069         * manual/llio.texi (Opening and Closing Files): Add cross
5070         reference to explain mode argument.
5071
5072 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
5073
5074         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
5075         * sysdeps/x86_64/memset_chk.S: Likewise.
5076
5077 2012-04-07  David S. Miller  <davem@davemloft.net>
5078
5079         * elf/elf.h (R_SPARC_WDISP10): Define.
5080         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
5081         R_SPARC_SIZE32.
5082         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
5083         R_SPARC_SIZE64 and R_SPARC_H34.
5084
5085 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
5086
5087         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
5088         conditions and remove no longer applicable assertion.
5089
5090 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5091
5092         * bits/byteswap.h: Include <features.h>.
5093         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
5094         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
5095
5096 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5097
5098         * bits/byteswap.h (__bswap_16): Removed.
5099         Include <bits/byteswap-16.h> to get __bswap_16.
5100         * sysdeps/i386/bits/byteswap.h: Likewise.
5101         * sysdeps/s390/bits/byteswap.h: Likewise.
5102         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5103         * bits/byteswap-16.h: New file.
5104         * sysdeps/i386/bits/byteswap-16.h: Likewise.
5105         * sysdeps/s390/bits/byteswap-16.h: Likewise.
5106         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
5107         * string/Makefile (headers): Add bits/byteswap-16.h.
5108
5109 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5110
5111         [BZ #13895]
5112         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
5113         extra indirection.
5114         * nss/Makefile (tests-static, tests): Add tst-nss-static.
5115         * nss/tst-nss-static.c: New.
5116
5117 2012-04-06  Robert Millan  <rmh@gnu.org>
5118
5119         [BZ #6486]
5120         * manual/llio.texi (File Position Primitive): lseek
5121         refers to WHENCE when it really means OFFSET.
5122
5123 2012-04-06  Andreas Jaeger  <aj@suse.de>
5124
5125         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
5126         strncmp declarations.
5127
5128         * abilist/libc.abilist: Add __poll and __ppoll.
5129
5130 2012-04-05  David S. Miller  <davem@davemloft.net>
5131
5132         * scripts/check-local-headers.sh: Accept a host triplet in the
5133         path matched by the exclude regexp.
5134
5135         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
5136         definition.
5137         * sysdeps/powerpc/powerpc32/dl-machine.h
5138         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
5139         * sysdeps/s390/s390-32/dl-machine.h
5140         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5141         * sysdeps/sparc/sparc32/dl-machine.h
5142         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5143         * sysdeps/sparc/sparc64/dl-machine.h
5144         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
5145
5146         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
5147         lazy binding.
5148         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
5149         undefined symbol errors.
5150
5151         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
5152         DT_NEEDED entries.
5153
5154 2012-04-05  Michael Matz  <matz@suse.de>
5155
5156         [BZ #13592]
5157         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
5158
5159 2012-04-05  Andreas Jaeger  <aj@suse.de>
5160
5161         [BZ #13908]
5162         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
5163         comment.
5164
5165 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5166
5167         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
5168         which ROUND is no valid rounding mode.
5169
5170 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5171
5172         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
5173         read again.
5174         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
5175
5176 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5177
5178         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
5179         an exception using FPU order intentionally.
5180
5181 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
5182
5183         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
5184         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
5185         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
5186         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
5187
5188 2012-04-05  Simon Josefsson  <simon@josefsson.org>
5189
5190         [BZ #12340]
5191         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
5192         EINVAL when BUFLEN is too smal.
5193
5194 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5195
5196         [BZ #13553]
5197         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
5198         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
5199
5200 2012-04-03  Andreas Jaeger  <aj@suse.de>
5201
5202         [BZ #13938]
5203         * manual/setjmp.texi (System V contexts): Fix sentence.
5204
5205         [BZ #13926]
5206         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
5207         New macro for this case.
5208         [!__GNUC__] (__bswap_64): New inline function for this case.
5209         * sysdeps/x86_64/bits/byteswap.h: Likewise.
5210         * bits/byteswap.h: Likewise.
5211         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
5212         ull, guard with __GLIBC_HAVE_LONG_LONG.
5213
5214         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
5215         __GLIBC_HAVE_LONG_LONG.
5216
5217         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
5218         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
5219
5220 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
5221
5222         [BZ #13691]
5223         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
5224         inptr and inend, rather than using last_ch.
5225
5226 2012-04-02  David S. Miller  <davem@davemloft.net>
5227
5228         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
5229         * stdio-common/printf-parse.h (read_int): Change return type to
5230         'int', return -1 on INT_MAX overflow.
5231         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
5232         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
5233         overflows INT_MAX.  Check for overflow of in-format-string precision
5234         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
5235         SIZE_MAX not INT_MAX for integer overflow test.
5236         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
5237         skip the construct in the format string but do not record anything.
5238         * stdio-common/bug22.c: Adjust to test both width/prevision
5239         INT_MAX overflow as well as total length INT_MAX overflow.  Check
5240         explicitly for proper errno values.
5241
5242 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5243
5244         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
5245         CHAR_MAX.
5246         * string/test-strcmp.c [! WIDE]: Likewise.
5247         * time/tst-mktime2.c: Likewise for INT_MAX.
5248         * string/test-string.h: #include <sys/param.h> for MIN.
5249
5250         * csu/init-first.c (__libc_init_first): Call __ctype_init.
5251         * sysdeps/i386/init-first.c (init): Likewise.
5252         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
5253         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
5254         * sysdeps/sh/init-first.c (init): Likewise.
5255
5256 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
5257
5258         * po/ru.po: Update from translation team.
5259         * po/vi.po: Likewise.
5260
5261 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
5262
5263         * resolv/nss_dns/dns-host.c: Merge copyright years.
5264
5265 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5266
5267         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
5268         Optimize memcpy with prefetch if
5269         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
5270         src, dst pointers have unequal 16 byte alignments.
5271
5272 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
5273
5274         [BZ #13928]
5275         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
5276         from a CNAME entry and return the minimum ttl for the query.
5277         (gaih_getanswer_slice): Likewise.
5278
5279 2012-03-30  Jeff Law  <law@redhat.com>
5280
5281         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
5282         due to long keys.
5283         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
5284         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
5285
5286         * resolv/nss_dns/dns-host.c: Update copyright year.
5287
5288 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
5289
5290         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
5291         requests to save a system call.  Fix check that all bytes are sent.
5292
5293         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
5294         comments for sendmmsg.
5295
5296 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5297
5298         [BZ #13691]
5299         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
5300         with only 1 character between 0x0041 and 0x01b0.
5301         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
5302         * wcsmbs/tst-mbsnrtowcs.c: New file.
5303
5304 2012-03-29  David S. Miller  <davem@davemloft.net>
5305
5306         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
5307         small copies by hand.
5308
5309 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5310
5311         [BZ #13761]
5312         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
5313         _nss_compat_initgroups_dyn): Fall back to malloc/free
5314         for large group memberships.
5315
5316 2012-03-28  David S. Miller  <davem@davemloft.net>
5317
5318         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
5319         that branches into memcpy.
5320         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
5321         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
5322         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
5323         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
5324         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
5325         bits.
5326         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
5327         implementation too.
5328         * sysdeps/sparc/mempcpy.S: New file.
5329
5330         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
5331         the IFUNC routine in the libc case.
5332         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
5333
5334         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
5335         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
5336         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
5337         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
5338         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
5339         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
5340         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
5341         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
5342
5343         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
5344         loop to 256 bytes instead of 64 bytes and fix test signedness.
5345
5346         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
5347         * sysdeps/sparc/sparc32/Makefile: rather than here...
5348         * sysdeps/sparc/sparc64/Makefile: and here.
5349
5350 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
5351
5352         * malloc/mallocbug.c: Avoid warnings about unused variables.
5353
5354 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5355
5356         [BZ #13760]
5357         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
5358         in the right place. Discard and retry query if response is
5359         larger than input buffer size.
5360
5361 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
5362
5363         [BZ #369]
5364         [BZ #2678]
5365         [BZ #3866]
5366         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
5367         x for large integer exponent.
5368         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
5369         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
5370         sign of result as needed afterwards.
5371         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
5372         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
5373         result for underflowing pow the same as for overflow.
5374         (__kernel_standard_l): Handle powl overflow and underflow here
5375         rather than calling __kernel_standard.
5376         * math/libm-test.inc (pow_test): Add more tests.
5377
5378         [BZ #3868]
5379         [BZ #13879]
5380         [BZ #13910]
5381         [BZ #13911]
5382         [BZ #13912]
5383         [BZ #13913]
5384         [BZ #13915]
5385         [BZ #13916]
5386         [BZ #13917]
5387         [BZ #13918]
5388         [BZ #13919]
5389         [BZ #13920]
5390         [BZ #13921]
5391         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
5392         * sysdeps/ieee754/k_standard.c: Include <float.h>.
5393         (__kernel_standard_l): New function.
5394         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
5395         __kernel_standard.
5396         * math/w_acosl.c (__acosl): Likewise.
5397         * math/w_asinl.c (__asinl): Likewise.
5398         * math/w_atan2l.c (__atan2l): Likewise.
5399         * math/w_atanhl.c (__atanhl): Likewise.
5400         * math/w_coshl.c (__coshl): Likewise.
5401         * math/w_exp10l.c (__exp10l): Likewise.
5402         * math/w_exp2l.c (__exp2l): Likewise.
5403         * math/w_fmodl.c (__fmodl): Likewise.
5404         * math/w_hypotl.c (__hypotl): Likewise.
5405         * math/w_j0l.c (__j0l, __y0l): Likewise.
5406         * math/w_j1l.c (__j1l, __y1l): Likewise.
5407         * math/w_jnl.c (__jnl, __ynl): Likewise.
5408         * math/w_lgammal.c (__lgammal): Likewise.
5409         * math/w_log10l.c (__log10l): Likewise.
5410         * math/w_log2l.c (__log2l): Likewise.
5411         * math/w_logl.c (__logl): Likewise.
5412         * math/w_powl.c (__powl): Likewise.
5413         * math/w_remainderl.c (__remainderl): Likewise.
5414         * math/w_scalbl.c (sysv_scalbl): Likewise.
5415         * math/w_sinhl.c (__sinhl): Likewise.
5416         * math/w_sqrtl.c (__sqrtl): Likewise.
5417         * math/w_tgammal.c (__tgammal): Likewise.
5418         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
5419         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
5420         * math/libm-test.inc (acos_test): Add more tests.
5421         (acosh_test): Likewise.
5422         (asin_test): Likewise.
5423         (atanh_test): Likewise.
5424         (exp_test): Likewise.
5425         (exp10_test): Likewise.
5426         (exp2_test): Likewise.
5427         (expm1_test): Likewise.
5428         (lgamma_test): Likewise.
5429         (log_test): Likewise.
5430         (log10_test): Likewise.
5431         (log1p_test): Likewise.
5432         (log2_test): Likewise.
5433         (pow_test): Do not allow some spurious overflow exceptions.
5434         (sqrt_test): Add more tests.
5435         (tgamma_test): Likewise.
5436         (y0_test): Likewise.
5437         (y1_test): Likewise.
5438         (yn_test): Likewise.
5439
5440 2012-03-27  Anton Blanchard  <anton@samba.org>
5441
5442         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
5443         MAP_HUGETLB.
5444         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5445         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
5446         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5447
5448 2012-03-27  David S. Miller  <davem@davemloft.net>
5449
5450         * conform/Makefile: Run run-conformtest.sh using $(BASH).
5451
5452         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
5453         have-as-vis3 check.
5454
5455 2012-03-27  Andreas Jaeger  <aj@suse.de>
5456
5457         * sysdeps/x86_64/elf/configure.in: Moved to ...
5458         * sysdeps/x86_64/configure.in: ... here.
5459         * sysdeps/x86_64/elf/start.S: Moved to ...
5460         * sysdeps/x86_64/start.S: ... here.
5461         * sysdeps/x86_64/elf/configure: Delete.
5462
5463         * sysdeps/x86_64/configure.in: Merge contents from
5464         sysdeps/i386/configure.in (without i686 check).
5465
5466         * sysdeps/i386/elf/Versions: Merge into ...
5467         * sysdeps/i386/Versions: ... this.
5468         * sysdeps/i386/elf/Versions: Delete file.
5469         * sysdeps/i386/elf/start.S: Moved to ...
5470         * sysdeps/i386/start.S: ...here.
5471         * sysdeps/i386/elf/configure.in: Merge into...
5472         * sysdeps/i386/configure.in: ...here.
5473         * sysdeps/i386/elf/configure.in: Delete file.
5474         * sysdeps/i386/elf/configure: Delete file.
5475
5476         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
5477         * debug/backtracesyms.c: ... here.
5478         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
5479         * debug/backtracesymsfd.c: ... here.
5480         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
5481         * sysdeps/generic/ifunc-sel.h: ... here.
5482
5483         * sysdeps/unix/i386/start.c: Delete file.
5484         * sysdeps/unix/sparc/start.c: Delete file.
5485         * sysdeps/unix/start.c: Delete file.
5486
5487         * sysdeps/sh/elf/configure.in: Moved to ...
5488         * sysdeps/sh/configure.in: ... here.
5489         * sysdeps/sh/elf/start.S: Moved to ...
5490         * sysdeps/sh/start.S: ... here.
5491         * sysdeps/sh/elf/configure: Delete file.
5492
5493         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
5494         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
5495         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
5496         * sysdeps/powerpc/powerpc64/entry.h: ... here.
5497         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
5498         * sysdeps/powerpc/powerpc64/start.S: here.
5499         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
5500         * sysdeps/powerpc/powerpc64/Makefile: ... this.
5501         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
5502         * sysdeps/powerpc/powerpc64/configure.in: ... this.
5503         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
5504
5505         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
5506         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
5507         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
5508         * sysdeps/powerpc/powerpc32/start.S: ... here.
5509         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
5510         * sysdeps/powerpc/powerpc32/configure.in: ... this.
5511         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
5512
5513         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
5514         * sysdeps/powerpc/ifunc-sel.h: ... here.
5515         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
5516         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
5517
5518         * sysdeps/sparc/elf/configure.in: Moved to ...
5519         * sysdeps/sparc/configure.in: ... here.
5520         * sysdeps/sparc/elf/configure: Delete file.
5521         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
5522         * sysdeps/sparc/sparc32/start.S: ... here.
5523         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
5524         * sysdeps/sparc/sparc64/start.S: ... here.
5525         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
5526         * sysdeps/sparc/sparc32/Makefile: ... this.
5527         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
5528         * sysdeps/sparc/sparc64/Makefile: ... this.
5529
5530         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
5531         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
5532         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
5533         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
5534         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
5535         * sysdeps/s390/s390-32/setjmp.S: ... here.
5536         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
5537         * sysdeps/s390/s390-32/configure.in: ... here.
5538         * sysdeps/s390/s390-32/elf/configure: Delete file.
5539         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
5540         * sysdeps/s390/s390-32/start.S: ... here.
5541
5542         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
5543         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
5544         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
5545         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
5546         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
5547         * sysdeps/s390/s390-64/setjmp.S: ... here.
5548         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
5549         * sysdeps/s390/s390-64/configure.in: ... here
5550         * sysdeps/s390/s390-64/elf/configure: Delete file.
5551         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
5552         * sysdeps/s390/s390-64/start.S: ... here.
5553         * sysdeps/s390/s390-64/elf/configure: Delete.
5554
5555         * configure.in: Remove support for elf directories in sysdeps.
5556
5557         * configure: Regenerated.
5558         * sysdeps/i386/configure: Regenerated.
5559         * sysdeps/powerpc/powerpc32/configure: Regenerated.
5560         * sysdeps/powerpc/powerpc64/configure: Regenerated.
5561         * sysdeps/s390/s390-32/configure: Regenerated.
5562         * sysdeps/s390/s390-64/configure: Regenerated.
5563         * sysdeps/sh/configure: Regenerated.
5564         * sysdeps/sparc/configure: Regenerated.
5565         * sysdeps/x86_64/configure: Regenerated.
5566
5567 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
5568
5569         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5570
5571         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
5572         denormal result into account.
5573
5574 2012-03-25  Roland McGrath  <roland@hack.frob.com>
5575
5576         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
5577         Reported by Allan McRae <allan@archlinux.org>.
5578
5579 2012-03-23  Jeff Law  <law@redhat.com>
5580
5581         * nss/getnssent.c (__nss_getent): Fix typo.
5582
5583 2012-03-23  David S. Miller  <davem@davemloft.net>
5584
5585         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5586
5587 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
5588
5589         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
5590         to pad to uint64_t for each field.
5591         (dl_tls_index): Replace unsigned long with uint64_t.
5592
5593 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
5594         Paul Pluzhnikov  <ppluzhnikov@google.com>
5595
5596         [BZ #6528]
5597         * grp/Makefile (otherlibs): Don't set it.
5598         * inet/Makefile (otherlibs): Likewise.
5599         * login/Makefile (otherlibs): Likewise.
5600         * nscd/Makefile (otherlibs): Likewise.
5601         * posix/Makefile (otherlibs): Likewise.
5602         * pwd/Makefile (otherlibs): Likewise.
5603         * rt/Makefile (otherlibs): Likewise.
5604         * sunrpc/Makefile (otherlibs): Likewise.
5605         * nss/Makefile (otherlibs): Likewise.
5606         Add libnss_files to routines and static-only-routines.
5607         ($(objpfx)getent): Remove rule.
5608         * resolv/Makefile: Add libnss_dns and libresolv to routines and
5609         static-only-routines.
5610
5611 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5612
5613         [BZ #13892]
5614         * math/s_cexp.c: Include <float.h>.
5615         (__cexp): Handle exp result overflowing not necessarily
5616         overflowing both real and imaginary parts of result.
5617         * math/s_cexpf.c: Likewise.
5618         * math/s_cexpl.c: Likewise.
5619         * math/libm-test.inc (cexp_test): Add more tests.
5620         * sysdeps/i386/fpu/libm-test-ulps: Update.
5621         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5622
5623 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5624
5625         * include/link.h (ELFW): New macro.
5626         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
5627         Replace ELF64_R_TYPE with ELFW(R_TYPE).
5628
5629 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5630
5631         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
5632         with uint64_t.
5633
5634 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5635
5636         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
5637         declaration.
5638         (struct La_x32_retval): Likewise.
5639
5640 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
5641
5642         * sysdeps/x86_64/preconfigure.in: New file.
5643         * sysdeps/x86_64/preconfigure: New generated file.
5644
5645 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
5646
5647         [BZ #13824]
5648         * math/e_exp2l.c: Include <float.h>.
5649         (__ieee754_exp2l): Handle overflow and underflow cases
5650         separately.  Only pass fractional part of argument to
5651         __ieee754_expl.
5652         * math/libm-test.inc (exp2_test): Add more tests.
5653
5654         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
5655         negating x to take absolute value.
5656         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
5657         Likewise.
5658         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
5659         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
5660         Likewise.
5661         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
5662         computing low part if x was negated.
5663         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
5664
5665 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5666
5667         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
5668         la_x32_gnu_pltexit.
5669         (pltexit): Cast int_retval to ptrdiff_t.
5670         * elf/tst-auditmod3b.c: Likewise.
5671         * elf/tst-auditmod4b.c: Likewise.
5672         * elf/tst-auditmod5b.c: Likewise.
5673         * elf/tst-auditmod6b.c: Likewise.
5674         * elf/tst-auditmod6c.c: Likewise.
5675         * elf/tst-auditmod7b.c: Likewise.
5676
5677         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
5678         and x32_gnu_pltexit.
5679
5680         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
5681         __ELF_NATIVE_CLASS.
5682         (La_x32_regs): New macro.
5683         (La_x32_retval): Likewise.
5684         (la_x32_gnu_pltenter): New function prototype.
5685         (la_x32_gnu_pltexit): Likewise.
5686
5687 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
5688
5689         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
5690         exponent.
5691
5692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5693
5694         * configure.in (libc_cv_cc_nofma): Check for option to disable
5695         generation of FMA instructions.
5696         * configure: Regenerate.
5697         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
5698         * sysdeps/ieee754/dbl-64/Makefile: New file.
5699         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
5700         Remove brandred-fma4.
5701         (CFLAGS-brandred-fma4.c): Remove.
5702         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
5703         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
5704         define.
5705         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
5706         define.
5707
5708 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5709
5710         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
5711         LLONG_MAX != LONG_MAX.
5712         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5713         (_fitoa_word): Likewise.
5714         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
5715         LLONG_MAX != LONG_MAX.
5716         * stdio-common/_itowa.h: Include <_itoa.h>.
5717         (_itowa_word): Use _ITOA_WORD_TYPE on value.
5718         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
5719         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
5720         only if not defined.
5721         (_ITOA_WORD_TYPE): Likewise.
5722         (_itoa_word): Use _ITOA_WORD_TYPE on value.
5723         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
5724
5725 2012-03-21  David S. Miller  <davem@davemloft.net>
5726
5727         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5728
5729 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
5730
5731         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
5732         of x86_64 when setting libc_cv_slibdir, libdir and
5733         libc_cv_localedir.
5734         * sysdeps/unix/sysv/linux/configure: Regenerated.
5735
5736 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5737
5738         * manual/lang.texi (Old Varargs): Remove section.
5739         (How Variadic): Update menu.
5740         (va_start): Do not mention varargs.h.
5741
5742 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5743             Joseph Myers  <joseph@codesourcery.com>
5744
5745         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
5746         link test.
5747         * configure: Regenerated.
5748
5749 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5750
5751         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
5752         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
5753         conformtest.pl
5754
5755 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5756
5757         * NOTES: Remove.
5758         * Makefile (files-for-dist): Remove NOTES.
5759         (NOTES): Remove rule.
5760         * README: Don't refer to NOTES.
5761         * manual/creature.texi: Don't include macros.texi.
5762         * manual/intro.texi (creature.texi): Remove comment referring to
5763         NOTES.
5764
5765         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
5766         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
5767         * configure: Regenerated.
5768         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
5769         LIBC_TRY_CC_OPTION.
5770         (libc_cv_as_i686): Likewise.
5771         (libc_cv_cc_avx): Likewise.
5772         (libc_cv_cc_sse2avx): Likewise.
5773         (libc_cv_cc_fma4): Likewise.
5774         (libc_cv_cc_novzeroupper): Likewise.
5775         * sysdeps/i386/configure: Regenerated.
5776
5777         [BZ #13883]
5778         * sysdeps/i386/fpu/s_cexp.S: Remove.
5779         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
5780         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
5781         * math/libm-test.inc (cexp_test): Add more tests.
5782         * sysdeps/i386/fpu/libm-test-ulps: Update.
5783         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5784
5785 2012-03-21  Allan McRae  <allan@archlinux.org>
5786
5787         * timezone/Makefile: Do not install iso3166.tab and zone.tab
5788
5789 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
5790
5791         [BZ #13871]
5792         * math/w_exp2.c: Do not include <float.h>.
5793         (o_threshold, u_threshold): Remove.
5794         (__exp2): Calculate result before checking finiteness and calling
5795         __kernel_standard.
5796         * math/w_exp2f.c: Likewise.
5797         * math/w_exp2l.c: Likewise.
5798         * math/libm-test.inc (exp2_test): Require overflow exception for
5799         1e6 input.
5800
5801         [BZ #3866]
5802         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
5803         range of signed 64-bit integers before using fistpll.  Remove
5804         checks for whether integers fit in mantissa bits.
5805         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
5806         the range of signed 32-bit integers before using fistpl.  Remove
5807         checks for whether integers fit in mantissa bits.
5808         * sysdeps/i386/fpu/e_powl.S (p64): New object.
5809         (__ieee754_powl): Test for y outside the range of signed 64-bit
5810         integers before using fistpll.  Reduce 64-bit values to 63-bit
5811         ones as needed.
5812         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
5813         divide-by-zero is raised for zero to large negative powers.
5814         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
5815         (__ieee754_powl): Test for y outside the range of signed 64-bit
5816         integers before using fistpll.  Reduce 64-bit values to 63-bit
5817         ones as needed.
5818         * math/libm-test.inc (pow_test): Add more tests.
5819
5820 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5821
5822         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
5823         <stdio-common/_itoa.h>.
5824         * debug/segfault.c: Likewise.
5825         * elf/dl-cache.c: Likewise.
5826         * elf/dl-minimal.c: Likewise.
5827         * elf/dl-misc.c: Likewise.
5828         * elf/dl-sysdep.c: Likewise.
5829         * elf/dl-version.c: Likewise.
5830         * elf/rtld.c: Likewise.
5831         * hurd/hurdsock.c: Likewise.
5832         * hurd/lookup-retry.c: Likewise.
5833         * malloc/malloc.c: Likewise.
5834         * malloc/mtrace.c: Likewise.
5835         * nscd/nscd_getgr_r.c: Likewise.
5836         * nscd/nscd_getpw_r.c: Likewise.
5837         * nscd/nscd_getserv_r.c: Likewise.
5838         * posix/getopt_init.c: Likewise.
5839         * posix/wordexp.c: Likewise.
5840         * stdio-common/_itoa.c: Likewise.
5841         * stdio-common/printf_fphex.c: Likewise.
5842         * stdio-common/vfprintf.c: Likewise.
5843         * string/_strerror.c: Likewise.
5844         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
5845         * sysdeps/i386/i686/hp-timing.h: Likewise.
5846         * sysdeps/mach/_strerror.c: Likewise.
5847         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
5848         * sysdeps/mach/hurd/sethostid.c: Likewise.
5849         * sysdeps/mach/hurd/xmknodat.c: Likewise.
5850         * sysdeps/mach/xpg-strerror.c: Likewise.
5851         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
5852         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
5853         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
5854         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
5855         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
5856         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
5857         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
5858         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
5859         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
5860         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
5861         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
5862         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
5863         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
5864         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
5865         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
5866         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
5867         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
5868         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
5869         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
5870         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
5871         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
5872
5873         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
5874
5875         * stdio-common/_itoa.h: Moved to ...
5876         * sysdeps/generic/_itoa.h: Here.
5877
5878         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
5879
5880         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
5881         instead of "_itoa.h" and "_itowa.h".
5882         * stdio-common/vfprintf.: Likewise.
5883
5884 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5885
5886         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
5887         <bits/wordsize.h>.
5888         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
5889         (__signbit): Likwise.
5890         (llrintf): Likwise.
5891         (llrint): Likwise.
5892
5893 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5894
5895         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
5896         __WORDSIZE != 64.
5897
5898 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
5899
5900         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
5901         OVERFLOW_EXCEPTION_OK.
5902         * math/libm-test.inc ("Philosophy"): Update comment about
5903         exception testing.
5904         (OVERFLOW_EXCEPTION): Define.
5905         (OVERFLOW_EXCEPTION_OK): Likewise.
5906         (INVALID_EXCEPTION_OK): Renumber.
5907         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5908         (IGNORE_ZERO_INF_SIGN): Likewise.
5909         (test_exceptions): Handle FE_OVERFLOW.
5910         (exp10_test): Expect overflow exceptions.
5911         (exp2_test): Likewise.
5912         (expm1_test): Likewise.
5913         (nextafter_test): Likewise.
5914         (pow_test): Likewise.
5915         (scalbn_test): Likewise.
5916         (scalbln_test): Likewise.
5917
5918 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5919
5920         * sysdeps/x86_64/bits/atomic.h
5921         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
5922         64bit integer.
5923         (atomic_exchange_acq): Likewise.
5924         (__arch_exchange_and_add_body): Likewise.
5925         (__arch_add_body): Likewise.
5926         (atomic_add_negative): Likewise.
5927         (atomic_add_zero): Likewise.
5928
5929 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5930
5931         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
5932         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
5933
5934 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5935
5936         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
5937         Check __x86_64__ instead of __WORDSIZE.
5938
5939 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5940
5941         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
5942
5943 2012-03-19  David S. Miller  <davem@davemloft.net>
5944
5945         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5946
5947         * sysdeps/sparc/fpu/fenv_private.h: New file.
5948         * sysdeps/sparc/fpu/math_private.h: Use it.
5949         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
5950         Remove.
5951         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
5952         (libc_feholdexcept_setroundl): Remove.
5953         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
5954         Remove.
5955         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
5956         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
5957
5958 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5959
5960         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
5961         int64_t instead of long int.
5962         (INSERT_WORDS64): Likwise.
5963
5964 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5965
5966         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
5967         _Unwind_GetCFA return to _Unwind_Ptr first.
5968
5969 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
5970
5971         [BZ #13629]
5972         * math/s_clog.c: Include <float.h>.
5973         (__clog): Scale large or subnormal inputs.
5974         * math/s_clogf.c: Likewise.
5975         * math/s_clogl.c: Likewise.
5976         * math/s_clog10.c: Include <float.h>.
5977         (M_LOG10_2): Define.
5978         (__clog10): Scale large or subnormal inputs.
5979         * math/s_clog10f.c: Likewise.
5980         * math/s_clog10l.c: Likewise.
5981         * math/libm-test.inc (clog_test): Add more tests.
5982         (clog10_test): Likewise.
5983         * sysdeps/i386/fpu/libm-test-ulps: Update.
5984         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5985
5986         [BZ #11451]
5987         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
5988         x and y.
5989         * math/libm-test.inc (atan2_test): Add another test.
5990
5991         * Makerules (common-objdir-compile): Remove.
5992         * sysdeps/unix/Makefile (config-generated): Do not add
5993         $(unix-generated) to variable.
5994         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
5995         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
5996         Remove rule.
5997         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
5998         Likewise.
5999         [generic bits/local_lim.h] (before-compile): Do not append to
6000         variable.
6001         [generic bits/local_lim.h] (common-generated): Likewise.
6002         [generic sys/param.h] (before-compile): Do not append to variable.
6003         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
6004         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
6005         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
6006         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
6007         include.
6008         [generic sys/param.h] (sys/param.h-includes): Remove variable.
6009         [generic sys/param.h] (sys/param.h-includes): Remove rule.
6010         [generic sys/param.h] ($(addprefix
6011         $(common-objpfx),$(sys/param.h-includes))): Likewise.
6012         [generic sys/param.h] (common-generated): Do not append to
6013         variable.
6014         [generic sys/param.h] (sysdep_headers): Likewise.
6015         [generic bits/errno.h] (before-compile): Do not append to
6016         variable.
6017         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
6018         rule.
6019         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
6020         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
6021         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
6022         [generic bits/errno.h] (common-generated): Do not append to
6023         variable.
6024         [generic bits/ioctls.h] (before-compile): Do not append to
6025         variable.
6026         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
6027         rule.
6028         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
6029         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
6030         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
6031         rule.
6032         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
6033         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
6034         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
6035         [generic bits/ioctls.h] (common-generated): Do not append to
6036         variable.
6037         [generic sys/syscall.h] (syscall.h): Remove variable.
6038         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
6039         rule.
6040         [generic sys/syscall.h] (before-compile): Do not append to
6041         variable.
6042         [generic sys/syscall.h] (common-generated): Likewise.
6043         * sysdeps/unix/errnos-tmpl.c: Remove file.
6044         * sysdeps/unix/errnos.awk: Likewise.
6045         * sysdeps/unix/ioctls-tmpl.c: Likewise.
6046         * sysdeps/unix/ioctls.awk: Likewise.
6047         * sysdeps/unix/mk-local_lim.c: Likewise.
6048         * sysdeps/unix/snarf-ioctls: Likewise.
6049
6050 2012-03-19  Richard Henderson  <rth@twiddle.net>
6051
6052         * sysdeps/i386/fpu/fenv_private.h: New file.
6053         * sysdeps/i386/fpu/math_private.h: Use it.
6054         (math_opt_barrier, math_force_eval): Remove.
6055         (libc_feholdexcept_setround_53bit): Remove.
6056         (libc_feupdateenv_53bit): Remove.
6057         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6058         (math_opt_barrier, math_force_eval): Remove.
6059         (libc_feholdexcept): Remove.
6060         (libc_feholdexcept_setround): Remove.
6061         (libc_fetestexcept, libc_fesetenv): Remove.
6062         (libc_feupdateenv_test): Remove.
6063         (libc_feupdateenv, libc_feholdsetround): Remove.
6064         (libc_feresetround): Remove.
6065
6066         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
6067         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
6068
6069         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
6070         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
6071         (libc_feupdateenv_testl): New.
6072         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
6073         (libc_feupdateenv_testf): New.
6074         (libc_feupdateenv): Use libc_feupdateenv_test.
6075         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
6076         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
6077
6078         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
6079         (libc_feholdsetroundf, libc_feholdsetroundl): New.
6080         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
6081         (libc_feresetround_noex): New.
6082         (libc_feresetround_noexf): New.
6083         (libc_feresetround_noexl): New.
6084         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
6085         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
6086         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
6087         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
6088         SET_RESTORE_ROUND.
6089         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
6090         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
6091         (__cos): Likewise.
6092         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
6093         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
6094         SET_RESTORE_ROUND_NOEX.
6095         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
6096         SET_RESTORE_ROUND_NOEXF.
6097         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
6098         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
6099         (libc_feholdsetroundf): New.
6100         (libc_feresetround, libc_feresetroundf): New.
6101
6102         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
6103         (libc_feholdexcept_setround_53bit): Convert from macro to function.
6104         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
6105
6106         * sysdeps/generic/math_private.h: Include <fenv.h>.
6107         (default_libc_feholdexcept): New.
6108         (default_libc_feholdexcept_setround): New.
6109         (default_libc_fesetenv, default_libc_feupdateenv): New.
6110         (libc_feholdexcept): Only define if undefined.
6111         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
6112         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
6113         (libc_feholdexcept_setroundl): Likewise.
6114         (libc_feholdexcept_setround_53bit): Likewise.
6115         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
6116         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
6117         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
6118         (libc_feupdateenv_53bit): Likewise.
6119         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
6120         (libc_feholdexcept): Convert from macro to inline function.
6121         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
6122         (libc_fesetenv, libc_feupdateenv): Likewise.
6123
6124         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
6125         not previously defined.
6126         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
6127         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
6128         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
6129         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
6130         * sysdeps/ieee754/flt-32/math_private.h: New file.
6131         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
6132         math_private.h below SET_FLOAT_WORD.
6133         (__isnan, __isinf_ns, __finite): Remove.
6134         (__isnanf, __isinf_nsf, __finitef): Remove.
6135
6136 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
6137
6138         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6139
6140 2012-03-17  David S. Miller  <davem@davemloft.net>
6141
6142         [BZ #6471]
6143         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
6144         for 2.16.
6145
6146 2012-03-16  David S. Miller  <davem@davemloft.net>
6147
6148         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
6149         warnings.
6150
6151         [BZ #6471]
6152         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
6153         properly.
6154         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
6155         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
6156         sysdep_routines when subdir is sysvipc.
6157         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
6158         __getshmlba helper.
6159
6160         * sysdeps/sparc/fpu/libm-test/ulps: Update.
6161
6162 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6163
6164         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
6165         [__LP64__].
6166
6167 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6168
6169         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
6170         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
6171         (__lround): Renamed to ...
6172         (__llround): This.  Replace long int with long long int.
6173         Define lround functions as aliases of llround functions.
6174         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
6175
6176 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6177
6178         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
6179         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
6180         adresses to uintptr_t.  Replace "long int" and "unsigned long
6181         int" with "greg_t" on va_arg.
6182
6183 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6184
6185         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
6186         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
6187
6188         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
6189         Move e_machine check before EI_CLASS check.  Handle x32
6190         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
6191         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
6192         SKIP_EM_IA_64 and include
6193         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
6194
6195         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
6196         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
6197         (add_system_dir): New macro.
6198
6199         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
6200         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
6201
6202 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6203
6204         [BZ #2551]
6205         [BZ #2552]
6206         [BZ #2553]
6207         [BZ #2554]
6208         [BZ #2562]
6209         [BZ #2563]
6210         [BZ #2565]
6211         [BZ #2566]
6212         [BZ #2576]
6213         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
6214         (y0): Likewise.
6215         * math/w_j0f.c (j0f): Likewise.
6216         (y0f): Likewise.
6217         * math/w_j0l.c (__j0l): Likewise.
6218         (__y0l): Likewise.
6219         * math/w_j1.c (j1): Likewise.
6220         (y1): Likewise.
6221         * math/w_j1f.c (j1f): Likewise.
6222         (y1f): Likewise.
6223         * math/w_j1l.c (__j1l): Likewise.
6224         (__y1l): Likewise.
6225         * math/w_jn.c (jn): Likewise.
6226         (yn): Likewise.
6227         * math/w_jnf.c (jnf): Likewise.
6228         (ynf): Likewise.
6229         * math/w_jnl.c (__jnl): Likewise.
6230         (__ynl): Likewise.
6231         * math/libm-test.inc (j0_test): Add more tests.
6232         (j1_test): Likewise.
6233         (jn_test): Likewise.  Add trailing semicolon to existing test.
6234         (y0_test): Likewise.
6235         (y1_test): Likewise.
6236         * sysdeps/i386/fpu/libm-test-ulps: Update.
6237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6238
6239         [BZ #13851]
6240         [BZ #13854]
6241         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
6242         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
6243         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
6244         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
6245         (__tanl): Set errno for infinite argument.
6246         * sysdeps/i386/fpu/mptan.c: Remove.
6247         * sysdeps/i386/fpu/s_tan.S: Likewise.
6248         * sysdeps/i386/fpu/s_tanl.S: Likewise.
6249         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
6250         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
6251         * math/libm-test.inc (tan_test): Add more tests and enable more
6252         tests for double and long double.
6253         * sysdeps/i386/fpu/libm-test-ulps: Update.
6254         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6255
6256 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
6257
6258         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
6259         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
6260
6261 2012-03-16  Roland McGrath  <roland@hack.frob.com>
6262
6263         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
6264         * configure.in: Use it for both main tree and add-ons.
6265         * configure: Regenerated.
6266
6267 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
6268
6269         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
6270
6271 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
6272
6273         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
6274         in comment.
6275
6276         [BZ #13851]
6277         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
6278         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
6279         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
6280         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
6281         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
6282         infinite argument.
6283         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
6284         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
6285         != 0 for prec == 2.
6286         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
6287         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
6288         * sysdeps/i386/fpu/s_cosl.S: Likewise.
6289         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
6290         * sysdeps/i386/fpu/s_sinl.S: Likewise.
6291         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
6292         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
6293         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
6294         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
6295         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
6296         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
6297         * math/libm-test.inc (cos_test): Add more tests and enable more
6298         tests for long double.
6299         (sin_test): Likewise.
6300         (sincos_test): Likewise.
6301         * sysdeps/i386/fpu/libm-test-ulps: Update.
6302         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6303
6304 2012-03-16  David S. Miller  <davem@davemloft.net>
6305
6306         * sysdeps/sparc/fpu/math_private.h: New file.
6307
6308 2012-03-15  David S. Miller  <davem@davemloft.net>
6309
6310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
6311         file.
6312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
6313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
6314         file.
6315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
6316         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
6317         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
6318         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
6319         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
6320         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
6321         sysdep routines.
6322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6323
6324         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
6325         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
6326
6327         * sysdeps/sparc/sparc-ifunc.h: New file.
6328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
6329         sparc-ifunc.h
6330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
6331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
6332         Likewise.
6333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
6334         Likewise.
6335         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
6336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
6337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
6338         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
6339         Likewise.
6340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
6341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
6342         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
6343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
6344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
6345         Likewise.
6346         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
6347         Likewise.
6348         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
6349         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
6350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
6351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
6352         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
6353         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
6354         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
6355         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
6356         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
6357         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
6358         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
6359         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
6360         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
6361         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
6362         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
6363         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
6364         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
6365         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
6366         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
6367         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
6368         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
6369         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
6370         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
6371         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
6372
6373 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6374
6375         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
6376         scaling.
6377         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6378
6379 2012-03-15  Andreas Jaeger  <aj@suse.de>
6380
6381         [BZ #13852]
6382         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
6383         ieee754/flt-32 implementation for sin, cos and sincos.
6384         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
6385         * sysdeps/i386/fpu/s_cosf.S: Likewise.
6386         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
6387         * sysdeps/i386/fpu/s_sinf.S: Likewise.
6388         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
6389         ieee754/flt-32 implementation for tan.
6390
6391         * math/libm-test.inc (cos_test): Enable some large input tests for
6392         float as well
6393         (sin_test): Likewise.
6394         (sincos_test): Likewise.
6395         (tan_test): Add tests for large input.
6396
6397         * sysdeps/i386/fpu/libm-test-ulps: Update.
6398
6399 2012-03-15  Andreas Jaeger  <aj@suse.de>
6400
6401         [BZ #13658]
6402         * math/libm-test.inc (cos_test): Add more test cases.
6403         (sin_test): Likewise.
6404         (sincos_test): Likewise.
6405
6406 2012-03-15  Andreas Jaeger  <aj@suse.de>
6407
6408         [BZ #13837]
6409         * math/libm-test.inc (cos_test): Add a test case for large input
6410         value.
6411         (sin_test): Likewise.
6412         (sincos_test): Likewise.
6413
6414 2012-03-15  Andreas Jaeger  <aj@suse.de>,
6415         Joseph Myers  <joseph@codesourcery.com>
6416
6417         [BZ #13658]
6418         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
6419         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
6420         * sysdeps/i386/fpu/branred.c: Likewise.
6421         * sysdeps/i386/fpu/dosincos.c: Likewise.
6422         * sysdeps/i386/fpu/mpa.c: Likewise.
6423         * sysdeps/i386/fpu/s_cos.S: Likewise.
6424         * sysdeps/i386/fpu/s_sin.S: Likewise.
6425         * sysdeps/i386/fpu/s_sincos.S: Likewise.
6426         * sysdeps/i386/fpu/sincos32.c: Likewise.
6427
6428         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
6429         Define.
6430         (libc_feupdateenv_53bit): Define.
6431         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
6432         Define.
6433         (libc_feupdateenv_53bit): Define.
6434
6435         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
6436         53 bit (without extend i386 double precision).
6437
6438         * math/libm-test.inc (sincos_test): Add tests for large input.
6439         (sin): Likewise.
6440         (cos): Likewise.
6441
6442         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
6443
6444 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
6445
6446         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6447
6448 2012-03-15  David S. Miller  <davem@davemloft.net>
6449
6450         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
6451         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
6452         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
6453         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
6454         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
6455         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
6456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
6457         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
6458         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
6459         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
6460         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
6461         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
6462         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
6463         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
6464         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
6465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
6466         file.
6467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
6468         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
6469         file.
6470         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
6471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
6472         file.
6473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
6474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
6475         file.
6476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
6477         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
6478         fmin/fmax sysdep routines.
6479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
6480
6481 2012-03-14  David S. Miller  <davem@davemloft.net>
6482
6483         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
6484         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
6485         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
6486         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
6487         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
6488         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
6489         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
6490         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
6491         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
6492         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
6493         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
6494         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
6495         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
6496         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
6497         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
6498         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
6499         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
6500         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
6501         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
6502         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
6503         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
6504         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
6505         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
6506         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
6507         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
6508         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
6509         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
6510         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
6511         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
6512         routines.
6513         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
6514         file.
6515         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
6516         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
6517         file.
6518         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
6519         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
6520         file.
6521         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
6522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
6523         file.
6524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
6525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
6526         file.
6527         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
6528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
6529         file.
6530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
6531         file.
6532         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
6533         file.
6534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
6535         file.
6536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
6537         New file.
6538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
6539         file.
6540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
6541         file.
6542         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
6543         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
6544         file.
6545         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
6546         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
6547         file.
6548         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
6549         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
6550         file.
6551         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
6552         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
6553         VIS3 routines.
6554
6555         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
6556         New file.
6557
6558         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6559
6560         * sysdeps/sparc/configure.in: New file.
6561         * sysdeps/sparc/configure: Generate.
6562         * configure.in (libc_cv_sparc_as_vis3): Substitute.
6563         * configure: Regenerate.
6564         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
6565         * config.make.in (have-as-vis3): New.
6566         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
6567         available use -Av9d instead of -Av9a.
6568         * sysdeps/sparc/sparc64/Makefile: Likewise.
6569         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
6570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
6571         New file.
6572         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
6573         file.
6574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
6575         New file.
6576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
6577         file.
6578         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
6579         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
6580         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
6581         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
6582         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
6583
6584         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
6585         fzeros/fnegs to load 0x80000000 into a float register instead of
6586         using the stack.
6587         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
6588
6589 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6590
6591         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6592         bits/syscall.h.
6593         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
6594         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
6595         ($(inst_includedir)/bits/syscall.h): Remove rule.
6596         ($(objpfx)bits/syscall.d): Include instead of
6597         $(objpfx)syscall-list.d.
6598         (generated): Change syscall-list.h and syscall-list.d to
6599         bits/syscall.h and bits/syscall.d.
6600
6601 2012-03-14  Roland McGrath  <roland@hack.frob.com>
6602
6603         [BZ #13846]
6604         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
6605
6606 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
6607
6608         [BZ #13841]
6609         * math/s_csqrt.c: Include <float.h>.
6610         (__csqrt): Scale large or subnormal inputs.
6611         * math/s_csqrtf.c: Likewise.
6612         * math/s_csqrtl.c: Likewise.
6613         * math/libm-test.inc (csqrt_test): Add more tests.
6614         * sysdeps/i386/fpu/libm-test-ulps: Update.
6615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6616
6617         [BZ #13840]
6618         * math/libm-test.inc (hypot_test): Add more tests.
6619
6620 2012-03-13  David S. Miller  <davem@davemloft.net>
6621
6622         [BZ #13840]
6623         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
6624         double-precision for the calculation instead of scaling.
6625
6626 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
6627
6628         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
6629         manipulate bits before adding and subtracting TWO52[sx].
6630         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
6631         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
6632         Likewise.
6633         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
6634
6635 2012-03-13  David S. Miller  <davem@davemloft.net>
6636
6637         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
6638         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
6639         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
6640         rtld-global-offsets.h
6641         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6642
6643         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
6644         large parameters.
6645
6646         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
6647
6648         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
6649         'err' in the ifdef scope in which it is actually used.
6650
6651         * nss/nss_db/db-init.c: Include string.h
6652
6653 2012-03-12  David S. Miller  <davem@davemloft.net>
6654
6655         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
6656         masking out of the most significant byte of random value used.
6657         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6658         Fix coding style in previous change.
6659
6660         * sysdeps/unix/sysv/linux/kernel-features.h
6661         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
6662         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
6663         expression.
6664         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
6665         later.
6666
6667 2012-03-11  David S. Miller  <davem@davemloft.net>
6668
6669         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
6670         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
6671         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
6672         for 'resultvar' otherwise things get truncated on 64-bit.
6673
6674         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
6675         Fix masking out of the most significant byte of random value used.
6676
6677         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6678
6679 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
6680
6681         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6682
6683 2012-03-09  David S. Miller  <davem@davemloft.net>
6684
6685         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
6686         variables with appropriate CPP guards.
6687         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
6688         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
6689         on resulting framesize and the management of the outregs buffer for pltexit.
6690         Preserve floating point return values across _dl_call_pltexit call.
6691         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
6692         framesize and the management of the outregs buffer for pltexit.
6693         Preserve floating point return values across _dl_call_pltexit
6694         call.
6695         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
6696         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
6697         (print_exit): Fix format string for return register value.
6698
6699 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
6700
6701         * sunrpc/Makefile (others): Add rpcgen.
6702         ($(objpfx)rpcgen): Remove special build rule and dependency on
6703         libc.
6704         * sunrpc/rpcgen.c: New file.
6705
6706 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
6707
6708         [BZ #13673]
6709         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
6710         * stdio-common/bug-vfprintf-nargs.c: Likewise.
6711         * sysdeps/i386/crti.S: Likewise.
6712         * sysdeps/i386/crtn.S: Likewise.
6713         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
6714         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
6715         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
6716         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
6717         * sysdeps/sh/crti.S: Likewise.
6718         * sysdeps/sh/crtn.S: Likewise.
6719         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
6720
6721         [BZ #13673]
6722         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
6723         with URL.
6724         * locale/programs/locfile-kw.gperf: Likewise.
6725         * locale/programs/charmap-kw.h: Regenerated.
6726         * locale/programs/locfile-kw.h: Likewise.
6727
6728         [BZ #13673]
6729         * intl/plural.y: Replace FSF snail mail address with URL.
6730         * intl/plural.c: Regenerated.
6731
6732 2012-03-09  Richard Henderson  <rth@twiddle.net>
6733
6734         * include/math_private.h: Remove file.
6735         * math/math_private.h: Move file ...
6736         * sysdeps/generic/math_private.h: ... here.
6737
6738         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
6739         * sysdeps/powerpc/fpu/math_private.h: Likewise.
6740         * sysdeps/x86_64/fpu/math_private.h: Likewise.
6741
6742         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
6743         and <math_private.h>.
6744         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
6745         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
6746         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
6747         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
6748         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
6749         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
6750         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
6751         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
6752         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
6753         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
6754         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
6755         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
6756         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
6757         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
6758         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
6759         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
6760         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
6761         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
6762         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
6763         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
6764         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
6765         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
6766         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
6767         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
6768         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
6769         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
6770         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
6771         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
6772         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
6773         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
6774         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
6775         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
6776         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
6777         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
6778         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
6779         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
6780         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
6781         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
6782         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
6783         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
6784         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
6785         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
6786         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
6787         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
6788         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
6789         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
6790         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
6791         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
6792         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
6793         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
6794         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
6795         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
6796         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
6797         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
6798         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
6799         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
6800         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
6801         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
6802         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
6803         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
6804         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
6805         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
6806         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
6807         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
6808         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
6809         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
6810         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
6811         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
6812         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
6813         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
6814         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
6815         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
6816         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6817         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6818         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
6819         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
6820         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
6821         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6822         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
6823         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
6824         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
6825         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
6826         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
6827         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
6828         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6829         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
6830         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
6831         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
6832         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
6833         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
6834         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
6835         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
6836         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
6837         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
6838         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
6839         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
6840         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
6841         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
6842         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
6843         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
6844         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
6845         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
6846         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
6847         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
6848         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
6849         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
6850         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
6851         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
6852         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
6853         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
6854         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
6855         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
6856         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
6857         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
6858         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
6859         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
6860         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
6861         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
6862         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
6863         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6864         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6865         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6866         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6867         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
6868         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6869         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
6870         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6871         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6872         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6873         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6874         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6875         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6876         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6877         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6878         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6879         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
6880         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6881         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
6882         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
6883         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6884         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6885         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
6886         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
6887         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
6888         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
6889         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
6890         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
6891         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
6892         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6893         * sysdeps/ieee754/k_standard.c: Likewise.
6894         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6895         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6896         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6897         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6898         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6899         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6900         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6901         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6902         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6903         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6904         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6905         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6906         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6907         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6908         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6909         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6910         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
6911         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6912         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6913         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
6914         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
6915         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
6916         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6917         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
6918         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
6919         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
6920         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6921         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6922         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
6923         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6924         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
6925         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
6926         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6927         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6928         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
6929         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
6930         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
6931         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
6932         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6933         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6934         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6935         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6936         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
6937         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
6938         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6939         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6940         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
6941         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6942         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
6943         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6944         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6945         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
6946         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6947         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6948         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6949         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6950         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
6951         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
6952         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
6953         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
6954         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6955         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6956         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6957         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6958         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6959         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6960         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6961         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6962         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6963         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6964         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6965         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6966         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6967         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6968         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6969         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6970         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
6971         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6972         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6973         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
6974         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
6975         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
6976         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
6977         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
6978         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
6979         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6980         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
6981         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
6982         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
6983         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
6984         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
6985         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
6986         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
6987         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
6988         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
6989         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
6990         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
6991         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
6992         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
6993         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
6994         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
6995         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
6996         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6997         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
6998         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
6999         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
7000         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
7001         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
7002         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
7003         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
7004         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
7005         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
7006         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
7007         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
7008         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
7009         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
7010         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
7011         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
7012         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
7013         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
7014         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
7015         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
7016         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
7017         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
7018         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
7019         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
7020         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
7021         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
7022         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
7023         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
7024         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
7025         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
7026         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
7027         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
7028         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
7029         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
7030         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
7031         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
7032         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
7033         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
7034         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
7035         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
7036         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
7037         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
7038         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
7039         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
7040         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
7041         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
7042         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
7043         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
7044         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
7045         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
7046         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
7047         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
7048         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
7049         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
7050         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
7051         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
7052         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
7053         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
7054         * sysdeps/ieee754/s_lib_version.c: Likewise.
7055         * sysdeps/ieee754/s_matherr.c: Likewise.
7056         * sysdeps/ieee754/s_signgam.c: Likewise.
7057         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
7058         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7059         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
7060         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
7061         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
7062         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
7063         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
7064         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
7065         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
7066         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
7067         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
7068         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
7069         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
7070         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
7071         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
7072         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
7073         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
7074         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
7075         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
7076         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
7077         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
7078
7079 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7080
7081         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
7082         * sunrpc/rpc_main.c: Likewise.
7083         * sunrpc/rpc_svcout.c: Likewise.
7084
7085 2012-03-09  David S. Miller  <davem@davemloft.net>
7086
7087         * include/math_private.h: New file.
7088
7089 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
7090
7091         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
7092         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
7093         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
7094         from <bits/socket_type.h>.
7095         (enum __socket_type): Don't define here.
7096         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
7097         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7098         bits/socket_type.h.
7099
7100         [BZ #13566]
7101         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
7102         checking __USE_GNU.
7103
7104         * Makerules ($(inst_includedir)/%.h): New rule.
7105         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
7106         (install-others): Remove variable setting.
7107         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
7108
7109 2012-03-08  Richard Henderson  <rth@twiddle.net>
7110
7111         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
7112         from macro to inline function; merge with the
7113         !__LIBC_INTERNAL_MATH_INLINES version.
7114         (__ieee754_sqrtf): Likewise.
7115
7116         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
7117         to inline function.
7118         (__rintf, __floor, __floorf): Likewise.
7119
7120         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
7121         macro to inline function.
7122         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
7123
7124         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
7125         not <math/math_private.h>.
7126
7127 2012-03-08  David S. Miller  <davem@davemloft.net>
7128
7129         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
7130         copyright year.
7131         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
7132
7133 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
7134
7135         * resolv/gai_misc.c (handle_requests): Fix struct timespec
7136         normalization.
7137         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
7138         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
7139
7140 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
7141
7142         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
7143         be defined individually, they must be defined as a block.  Define
7144         S for printing a string instead of hidint the different by using a
7145         macro for adding the 'l'.
7146         * stdio-common/tst-fphex-wide.c: Adjust.
7147
7148 2012-03-07  Marek Polacek  <polacek@redhat.com>
7149
7150         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
7151
7152 2012-03-08  Marek Polacek  <polacek@redhat.com>
7153
7154         [BZ #13806]
7155         * stdio-common/Makefile (tests): Add tst-fphex-wide.
7156         * stdio-common/tst-fphex.c: Define a few macros to make the
7157         test reusable.  Use them.
7158         * stdio-common/tst-fphex-wide.c: New file.
7159
7160 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
7161
7162         [BZ #6911]
7163         * manual/macros.texi (gnusystems): New macro.
7164         (nongnusystems): Likewise.
7165         (gnulinuxhurdsystems): Likewise.
7166         (gnuhurdsystems): Likewise..
7167         (gnulinuxsystems): Likewise.
7168         * manual/charset.texi: Use new macros or @theglibc{} to refer to
7169         variants of the GNU system, not "GNU system".
7170         * manual/conf.texi: Likewise.
7171         * manual/errno.texi: Likewise.  Update example of errno macro
7172         expansion.
7173         * manual/filesys.texi: Likewise.
7174         (getumask): Document as specific to GNU/Hurd.
7175         * manual/install.texi: Likewise.  Reword some references to
7176         GNU/Linux.
7177         * manual/intro.texi: Likewise.
7178         * manual/io.texi: Likewise.
7179         (File Name Portability): Detail which constraints are inapplicable
7180         to all GNU systems and which are only inapplicable to GNU/Hurd.
7181         * manual/job.texi: Likewise.
7182         * manual/llio.texi: Likewise.
7183         (O_NOCTTY): Document as present on GNU/Linux.
7184         * manual/maint.texi: Likewise.
7185         * manual/memory.texi: Likewise.
7186         * manual/pattern.texi: Likewise.
7187         * manual/pipe.texi: Likewise.
7188         * manual/process.texi: Likewise.
7189         * manual/resource.texi: Likewise.
7190         (RUSAGE_CHILDREN): Remove statement about specifying a particular
7191         child on GNU/Hurd.
7192         * manual/setjmp.texi: Likewise.
7193         * manual/signal.texi: Likewise.
7194         * manual/startup.texi: Likewise.
7195         * manual/stdio.texi: Likewise.
7196         * manual/terminal.texi: Likewise.
7197         (ONLCR): Document as POSIX.
7198         (OXTABS): Document availability on GNU/Linux as XTABS.
7199         (ONOEOT): Document availability separately from other bits.
7200         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
7201         * manual/time.texi: Likewise.
7202         * manual/users.texi: Likewise.
7203         * INSTALL: Regenerated.
7204         * sysdeps/gnu/errlist.c: Regenerated.
7205
7206         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
7207         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
7208         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
7209         puts.
7210         * configure: Regenerated.
7211
7212 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
7213
7214         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
7215         default includes instead of AC_HEADER_CHECK.
7216         * sysdeps/i386/configure: Regenerated.
7217
7218         [BZ #10716]
7219         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
7220         * math/s_cacoshf.c (__cacoshf): Likewise.
7221         * math/s_cacoshl.c (__cacoshl): Likewise.
7222         * math/s_casinh.c (__casinh): Set signs of result from argument.
7223         * math/s_casinhf.c (__casinhf): Likewise.
7224         * math/s_casinhl.c (__casinhl): Likewise.
7225         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
7226         (casinh_test): Add more tests.
7227         * sysdeps/i386/fpu/libm-test-ulps: Update.
7228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7229
7230 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
7231
7232         * po/zh_TW.po: Update from translation team.
7233
7234         * login/Makefile (distribute): Remove variable.
7235         * catgets/Makefile: Likewise.
7236         * mach/Makefile: Likewise.
7237         * malloc/Makefile: Likewise.
7238         * misc/Makefile: Likewise.
7239         * iconv/Makefile: Likewise.
7240         * nscd/Makefile: Likewise.
7241         * hurd/Makefile: Likewise.
7242         * manual/Makefile: Likewise.
7243         * locale/Makefile: Likewise.
7244         * intl/Makefile: Likewise.
7245         * conform/Makefile: Likewise.
7246         * nss/Makefile: Likewise.
7247         * time/Makefile: Likewise.
7248         * soft-fp/Makefile: Likewise.
7249         * dirent/Makefile: Likewise.
7250         * gmon/Makefile: Likewise.
7251         * po/Makefile: Likewise.
7252         * rt/Makefile: Likewise.
7253         * socket/Makefile: Likewise.
7254         * math/Makefile: Likewise.
7255         * signal/Makefile: Likewise.
7256         * debug/Makefile: Likewise.
7257         * elf/Makefile: Likewise.
7258         * timezone/Makefile: Likewise.
7259         * stdlib/Makefile: Likewise.
7260         * iconvdata/Makefile: Likewise.
7261         * sunrpc/Makefile: Likewise.
7262         * io/Makefile: Likewise.
7263         * argp/Makefile: Likewise.
7264         * inet/Makefile: Likewise.
7265         * hesiod/Makefile: Likewise.
7266         * grp/Makefile: Likewise.
7267         * csu/Makefile: Likewise.
7268         * wctype/Makefile: Likewise.
7269         * crypt/Makefile: Likewise.
7270         * libio/Makefile: Likewise.
7271         * string/Makefile: Likewise.
7272         * nis/Makefile: Likewise.
7273         * resolv/Makefile: Likewise.
7274         * stdio-common/Makefile: Likewise.
7275         * wcsmbs/Makefile: Likewise.
7276         * dlfcn/Makefile: Likewise.
7277         * posix/Makefile: Likewise.
7278
7279         [BZ #6959]
7280         * timezone/Makefile: Don't install timezone files, just the programs
7281         and scripts.
7282
7283 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
7284
7285         * nss/databases.def: Add missing gshadow entry.
7286
7287         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
7288
7289 2012-03-06  Marek Polacek  <polacek@redhat.com>
7290
7291         [BZ #13726]
7292         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
7293         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
7294         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
7295         * stdio-common/tst-long-dbl-fphex.c: New file.
7296
7297 2012-03-06  David S. Miller  <davem@davemloft.net>
7298
7299         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7300         (set_obp_int): New function.
7301         (get_obp_int): New function.
7302         (__get_clockfreq_via_dev_openprom): Likewise.
7303         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
7304         Avoid unused variable warnings on 'val' and use builtin_expect.
7305         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
7306         __builtin_expect.
7307         (INLINE_CLONE_SYSCALL): Likewise.
7308
7309 2012-03-05  David S. Miller  <davem@davemloft.net>
7310
7311         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7312
7313 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
7314
7315         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7316
7317         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
7318         only for |x| >= 40.
7319         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
7320
7321 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7322
7323         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
7324         Replace gettimeofday with __vdso_gettimeofday.
7325
7326         * sysdeps/unix/sysv/linux/x86_64/init-first.c
7327         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
7328         __vdso_clock_gettime and __vdso_getcpu.
7329
7330         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
7331         time with __vdso_time.
7332
7333 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7334
7335         * manual/lang.texi (size_t): Note types to which size_t may be
7336         equivalent with the GNU C Library, but do not describe when
7337         differences between them are significant.
7338
7339 2012-03-05  Andreas Jaeger  <aj@suse.de>
7340
7341         * sysdeps/i386/fpu/libm-test-ulps: Update.
7342
7343 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
7344
7345         [BZ #3976]
7346         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
7347         (__ieee754_pow): Save and restore rounding mode and use
7348         round-to-nearest for main computations.
7349         * math/libm-test.inc (pow_test_tonearest): New function.
7350         (pow_test_towardzero): Likewise.
7351         (pow_test_downward): Likewise.
7352         (pow_test_upward): Likewise.
7353         (main): Call the new functions.
7354         * sysdeps/i386/fpu/libm-test-ulps: Update.
7355         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7356
7357         [BZ #3976]
7358         * math/libm-test.inc (cosh_test_tonearest): New function.
7359         (cosh_test_towardzero): Likewise.
7360         (cosh_test_downward): Likewise.
7361         (cosh_test_upward): Likewise.
7362         (sinh_test_tonearest): Likewise.
7363         (sinh_test_towardzero): Likewise.
7364         (sinh_test_downward): Likewise.
7365         (sinh_test_upward): Likewise.
7366         (main): Call the new functions.
7367         * sysdeps/i386/fpu/libm-test-ulps: Update.
7368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7369
7370 2012-03-05  Tom de Vries  <tom@codesourcery.com>
7371
7372         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
7373         default stack guard is set in last bytes.
7374         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
7375
7376 2012-03-05  Kees Cook  <keescook@chromium.org>
7377
7378         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
7379
7380         [BZ #13656]
7381         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
7382         possibly allocate from heap instead of stack.
7383         * stdio-common/bug-vfprintf-nargs.c: New file.
7384         * stdio-common/Makefile (tests): Add nargs overflow test.
7385
7386 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
7387
7388         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7389
7390 2012-03-03  Marek Polacek  <polacek@redhat.com>
7391
7392         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
7393         * math/math_private.h: Likewise.
7394         * stdlib/tst-strtod.c: Likewise.
7395         * sysdeps/i386/i486/bits/atomic.h: Likewise.
7396         * sysdeps/x86_64/bits/atomic.h: Likewise.
7397
7398 2012-03-02  David S. Miller  <davem@davemloft.net>
7399
7400         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
7401         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
7402         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
7403         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
7404         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
7405         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
7406         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
7407         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
7408
7409 2012-03-02  Roland McGrath  <roland@hack.frob.com>
7410
7411         [BZ #13792]
7412         * manual/examples/README: New file, says the example source files
7413         can be used under GPL>=2.
7414         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
7415         line containing just "*/".
7416         * manual/examples/add.c: Add copyright header (GPL>=2).
7417         * manual/examples/argp-ex1.c: Likewise.
7418         * manual/examples/argp-ex2.c: Likewise.
7419         * manual/examples/argp-ex3.c: Likewise.
7420         * manual/examples/argp-ex4.c: Likewise.
7421         * manual/examples/atexit.c: Likewise.
7422         * manual/examples/db.c: Likewise.
7423         * manual/examples/dir.c: Likewise.
7424         * manual/examples/dir2.c: Likewise.
7425         * manual/examples/execinfo.c: Likewise.
7426         * manual/examples/filecli.c: Likewise.
7427         * manual/examples/filesrv.c: Likewise.
7428         * manual/examples/fmtmsgexpl.c: Likewise.
7429         * manual/examples/genpass.c: Likewise.
7430         * manual/examples/inetcli.c: Likewise.
7431         * manual/examples/inetsrv.c: Likewise.
7432         * manual/examples/isockad.c: Likewise.
7433         * manual/examples/longopt.c: Likewise.
7434         * manual/examples/memopen.c: Likewise.
7435         * manual/examples/memstrm.c: Likewise.
7436         * manual/examples/mkfsock.c: Likewise.
7437         * manual/examples/mkisock.c: Likewise.
7438         * manual/examples/mygetpass.c: Likewise.
7439         * manual/examples/pipe.c: Likewise.
7440         * manual/examples/popen.c: Likewise.
7441         * manual/examples/rprintf.c: Likewise.
7442         * manual/examples/search.c: Likewise.
7443         * manual/examples/select.c: Likewise.
7444         * manual/examples/setjmp.c: Likewise.
7445         * manual/examples/sigh1.c: Likewise.
7446         * manual/examples/sigusr.c: Likewise.
7447         * manual/examples/stpcpy.c: Likewise.
7448         * manual/examples/strdupa.c: Likewise.
7449         * manual/examples/strftim.c: Likewise.
7450         * manual/examples/strncat.c: Likewise.
7451         * manual/examples/subopt.c: Likewise.
7452         * manual/examples/swapcontext.c: Likewise.
7453         * manual/examples/termios.c: Likewise.
7454         * manual/examples/testopt.c: Likewise.
7455         * manual/examples/testpass.c: Likewise.
7456         * manual/examples/timeval_subtract.c: Likewise.
7457
7458         [BZ #13792]
7459         * manual/time.texi (Elapsed Time): Move timeval_subtract example
7460         function to ...
7461         * manual/timeval_subtract.c.texi: ... here, new file.
7462
7463 2012-03-02  David S. Miller  <davem@davemloft.net>
7464
7465         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
7466
7467 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
7468
7469         [BZ #3976]
7470         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
7471         (__sin): Save and restore rounding mode and use round-to-nearest
7472         for all computations.
7473         (__cos): Save and restore rounding mode and use round-to-nearest
7474         for all computations.
7475         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
7476         <fenv.h>.
7477         (tan): Save and restore rounding mode and use round-to-nearest for
7478         all computations.
7479         * math/libm-test.inc (cos_test_tonearest): New function.
7480         (cos_test_towardzero): Likewise.
7481         (cos_test_downward): Likewise.
7482         (cos_test_upward): Likewise.
7483         (sin_test_tonearest): Likewise.
7484         (sin_test_towardzero): Likewise.
7485         (sin_test_downward): Likewise.
7486         (sin_test_upward): Likewise.
7487         (tan_test_tonearest): Likewise.
7488         (tan_test_towardzero): Likewise.
7489         (tan_test_downward): Likewise.
7490         (tan_test_upward): Likewise.
7491         (main): Call the new functions.
7492         * sysdeps/i386/fpu/libm-test-ulps: Update.
7493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7494
7495         [BZ #10135]
7496         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
7497         small n, then large n, before computing and testing k+n.
7498         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
7499         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
7500         Likewise.
7501         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
7502         Likewise.
7503         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
7504         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
7505         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
7506         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
7507         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
7508         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
7509         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
7510         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
7511         * math/libm-test.inc (scalbn_test): Add more tests.
7512         (scalbln_test): Likewise.
7513
7514         * manual/filesys.texi (mode_t): Describe constraints on size and
7515         signedness, not exact equivalence to a particular type.
7516         (ino_t): Likewise.
7517         (ino64_t): Likewise.
7518         (dev_t): Likewise.
7519         (nlink_t): Likewise.
7520         (blkcnt_t): Likewise.
7521         (blkcnt64_t): Likewise.
7522         * manual/llio.texi (off_t): Likewise.
7523
7524         [BZ #3976]
7525         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
7526         (__ieee754_exp): Save and restore rounding mode and use
7527         round-to-nearest for all computations.
7528         * math/libm-test.inc (exp_test_tonearest): New function.
7529         (exp_test_towardzero): Likewise.
7530         (exp_test_downward): Likewise.
7531         (exp_test_upward): Likewise.
7532         (main): Call the new functions.
7533         * sysdeps/i386/fpu/libm-test-ulps: Update.
7534         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7535
7536 2012-03-01  Chris Demetriou  <cgd@google.com>
7537
7538         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
7539         have predictable order.
7540
7541 2012-03-01  David S. Miller  <davem@davemloft.net>
7542
7543         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
7544
7545         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
7546         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
7547         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
7548         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
7549
7550         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
7551         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
7552         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
7553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
7554         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
7555         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
7556         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
7557         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
7558         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
7559
7560         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7561
7562         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
7563         * sysdeps/sparc/fpu/libm-test-ulps: to here.
7564         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
7565
7566         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
7567         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
7568         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7569         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
7570         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
7571         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
7572         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
7573         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
7574         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7575         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
7576         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
7577         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7578         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
7579         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
7580         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7581         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7582         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
7583         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
7584         * sysdeps/sparc/elf/configure: Regenerated.
7585
7586 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
7587
7588         * configure.in (AS, LD): Require binutils 2.20 or later.
7589         * configure: Regenerated.
7590         * manual/install.texi (Tools for Compilation): Give binutils 2.20
7591         as required minimum version.
7592         * INSTALL: Regenerated.
7593
7594         [BZ #2541]
7595         [BZ #4108]
7596         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
7597         before squaring exponent.
7598         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
7599         bottom long double and 27 bits of top long double before squaring
7600         exponent.
7601         * math/libm-test.inc (erfc_test): Add more tests.
7602         * sysdeps/i386/fpu/libm-test-ulps: Update.
7603         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7604         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7605
7606 2012-03-01  Kai Tietz  <ktietz@redhat.com>
7607
7608         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
7609         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
7610         containing bit-fields.
7611         * soft-fp/extended.h (_FP_UNION_E): Likewise.
7612         * soft-fp/single.h (_FP_UNION_S): Likewise.
7613         * soft-fp/double.h (_FP_UNION_D): Likewise.
7614
7615 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7616
7617         [BZ #13786]
7618         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
7619         not include ../strcmp.S.
7620         [USE_AS_STRNCASECMP_L]: Likewise.
7621         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
7622         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
7623         * sysdeps/i386/i686/multiarch/strncase_l-c.c
7624         (__strncasecmp_l_ia32): Define as alias to
7625         __strncasecmp_l_nonascii.
7626
7627         [BZ #5794]
7628         * math/libm-test.inc (expm1_test): Add test for bug 5794.
7629         * sysdeps/i386/fpu/libm-test-ulps: Update.
7630         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7631
7632         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
7633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7634
7635 2012-02-29  Jeff Law  <law@redhat.com>
7636
7637         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
7638         out of bounds read.
7639
7640 2012-02-29  Marek Polacek  <polacek@redhat.com>
7641
7642         [BZ #13706]
7643         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
7644         * elf/Makefile: Add rules to run tst-unused-dep.out.
7645
7646 2012-02-28  David S. Miller  <davem@davemloft.net>
7647
7648         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
7649         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
7650         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
7651         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
7652         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
7653         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
7654
7655 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
7656
7657         * math/libm-test.inc (llround_test): Move one test from
7658         lround_test.  Use TEST_f_L in moved test.
7659         (lround_test): Move misplaced test to llround_test.  Add testcase
7660         from bug 2561.
7661
7662 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
7663
7664         * sysdeps/x86_64/fpu/e_expf.S: New file.
7665         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
7666
7667 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
7668
7669         [BZ #13637]
7670         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
7671         of remain_len that may cause incomplete multi-byte character and
7672         false match.
7673         * posix/bug-regex33.c: New file.
7674         * posix/Makefile (tests): Add bug-regex33.
7675
7676 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
7677
7678         * manual/macros.texi: New file.
7679         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
7680         * manual/libc.texinfo: Include macros.texi.
7681         * manual/creatute.texi: Likewise.
7682         * manual/install.texi: Likewise.
7683         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
7684         @glibcadj{} in references to the GNU C Library.
7685         * manual/charset.texi: Likewise.
7686         * manual/conf.texi: Likewise.
7687         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
7688         when not using those macros.
7689         * manual/creature.texi: Likewise.
7690         * manual/crypt.texi: Likewise.
7691         * manual/errno.texi: Likewise.
7692         * manual/filesys.texi: Likewise.
7693         * manual/header.texi: Likewise.
7694         * manual/install.texi: Likewise.
7695         * manual/intro.texi: Likewise.
7696         * manual/io.texi: Likewise.
7697         * manual/job.texi: Likewise.
7698         * manual/lang.texi: Likewise.
7699         * manual/libc.texiinfo: Likewise.
7700         * manual/llio.texi: Likewise.
7701         * manual/locale.texi: Likewise.
7702         * manual/maint.texi: Likewise.
7703         * manual/math.texi: Likewise.
7704         * manual/memory.texi: Likewise.
7705         * manual/message.texi: Likewise.
7706         * manual/nss.texi: Likewise.
7707         * manual/pattern.texi: Likewise.
7708         * manual/process.texi: Likewise.
7709         * manual/resource.texi: Likewise.
7710         * manual/search.texi: Likewise.
7711         * manual/setjmp.texi: Likewise.
7712         * manual/signal.texi: Likewise.
7713         * manual/socket.texi: Likewise.
7714         * manual/startup.texi: Likewise.
7715         * manual/stdio.texi: Likewise.
7716         * manual/string.texi: Likewise.
7717         * manual/sysinfo.texi: Likewise.
7718         * manual/syslog.texi: Likewise.
7719         * manual/terminal.texi: Likewise.
7720         * manual/time.texi: Likewise.
7721         * manual/users.texi: Likewise.
7722         * INSTALL: Regenerated.
7723         * NOTES: Regenerated.
7724         * sysdeps/gnu/errlist.c: Regenerated.
7725
7726 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
7727
7728         * include/dirent.h: Include <dirstream.h> before
7729         <dirent/dirent.h>.
7730
7731 2012-02-28  David S. Miller  <davem@davemloft.net>
7732
7733         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
7734         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
7735         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
7736         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
7737
7738 2012-02-27  David S. Miller  <davem@davemloft.net>
7739
7740         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
7741         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
7742         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
7743         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
7744
7745         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
7746         frame pointer instead of stack pointer relative arg slot.
7747         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7748         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7749         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7750
7751 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
7752
7753         [BZ #3992]
7754         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
7755
7756 2012-02-27  David S. Miller  <davem@davemloft.net>
7757
7758         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
7759         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
7760         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7761         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
7762         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
7763         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
7764         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
7765         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
7766
7767 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7768
7769         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
7770         later.  Allow versions 5-9.
7771         * configure: Regenerated.
7772         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
7773         required minimum version and 4.6 as recommended version.  Do not
7774         mention bugs in GCC 2.7 and 2.8.
7775         * INSTALL: Regenerated.
7776
7777 2012-02-27  David S. Miller  <davem@davemloft.net>
7778
7779         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
7780         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
7781         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
7782         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
7783         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
7784         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
7785         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
7786         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
7787
7788         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
7789         manipulate bits before adding and subtracting TWO112[sx].
7790         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
7791
7792 2012-02-27  Roland McGrath  <roland@hack.frob.com>
7793
7794         [BZ #13775]
7795         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
7796         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
7797         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
7798         being in POSIX, because they are in 1003.1-2008.
7799
7800         * rt/tst-aio.c: Include <fcntl.h>.
7801         * rt/tst-aio7.c: Likewise.
7802         * rt/tst-aio64.c: Likewise.
7803
7804         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
7805
7806 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
7807
7808         * manual/install.texi (--with-headers): Describe headers as
7809         interface headers, not private headers.
7810         (Specific advice for GNU/Linux systems): Describe use of headers
7811         from "make headers_install", not private headers from older
7812         kernels.
7813         * INSTALL: Regenerated.
7814         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
7815         Change to 2.6.19.
7816         * sysdeps/unix/sysv/linux/configure: Regenerated.
7817
7818         * manual/llio.texi (fclean): Remove documentation.
7819
7820         * manual/Makefile (libc-texi-generated): New variable.  Include
7821         version.texi.
7822         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
7823         $(libc-texi-generated), not duplicated list of files.
7824         (version.texi, stamp-version): New rules.
7825         (realclean): Remove $(libc-texi-generated), not individual files
7826         from that list.  Do not remove dir-add.texinfo.
7827         * manual/libc.texinfo: Comment out uses of edition numbers and
7828         references to printed manual.  Remove last-updated dates.
7829         (EDITION): Comment out.
7830         (ISBN): Likewise.
7831         (VERSION, UPDATED): Remove.
7832         (version.texi): Include.
7833
7834 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
7835
7836         * sysdeps/posix/spawni.c: Include <signal.h>.
7837         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
7838         * sysdeps/pthread/aio_fsync.c: Likewise.
7839
7840 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
7841
7842         * conform/Makefile (tests): Run only when not cross-compiling and
7843         when fast-check is not defined.
7844
7845         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
7846         * conform/data/limits.h-data: Fixes for POSIX2008.
7847         * conform/run-conformtest.sh: Run all tests.
7848         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
7849         headers.
7850         * include/bits/dlfcn.h: Likewise.
7851         * include/langinfo.h: Likewise.
7852         * include/monetary.h: Likewise.
7853         * include/sys/poll.h: Likewise.
7854
7855         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
7856         for __USE_GNU.
7857         * posix/spawn.h: Define __need_sigset_t.
7858         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
7859         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
7860         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
7861         to get sigevent_t only.
7862         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
7863         only for __USE_GNU.
7864         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7865         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7866         process_vm_writev only for __USE_GNU.
7867         * termios/termios.h: Declare tcgetsid also for POSIX2008.
7868
7869         * conform/Makefile: For now ignore errors from run-conformtest.
7870         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
7871         POSIX to avoid namespace pollution.  Don't prepend headers.
7872         * conform/data/aio.h-data: Fixes for POSIX testing.
7873         * conform/data/fcntl.h-data: Likewise.
7874         * conform/data/glob.h-data: Likewise.
7875         * conform/data/grp.h-data: Likewise.
7876         * conform/data/pthread.h-data: Likewise.
7877         * conform/data/pwd.h-data: Likewise.
7878         * conform/data/signal.h-data: Likewise.
7879         * conform/data/spawn.h-data: Likewise.
7880         * conform/data/stdio.h-data: Likewise.
7881         * conform/data/stdlib.h-data: Likewise.
7882         * conform/data/stropts.h-data: Likewise.
7883         * conform/data/sys/mman.h-data: Likewise.
7884         * conform/data/sys/stat.h-data: Likewise.
7885         * conform/data/sys/types.h-data: Likewise.
7886         * conform/data/sys/wait.h-data: Likewise.
7887         * conform/data/time.h-data: Likewise.
7888         * conform/data/unistd.h-data: Likewise.
7889         * conform/data/utime.h-data: Likewise.
7890
7891         * io/sys/stat.h: fchmod was always in POSIX.
7892         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
7893         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
7894         * rt/aio.h: Define __need_timespec before including <time.h>.
7895         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
7896         struct.  Add forward declaration of pthread_attr_t and use it in
7897         sigevent.
7898         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7899         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7900         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
7901         always remove CLK_TCK definition.
7902
7903 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
7904
7905         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
7906
7907 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
7908
7909         * conform/run-conformtest.sh: New file.
7910         * conform/Makefile: Run run-conformtest for tests.
7911         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
7912         support.
7913
7914         * conform/data/uchar.h-data: New file.
7915         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
7916         * conform/data/arpa/inet.h-data: Likewise.
7917         * conform/data/assert.h-data: Likewise.
7918         * conform/data/complex.h-data: Likewise.
7919         * conform/data/cpio.h-data: Likewise.
7920         * conform/data/ctype.h-data: Likewise.
7921         * conform/data/dirent.h-data: Likewise.
7922         * conform/data/dlfcn.h-data: Likewise.
7923         * conform/data/errno.h-data: Likewise.
7924         * conform/data/fcntl.h-data: Likewise.
7925         * conform/data/float.h-data: Likewise.
7926         * conform/data/fmtmsg.h-data: Likewise.
7927         * conform/data/fnmatch.h-data: Likewise.
7928         * conform/data/ftw.h-data: Likewise.
7929         * conform/data/glob.h-data: Likewise.
7930         * conform/data/grp.h-data: Likewise.
7931         * conform/data/iconv.h-data: Likewise.
7932         * conform/data/inttypes.h-data: Likewise.
7933         * conform/data/langinfo.h-data: Likewise.
7934         * conform/data/libgen.h-data: Likewise.
7935         * conform/data/limits.h-data: Likewise.
7936         * conform/data/locale.h-data: Likewise.
7937         * conform/data/math.h-data: Likewise.
7938         * conform/data/monetary.h-data: Likewise.
7939         * conform/data/mqueue.h-data: Likewise.
7940         * conform/data/ndbm.h-data: Likewise.
7941         * conform/data/net/if.h-data: Likewise.
7942         * conform/data/netdb.h-data: Likewise.
7943         * conform/data/netinet/in.h-data: Likewise.
7944         * conform/data/nl_types.h-data: Likewise.
7945         * conform/data/poll.h-data: Likewise.
7946         * conform/data/pthread.h-data: Likewise.
7947         * conform/data/pwd.h-data: Likewise.
7948         * conform/data/regex.h-data: Likewise.
7949         * conform/data/sched.h-data: Likewise.
7950         * conform/data/search.h-data: Likewise.
7951         * conform/data/semaphore.h-data: Likewise.
7952         * conform/data/setjmp.h-data: Likewise.
7953         * conform/data/signal.h-data: Likewise.
7954         * conform/data/spawn.h-data: Likewise.
7955         * conform/data/stdarg.h-data: Likewise.
7956         * conform/data/stdio.h-data: Likewise.
7957         * conform/data/stdlib.h-data: Likewise.
7958         * conform/data/string.h-data: Likewise.
7959         * conform/data/strings.h-data: Likewise.
7960         * conform/data/stropts.h-data: Likewise.
7961         * conform/data/sys/ipc.h-data: Likewise.
7962         * conform/data/sys/mman.h-data: Likewise.
7963         * conform/data/sys/msg.h-data: Likewise.
7964         * conform/data/sys/resource.h-data: Likewise.
7965         * conform/data/sys/select.h-data: Likewise.
7966         * conform/data/sys/sem.h-data: Likewise.
7967         * conform/data/sys/shm.h-data: Likewise.
7968         * conform/data/sys/socket.h-data: Likewise.
7969         * conform/data/sys/stat.h-data: Likewise.
7970         * conform/data/sys/statvfs.h-data: Likewise.
7971         * conform/data/sys/time.h-data: Likewise.
7972         * conform/data/sys/timeb.h-data: Likewise.
7973         * conform/data/sys/times.h-data: Likewise.
7974         * conform/data/sys/types.h-data: Likewise.
7975         * conform/data/sys/uio.h-data: Likewise.
7976         * conform/data/sys/un.h-data: Likewise.
7977         * conform/data/sys/utsname.h-data: Likewise.
7978         * conform/data/sys/wait.h-data: Likewise.
7979         * conform/data/syslog.h-data: Likewise.
7980         * conform/data/tar.h-data: Likewise.
7981         * conform/data/termios.h-data: Likewise.
7982         * conform/data/utime.h-data: Likewise.
7983         * conform/data/utmpx.h-data: Likewise.
7984         * conform/data/varargs.h-data: Likewise.
7985         * conform/data/wchar.h-data: Likewise.
7986         * conform/data/wctype.h-data: Likewise.
7987         * conform/data/wordexp.h-data: Likewise.
7988
7989         * include/stropts.h: New file.
7990         * include/uchar.h: New file.
7991         * include/aio.h: Changes to allow conformtest.pl to use the headers.
7992         * include/assert.h: Likewise.
7993         * include/ctype.h: Likewise.
7994         * include/dirent.h: Likewise.
7995         * include/dlfcn.h: Likewise.
7996         * include/fcntl.h: Likewise.
7997         * include/fnmatch.h: Likewise.
7998         * include/glob.h: Likewise.
7999         * include/grp.h: Likewise.
8000         * include/libio.h: Likewise.
8001         * include/locale.h: Likewise.
8002         * include/math.h: Likewise.
8003         * include/net/if.h: Likewise.
8004         * include/netdb.h: Likewise.
8005         * include/netinet/in.h: Likewise.
8006         * include/pthread.h: Likewise.
8007         * include/pwd.h: Likewise.
8008         * include/regex.h: Likewise.
8009         * include/sched.h: Likewise.
8010         * include/search.h: Likewise.
8011         * include/setjmp.h: Likewise.
8012         * include/signal.h: Likewise.
8013         * include/stdio.h: Likewise.
8014         * include/stdlib.h: Likewise.
8015         * include/string.h: Likewise.
8016         * include/sys/cdefs.h: Likewise.
8017         * include/sys/mman.h: Likewise.
8018         * include/sys/msg.h: Likewise.
8019         * include/sys/resource.h: Likewise.
8020         * include/sys/select.h: Likewise.
8021         * include/sys/socket.h: Likewise.
8022         * include/sys/stat.h: Likewise.
8023         * include/sys/statvfs.h: Likewise.
8024         * include/sys/time.h: Likewise.
8025         * include/sys/times.h: Likewise.
8026         * include/sys/uio.h: Likewise.
8027         * include/sys/utsname.h: Likewise.
8028         * include/sys/wait.h: Likewise.
8029         * include/termios.h: Likewise.
8030         * include/time.h: Likewise.
8031         * include/ulimit.h: Likewise.
8032         * include/unistd.h: Likewise.
8033         * include/utime.h: Likewise.
8034         * include/wchar.h: Likewise.
8035         * include/wctype.h: Likewise.
8036         * include/wordexp.h: Likewise.
8037
8038         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
8039
8040         * time/time.h: TIME_UTC must be a macro.
8041         Make timespec_get available for ISO C11 only as well.
8042
8043 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
8044
8045         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
8046         Reported by Peng Haitao <penght@cn.fujitsu.com>.
8047
8048 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8049
8050         * configure.in: Use -o not -a in test for unsupported multi-arch.
8051
8052 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8053
8054         * manual/texinfo.tex: Update to version 2012-01-19.16.
8055
8056 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
8057
8058         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
8059
8060 2012-02-24  Roland McGrath  <roland@hack.frob.com>
8061
8062         [BZ #13738]
8063         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
8064         * manual/fdl-1.3.texi: New file.
8065         * manual/fdl-1.1.texi: File removed.
8066
8067         [BZ #13738]
8068         * manual/libc.texinfo (FDL_VERSION): New @set.
8069         Use it for mention of FDL in cover text.
8070         (Documentation License): Use it in @include file name.
8071
8072 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8073             Roland McGrath  <roland@hack.frob.com>
8074
8075         [BZ #5461]
8076         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
8077         not LONG_LONG_MAX and LONG_LONG_MIN.
8078         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
8079         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
8080         name.
8081         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
8082
8083 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8084
8085         [BZ #2547]
8086         [BZ #11365]
8087         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
8088         manipulate bits before adding and subtracting TWO23[sx].
8089         * math/libm-test.inc (nearbyint_test): Add more tests.
8090
8091 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8092
8093         [BZ #2548]
8094         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
8095         bits before adding and subtracting TWO23[sx].
8096         * math/libm-test.inc (rint_test): Add more tests.
8097         (rint_test_tonearest): Likewise.
8098         (rint_test_towardzero): Likewise.
8099         (rint_test_downward): Likewise.
8100         (rint_test_upward: Likewise.
8101
8102 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8103
8104         [BZ #10110]
8105         * include/stdc-predef.h: New file.  Extracted from features.h.
8106         * include/features.h: Include stdc-predef.h.
8107         * Makefile (headers): Add stdc-predef.h.
8108         * CONFORMANCE (Compiler limitations): Update.
8109
8110 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
8111
8112         * manual/libc.texinfo (VERSION, UPDATED): Revert.
8113
8114 2012-02-21  David S. Miller  <davem@davemloft.net>
8115
8116         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
8117         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8118
8119 2012-02-20  David S. Miller  <davem@davemloft.net>
8120
8121         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
8122         using a normal save/restore sequence, rather than allocating a
8123         dummy stack frame just to store a frame pointer and restore.
8124         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8125
8126 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8127
8128         * manual/install.texi: Fix stray word in line-wrapped comment.
8129
8130 2012-02-20  David S. Miller  <davem@davemloft.net>
8131
8132         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
8133         both binutils and gcc support GOTDATA.
8134
8135         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
8136         "rd %pc" in the PIC register setup sequences.
8137
8138         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
8139         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
8140         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
8141         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
8142         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
8143         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8144         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
8145         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
8146         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
8147         (SYSCALL_ERROR_HANDLER): Likewise.
8148         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
8149         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
8150         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
8151         (SYSCALL_ERROR_HANDLER): Likewise.
8152
8153         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
8154         (HAVE_GCC_GOTDATA): New.
8155         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
8156         relocation support in both binutils and gcc.
8157         * sysdeps/sparc/elf/configure: Regenerate.
8158
8159         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
8160         * sysdeps/sparc/sparc32/elf/configure: Delete.
8161         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
8162         * sysdeps/sparc/sparc64/elf/configure: Delete.
8163         * sysdeps/sparc/elf/configure.in: New file.
8164         * sysdeps/sparc/elf/configure: Generate.
8165
8166         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
8167         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
8168         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
8169         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
8170         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
8171
8172 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8173
8174         * manual/install.texi: Do not mention specific glibc version
8175         numbers.
8176         * manual/libc.texinfo (VERSION, UPDATED): Update.
8177         (@copying): Use @copyright{} and range of years.
8178
8179 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
8180
8181         [BZ #13695]
8182         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
8183         [crti.S not in sysdirs] (generated): Do not append.
8184         [crti.S not in sysdirs] (omit-deps): Likewise.
8185         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
8186         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
8187         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
8188         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
8189         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
8190         Likewise.
8191         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
8192         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
8193         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
8194         * csu/defs.awk: Remove file.
8195         * sysdeps/generic/initfini.c: Likewise.
8196         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
8197         variable.
8198         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
8199         Likewise.
8200
8201 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8202
8203         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
8204         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
8205         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
8206         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
8207         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8208         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
8209         <bits/epoll.h>.
8210         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
8211         (__EPOLL_PACKED): Define to empty if not defined by
8212         <bits/epoll.h>.
8213         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
8214         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8215         bits/epoll.h.
8216
8217 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8218
8219         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
8220         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
8221         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
8222         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
8223         <bits/timerfd.h>.
8224         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
8225         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8226         bits/timerfd.h.
8227
8228 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
8229
8230         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
8231         in C locale.
8232         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
8233         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
8234         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
8235         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8236
8237 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
8238
8239         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8240         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
8241
8242 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
8243
8244         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
8245         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
8246         defined.
8247         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
8248         Likewise.
8249         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
8250         entry for 2.16.
8251
8252 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
8253
8254         * math/w_acos.c: Use non-signaling floating-point comparisons.
8255         * math/w_acosf.c: Likewise.
8256         * math/w_acosh.c: Likewise.
8257         * math/w_acoshf.c: Likewise.
8258         * math/w_acoshl.c: Likewise.
8259         * math/w_acosl.c: Likewise.
8260         * math/w_asin.c: Likewise.
8261         * math/w_asinf.c: Likewise.
8262         * math/w_asinl.c: Likewise.
8263         * math/w_atanh.c: Likewise.
8264         * math/w_atanhf.c: Likewise.
8265         * math/w_atanhl.c: Likewise.
8266         * math/w_exp2.c: Likewise.
8267         * math/w_exp2f.c: Likewise.
8268         * math/w_exp2l.c: Likewise.
8269         * math/w_j0.c: Likewise.
8270         * math/w_j0f.c: Likewise.
8271         * math/w_j0l.c: Likewise.
8272         * math/w_j1.c: Likewise.
8273         * math/w_j1f.c: Likewise.
8274         * math/w_j1l.c: Likewise.
8275         * math/w_jn.c: Likewise.
8276         * math/w_jnf.c: Likewise.
8277         * math/w_log.c: Likewise.
8278         * math/w_log10.c: Likewise.
8279         * math/w_log10f.c: Likewise.
8280         * math/w_log10l.c: Likewise.
8281         * math/w_log2.c: Likewise.
8282         * math/w_log2f.c: Likewise.
8283         * math/w_log2l.c: Likewise.
8284         * math/w_logf.c: Likewise.
8285         * math/w_logl.c: Likewise.
8286         * math/w_sqrt.c: Likewise.
8287         * math/w_sqrtf.c: Likewise.
8288         * math/w_sqrtl.c: Likewise.
8289         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
8290         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
8291         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
8292         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
8293         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
8294
8295 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8296
8297         [BZ #9739]
8298         * manual/string.texi (strnlen): Use correct parameter name in
8299         equivalent expression.
8300
8301 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8302
8303         [BZ #11174]
8304         * manual/users.texi (seteuid): Consistently use neweuid for
8305         argument name.
8306
8307 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
8308
8309         [BZ #13704]
8310         * manual/nss.texi (Services in the NSS configuration): Correct
8311         list of services in example configuration file.
8312
8313 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
8314
8315         [BZ #11322]
8316         * manual/arith.texi: Remove statements about negative zero
8317         behaving identically to zero.
8318
8319 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8320
8321         [BZ #5993]
8322         * manual/install.texi: Do not document upgrading from libc5.
8323
8324 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
8325
8326         [BZ #4596]
8327         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
8328
8329 2012-02-18  David S. Miller  <davem@davemloft.net>
8330
8331         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
8332         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
8333         %o7 across the call.
8334         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
8335         instead.
8336         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
8337         SETUP_PIC_REG_LEAF.
8338         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
8339         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
8340         * sysdeps/sparc/crtn.S: Likewise.
8341
8342 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
8343
8344         * aout/Makefile: Remove.
8345
8346 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
8347
8348         [BZ #13058]
8349         * manual/examples/argp-ex1.c (main): Format definition in GNU
8350         style.
8351         * manual/examples/argp-ex2.c (main): Likewise.
8352         * manual/examples/argp-ex3.c (main): Likewise.
8353         * manual/examples/argp-ex4.c (main): Likewise.
8354         * manual/examples/longopt.c (main): Use new-style prototype
8355         definition.
8356         * manual/examples/strncat.c (main): Specify return type and use
8357         (void) for arguments.
8358         * manual/examples/subopt.c (main): Use char **argv argument.
8359
8360 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8361
8362         [BZ #5077]
8363         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
8364         rounding modes.
8365
8366 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
8367
8368         [BZ #6907]
8369         * manual/string.texi (strchr): Change when strchrnul is
8370         recommended.
8371
8372 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
8373
8374         [BZ #174]
8375         * manual/locale.texi (setlocale): Document LOCPATH.
8376
8377 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8378
8379         [BZ #10210]
8380         * manual/process.texi (execle): Move @dots{} before last argument.
8381
8382 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
8383
8384         [BZ #12047]
8385         * manual/charset.texi (Generic Charset Conversion): Fix typo
8386         (LC_TYPE -> LC_CTYPE).
8387
8388 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
8389
8390         [BZ #5805]
8391         * manual/arith.texi (scalbn): Use @var{} on parameter names.
8392         (scalbnf): Likewise.
8393         (scalbnl): Likewise.
8394         (scalbln): Likewise.
8395         (scalblnf): Likewise.
8396         (scalblnl): Likewise.
8397         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
8398         (vwarnx): Likewise.
8399         (verr): Likewise.
8400         (verrx): Likewise.
8401         * manual/filesys.texi (telldir): Use braces around return type.
8402         * manual/llio.texi (mmap): Add space after comma.
8403         (mmap64): Likewise.
8404         * manual/math.texi (jn): Use @var{} on parameter names.
8405         (jnf): Likewise.
8406         (jnl): Likewise.
8407         (yn): Likewise.
8408         (ynf): Likewise.
8409         (ynl): Likewise.
8410         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
8411         line.
8412         * manual/resource.texi (ulimit): Use @dots{} instead of literal
8413         "...".
8414         (sched_get_priority_min): Remove semicolon on @deftypefun line.
8415         (sched_get_priority_max): Likewise.
8416         * manual/signal.texi (sigvec): Add space after comma.
8417         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
8418         names.
8419         (if_indextoname): Likewise.
8420         (if_freenameindex): Likewise.
8421         (sendto): Use ',' instead of '.' in prototype.
8422         * manual/startup.texi (syscall): Use @dots{} instead of literal
8423         "...".
8424         * manual/stdio.texi (__fpending): Separate initial words of
8425         paragraph from @deftypefun line.
8426         * manual/syslog.texi (syslog): Use @dots{} instead of literal
8427         "...".
8428         (vsyslog): Use @var{} on parameter names.
8429         * manual/terminal.texi (stty): Use @var{} on parameter names.
8430         * manual/users.texi (getutmp): Use @var{} on parameter names.
8431         (getutmpx): Likewise.
8432
8433 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8434
8435         [BZ #6884]
8436         * manual/stdio.texi (fopen): Fix typos in description of
8437         ",ccs=STRING".
8438
8439 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
8440
8441         [BZ #4026]
8442         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
8443         get clock_id definition.
8444
8445 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
8446
8447         [BZ #4822]
8448         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
8449         (madvise): Cast every argument to void on its own.
8450
8451 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8452
8453         [BZ #9902]
8454         * manual/startup.texi (Exit Status): Fix typo.
8455
8456 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
8457
8458         [BZ #10140]
8459         * manual/examples/argp-ex1.c: Include <stdlib.h>.
8460         * manual/examples/argp-ex2.c: Likewise.
8461         * manual/examples/argp-ex3.c: Likewise.
8462
8463 2012-02-16  Richard Henderson  <rth@redhat.com>
8464
8465         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
8466         * sysdeps/s390/s390-32/initfini.c: Remove.
8467         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
8468         * sysdeps/s390/s390-64/initfini.c: Remove.
8469
8470 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
8471
8472         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
8473         compiler output for sysdeps/generic/initfini.c.
8474         * sysdeps/sh/elf/initfini.c: Remove file.
8475
8476 2012-02-16  David S. Miller  <davem@davemloft.net>
8477
8478         [BZ #11494]
8479         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
8480
8481         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
8482         * sysdeps/sparc/crti.S: New file.
8483         * sysdeps/sparc/crtn.S: New file.
8484         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
8485         * sysdeps/sparc/sparc64/Makefile: Likewise.
8486
8487 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
8488
8489         [BZ #3335]
8490         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
8491
8492 2012-02-15  Roland McGrath  <roland@hack.frob.com>
8493
8494         [BZ #4822]
8495         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
8496
8497         * mach/devstream.c (cookie_io_functions_t): Macro removed.
8498         (write, read, close): Likewise.
8499         Patch by Aurelien Jarno <aurelien@aurel32.net>.
8500
8501 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
8502
8503         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
8504         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
8505         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
8506         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
8507         <bits/signalfd.h>.
8508         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
8509         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8510         bits/signalfd.h.
8511
8512 2012-02-14  Marek Polacek  <polacek@redhat.com>
8513
8514         * sysdeps/x86_64/crti.S: New file.
8515         * sysdeps/x86_64/crtn.S: New file.
8516         * sysdeps/x86_64/elf/initfini.c: Remove file.
8517
8518 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8519
8520         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
8521         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
8522         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
8523         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
8524         <bits/inotify.h>.
8525         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
8526         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8527         bits/inotify.h.
8528
8529 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
8530
8531         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
8532         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
8533         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
8534         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
8535         <bits/eventfd.h>.
8536         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
8537         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8538         bits/eventfd.h.
8539
8540 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
8541
8542         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
8543         __feraiseexcept instead of feraiseexcept.
8544
8545         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
8546         nanosleep invocations.
8547         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
8548         strings, and add error checking for a nanosleep invocations.
8549
8550 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
8551
8552         Replace FSF snail mail address with URLs, as per GNU coding standards.
8553         Most of the snail mail addresses were wrong anyway, and omitting
8554         them makes the source code easier to maintain.  Almost all of the
8555         changes are to license notices and to locale LC_IDENTIFICATION
8556         addresses, except for this one:
8557         * manual/libc.texinfo: In "Published by", give the FSF's URL,
8558         not its snail mail address.
8559
8560 2012-02-09  Richard Henderson  <rth@twiddle.net>
8561
8562         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
8563         of kernel-features.h.
8564
8565         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
8566
8567 2012-02-08  Marek Polacek  <polacek@redhat.com>
8568
8569         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
8570         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
8571         * sysdeps/gnu/_G_config.h: Likewise.
8572         * sysdeps/generic/_G_config.h: Likewise.
8573
8574 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
8575
8576         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
8577         tests.
8578         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8579
8580         * sysdeps/powerpc/powerpc32/crti.S: New file.
8581         * sysdeps/powerpc/powerpc32/crtn.S: New file.
8582         * sysdeps/powerpc/powerpc64/crti.S: New file.
8583         * sysdeps/powerpc/powerpc64/crtn.S: New file.
8584
8585         * Makeconfig (have-initfini): Don't set.
8586         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
8587         * configure.in (nopic_initfini): Don't substitute.
8588         * config.h.in (HAVE_INITFINI): Don't #undef.
8589         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
8590         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
8591
8592 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
8593
8594         Support crti.S and crtn.S provided directly by architectures.
8595         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
8596         [crti.S in sysdirs] (omit-deps): Likewise.
8597         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
8598         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
8599         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
8600         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
8601         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
8602         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
8603         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
8604         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
8605         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
8606         compiler output for sysdeps/generic/initfini.c.
8607         * sysdeps/i386/elf/Makefile: Remove file.
8608         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
8609
8610 2012-02-07  Marek Polacek  <polacek@redhat.com>
8611
8612         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
8613         * sysdeps/gnu/_G_config.h: Likewise.
8614         * sysdeps/mach/hurd/_G_config.h: Likewise.
8615
8616 2012-02-07  Marek Polacek  <polacek@redhat.com>
8617
8618         * math/Makefile (tests): Add tst-CMPLX2.
8619         * math/tst-CMPLX2.c: New file.
8620
8621 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
8622
8623         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
8624
8625         * math/libm-test.inc (jn_test): Add missing L suffix.
8626
8627 2012-02-06  Marek Polacek  <polacek@redhat.com>
8628
8629         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
8630         * sysdeps/i386/fpu/e_powf.S: Likewise.
8631         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8632         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8633         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8634         * sysdeps/i386/fpu/e_pow.S: Likewise.
8635         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
8636         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8637         * sysdeps/i386/fpu/s_expm1.S: Likewise.
8638         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
8639         * sysdeps/i386/fpu/e_log2.S: Likewise.
8640         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8641         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8642         * sysdeps/i386/fpu/e_powl.S: Likewise.
8643         * sysdeps/i386/fpu/s_log1p.S: Likewise.
8644         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8645         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
8646         * sysdeps/i386/fpu/e_logl.S: Likewise.
8647         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
8648         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
8649         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
8650         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
8651         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8652         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8653         * sysdeps/i386/fpu/e_log.S: Likewise.
8654         * sysdeps/i386/fpu/s_cexp.S: Likewise.
8655         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8656         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
8657         * sysdeps/i386/fpu/e_logf.S: Likewise.
8658         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8659         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8660         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
8661         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
8662         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8663         * sysdeps/i386/fpu/e_log10.S: Likewise.
8664         * sysdeps/i386/fpu/s_frexp.S: Likewise.
8665         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8666         * sysdeps/i386/fpu/s_asinh.S: Likewise.
8667         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
8668         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8669         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
8670         * sysdeps/i386/asm-syntax.h: Likewise.
8671         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8672         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8673         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8674         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
8675         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
8676         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8677         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8678         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8679         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8680         * sysdeps/powerpc/sysdep.h: Likewise.
8681         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
8682         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8683
8684 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8685
8686         [BZ #411]
8687         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
8688
8689 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
8690
8691         * sysdeps/i386/sysdep.h: Include <features.h>.
8692         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
8693         version.
8694
8695 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
8696
8697         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
8698         Define.
8699         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
8700         LOAD_PIC_REG_STR.
8701
8702 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8703
8704         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
8705         (SETUP_PIC_REG): Use GET_PC_THUNK.
8706         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
8707         macro.
8708
8709 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8710
8711         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
8712         for non-PIC compilation.
8713         (SETUP_PIC_REG): Add .p2align directive.
8714         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
8715         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
8716         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
8717         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
8718         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
8719         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
8720         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
8721         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
8722         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
8723         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
8724         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
8725         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
8726         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
8727         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
8728         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
8729         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
8730         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
8731         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
8732         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
8733         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
8734         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
8735         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
8736         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
8737         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
8738         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
8739         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
8740         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
8741         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
8742         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
8743         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
8744         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
8745         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
8746         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
8747         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
8748         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
8749         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
8750         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
8751         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
8752         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
8753         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
8754         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
8755
8756 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
8757
8758         * math/tst-CMPLX.c: Include <stdio.h>.
8759
8760 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
8761
8762         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
8763         float.
8764         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8765         * sysdeps/sparc/bits/mathdef.h: Likewise.
8766
8767 2012-01-31  Marek Polacek  <polacek@redhat.com>
8768
8769         * libio/libio.h: Don't define _PARAMS.
8770         * locale/programs/config.h: Don't define PARAMS.
8771         * stdlib/strtol_l.c: Likewise.
8772         (__strtol_l): Remove PARAMS from the prototype.
8773
8774 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
8775
8776         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
8777         names.  Just use the correct names.  Remove unnecessary wrapper
8778         functions.
8779         * malloc/arena.c: Likewise.
8780         * malloc/hooks.c: Likewise.
8781
8782         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
8783         ARENA_TEST says not to.  Simplify test for creation of a new arena.
8784         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
8785
8786 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
8787
8788         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
8789         into tail calls.
8790         (update_get_addr): New function.
8791         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
8792         GET_ADDR_MODULE parameter.
8793
8794 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8795
8796         * crypt/cert.c: Remove __STDC__ conditionals.
8797         * crypt/crypt-entry.c: Likewise.
8798         * crypt/crypt_util.c: Likewise.
8799         * libio/filedoalloc.c: Likewise.
8800         * libio/fileops.c: Likewise.
8801         * libio/genops.c: Likewise.
8802         * libio/iofclose.c: Likewise.
8803         * libio/iofdopen.c: Likewise.
8804         * libio/iofopen.c: Likewise.
8805         * libio/iofopen64.c: Likewise.
8806         * libio/iogetdelim.c: Likewise.
8807         * libio/iopopen.c: Likewise.
8808         * libio/obprintf.c: Likewise.
8809         * libio/oldfileops.c: Likewise.
8810         * libio/oldiofclose.c: Likewise.
8811         * libio/oldiofdopen.c: Likewise.
8812         * libio/oldiofopen.c: Likewise.
8813         * libio/oldiopopen.c: Likewise.
8814         * libio/wfiledoalloc.c: Likewise.
8815         * libio/wgenops.c: Likewise.
8816         * locale/programs/xmalloc.c: Likewise.
8817         * misc/syslog.c: Likewise.
8818         * stdio-common/xbug.c: Likewise.
8819         * string/memchr.c: Likewise.
8820         * string/memcmp.c: Likewise.
8821         * string/memrchr.c: Likewise.
8822         * string/rawmemchr.c: Likewise.
8823         * sysdeps/posix/getcwd.c: Likewise.
8824         * time/strftime_l.c: Likewise.
8825
8826 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
8827
8828         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
8829         * config.make.in (config-cflags-sse2avx): Define.
8830         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
8831         Fix typo.
8832
8833 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
8834
8835         * scripts/config.guess: Update from upstream config git repository.
8836         * scripts/config.sub: Likewise.
8837
8838 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
8839
8840         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
8841         (EM_NUM): Update.
8842         (R_TILEPRO_*, R_TILEGX_*): New macros.
8843
8844         * scripts/firstversions.awk: Fix bug in version range handling.
8845
8846         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
8847
8848         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
8849
8850         * include/sys/epoll.h: New file.
8851         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
8852         libc_hidden_def.
8853
8854 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
8855
8856         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
8857         Avoid unnecessary __WORDSIZE == 64 test.
8858         (fmaxf): Use VEX format if possible.
8859         (fmax): Likewise.
8860         (fminf): Likewise.
8861         (fmin): Likewise.
8862
8863         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
8864         * math/math_private.h: Remove libc_fegetround* and
8865         libc_fesetround*.
8866         * sysdeps/i386/configure.in: Check for -msse2avx.
8867         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
8868         also if SSE2AVX is defined.
8869         Remove libc_fegetround* and libc_fesetround*.
8870         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
8871         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
8872         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
8873         of HAS_YMM_USABLE.
8874         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8875         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8876         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8877         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8878         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8879
8880         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
8881
8882 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8883
8884         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
8885         size is not set.
8886         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
8887
8888 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
8889
8890         [BZ #13618]
8891         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
8892         relocation.
8893         * Makeconfig (libm): Define.
8894         * elf/Makefile: Add rules to build and run tst-relsort1.
8895         * elf/tst-relsort1.c: New file.
8896         * elf/tst-relsort1mod1.c: New file.
8897         * elf/tst-relsort1mod2.c: New file.
8898
8899 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
8900
8901         * math/s_ldexp.c: Remove __STDC__ conditionals.
8902         * math/s_ldexpf.c: Likewise.
8903         * math/s_ldexpl.c: Likewise.
8904         * math/s_nextafter.c: Likewise.
8905         * math/s_nexttowardf.c: Likewise.
8906         * math/s_significand.c: Likewise.
8907         * math/s_significandf.c: Likewise.
8908         * math/s_significandl.c: Likewise.
8909         * math/w_jnl.c: Likewise.
8910         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8911         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8912         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8913         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8914         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8915         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8916         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
8917         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8918         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8919         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8920         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8921         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8922         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8923         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8924         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8925         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8926         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8927         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8928         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8929         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8930         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8931         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8932         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8933         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8934         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8935         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8936         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8937         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8938         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8939         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8940         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8941         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8942         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8943         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8944         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8945         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8946         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8947         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8948         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8949         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8950         * sysdeps/ieee754/k_standard.c: Likewise.
8951         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8952         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8953         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8954         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8955         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8956         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8957         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8958         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8959         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8960         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8961         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8962         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8963         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8964         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8965         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8966         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8967         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8968         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8969         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8970         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8971         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8972         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8973         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8974         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8975         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8976         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8977         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8978         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8979         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8980         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8981         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8982         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8983         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8984         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8985         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8986         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8987         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8988         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8989         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8990         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8991         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8992         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8993         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8994         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8995         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8996         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
8997         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8998         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8999         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9000         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
9001         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
9002         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9003         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9004         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9005         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9006         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9007         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
9008         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9009         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9010         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9011         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9012         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9013         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9014         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9015         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9016         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9017         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9018         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9019         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9020         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9021         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9022         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9023         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9024         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9025         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9026         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9027         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9028         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9029         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9030         * sysdeps/ieee754/s_matherr.c: Likewise.
9031         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9032         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9033         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9034         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9035
9036 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9037
9038         * crypt/md5.h: Remove __STDC__ conditionals.
9039         * libio/libioP.h: Likewise.
9040         * locale/programs/config.h: Likewise.
9041         * sysdeps/generic/sysdep.h: Likewise.
9042         * sysdeps/i386/asm-syntax.h: Likewise.
9043         * sysdeps/s390/asm-syntax.h: Likewise.
9044         * sysdeps/unix/sysdep.h: Likewise.
9045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
9046         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9047
9048 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
9049
9050         * libio/libio.h: Remove __STDC__ conditionals.
9051         * malloc/obstack.h: Likewise.
9052         * math/complex.h: Likewise.
9053         * math/math.h: Likewise.
9054         * sysdeps/generic/_G_config.h: Likewise.
9055         * sysdeps/gnu/_G_config.h: Likewise.
9056         * sysdeps/mach/hurd/_G_config.h: Likewise.
9057         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9058         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
9059         * sysdeps/sparc/bits/mathdef.h: Likewise.
9060
9061 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
9062
9063         [BZ #13583]
9064         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
9065         Clean up HAS_* macros.
9066         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
9067         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
9068         possible.
9069         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
9070         HAS_AVX.
9071         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9072         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9073         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9074         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9075         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9076
9077 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
9078
9079         * elf/tst-unique3.cc (gets): Remove declaration.
9080         * elf/tst-unique3lib.cc (gets): Likewise.
9081         * elf/tst-unique3lib2.cc (gets): Likewise.
9082         * elf/tst-unique4.cc (gets): Likewise.
9083
9084 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
9085
9086         * include/stdio.h: Add C++ protection.  Add gets declarations and
9087         definitions.
9088         * debug/tst-chk1.c: Don't declare gets here.
9089         * stdio-common/tst-gets.c: Likewise.
9090
9091 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9092
9093         * posix/glob: Remove directory.
9094
9095 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
9096
9097         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
9098
9099 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
9100
9101         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
9102         of the non-standard EPFNOSUPPORT.
9103
9104 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9105
9106         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
9107         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
9108         ANYWHERE set to 1 only on KERN_NO_SPACE error.
9109
9110 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
9111
9112         * wcsmbs/uchar.h: Test __STDC_VERSION__.
9113
9114 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
9115
9116         * nscd/aicache.c (addhstaiX): Do not cache negative results of
9117         transient errors.
9118         * nscd/grpcache.c (cache_addgr): Likewise.
9119         * nscd/hstcache.c (cache_addhst): Likewise.
9120         * nscd/initgrcache.c (addinitgroupsX): Likewise.
9121         * nscd/pwdcache.c (cache_addpw): Likewise.
9122         * nscd/servicescache.c (cache_addserv): Likewise.
9123
9124 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
9125
9126         * malloc/malloc.c: Various cleanups.
9127         * malloc/hooks.c: Likewise.
9128
9129         * stdlib/Makefile (tests): Add bug-fmtmsg1.
9130         * stdlib/bug-fmtmsg1.c: New file.
9131
9132         * stdlib/fmtmsg.c (init): Add missing unlock.
9133         Patch by Peng Haitao <penght@cn.fujitsu.com>.
9134
9135 2012-01-12  Marek Polacek  <polacek@redhat.com>
9136
9137         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
9138         and _GNU_SOURCE.
9139
9140 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
9141
9142         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
9143         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
9144         macro to ensure uniqueness of label name.
9145         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9146         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9147
9148 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
9149
9150         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
9151
9152         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
9153         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9154         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9155         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
9156
9157 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
9158
9159         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
9160
9161         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
9162         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9163         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9164
9165         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
9166
9167         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
9168         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9169         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9170         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
9171
9172         * math/bits/math-finite.h: Add ldexp support.
9173
9174 2012-01-10  Marek Polacek  <polacek@redhat.com>
9175
9176         * locale/programs/localedef.h (show_archive_content): Add noreturn
9177         attribute.
9178
9179 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
9180
9181         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
9182
9183 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9184
9185         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
9186
9187         * io/Makefile (headers): Add bits/poll2.h.
9188
9189 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
9190
9191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
9192         typo #include statement.
9193
9194 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9195
9196         * include/sys/cdefs.h: Define __attribute_alloc_size.
9197         * catgets/gencat.c: Add alloc_size attribute and apply consistently
9198         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
9199         * elf/pldd.c: Likewise.
9200         * iconv/iconv_charmap.c: Likewise.
9201         * iconv/iconvconfig.c: Likewise.
9202         * iconv/strtab.c: Likewise.
9203         * locale/programs/locale.c: Likewise.
9204         * locale/programs/localedef.h: Likewise.
9205         * locale/programs/simple-hash.c: Likewise.
9206         * nscd/nscd.h: Likewise.
9207         * nss/makedb.c: Likewise.
9208         * sysdeps/generic/ldconfig.h: Likewise.
9209         * locale/programs/localedef.c: Remove xmalloc prototype.
9210         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
9211
9212 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
9213
9214         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
9215         appropriate.
9216
9217 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
9218
9219         * math/Makefile (tests): Add tst-CMPLX.
9220         * math/tst-CMPLX.c: New file.
9221
9222         * math/complex.h (CMPLXL): Fix typo.
9223
9224         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
9225         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
9226         GLIBC_2.16.
9227         * debug/tst-chk1.c: Add poll and ppoll tests.
9228         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
9229         * include/sys/poll.h: Add hidden proto for ppoll.
9230         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
9231         * sysdeps/mach/hurd/ppoll.c: Likewise.
9232         * io/ppoll.c: Likewise.
9233         * debug/poll_chk.c: New file.
9234         * debug/ppoll_chk.c: New file.
9235         * include/bits/poll2.h: New file.
9236         * io/bits/poll2.h: New file.
9237
9238         [BZ #1350]
9239         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
9240
9241         * configure.in: static is always set to yes.  Remove.
9242         * config.make.in: Don't set build-static.
9243         * Makeconfig: Remove use of build-static.
9244         * dlfcn/Makefile: Likewise.
9245         * elf/Makefile: Likewise.
9246         * math/Makefile: Likewise.
9247         * misc/Makefile: Likewise.
9248         * nptl/Makefile: Likewise.
9249         * sysdeps/mach/hurd/Makefile: Likewise.
9250
9251         * configure.in: PWD_P is not used anymore.
9252         * config.make.in: Remove PWD_P entry.
9253
9254         * configure.in: Remove last remnants of RANLIB.
9255         No need to check for signed size_t anymore.
9256         Don't set libc_commonpagesize and libc_relro_required here for Alpha
9257         and IA-64.
9258         Remove __builtin_expect test because we require at least gcc 3.4.
9259         * aclocal.m4: Likewise.
9260
9261         * wcsmbs/mbrtoc16.c: Implement using towc function.
9262         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
9263         * wcsmbs/wcsmbsload.c: Likewise.
9264         * iconv/gconv_simple.c: Likewise.
9265         * iconv/gconv_int.h: Likewise.
9266         * iconv/gconv_builtin.h: Likewise.
9267         * iconv/iconv_prog.c: Remove CHAR16 handling.
9268
9269         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
9270
9271         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
9272
9273         * configure.in: Remove --with-elf and --enable-bounded options.
9274         Dont set base_machine for ia64.  More non-ELF conditions removed.
9275         Remove testing and setting of leading underscore information.
9276         * config.make.in (build-bounded): Set to no.
9277         * config.h.in: Remove NO_UNDERSCORES entry.
9278         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
9279         them.
9280         * csu/start.c: Remove !NO_UNDERSCORE code.
9281         * locale/localeinfo.h: Likewise.
9282         * sysdeps/generic/machine-gmon.h: Likewise.
9283         * sysdeps/generic/sysdep.h: Likewise.
9284         * sysdeps/i386/sysdep.h: Likewise.
9285         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9286         * sysdeps/mach/sysdep.h: Likewise.
9287         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9288         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9289         * sysdeps/sh/sysdep.h: Likewise.
9290         * sysdeps/sparc/sparc32/alloca.S: Likewise.
9291         * sysdeps/unix/i386/sysdep.S: Likewise.
9292         * sysdeps/unix/sparc/start.c: Likewise.
9293         * sysdeps/unix/sparc/sysdep.S: Likewise.
9294         * sysdeps/unix/sparc/sysdep.h: Likewise.
9295         * sysdeps/unix/start.c: Likewise.
9296         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9297         * sysdeps/x86_64/sysdep.h: Likewise.
9298
9299 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
9300
9301         [BZ #13553]
9302         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
9303         for non-gcc.
9304         * argp/argp-fmtstream.h: Use const instead __const.
9305         * argp/argp.h: Likewise.
9306         * assert/assert.h: Likewise.
9307         * bits/fenv.h: Likewise.
9308         * bits/sched.h: Likewise.
9309         * bits/sigset.h: Likewise.
9310         * bits/sigthread.h: Likewise.
9311         * catgets/nl_types.h: Likewise.
9312         * conform/data/pthread.h-data: Likewise.
9313         * crypt/crypt-private.h: Likewise.
9314         * crypt/crypt.h: Likewise.
9315         * crypt/crypt_util.c: Likewise.
9316         * ctype/ctype.h: Likewise.
9317         * debug/execinfo.h: Likewise.
9318         * debug/mbsnrtowcs_chk.c: Likewise.
9319         * debug/mbsrtowcs_chk.c: Likewise.
9320         * debug/wcsnrtombs_chk.c: Likewise.
9321         * debug/wcsrtombs_chk.c: Likewise.
9322         * debug/wcstombs_chk.c: Likewise.
9323         * dirent/dirent.h: Likewise.
9324         * dlfcn/dlfcn.h: Likewise.
9325         * elf/neededtest4.c: Likewise.
9326         * grp/grp.h: Likewise.
9327         * gshadow/gshadow.h: Likewise.
9328         * iconv/gconv.h: Likewise.
9329         * iconv/gconv_int.h: Likewise.
9330         * iconv/gconv_simple.c: Likewise.
9331         * iconv/iconv.h: Likewise.
9332         * iconv/loop.c: Likewise.
9333         * iconv/skeleton.c: Likewise.
9334         * include/aio.h: Likewise.
9335         * include/aliases.h: Likewise.
9336         * include/argz.h: Likewise.
9337         * include/arpa/inet.h: Likewise.
9338         * include/assert.h: Likewise.
9339         * include/dirent.h: Likewise.
9340         * include/dlfcn.h: Likewise.
9341         * include/execinfo.h: Likewise.
9342         * include/fcntl.h: Likewise.
9343         * include/fenv.h: Likewise.
9344         * include/glob.h: Likewise.
9345         * include/grp.h: Likewise.
9346         * include/libintl.h: Likewise.
9347         * include/mntent.h: Likewise.
9348         * include/netdb.h: Likewise.
9349         * include/pwd.h: Likewise.
9350         * include/rpc/netdb.h: Likewise.
9351         * include/sched.h: Likewise.
9352         * include/search.h: Likewise.
9353         * include/shadow.h: Likewise.
9354         * include/signal.h: Likewise.
9355         * include/stdio.h: Likewise.
9356         * include/stdlib.h: Likewise.
9357         * include/string.h: Likewise.
9358         * include/sys/socket.h: Likewise.
9359         * include/sys/stat.h: Likewise.
9360         * include/sys/statfs.h: Likewise.
9361         * include/sys/statvfs.h: Likewise.
9362         * include/sys/syslog.h: Likewise.
9363         * include/sys/time.h: Likewise.
9364         * include/sys/uio.h: Likewise.
9365         * include/time.h: Likewise.
9366         * include/unistd.h: Likewise.
9367         * include/utmp.h: Likewise.
9368         * include/wchar.h: Likewise.
9369         * include/wctype.h: Likewise.
9370         * inet/aliases.h: Likewise.
9371         * inet/arpa/inet.h: Likewise.
9372         * inet/netinet/ether.h: Likewise.
9373         * inet/netinet/in.h: Likewise.
9374         * intl/libintl.h: Likewise.
9375         * io/bits/fcntl2.h: Likewise.
9376         * io/fcntl.h: Likewise.
9377         * io/ftw.h: Likewise.
9378         * io/sys/poll.h: Likewise.
9379         * io/sys/stat.h: Likewise.
9380         * io/sys/statfs.h: Likewise.
9381         * io/sys/statvfs.h: Likewise.
9382         * io/utime.h: Likewise.
9383         * libio/bits/stdio.h: Likewise.
9384         * libio/bits/stdio2.h: Likewise.
9385         * libio/libio.h: Likewise.
9386         * libio/libioP.h: Likewise.
9387         * libio/stdio.h: Likewise.
9388         * locale/lc-ctype.c: Likewise.
9389         * locale/locale.h: Likewise.
9390         * login/utmp.h: Likewise.
9391         * malloc/arena.c: Likewise.
9392         * malloc/malloc.c: Likewise.
9393         * malloc/malloc.h: Likewise.
9394         * malloc/mcheck.c: Likewise.
9395         * malloc/mtrace.c: Likewise.
9396         * math/bits/mathcalls.h: Likewise.
9397         * math/fenv.h: Likewise.
9398         * math/math_private.h: Likewise.
9399         * misc/bits/error.h: Likewise.
9400         * misc/bits/syslog.h: Likewise.
9401         * misc/err.h: Likewise.
9402         * misc/error.h: Likewise.
9403         * misc/fstab.h: Likewise.
9404         * misc/mntent.h: Likewise.
9405         * misc/regexp.h: Likewise.
9406         * misc/search.h: Likewise.
9407         * misc/sgtty.h: Likewise.
9408         * misc/sys/mman.h: Likewise.
9409         * misc/sys/syslog.h: Likewise.
9410         * misc/sys/uio.h: Likewise.
9411         * misc/sys/xattr.h: Likewise.
9412         * misc/ttyent.h: Likewise.
9413         * nis/rpcsvc/ypclnt.h: Likewise.
9414         * nss/nss.h: Likewise.
9415         * posix/bits/unistd.h: Likewise.
9416         * posix/fnmatch.h: Likewise.
9417         * posix/glob.h: Likewise.
9418         * posix/sched.h: Likewise.
9419         * posix/spawn.h: Likewise.
9420         * posix/sys/wait.h: Likewise.
9421         * posix/unistd.h: Likewise.
9422         * posix/wordexp.h: Likewise.
9423         * pwd/pwd.h: Likewise.
9424         * resolv/netdb.h: Likewise.
9425         * resource/sys/resource.h: Likewise.
9426         * rt/aio.h: Likewise.
9427         * rt/bits/mqueue2.h: Likewise.
9428         * rt/mqueue.h: Likewise.
9429         * shadow/shadow.h: Likewise.
9430         * signal/signal.h: Likewise.
9431         * socket/send.c: Likewise.
9432         * socket/sendto.c: Likewise.
9433         * socket/sys/socket.h: Likewise.
9434         * stdio-common/printf.h: Likewise.
9435         * stdlib/bits/stdlib.h: Likewise.
9436         * stdlib/fmtmsg.h: Likewise.
9437         * stdlib/monetary.h: Likewise.
9438         * stdlib/stdlib.h: Likewise.
9439         * stdlib/ucontext.h: Likewise.
9440         * streams/stropts.h: Likewise.
9441         * string/argz.h: Likewise.
9442         * string/bits/string2.h: Likewise.
9443         * string/string.h: Likewise.
9444         * string/strings.h: Likewise.
9445         * sunrpc/rpc/auth.h: Likewise.
9446         * sunrpc/rpc/auth_des.h: Likewise.
9447         * sunrpc/rpc/clnt.h: Likewise.
9448         * sunrpc/rpc/netdb.h: Likewise.
9449         * sunrpc/rpc/pmap_clnt.h: Likewise.
9450         * sunrpc/rpc/xdr.h: Likewise.
9451         * sysdeps/generic/inttypes.h: Likewise.
9452         * sysdeps/generic/net/if.h: Likewise.
9453         * sysdeps/generic/sys/swap.h: Likewise.
9454         * sysdeps/gnu/net/if.h: Likewise.
9455         * sysdeps/gnu/utmpx.h: Likewise.
9456         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
9457         * sysdeps/i386/i486/bits/string.h: Likewise.
9458         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
9459         * sysdeps/s390/bits/string.h: Likewise.
9460         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
9461         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
9462         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
9463         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
9464         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
9465         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
9466         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
9467         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
9468         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
9469         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
9470         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
9471         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
9472         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
9473         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
9474         * sysdeps/unix/sysv/linux/readv.c: Likewise.
9475         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
9476         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
9477         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
9478         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
9479         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
9480         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9481         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
9482         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
9483         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
9484         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
9485         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
9486         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
9487         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9488         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
9489         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
9490         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
9491         * sysvipc/sys/ipc.h: Likewise.
9492         * sysvipc/sys/msg.h: Likewise.
9493         * sysvipc/sys/sem.h: Likewise.
9494         * sysvipc/sys/shm.h: Likewise.
9495         * termios/termios.h: Likewise.
9496         * time/sys/time.h: Likewise.
9497         * time/time.h: Likewise.
9498         * wcsmbs/bits/wchar2.h: Likewise.
9499         * wcsmbs/uchar.h: Likewise.
9500         * wcsmbs/wchar.h: Likewise.
9501         * wctype/wctype.h: Likewise.
9502
9503         [BZ #13551]
9504         * Makeconfig: Remove all but ELF support including AIX support.
9505         * Makerules: Likewise.
9506         * config.h.in: Likewise.
9507         * config.make.in: Likewise.
9508         * configure: Likewise.
9509         * configure.in: Likewise.
9510         * csu/Makefile: Likewise.
9511         * csu/version.c: Likewise.
9512         * debug/Makefile: Likewise.
9513         * dlfcn/Makefile: Likewise.
9514         * elf/Makefile: Likewise.
9515         * extra-lib.mk: Likewise.
9516         * iconv/Makefile: Likewise.
9517         * include/libc-symbols.h: Likewise.
9518         * include/shlib-compat.h: Likewise.
9519         * resolv/Makefile: Likewise.
9520         * resolv/res_libc.c: Likewise.
9521         * rt/Makefile: Likewise.
9522         * sysdeps/i386/asm-syntax.h: Likewise.
9523         * sysdeps/i386/sysdep.h: Likewise.
9524         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
9525         * sysdeps/mach/sysdep.h: Likewise.
9526         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
9527         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
9528         * sysdeps/s390/asm-syntax.h: Likewise.
9529         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9530         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9531         * sysdeps/sh/sysdep.h: Likewise.
9532         * sysdeps/unix/sparc/sysdep.h: Likewise.
9533         * sysdeps/wordsize-32/divdi3.c: Likewise.
9534         * sysdeps/x86_64/sysdep.h: Likewise.
9535
9536         * argp/Versions: Remove _argp_unlock_xxx.
9537
9538         [BZ #13559]
9539         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
9540         * abilist/libBrokenLocale.abilist: Likewise.
9541         * abilist/libanl.abilist: Likewise.
9542         * abilist/libc.abilist: Likewise.
9543         * abilist/libcrypt.abilist: Likewise.
9544         * abilist/libdl.abilist: Likewise.
9545         * abilist/libm.abilist: Likewise.
9546         * abilist/libnsl.abilist: Likewise.
9547         * abilist/libpthread.abilist: Likewise.
9548         * abilist/libresolv.abilist: Likewise.
9549         * abilist/librt.abilist: Likewise.
9550         * abilist/libthread_db.abilist: Likewise.
9551         * abilist/libutil.abilist: Likewise.
9552         * abilist/libnss_db.abilist: New file.
9553
9554         * scripts/abilist.awk: Add support for indirect functions.
9555
9556         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
9557
9558         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
9559
9560         * shlib-versions: Remove entries for ports architectures.
9561
9562         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
9563         files in ports.
9564         * elf/stackguard-macros.h: Remove support for IA-64.
9565         * elf/tst-auditmod1.c: Likewise.
9566         * sysdeps/generic/ldsodefs.h: Likewise.
9567
9568         * sysdeps/unix/sysv/linux/configure.in: Ports should define
9569         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
9570         configure files.
9571
9572         [BZ #13552]
9573         * configure.in: Remove --enable-omitfp support.
9574         * FAQ.in: Adjust.
9575         * config.make.in: Likewise.
9576         * Makeconfig: Likewise.
9577         * manual/install.texi: Likewise.
9578
9579         In case anyone cares, the IA-64 architecture could move to ports.
9580         * sysdeps/ia64/*: Removed.
9581         * sysdeps/unix/sysv/linux/ia64/*: Removed.
9582         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
9583
9584         [BZ #13555]
9585         * configure.in: Remove entries for unsupported architectures.
9586
9587         [BZ #13533]
9588         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
9589         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
9590         routines.
9591         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
9592         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
9593         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
9594         fall back to using wcrtomb.
9595         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
9596         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
9597         renaming.
9598         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
9599         * wcsmbs/tst-c16c32-1.c: New file.
9600
9601         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
9602         local variable.
9603
9604         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
9605
9606         * elf/tst-unique3.cc: Add explicit declaration of gets.
9607         * elf/tst-unique3lib.cc: Likewise.
9608         * elf/tst-unique3lib2.cc: Likewise.
9609         * elf/tst-unique4.cc: Likewise.
9610
9611         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
9612
9613 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
9614
9615         [BZ #13566]
9616         * assert/assert.h (static_assert): Don't define for C++.
9617         * libio/stdio.h (gets): Do declare for C++ <= C++11.
9618         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
9619
9620 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
9621
9622         * iconv/loop.c (single loop): Fix assertion in storing of
9623         remaining bytes.
9624
9625         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
9626
9627 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
9628
9629         * posix/getconf.c: Update copyright year.
9630         * nss/getent.c: Likewise.
9631         * nss/makedb.c: Likewise.
9632         * iconv/iconvconfig.c: Likewise.
9633         * iconv/iconv_prog.c: Likewise.
9634         * elf/ldconfig.c: Likewise.
9635         * elf/pldd.c: Likewise.
9636         * elf/sotruss.ksh: Likewise.
9637         * catgets/gencat.c: Likewise.
9638         * csu/version.c: Likewise.
9639         * elf/ldd.bash.in: Likewise.
9640         * elf/sprof.c (print_version): Likewise.
9641         * locale/programs/locale.c: Likewise.
9642         * locale/programs/localedef.c: Likewise.
9643         * login/programs/pt_chown.c: Likewise.
9644         * nscd/nscd.c (print_version): Likewise.
9645         * debug/xtrace.sh: Likewise.
9646         * malloc/memusage.sh: Likewise.
9647         * malloc/mtrace.pl: Likewise.
9648         * debug/catchsegv.sh: Likewise.
9649
9650 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
9651
9652         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
9653         pure attribute.
9654
9655 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
9656
9657         [BZ #13533]
9658         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
9659         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
9660         transformations.
9661         * iconv/gconv_int.h: Likewise.
9662         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
9663         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
9664         from libc for GLIBC_2.16.
9665         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
9666         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
9667         * wcsmbs/uchar.h: Really define mbstate_t.
9668         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
9669         * wcsmbs/c16rtomb.c: New file.
9670         * wcsmbs/mbrtoc16.c: New file.
9671         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
9672         for C/POSIX locale.
9673         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
9674         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
9675
9676         * wcsmbs/wchar.h: Add missing __restrict.
9677
9678 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9679
9680         [BZ #13532]
9681         * time/Makefile (routines): Add timespec_get.
9682         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
9683         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
9684         timespec for ISO C11.
9685         * time/timespec_get.c: New file.
9686         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
9687         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
9688
9689         [BZ #13531]
9690         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
9691         * stdlib/stdlib.h: Declare aligned_alloc.
9692         * Versions.def: Add GLIBC_2.16 for libc.
9693         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
9694
9695         [BZ 13527]
9696         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
9697         ISO C11.
9698
9699         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
9700         code.
9701
9702         [BZ #13528]
9703         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
9704
9705         [BZ #13529]
9706         * assert/assert.h (static_assert): Define.
9707
9708         * version.h: Update for 2.16 development version.
9709
9710         [BZ #13526]
9711         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
9712         _ISOC11_SOURCE.
9713
9714         * version.h (RELEASE): Bump for 2.15 release.
9715         * include/features.h (__GLIBC_MINOR__): Bump to 15.
9716
9717         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
9718         Patch by Marek Polacek <mpolacek@redhat.com>.
9719
9720         * bits/byteswap.h: Protect long long constants with __extension__.
9721         * sysdeps/i386/bits/byteswap.h: Likewise.
9722         * sysdeps/ia64/bits/byteswap.h: Likewise.
9723         * sysdeps/s390/bits/byteswap.h: Likewise.
9724         * sysdeps/x86_64/bits/byteswap.h: Likewise.
9725
9726 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9727
9728         [BZ #13540]
9729         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
9730         destination buffer.
9731         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
9732
9733 2011-12-23  Marek Polacek  <polacek@redhat.com>
9734
9735         * elf/dl-addr.c (determine_info): Add inline keyword.
9736         * elf/tst-auditmod4b.c (check_avx): Likewise.
9737         * elf/tst-auditmod6b.c (check_avx): Likewise.
9738         * elf/tst-auditmod6c.c (check_avx): Likewise.
9739         * elf/tst-auditmod7b.c (check_avx): Likewise.
9740
9741 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
9742
9743         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
9744         !__SSE_MATH__.
9745
9746 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9747
9748         [BZ #13540]
9749         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
9750         processing for last bytes.
9751
9752 2011-08-06  Bruno Haible  <bruno@clisp.org>
9753
9754         [BZ #13061]
9755         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
9756         U+0385, not to U+1FEE.
9757
9758         [BZ #13062]
9759         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
9760         entry for U+00A5 U+0301.
9761
9762 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9763
9764         [BZ #13166]
9765         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
9766         buffer for the output is too small.
9767
9768         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
9769         optimization.
9770
9771         [BZ #13185]
9772         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
9773         SSE flags if possible.
9774
9775 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9776
9777         [BZ #13540]
9778         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
9779         processing for last bytes.
9780
9781 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
9782
9783         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
9784         (syscall-list-default-options, syscall-list-default-condition)
9785         (syscall-list-includes): Define.
9786         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
9787         list of ABIs and options and #if conditions for each ABI.  Do not
9788         handle common syscalls between ABIs specially.
9789         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
9790         Remove.
9791         (syscall-list-variants, syscall-list-32bit-options)
9792         (syscall-list-32bit-condition, syscall-list-64bit-options)
9793         (syscall-list-64bit-condition): Define.
9794         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
9795         (syscall-list-variants, syscall-list-32bit-options)
9796         (syscall-list-32bit-condition, syscall-list-64bit-options)
9797         (syscall-list-64bit-condition): Define.
9798         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
9799         Remove.
9800         (syscall-list-variants, syscall-list-32bit-options)
9801         (syscall-list-32bit-condition, syscall-list-64bit-options)
9802         (syscall-list-64bit-condition): Define.
9803         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
9804         Remove.
9805         (syscall-list-variants, syscall-list-32bit-options)
9806         (syscall-list-32bit-condition, syscall-list-64bit-options)
9807         (syscall-list-64bit-condition): Define.
9808
9809 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
9810
9811         * locale/iso-639.def: Add brx entry.
9812
9813         [BZ #13328]
9814         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
9815         Proposed by Mariusz_Cukr <marcukr@op.pl>.
9816
9817         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
9818         __feraiseexcept_renamed.
9819
9820 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9821
9822         [BZ #13538]
9823         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
9824         EPOLLET with unsigned values.
9825         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
9826         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
9827
9828         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
9829         to large cancellation.
9830         * math/s_cacoshf.c: Likewise.
9831         * math/s_cacoshl.c: Likewise.
9832
9833 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
9834
9835         [BZ #13305]
9836         [BZ #12786]
9837         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
9838         * math/s_cacoshf.c: Likewise.
9839         * math/s_cacoshl.c: Likewise.
9840
9841 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
9842
9843         [BZ #13439]
9844         * iconv/gconv.h: Define __GCONV_SWAP.
9845         * iconvdata/unicode.c: The swap bit must be stored in __flags.
9846         * iconvdata/utf-16.c: Likewise.
9847         * iconvdata/utf-32.c: Likewise.
9848
9849 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
9850
9851         [BZ #13524]
9852         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
9853         numerator after shifting it by one limb.
9854
9855 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
9856
9857         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
9858         under [__USE_EXTERN_INLINES].
9859
9860 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9861
9862         [BZ #13446]
9863         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
9864
9865 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9866
9867         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
9868         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
9869         optimized code.
9870         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
9871         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
9872         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
9873         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
9874         for strncasecmp/strncasecmp_l compilation.
9875         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
9876         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
9877
9878 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
9879
9880         [BZ #13484]
9881         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
9882         of __asm__.
9883
9884 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9885
9886         [BZ #13506]
9887         * time/tzfile.c (__tzfile_read): Check values from file header.
9888
9889 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9890
9891         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
9892         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
9893         * powerpc/powerpc32/dl-start.S: Likewise.
9894         * powerpc/powerpc32/elf/start.S: Likewise.
9895         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
9896         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
9897         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
9898         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
9899         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
9900         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
9901         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
9902         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
9903         * powerpc/powerpc32/fpu/s_round.S: Likewise.
9904         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
9905         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
9906         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
9907         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
9908         * powerpc/powerpc32/memset.S: Likewise.
9909         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
9910         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
9911         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
9912         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
9913         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
9914         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
9915         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
9916         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
9917         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
9918         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
9919         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
9920         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9921         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9922
9923 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9924
9925         * math/libm-test.inc: Added more nearbyint tests.
9926         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
9927         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
9928         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
9929         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
9930
9931 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
9932
9933         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
9934         FD_CLOEXEC.
9935
9936 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9937
9938         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
9939         Add wcscpy-ssse3 wcscpy-c.
9940         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
9941         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
9942         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
9943         * sysdeps/x86_64/wcschr.S: New file.
9944         * sysdeps/x86_64/wcsrchr.S: New file.
9945         * string/test-strcmp.c: Remove checking of wcscmp function for
9946         wrong alignments.
9947         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
9948         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
9949         wcsrchr-sse2 wcsrchr-c.
9950         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
9951         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
9952         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
9953         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
9954         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
9955         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
9956         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
9957         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
9958         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
9959         * wcsmbc/wcschr.c (WCSCHR): New macro.
9960
9961 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9962
9963         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
9964         * wcsmbs/test-wcsrchr.c: New file.
9965         * string/test-strrchr.c: Add wcsrchr support.
9966         (WIDE): New macro.
9967         * wcsmbs/test-wcscpy.c: New file.
9968         * string/test-strcpy.c: Add wcscpy support.
9969         (WIDE): New macro.
9970
9971 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
9972
9973         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
9974         the inner loop.
9975
9976 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
9977
9978         [BZ #13472]
9979         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
9980
9981 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
9982
9983         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
9984         Minor optimizations.
9985
9986         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
9987         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
9988         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9989
9990 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
9991
9992         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
9993         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
9994         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
9995         for gcc to avoid warnings.
9996         * inet/Makefile (tests): Add tst-checks.
9997         * inet/tst-checks.c: New file.
9998
9999         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
10000         warning.
10001
10002         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
10003         __wmemcmp_sse2.
10004
10005         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
10006         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
10007
10008         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
10009
10010 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
10011
10012         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
10013         problem.
10014
10015         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
10016
10017 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
10018
10019         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
10020         conditional on GCC version.
10021         (__arch_compare_and_exchange_val_8_acq)
10022         (__arch_compare_and_exchange_val_16_acq)
10023         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
10024         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
10025         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
10026
10027 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
10028
10029         * sysdeps/sh/backtrace.c: New file.
10030
10031 2011-12-02  Andreas Schwab  <schwab@redhat.com>
10032
10033         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
10034         parenthesis.
10035
10036 2011-12-01  Andreas Schwab  <schwab@redhat.com>
10037
10038         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
10039         falling back to utime.
10040
10041 2011-11-30  Andreas Schwab  <schwab@redhat.com>
10042
10043         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
10044         expectations for float.
10045
10046 2011-11-29  Andreas Schwab  <schwab@redhat.com>
10047
10048         * locale/weight.h (findidx): Add parameter len.
10049         * locale/weightwc.h (findidx): Likewise.
10050         * posix/fnmatch_loop.c (FCT): Adjust caller.
10051         * posix/regcomp.c (build_equiv_class): Likewise.
10052         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
10053         * posix/regexec.c (check_node_accept_bytes): Likewise.
10054         * string/strcoll_l.c (STRCOLL): Likewise.
10055         * string/strxfrm_l.c (STRXFRM): Likewise.
10056
10057 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
10058
10059         * Makefile.in: Remove CVSOPT handling.
10060         * configure.in: Remove use of AC_REVISION.
10061         * iconvdata/Makefile (distribute): No need to filter out CVS.
10062         * scripts/list-sources.sh: Remove CVS, subversion and monotone
10063         handling.
10064
10065 2011-11-16  Andreas Schwab  <schwab@redhat.com>
10066
10067         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
10068         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
10069         [USE_AS_STRNCASECMP_L]: Likewise.
10070         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
10071         NO_TLS_DIRECT_SEG_REFS.
10072         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
10073         Fix argument offsets for non-PIC.
10074         [USE_AS_STRNCASECMP_L]: Likewise.
10075         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
10076         NO_TLS_DIRECT_SEG_REFS.
10077
10078 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10079
10080         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
10081         O_CLOEXEC.
10082         * locale/loadlocale.c (_nl_load_locale): Likewise.
10083
10084 2011-11-15  Andreas Schwab  <schwab@redhat.com>
10085
10086         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
10087         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
10088         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
10089         (SYSCALL_GETTIME): Set errno on error.
10090
10091         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
10092         count references to noai6ai_cached.
10093
10094 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
10095
10096         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
10097
10098         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
10099         FD_CLOEXEC for /proc/self/maps.
10100
10101         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
10102         FD_CLOEXEC for /proc/meminfo.
10103
10104         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
10105         gai.conf.
10106
10107         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
10108         FD_CLOEXEC for given file.
10109
10110         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
10111
10112         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
10113         FD_CLOEXEC for /etc/hosts.
10114         (_gethtent): Likewise.
10115
10116         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
10117
10118         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
10119         cancellation and set FD_CLOEXEC for /etc/netgroup.
10120
10121         * nss/nss_files/files-key.c (search): Don't allow cancellation when
10122         reading /etc/publickey.
10123
10124         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
10125         allow cancellation when reading /etc/group.
10126
10127         * nss/nss_files/files-alias.c (internal_setent): Don't allow
10128         cancellation.
10129         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
10130
10131         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
10132         when using data file.
10133
10134         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
10135
10136         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
10137         (write_nis_obj): Use "c" and "e" in fopen.
10138
10139         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
10140
10141         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
10142
10143         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
10144
10145         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
10146
10147         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
10148         locale.alias.
10149
10150         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
10151
10152         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
10153
10154         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
10155
10156         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
10157         file parsing and set FD_CLOEXEC.
10158
10159 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10160
10161         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
10162
10163 2011-11-14  Andreas Schwab  <schwab@redhat.com>
10164
10165         * malloc/arena.c (arena_get2): Don't call reused_arena when
10166         _int_new_arena failed.
10167
10168 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
10169
10170         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
10171         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
10172         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
10173         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
10174         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
10175         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
10176         to compile strcasecmp and strncasecmp.
10177         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
10178         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
10179
10180         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
10181
10182 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
10183
10184         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
10185         locale-defines.sym to gen-as-const-headers.
10186         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
10187         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
10188         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
10189         to compile strcasecmp and strncasecmp.
10190         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
10191         strcasecmp_l and strncasecmp_l.
10192         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
10193         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
10194         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
10195         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
10196         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
10197         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
10198         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
10199         * sysdeps/i386/i686/multiarch/strncase.S: New file.
10200         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
10201         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
10202         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
10203
10204 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
10205
10206         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
10207         result of SYSDEP_GETTIME_CPU to retval.
10208         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
10209         parameter list to macro.  Remove trailing semicolon.  Adjust users.
10210
10211         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
10212         variable.
10213
10214         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
10215         mantissa words.
10216         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
10217
10218         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
10219         from unused variable.
10220
10221         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
10222         DWARF definitions.
10223         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
10224         for assembling.
10225
10226         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
10227         over namespaces.
10228
10229         * sunrpc/rpc_prot.c (rejected): Fix case value.
10230
10231         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
10232         unsigned long long int to avoid warnings in shift.
10233
10234         * posix/regex_internal.c (re_string_reconstruct): Actually use result
10235         of use of trans.
10236         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
10237         variable tmp.
10238
10239         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
10240         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
10241         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
10242
10243         * nis/nis_table.c (nis_list): Use variable of correct type for
10244         result of __follow_path call.
10245
10246 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10247
10248         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
10249         of math functions ceil, trunc, floor, round, and sqrt, when
10250         avaliable on the platform.
10251         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
10252         name clash.
10253         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10254         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10255         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10256
10257 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
10258
10259         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
10260         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
10261
10262 2011-11-11  Roland McGrath  <roland@hack.frob.com>
10263
10264         * include/unistd.h: Fix __readlink return type.
10265         Reported by Chris Metcalf <cmetcalf@tilera.com>.
10266
10267 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
10268
10269         * stdlib/ucontext.h: Undo last change for makecontext.
10270
10271 2011-11-11  Andreas Schwab  <schwab@redhat.com>
10272
10273         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
10274
10275         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
10276         * setjmp/setjmp.h: Mark functions as non-leaf.
10277         * setjmp/bits/setjmp2.h: Likewise.
10278         * stdlib/ucontext.h: Likewise.
10279
10280 2011-11-10  Andreas Schwab  <schwab@redhat.com>
10281
10282         * malloc/arena.c (_int_new_arena): Don't increment narenas.
10283         (reused_arena): Don't check arena limit.
10284         (arena_get2): Atomically check arena limit.
10285
10286 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
10287
10288         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
10289         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
10290
10291         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
10292         instructions.
10293
10294 2011-11-07  Andreas Schwab  <schwab@redhat.com>
10295
10296         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
10297         handler when locking.
10298
10299         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10300         Fix size of allocated buffer.
10301
10302 2011-11-04  Andreas Schwab  <schwab@redhat.com>
10303
10304         [BZ #10103]
10305         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
10306         declarations for long double functions.
10307         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
10308
10309         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
10310
10311 2011-11-03  Andreas Schwab  <schwab@redhat.com>
10312
10313         * nscd/nscd.c (main): Don't start AVC thread until credentials are
10314         installed.
10315
10316         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
10317         is disabled.
10318
10319 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10320
10321         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
10322
10323 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
10324
10325         * include/alloca.h (stackinfo_alloca_round): Define.
10326         (extend_alloca): Use it.
10327         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
10328         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
10329         here.
10330
10331         * scripts/check-local-headers.sh: Ignore libaudit.h.
10332
10333         * nscd/Makefile (extra-objs): Make recursively expanded.
10334
10335 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
10336
10337         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
10338         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
10339
10340         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
10341         * posix/tst-rfc3484-2.c: Likewise.
10342         * posix/tst-rfc3484-3.c: Likewise.
10343
10344         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10345         process_vm_writev.
10346         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
10347         process_vm_writev.
10348         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
10349         process_vm_writev from libc using GLIBC_2.15 version.
10350
10351         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
10352
10353 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
10354
10355         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
10356         stack usage.
10357
10358 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
10359
10360         [BZ #13367]
10361         * nss/getent.c (initgroups_keys): Show error message in case no group
10362         names are given.
10363
10364         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
10365         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
10366         __bump_nl_timestamp.
10367         * nscd/connections (nscd_init): When host database is served open
10368         netlink socket and request notification about configuration changes.
10369         (main_loop_poll): Track netlink file descriptor and bump timestamp
10370         in case data becomes available.
10371         (main_loop_epoll): Likewise.
10372         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
10373         (database_pers_head): Add extra_data fileds.
10374         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
10375         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
10376         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
10377         Adjust caller.
10378         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
10379         in6ai data, call __free_in6ai.
10380         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
10381         Add -DHAVE_NETLINK.
10382         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
10383         interface information.  Reuse previous data if netlink timestamp
10384         is not changed.
10385         (__bump_nl_timestamp): New function.
10386         (__free_in6ai): New function.
10387
10388 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
10389
10390         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
10391         close_not_cancel_no_status here.
10392         (__check_pf): Reorganize code a bit to not call close twice if OOM.
10393
10394 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10395
10396         [BZ #13276]
10397         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
10398         return value.
10399
10400         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
10401         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
10402         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
10403
10404 2011-07-03  Andreas Jaeger  <aj@suse.de>
10405
10406         [BZ #10709]
10407         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
10408         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
10409         * math/libm-test.inc (sin_test): Add test case.
10410
10411 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
10412
10413         [BZ #13337]
10414         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
10415         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10416
10417         * elf/chroot_canon.c (chroot_canon): Cleanups.
10418
10419         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
10420
10421         [BZ #13335]
10422         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
10423         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
10424
10425         * string/test-strchr.c: Make usable for strchrnul testing.
10426         * string/test-strchrnul.c: New file.
10427         * string/Makefile (strop-tests): Add strchrnul.
10428
10429         * po/it.po: Update from translation team.
10430         * po/es.po: Likewise.
10431
10432 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
10433
10434         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
10435         the three constants needed as parameters.  Drop the others.
10436         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
10437         __m128i_strloadu_tolower.
10438         Create and initialize variable zero and use it in all the places
10439         where _mm_setzero_si128 was used.
10440
10441         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
10442         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
10443         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
10444         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
10445         anymore.
10446         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
10447         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
10448         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
10449         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
10450         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
10451         __mpranred, __mptan.
10452         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
10453         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
10454         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
10455         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
10456         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
10457         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
10458         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
10459         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
10460         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
10461
10462 2011-10-28  Andreas Schwab  <schwab@redhat.com>
10463
10464         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
10465         redefine if SHARED.
10466         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
10467
10468         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
10469         wide char related routines to wcsmbs subdir.
10470
10471 2011-10-27  Andreas Schwab  <schwab@redhat.com>
10472
10473         [BZ #13344]
10474         * misc/sys/cdefs.h (__THROWNL): Define.
10475         * posix/unistd.h: Use __THREADNL instead of __THREAD
10476         for memory synchronization functions.
10477
10478 2011-10-26  Roland McGrath  <roland@hack.frob.com>
10479
10480         [BZ #13349]
10481         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
10482         doesn't exist.
10483         * manual/stdio.texi (Obstack Streams): Node removed.
10484
10485 2011-10-26  Andreas Schwab  <schwab@redhat.com>
10486
10487         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
10488         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10489         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10490
10491         * math/math_private.h (math_force_eval): Allow non-addressable
10492         arguments.
10493         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
10494
10495 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10496
10497         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
10498         file is not needed.
10499
10500         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
10501         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
10502         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
10503         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
10504         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
10505         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
10506         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
10507         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
10508         Add AVX variants.
10509         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
10510         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
10511         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
10512         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
10513         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
10514         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
10515         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
10516         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
10517         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
10518         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
10519         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
10520         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
10521         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
10522         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
10523         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
10524         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
10525         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
10526         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
10527         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
10528
10529         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
10530         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
10531
10532         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
10533         place.  Use VEX encoding when compiling for AVX.
10534
10535 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10536
10537         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
10538         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
10539
10540         * string/test-strchr.c (do_test): Don't generate NUL bytes.
10541
10542 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10543
10544         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
10545         useless if() expression.
10546         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10547         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
10548         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
10549         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10550         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
10551         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
10552         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10553         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10554         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
10555         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10556         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10557         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10558         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
10559         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10560         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
10561         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
10562         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10563         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10564         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
10565
10566         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
10567
10568 2011-10-25  Andreas Schwab  <schwab@redhat.com>
10569
10570         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
10571         condition.
10572         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10573
10574 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
10575
10576         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
10577         .text section.  Avoid duplicate constants.
10578         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
10579         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10580         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10581         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10582         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10583         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10584         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10585         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10586         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
10587         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
10588         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
10589         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
10590         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
10591         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
10592         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
10593         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
10594         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
10595         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
10596         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
10597         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10598         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
10599         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
10600         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
10601         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
10602         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
10603         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
10604         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
10605         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
10606         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
10607         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
10608         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
10609         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
10610         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10611         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
10612         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
10613         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
10614         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
10615         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
10616         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
10617         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
10618         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
10619         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
10620         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
10621         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
10622         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
10623
10624 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
10625
10626         * sysdeps/x86_64/dla.h: Move to ...
10627         * sysdeps/x86_64/fpu/dla.h: ...here.
10628         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
10629         situations.  Use __builtin_fma only for gcc 4.6 and up.
10630
10631         * config.make.in: Add have-mfma4 entry.
10632         * configure.in: Substitute libc_cv_cc_fma4.
10633         * math/Makefile (dbl-only-routines): Add sincostab.
10634         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
10635         Use __sincostab not sincos.
10636         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
10637         name is a macro.
10638         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10639         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10640         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10641         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
10642         using __copysign.
10643         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
10644         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
10645         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
10646         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
10647         and __inv.
10648         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
10649         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
10650         __copysign.
10651         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
10652         define aliases when function name is a macro.
10653         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
10654         sysdeps/ieee754/dbl-64/sincos.tbl.
10655         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
10656         fma4-enabled routines.
10657         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
10658         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
10659         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
10660         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
10661         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
10662         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
10663         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
10664         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
10665         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
10666         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
10667         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
10668         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
10669         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
10670         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
10671         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
10672         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
10673         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
10674         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
10675         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
10676         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
10677         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
10678         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
10679         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
10680         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
10681         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
10682         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
10683         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
10684         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
10685         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
10686         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
10687
10688         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
10689         rename.
10690         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10691         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10692         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10693         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10694         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10695         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10696         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10697         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10698
10699 2011-10-24  Andreas Schwab  <schwab@redhat.com>
10700
10701         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
10702
10703 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10704
10705         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
10706
10707         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
10708         prediction.
10709         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
10710
10711         * string/strnlen.c: Don't define STRNLEN, reverse logic.
10712         Remove unused variable magic_bits.
10713         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
10714
10715         * string/strnlen.c: Define and use STRNLEN macro.
10716         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
10717         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
10718         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
10719         * wcsmbs/wcslen.c: Define and use WCSLEN.
10720         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
10721         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
10722         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
10723         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
10724         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
10725         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
10726         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10727
10728 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10729
10730         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
10731         strnlen-sse2-no-bsf.
10732         Rename strlen-no-bsf to strlen-sse2-no-bsf.
10733         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
10734         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
10735         Add strnlen support.
10736         (USE_AS_STRNLEN): New macro.
10737         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
10738         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
10739         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
10740         * sysdeps/x86_64/wcslen.S: New file.
10741
10742 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
10743
10744         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
10745         XMM-moves are used for copying on small sizes.
10746
10747 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10748
10749         * wcsmbs/Makefile (strop-tests): Add wcschr.
10750         * wcsmbs/test-wcschr.c: New file.
10751         * string/test-strchr.c: Update.
10752         Add wcschr support.
10753         (WIDE): New macro.
10754
10755 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10756
10757         * wcsmbs/Makefile (strop-tests): Add wcslen.
10758         * wcsmbs/test-wcslen.c: New file.
10759         * string/test-strlen.c: Update.
10760         Add wcslen support.
10761         (WIDE): New macro.
10762
10763 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10764
10765         * po/it.po: Update from translation team.
10766
10767 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10768
10769         * sysdeps/x86_64/wcscmp.S: Update.
10770         Fix wrong comparison semantics.
10771         wcscmp shall use signed comparison not unsigned.
10772         Don't use substraction to avoid overflow bug.
10773         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
10774         * wcsmbc/wcscmp.c: Likewise.
10775         * string/test-strcmp.c: Likewise.
10776         Add new tests to check cases with negative values.
10777
10778 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
10779
10780         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
10781         * sysdeps/x86_64/dla.h: ...here.  New file.
10782         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
10783         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10784         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10785         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10786         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10787         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10788         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10789         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10790         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10791
10792 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
10793
10794         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
10795         __ynl_finite aliases.
10796
10797 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10798
10799         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10800
10801         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
10802         define DLA_FMA.
10803         [DLA_FMA] (EMULV): Use DLA_FMA.
10804         [DLA_FMA] (MUL12): Use EMULV.
10805         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
10806         that are not needed.
10807         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
10808         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10809         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10810         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10811         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10812         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
10813         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
10814
10815 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
10816
10817         * math/s_nan.c: Undef __nan.
10818         * math/s_nanf.c: Undef __nanf.
10819         * math/s_nanl.c: Undef __nanl.
10820         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
10821         "math_private.h".
10822
10823 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
10824
10825         * math/s_catan.c: Add branch predictions.
10826         * math/s_catanf.c: Likewise.
10827         * math/s_catanh.c: Likewise.
10828         * math/s_catanhf.c: Likewise.
10829         * math/s_catanhl.c: Likewise.
10830         * math/s_catanl.c: Likewise.
10831         * math/s_cexp.c: Likewise.
10832         * math/s_cexpf.c: Likewise.
10833         * math/s_cexpl.c: Likewise.
10834         * math/s_clog.c: Likewise.
10835         * math/s_clog10.c: Likewise.
10836         * math/s_clog10f.c: Likewise.
10837         * math/s_clog10l.c: Likewise.
10838         * math/s_clogf.c: Likewise.
10839         * math/s_clogl.c: Likewise.
10840         * math/s_csqrt.c: Likewise.
10841         * math/s_csqrtf.c: Likewise.
10842         * math/s_csqrtl.c: Likewise.
10843         * math/s_ctanf.c: Likewise.
10844         * math/s_ctanh.c: Likewise.
10845         * math/s_ctanhf.c: Likewise.
10846         * math/s_ctanhl.c: Likewise.
10847         * math/s_ctanl.c: Likewise.
10848
10849         * math/math_private.h: Define __nan, __nanf, __nanl.
10850         * math/s_cacosh.c: Include <math_private.h>.
10851         * math/s_cacoshl.c: Likewise.
10852         * math/s_casinh.c: Likewise.
10853         * math/s_casinhf.c: Likewise.
10854         * math/s_casinhl.c: Likewise.
10855         * math/s_ccos.c: Rely entire on ccosh.
10856         * math/s_ccosf.c: Rely entire on ccoshf.
10857         * math/s_ccosl.c: Rely entirely on ccoshl.
10858         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
10859         Remove tests for FE_INVALID.
10860         * math/s_ccoshf.c: Likewise.
10861         * math/s_ccoshl.c: Likewise.
10862         * math/s_csin.c: Likewise.
10863         * math/s_csinf.c: Likewise.
10864         * math/s_csinh.c Likewise.
10865         * math/s_csinhf.c: Likewise.
10866         * math/s_csinhl.c: Likewise.
10867         * math/s_csinl.c: Likewise.
10868         * math/s_ctan.c: Likewise.
10869         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
10870         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
10871         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
10872
10873 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
10874
10875         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
10876         compilation problems.
10877
10878         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
10879         __builtin_expect.
10880
10881 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
10882
10883         * sysdeps/i386/configure.in: Test for -mfma4 option.
10884         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
10885         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
10886         COMMON_CPUID_INDEX_80000001.
10887         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
10888         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
10889         use it if FMA3 is not supported.
10890         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
10891
10892         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
10893         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10894
10895 2011-10-20  Andreas Schwab  <schwab@redhat.com>
10896
10897         [BZ #12892]
10898         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
10899         it would create a cycle with a link time dependency.
10900
10901 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
10902
10903         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
10904         instruction.
10905         * string/Makefile (strop-tests): Add rawmemchr.
10906         * string/test-rawmemchr.c: New file.
10907
10908         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
10909         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
10910         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
10911         when compiling str{,n}casecmp and when AVX is available.  Hook up
10912         new optimized code in initializers.
10913
10914 2011-10-19  Andreas Schwab  <schwab@redhat.com>
10915
10916         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
10917         __feraiseexcept instead of feraiseexcept.
10918
10919 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
10920
10921         * math/math_private.h: Define defaults for libc_fetestexcept and
10922         libc_feupdateenv.
10923         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
10924         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10925         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
10926         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
10927         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10928         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10929         libc_fetestexcept and libc_feupdateenv.
10930
10931         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
10932         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
10933         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
10934         * sysdeps/x86_64/fpu/math_private.h: Define special version of
10935         libc_feholdexcept_setround.
10936
10937         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
10938         Add s_nearbyint-c and s_nearbyintf-c.
10939         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
10940         nearbyintf inlines.
10941         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
10942         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
10943         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
10944         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
10945
10946         * math/math_private.h: Define defaults for libc_fegetround,
10947         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
10948         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
10949         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
10950         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
10951         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
10952         standard functions.
10953         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10954         Remove comments and hacks for old compiler versions.
10955         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10956         libc_fegetround, libc_fesetround, libc_feholdexcept, and
10957         libc_feholdexceptl.
10958
10959 2011-10-18  Andreas Schwab  <schwab@redhat.com>
10960
10961         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
10962         (__feraiseexcept_renamed): Add __NTH.
10963         (feraiseexcept): Add __NTH.  Rename local variables to fix
10964         namespace violations.
10965
10966 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
10967
10968         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
10969
10970         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
10971
10972         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
10973         recently added interfaces.
10974         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10975
10976         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
10977         about macro parameter expansion.
10978
10979         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
10980         __NO_MATH_INLINES is defined.  Cleanups.
10981
10982         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
10983         and __floorf is target has SSE4.1.
10984         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
10985         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
10986         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
10987         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
10988
10989         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
10990         name.
10991         (floorf): Likewise.
10992
10993         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
10994
10995 2011-10-17  Andreas Schwab  <schwab@redhat.com>
10996
10997         * misc/sys/cdefs.h: Fix last change.
10998
10999         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
11000         database lookup.
11001
11002 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
11003
11004         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
11005
11006         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
11007         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11008         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
11009         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
11010         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
11011         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
11012         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
11013         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
11014         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
11015         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
11016         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
11017         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
11018         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
11019         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
11020         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
11021         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
11022         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
11023         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
11024         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
11025         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
11026         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
11027         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
11028
11029         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
11030         ceil, ceilf, floor, floorf.
11031
11032         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
11033         Perform IRELATIVE relocations last.
11034
11035         * elf/do-rel.h: Add another parameter nrelative, replacing the
11036         local variable with the same name.  Change name of the function
11037         to end in Rel or Rela (uppercase).
11038         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
11039         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
11040         elf_dynamic_do_##reloc function.
11041
11042 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11043
11044         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
11045         is sufficient, at least on modern CPUs.
11046
11047         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
11048
11049         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
11050         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
11051
11052         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
11053         __expl_finite.
11054         * math/bits/math-finite.h: Add entries for exp.
11055         * math/e_expl.c: Add __*_finite alias.
11056         * sysdeps/i386/fpu/e_exp.S: Likewise.
11057         * sysdeps/i386/fpu/e_expf.S: Likewise.
11058         * sysdeps/i386/fpu/e_expl.c: Likewise.
11059         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
11060         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
11061         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
11062         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
11063         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
11064         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11065         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11066
11067         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
11068         is sufficient, at least on modern CPUs.
11069
11070         * ctype/ctype-info.c (__ctype_init): Define.
11071         * include/ctype.h (__ctype_init): Declare.
11072         (__ctype_b_loc): The variable is always initialized.
11073         (__ctype_toupper_loc): Likewise.
11074         (__ctype_tolower_loc): Likewise.
11075         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
11076         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
11077
11078 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
11079
11080         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
11081
11082         * configure.in: Also look in $cxxmachine/include for C++ system
11083         headers.
11084
11085 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11086
11087         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
11088         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
11089         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
11090         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
11091         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
11092         (USE_AS_WMEMCMP): New macro.
11093         Fixing indents.
11094         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
11095         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
11096         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
11097         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
11098         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11099         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
11100         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
11101         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
11102         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
11103         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
11104         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
11105         (USE_AS_WMEMCMP): New macro.
11106         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
11107         * sysdeps/string/test-memcmp.c: Update.
11108         Fix simple_wmemcmp.
11109         Add new tests.
11110         * wcsmbs/wmemcmp.c: Update.
11111         (WMEMCMP): New macro.
11112         Fix overflow bug.
11113
11114 2011-10-12  Andreas Jaeger  <aj@suse.de>
11115
11116         [BZ #13268]
11117         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
11118
11119 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
11120
11121         * libio/iofwide.c (do_length): Avoid warning.
11122
11123         * ctype/ctype.h (__isctype_f): Add missing __THROW.
11124
11125 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
11126
11127         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
11128
11129         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
11130         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
11131         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
11132         * sysdeps/i386/i686/fpu/e_log.S: New file.
11133         * sysdeps/i386/i686/fpu/e_logf.S: New file.
11134         * sysdeps/i386/i686/fpu/e_logl.S: New file.
11135
11136         * ctype/ctype.h: Add support for inlined isXXX functions when
11137         compiling C++ code.
11138
11139 2011-10-14  Andreas Schwab  <schwab@redhat.com>
11140
11141         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11142
11143         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
11144
11145 2011-10-13  Roland McGrath  <roland@hack.frob.com>
11146
11147         [BZ #13291]
11148         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
11149
11150 2011-10-13  Andreas Schwab  <schwab@redhat.com>
11151
11152         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
11153         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
11154         feraiseexcept.
11155
11156         * sysdeps/x86_64/memrchr.S: Check for zero size.
11157
11158         * string/stratcliff.c: Add memrchr tests.
11159
11160 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11161
11162         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11163         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
11164         rawmemchr-sse2 rawmemchr-sse2-bsf.
11165         * sysdeps/i386/i686/multiarch/memchr.S: New file.
11166         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
11167         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
11168         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
11169         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
11170         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
11171         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
11172         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
11173         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
11174         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
11175         * string/memrchr.c (MEMRCHR): New macro.
11176
11177 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
11178
11179         Add integration with gcc's -ffinite-math-only and optimize wrapper
11180         functions in libm.
11181         * Versions.def: Define GLIBC_2.15 version for libm.
11182         * math/Makefile (headers): Add bits/math-finite.h.
11183         * math/bits/math-finite.h: New file.
11184         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
11185         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
11186         * math/e_acoshl.c: Add __*_finite alias.
11187         * math/e_acosl.c: Likewise.
11188         * math/e_asinl.c: Likewise.
11189         * math/e_atan2l.c: Likewise.
11190         * math/e_atanhl.c: Likewise.
11191         * math/e_coshl.c: Likewise.
11192         * math/e_exp10.c: Likewise.
11193         * math/e_exp10f.c: Likewise.
11194         * math/e_exp10l.c: Likewise.
11195         * math/e_exp2l.c: Likewise.
11196         * math/e_fmodl.c: Likewise.
11197         * math/e_gammal_r.c: Likewise.
11198         * math/e_hypotl.c: Likewise.
11199         * math/e_j0l.c: Likewise.
11200         * math/e_j1l.c: Likewise.
11201         * math/e_jnl.c: Likewise.
11202         * math/e_lgammal_r.c: Likewise.
11203         * math/e_log10l.c: Likewise.
11204         * math/e_log2l.c: Likewise.
11205         * math/e_logl.c: Likewise.
11206         * math/e_powl.c: Likewise.
11207         * math/e_sinhl.c: Likewise.
11208         * math/e_sqrtl.c: Likewise.
11209         * math/e_scalb.c: Completely rewritten and optimized.
11210         * math/e_scalbf.c: Likewise.
11211         * math/e_scalbl.c: Likewise.
11212         * math/w_acos.c: Likewise.
11213         * math/w_acosf.c: Likewise.
11214         * math/w_acosl.c: Likewise.
11215         * math/w_acosh.c: Likewise.
11216         * math/w_acoshf.c: Likewise.
11217         * math/w_acoshl.c: Likewise.
11218         * math/w_asin.c: Likewise.
11219         * math/w_asinf.c: Likewise.
11220         * math/w_asinl.c: Likewise.
11221         * math/w_atan2.c: Likewise.
11222         * math/w_atan2f.c: Likewise.
11223         * math/w_atan2l.c: Likewise.
11224         * math/w_atanh.c: Likewise.
11225         * math/w_atanhf.c: Likewise.
11226         * math/w_atanhl.c: Likewise.
11227         * math/w_exp10.c: Likewise.
11228         * math/w_exp10f.c: Likewise.
11229         * math/w_exp10l.c: Likewise.
11230         * math/w_fmod.c: Likewise.
11231         * math/w_fmodf.c: Likewise.
11232         * math/w_fmodl.c: Likewise.
11233         * math/w_j0.c: Likewise.
11234         * math/w_j0f.c: Likewise.
11235         * math/w_j0l.c: Likewise.
11236         * math/w_j1.c: Likewise.
11237         * math/w_j1f.c: Likewise.
11238         * math/w_j1l.c: Likewise.
11239         * math/w_jn.c: Likewise.
11240         * math/w_jnf.c: Likewise.
11241         * math/w_log.c: Likewise.
11242         * math/w_logf.c: Likewise.
11243         * math/w_logl.c: Likewise.
11244         * math/w_log10.c: Likewise.
11245         * math/w_log10f.c: Likewise.
11246         * math/w_log10l.c: Likewise.
11247         * math/w_log2.c: Likewise.
11248         * math/w_log2f.c: Likewise.
11249         * math/w_log2l.c: Likewise.
11250         * math/w_pow.c: Likewise.
11251         * math/w_powf.c: Likewise.
11252         * math/w_powl.c: Likewise.
11253         * math/w_remainder.c: Likewise.
11254         * math/w_remainderf.c: Likewise.
11255         * math/w_remainderl.c: Likewise.
11256         * math/w_scalb.c: Likewise.
11257         * math/w_scalbf.c: Likewise.
11258         * math/w_scalbl.c: Likewise.
11259         * math/w_sqrt.c: Likewise.
11260         * math/w_sqrtf.c: Likewise.
11261         * math/w_sqrtl.c: Likewise.
11262         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
11263         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
11264         used.
11265         * math/math_private.h: Declare __kernel_standard_f.
11266         * math/w_cosh.c: Remove cruft and optimize a bit.
11267         * math/w_coshf.c: Likewise.
11268         * math/w_coshl.c: Likewise.
11269         * math/w_exp2.c: Likewise.
11270         * math/w_exp2f.c: Likewise.
11271         * math/w_exp2l.c: Likewise.
11272         * math/w_hypot.c: Likewise.
11273         * math/w_hypotf.c: Likewise.
11274         * math/w_hypotl.c: Likewise.
11275         * math/w_lgamma.c: Likewise.
11276         * math/w_lgamma_r.c: Likewise.
11277         * math/w_lgammaf.c: Likewise.
11278         * math/w_lgammaf_r.c: Likewise.
11279         * math/w_lgammal.c: Likewise.
11280         * math/w_lgammal_r.c: Likewise.
11281         * math/w_sinh.c: Likewise.
11282         * math/w_sinhf.c: Likewise.
11283         * math/w_sinhl.c: Likewise.
11284         * math/w_tgamma.c: Likewise.
11285         * math/w_tgammaf.c: Likewise.
11286         * math/w_tgammal.c: Likewise.
11287         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11288         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11289         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
11290         Minor optimizations.  Pretty printing.  Remove cruft.
11291         * sysdeps/i386/fpu/e_acosf.S: Likewise.
11292         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11293         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11294         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11295         * sysdeps/i386/fpu/e_acosl.c: Likewise.
11296         * sysdeps/i386/fpu/e_asin.S: Likewise.
11297         * sysdeps/i386/fpu/e_asinf.S: Likewise.
11298         * sysdeps/i386/fpu/e_atan2.S: Likewise.
11299         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
11300         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
11301         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11302         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11303         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11304         * sysdeps/i386/fpu/e_exp10.S: Likewise.
11305         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
11306         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
11307         * sysdeps/i386/fpu/e_exp2.S: Likewise.
11308         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
11309         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
11310         * sysdeps/i386/fpu/e_fmod.S: Likewise.
11311         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
11312         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
11313         * sysdeps/i386/fpu/e_hypot.S: Likewise.
11314         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
11315         * sysdeps/i386/fpu/e_log.S: Likewise.
11316         * sysdeps/i386/fpu/e_log10.S: Likewise.
11317         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11318         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11319         * sysdeps/i386/fpu/e_log2.S: Likewise.
11320         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11321         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11322         * sysdeps/i386/fpu/e_logf.S: Likewise.
11323         * sysdeps/i386/fpu/e_logl.S: Likewise.
11324         * sysdeps/i386/fpu/e_pow.S: Likewise.
11325         * sysdeps/i386/fpu/e_powf.S: Likewise.
11326         * sysdeps/i386/fpu/e_powl.S: Likewise.
11327         * sysdeps/i386/fpu/e_remainder.S: Likewise.
11328         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
11329         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
11330         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11331         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11332         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11333         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
11334         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
11335         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
11336         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
11337         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
11338         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
11339         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
11340         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
11341         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
11342         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
11343         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
11344         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
11345         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
11346         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
11347         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
11348         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
11349         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
11350         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
11351         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
11352         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
11353         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
11354         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
11355         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
11356         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
11357         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
11358         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11359         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11360         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
11361         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
11362         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
11363         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
11364         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
11365         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
11366         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
11367         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
11368         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11369         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
11370         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
11371         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
11372         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
11373         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
11374         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
11375         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
11376         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
11377         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
11378         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
11379         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
11380         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11381         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
11382         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
11383         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
11384         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
11385         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
11386         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
11387         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
11388         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
11389         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11390         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
11391         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
11392         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
11393         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
11394         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
11395         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
11396         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
11397         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
11398         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11399         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11400         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
11401         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
11402         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
11403         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
11404         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
11405         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
11406         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
11407         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
11408         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
11409         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
11410         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
11411         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
11412         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
11413         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
11414         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11415         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
11416         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
11417         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
11418         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
11419         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11420         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
11421         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
11422         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11423         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
11424         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
11425         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
11426         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11427         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
11428         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
11429         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
11430         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
11431         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
11432         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
11433         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
11434         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
11435         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
11436         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
11437         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
11438         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
11439         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
11440         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11441         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11442         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11443         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11444         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
11445         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11446         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
11447         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
11448         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
11449         (__isnanf): Likewise.
11450         (__isinf_ns): Likewise.
11451         (__isinf_nsf): Likewise.
11452         (__finite): Likewise.
11453         (__finitef): Likewise.
11454         (__ieee754_sqrt): Define as macro.
11455         (__ieee754_sqrtf): Define as macro.
11456         (__ieee754_sqrtl): Define as macro.
11457         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
11458         inlined copy.
11459         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
11460         __FINITE_MATH_ONLY__ consistent.
11461         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
11462
11463 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
11464
11465         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
11466         of rawmemchr.
11467
11468         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
11469
11470 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
11471
11472         * po/ja.po: Update from translation team.
11473
11474 2011-10-08  Roland McGrath  <roland@hack.frob.com>
11475
11476         * locale/programs/locarchive.c (prepare_address_space): New function.
11477         (create_archive, enlarge_archive, open_archive): Use it.
11478
11479         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
11480         inside [SHARED], where it is used.
11481
11482         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
11483
11484         * nss/getent.c (netgroup_keys): Remove unused variable.
11485         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
11486
11487 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
11488
11489         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
11490         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
11491         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
11492         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
11493         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
11494         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
11495         * math/Makefile (libm-calls): Add s_isinf_ns.
11496         * math/divtc3.c: Use __isinf_nsl instead of isinf.
11497         * math/multc3.c: Likewise.
11498         * math/s_casin.c: Likewise.
11499         * math/s_casinf.c: Likewise.
11500         * math/s_casinl.c: Likewise.
11501         * math/s_ccos.c: Likewise.
11502         * math/s_ccosf.c: Likewise.
11503         * math/s_ccosl.c: Likewise.
11504         * math/s_ctan.c: Likewise.
11505         * math/s_ctanf.c: Likewise.
11506         * math/s_ctanh.c: Likewise.
11507         * math/s_ctanhf.c: Likewise.
11508         * math/s_ctanhl.c: Likewise.
11509         * math/s_ctanl.c: Likewise.
11510         * math/w_fmod.c: Likewise.
11511         * math/w_fmodf.c: Likewise.
11512         * math/w_fmodl.c: Likewise.
11513         * math/w_remainder.c: Likewise.
11514         * math/w_remainderf.c: Likewise.
11515         * math/w_remainderl.c: Likewise.
11516         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
11517         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
11518         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
11519         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
11520         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
11521         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
11522         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
11523         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
11524
11525         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
11526         of the number.
11527         * stdio-common/printf_fphex.c: Likewise.
11528         * stdio-common/printf_size.c: Likewise.
11529
11530         * math/e_exp10.c: Include math_private.h using <...> not "...".
11531         * math/e_exp10f.c: Likewise.
11532         * math/e_exp10l.c: Likewise.
11533         * math/e_exp2l.c: Likewise.
11534         * math/e_j0l.c: Likewise.
11535         * math/e_j1l.c: Likewise.
11536         * math/e_jnl.c: Likewise.
11537         * math/e_lgammal_r.c: Likewise.
11538         * math/e_rem_pio2l.c: Likewise.
11539         * math/e_scalb.c: Likewise.
11540         * math/e_scalbf.c: Likewise.
11541         * math/e_scalbl.c: Likewise.
11542         * math/k_cosl.c: Likewise.
11543         * math/k_sinl.c: Likewise.
11544         * math/k_tanl.c: Likewise.
11545         * math/s_cacoshf.c: Likewise.
11546         * math/s_catan.c: Likewise.
11547         * math/s_catanf.c: Likewise.
11548         * math/s_catanh.c: Likewise.
11549         * math/s_catanhf.c: Likewise.
11550         * math/s_catanhl.c: Likewise.
11551         * math/s_catanl.c: Likewise.
11552         * math/s_ccosh.c: Likewise.
11553         * math/s_ccoshf.c: Likewise.
11554         * math/s_ccoshl.c: Likewise.
11555         * math/s_cexp.c: Likewise.
11556         * math/s_cexpf.c: Likewise.
11557         * math/s_cexpl.c: Likewise.
11558         * math/s_clog.c: Likewise.
11559         * math/s_clog10.c: Likewise.
11560         * math/s_clog10f.c: Likewise.
11561         * math/s_clog10l.c: Likewise.
11562         * math/s_clogf.c: Likewise.
11563         * math/s_clogl.c: Likewise.
11564         * math/s_csin.c: Likewise.
11565         * math/s_csinf.c: Likewise.
11566         * math/s_csinh.c: Likewise.
11567         * math/s_csinhf.c: Likewise.
11568         * math/s_csinhl.c: Likewise.
11569         * math/s_csinl.c: Likewise.
11570         * math/s_csqrt.c: Likewise.
11571         * math/s_csqrtf.c: Likewise.
11572         * math/s_csqrtl.c: Likewise.
11573         * math/s_ctan.c: Likewise.
11574         * math/s_ctanf.c: Likewise.
11575         * math/s_ctanh.c: Likewise.
11576         * math/s_ctanhf.c: Likewise.
11577         * math/s_ctanhl.c: Likewise.
11578         * math/s_ctanl.c: Likewise.
11579         * math/s_ldexp.c: Likewise.
11580         * math/s_ldexpf.c: Likewise.
11581         * math/s_ldexpl.c: Likewise.
11582         * math/s_significand.c: Likewise.
11583         * math/s_significandf.c: Likewise.
11584         * math/s_significandl.c: Likewise.
11585         * math/w_acos.c: Likewise.
11586         * math/w_acosf.c: Likewise.
11587         * math/w_acosh.c: Likewise.
11588         * math/w_acoshf.c: Likewise.
11589         * math/w_acoshl.c: Likewise.
11590         * math/w_acosl.c: Likewise.
11591         * math/w_asin.c: Likewise.
11592         * math/w_asinf.c: Likewise.
11593         * math/w_asinl.c: Likewise.
11594         * math/w_atan2.c: Likewise.
11595         * math/w_atan2f.c: Likewise.
11596         * math/w_atan2l.c: Likewise.
11597         * math/w_atanh.c: Likewise.
11598         * math/w_atanhf.c: Likewise.
11599         * math/w_atanhl.c: Likewise.
11600         * math/w_cosh.c: Likewise.
11601         * math/w_coshf.c: Likewise.
11602         * math/w_coshl.c: Likewise.
11603         * math/w_dremf.c: Likewise.
11604         * math/w_exp10.c: Likewise.
11605         * math/w_exp10f.c: Likewise.
11606         * math/w_exp10l.c: Likewise.
11607         * math/w_exp2.c: Likewise.
11608         * math/w_exp2f.c: Likewise.
11609         * math/w_fmod.c: Likewise.
11610         * math/w_fmodf.c: Likewise.
11611         * math/w_fmodl.c: Likewise.
11612         * math/w_hypot.c: Likewise.
11613         * math/w_hypotf.c: Likewise.
11614         * math/w_hypotl.c: Likewise.
11615         * math/w_j0.c: Likewise.
11616         * math/w_j0f.c: Likewise.
11617         * math/w_j0l.c: Likewise.
11618         * math/w_j1.c: Likewise.
11619         * math/w_j1f.c: Likewise.
11620         * math/w_j1l.c: Likewise.
11621         * math/w_jn.c: Likewise.
11622         * math/w_jnf.c: Likewise.
11623         * math/w_jnl.c: Likewise.
11624         * math/w_lgamma.c: Likewise.
11625         * math/w_lgamma_r.c: Likewise.
11626         * math/w_lgammaf.c: Likewise.
11627         * math/w_lgammaf_r.c: Likewise.
11628         * math/w_lgammal.c: Likewise.
11629         * math/w_lgammal_r.c: Likewise.
11630         * math/w_log.c: Likewise.
11631         * math/w_log10.c: Likewise.
11632         * math/w_log10f.c: Likewise.
11633         * math/w_log10l.c: Likewise.
11634         * math/w_log2.c: Likewise.
11635         * math/w_log2f.c: Likewise.
11636         * math/w_log2l.c: Likewise.
11637         * math/w_logf.c: Likewise.
11638         * math/w_logl.c: Likewise.
11639         * math/w_pow.c: Likewise.
11640         * math/w_powf.c: Likewise.
11641         * math/w_powl.c: Likewise.
11642         * math/w_remainder.c: Likewise.
11643         * math/w_remainderf.c: Likewise.
11644         * math/w_remainderl.c: Likewise.
11645         * math/w_scalb.c: Likewise.
11646         * math/w_scalbf.c: Likewise.
11647         * math/w_scalbl.c: Likewise.
11648         * math/w_sinh.c: Likewise.
11649         * math/w_sinhf.c: Likewise.
11650         * math/w_sinhl.c: Likewise.
11651         * math/w_sqrt.c: Likewise.
11652         * math/w_sqrtf.c: Likewise.
11653         * math/w_sqrtl.c: Likewise.
11654         * math/w_tgamma.c: Likewise.
11655         * math/w_tgammaf.c: Likewise.
11656         * math/w_tgammal.c: Likewise.
11657
11658         * po/ja.po: Update from translation team.
11659
11660 2011-09-29  Andreas Jaeger  <aj@suse.de>
11661
11662         [BZ #13179]
11663         * sunrpc/netname.c (netname2host): Fix logic.
11664
11665         [BZ #6779]
11666         [BZ #6783]
11667         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
11668         correctly.
11669         * math/w_remainder.c (__remainder): Likewise.
11670         * math/w_remainderf.c (__remainderf): Likewise.
11671         * math/libm-test.inc (remainder_test): Add test cases.
11672
11673 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11674
11675         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
11676         sdiv_qrnnd.
11677
11678 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11679
11680         * string/test-memcmp.c: Avoid unncessary #defines.
11681         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
11682
11683 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11684
11685         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
11686         Use new sse2 version for core i3 - i7 as it's faster
11687         than sse42 version.
11688         (bit_Prefer_PMINUB_for_stringop): New.
11689         * sysdeps/x86_64/rawmemchr.S: Update.
11690         Replace with faster SSE2 version.
11691         * sysdeps/x86_64/memrchr.S: New file.
11692         * sysdeps/x86_64/memchr.S: Update.
11693         Replace with faster SSE2 version.
11694
11695 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
11696
11697         * elf/dl-load.c (lose): Add cast to avoid warning.
11698
11699 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
11700
11701         * po/ca.po: Update from translation team.
11702
11703         * inet/getnetgrent_r.c: Hook up nscd.
11704         * nscd/Makefile (routines): Add nscd_netgroup.
11705         (nscd-modules): Add netgroupcache.
11706         (CFLAGS-netgroupcache.c): Define.
11707         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
11708         (cache_search): Add const to second parameter.
11709         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
11710         INNETGR.
11711         (dbs): Add netgrdb entry.
11712         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
11713         (verify_persistent_db): Handle netgrdb.
11714         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
11715         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
11716         GETFDNETGR.
11717         (netgroup_response_header): Define.
11718         (innetgroup_response_header): Define.
11719         (datahead): Add netgroup_response_header and innetgroup_response_header
11720         elements.
11721         * nscd/nscd.conf: Add entries for netgroup cache.
11722         * nscd/nscd.h (dbtype): Add netgrdb.
11723         (_PATH_NSCD_NETGROUP_DB): Define.
11724         (netgroup_iov_disabled): Declare.
11725         (xmalloc, xcalloc, xrealloc): Move declarations here.
11726         (cache_search): Adjust prototype.
11727         Add netgroup-related prototypes.
11728         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
11729         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
11730         (__nscd_innetgr): Declare.
11731         * nscd/selinux.c (perms): Use access_vector_t as element type and
11732         add netgroup-related initializers.
11733         * nscd/netgroupcache.c: New file.
11734         * nscd/nscd_netgroup.c: New file.
11735         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
11736         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
11737         For four parameters use innetgr.
11738         * nss/nss_files/files-init.c: Add definition and callback for netgr.
11739         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
11740         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
11741         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
11742
11743         * nscd/connections.c (register_traced_file): Don't register file
11744         for disabled databases.
11745
11746 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
11747
11748         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
11749
11750         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
11751         from tree and freeing node.
11752
11753 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
11754
11755         * nss/nsswitch.c (__nss_database_lookup): Handle
11756         nss_parse_service_list out of memory case.
11757
11758 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
11759
11760         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
11761         out of memory case.
11762
11763 2011-10-04  Andreas Schwab  <schwab@redhat.com>
11764
11765         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
11766         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
11767         pass it down.
11768         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
11769         elf_machine_rela, elf_machine_lazy_rel.
11770         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
11771         (ELF_DYNAMIC_DO_REL): Likewise.
11772         (ELF_DYNAMIC_DO_RELA): Likewise.
11773         (ELF_DYNAMIC_RELOCATE): Likewise.
11774         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
11775         to ELF_DYNAMIC_DO_REL.
11776         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
11777         (dl_main): In trace mode always set __RTLD_NOIFUNC.
11778         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
11779         elf_machine_rela.
11780         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
11781         skip_ifunc, don't call ifunc function if non-zero.
11782         (elf_machine_rela): Likewise.
11783         (elf_machine_lazy_rel): Likewise.
11784         (elf_machine_lazy_rela): Likewise.
11785         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
11786         (elf_machine_lazy_rel): Likewise.
11787         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
11788         Likewise.
11789         (elf_machine_lazy_rel): Likewise.
11790         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11791         Likewise.
11792         (elf_machine_lazy_rel): Likewise.
11793         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
11794         (elf_machine_lazy_rel): Likewise.
11795         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
11796         (elf_machine_lazy_rel): Likewise.
11797         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
11798         (elf_machine_lazy_rel): Likewise.
11799         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
11800         (elf_machine_lazy_rel): Likewise.
11801         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
11802         (elf_machine_lazy_rel): Likewise.
11803         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
11804         (elf_machine_lazy_rel): Likewise.
11805
11806 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
11807
11808         * nss/nss_files/files-init.c (_nss_files_init): Use static
11809         initialization for all the *_traced_file variables.
11810
11811 2011-09-28  Andreas Schwab  <schwab@redhat.com>
11812
11813         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11814
11815 2011-09-27  Roland McGrath  <roland@hack.frob.com>
11816
11817         [BZ #13226]
11818         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
11819
11820 2011-09-27  Andreas Schwab  <schwab@redhat.com>
11821
11822         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
11823         Reread the line before reparsing it.
11824
11825 2011-09-26  Andreas Schwab  <schwab@redhat.com>
11826
11827         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
11828
11829 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
11830             Maxim Kuvyrkov  <maxim@codesourcery.com>
11831             Joseph Myers  <joseph@codesourcery.com>
11832
11833         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
11834         if needed for __stack_chk_guard.
11835
11836 2011-09-19  Roland McGrath  <roland@hack.frob.com>
11837
11838         * sysdeps/posix/spawni.c (script_execute): Always define it.
11839         It will be optimized away if unused.
11840         (maybe_script_execute): New function.
11841         (__spawni): Call it.
11842
11843         * Makerules: Don't include tls.make.
11844         (config-tls): Always set to thread.
11845         * tls.make.c: File removed.
11846
11847 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
11848
11849         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
11850         * config.make.in (CPPFLAGS-config): New substituted variable.
11851
11852 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11853
11854         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
11855
11856         [BZ #13192]
11857         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
11858         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
11859
11860 2011-09-15  Roland McGrath  <roland@hack.frob.com>
11861
11862         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
11863         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
11864         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11865         (CALL_FAIL): Likewise.
11866         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
11867         (CALL_FAIL): Macro removed.
11868         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
11869
11870 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11871
11872         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
11873         for __FINITE_MATH_ONLY__ == 1.
11874
11875 2011-09-15  Andreas Schwab  <schwab@redhat.com>
11876
11877         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
11878         __ieee754_sqrt instead of sqrt.
11879         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
11880         __ieee754_sqrtf instead of sqrtf.
11881         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
11882         __floorf instead of floorf.
11883         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
11884         __floorf, __truncf instead of floorf, truncf.
11885
11886 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
11887
11888         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
11889
11890         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
11891         __extern_always_inline.
11892         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
11893         32-bit.
11894
11895 2011-09-14  Andreas Schwab  <schwab@redhat.com>
11896
11897         * elf/rtld.c (dl_main): Also relocate in dependency order when
11898         doing symbol dependency testing.
11899
11900 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
11901
11902         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11903         Always define `refsym'.
11904
11905 2011-09-13  Andreas Schwab  <schwab@redhat.com>
11906
11907         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
11908         (__FD_ELT): Renamed from __FDELT.
11909         * misc/bits/select2.h (__FD_ELT): Likewise.
11910         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
11911         __FD_MASK instead of __FDELT, __FDMASK.
11912         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11913         Likewise.
11914         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11915         Likewise.
11916
11917         * elf/Makefile (gen-ldd): Fix pattern.
11918
11919         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
11920         (init_tls): Likewise.
11921
11922 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
11923
11924         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
11925
11926 2011-09-12  Andreas Schwab  <schwab@redhat.com>
11927
11928         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
11929         `struct cmsghdr *' instead of `void *'.
11930         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
11931         Likewise.
11932
11933 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
11934
11935         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
11936         if non-absolute.
11937         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
11938         ldd_rewrite_script.
11939
11940 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
11941
11942         * configure.in: Remove --with-tls option.
11943         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
11944         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
11945         out in case it is missing.
11946         * sysdeps/ia64/elf/configure.in: Likewise.
11947         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
11948         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
11949         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
11950         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
11951         * sysdeps/sh/elf/configure.in: Likewise.
11952         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
11953         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11954         * sysdeps/x86_64/elf/configure.in: Likewise.
11955         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
11956         * sysdeps/mach/hurd/tls.h: Likewise.
11957
11958         [BZ #13067]
11959         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
11960
11961         [BZ #13090]
11962         * configure.in: Fix use of AC_INIT.
11963
11964         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
11965
11966 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
11967
11968         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
11969         __set_errno.
11970         * malloc/hooks.c: Likewise.
11971
11972         [BZ #11929]
11973         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
11974         variables statically.
11975         (narenas): Initialize.
11976         (list_lock): Initialize.
11977         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
11978         initializtion of main_arena and list_lock.  Small cleanups.
11979         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
11980         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
11981         Add initializers to main_arena and mp_.
11982         (malloc_state): Remove pagesize member.  Change all users to use
11983         GLRO(dl_pagesize).
11984
11985         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
11986         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
11987         is always initialized.
11988
11989         * malloc/malloc.c: Removed unused configurations and dead code.
11990         * malloc/arena.c: Likewise.
11991         * malloc/hooks.c: Likewise.
11992         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
11993
11994         * include/tls.h: Removed.  USE___THREAD must always be defined.
11995         * bits/libc-tsd.h: Don't handle !USE___THREAD.
11996         * elf/dl-libc.c: Likewise.
11997         * elf/dl-tsd.c: Likewise.
11998         * include/errno.h: Likewise.
11999         * include/netdb.h: Likewise.
12000         * include/resolv.h: Likewise.
12001         * inet/herrno-loc.c: Likewise.
12002         * inet/herrno.c: Likewise.
12003         * malloc/arena.c: Likewise.
12004         * malloc/hooks.c: Likewise.
12005         * malloc/malloc.c: Likewise.
12006         * resolv/res-state.c: Likewise.
12007         * resolv/res_libc.c: Likewise.
12008         * sysdeps/i386/dl-machine.h: Likewise.
12009         * sysdeps/ia64/dl-machine.h: Likewise.
12010         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
12011         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
12012         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
12013         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
12014         * sysdeps/sh/dl-machine.h: Likewise.
12015         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
12016         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
12017         * sysdeps/unix/i386/sysdep.S: Likewise.
12018         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
12019         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
12020         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
12021         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
12022         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
12023         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
12024         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
12025         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
12026         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
12027         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
12028         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12029         * sysdeps/x86_64/dl-machine.h: Likewise.
12030         * tls.make.c: Likewise.
12031
12032         * configure.in: Remove --with-__thread option.  Make tests for
12033         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
12034         tls_model attribute fail if no support is available.  Remove
12035         USE_IN_LIBIO.
12036         * Makeconfig: Adjust for dropped configure option.  All features are
12037         now mandatory.
12038         * Makerules: Likewise.
12039         * Versions.def: Likewise.
12040         * argp/argp-fmtstream.c: Likewise.
12041         * argp/argp-fmtstream.h: Likewise.
12042         * argp/argp-help.c: Likewise.
12043         * assert/assert.c: Likewise.
12044         * config.h.in: Likewise.
12045         * config.make.in: Likewise.
12046         * configure: Likewise.
12047         * configure.in: Likewise.
12048         * csu/Versions: Likewise.
12049         * csu/init.c: Likewise.
12050         * elf/tst-audit2.c: Likewise.
12051         * elf/tst-tls10.c: Likewise.
12052         * elf/tst-tls10.h: Likewise.
12053         * elf/tst-tls11.c: Likewise.
12054         * elf/tst-tls12.c: Likewise.
12055         * elf/tst-tls14.c: Likewise.
12056         * elf/tst-tlsmod11.c: Likewise.
12057         * elf/tst-tlsmod12.c: Likewise.
12058         * elf/tst-tlsmod13.c: Likewise.
12059         * elf/tst-tlsmod13a.c: Likewise.
12060         * elf/tst-tlsmod14a.c: Likewise.
12061         * elf/tst-tlsmod15b.c: Likewise.
12062         * elf/tst-tlsmod16a.c: Likewise.
12063         * elf/tst-tlsmod16b.c: Likewise.
12064         * elf/tst-tlsmod7.c: Likewise.
12065         * elf/tst-tlsmod8.c: Likewise.
12066         * elf/tst-tlsmod9.c: Likewise.
12067         * gmon/gmon.c: Likewise.
12068         * grp/fgetgrent_r.c: Likewise.
12069         * grp/putgrent.c: Likewise.
12070         * hurd/fopenport.c: Likewise.
12071         * include/libc-symbols.h: Likewise.
12072         * include/tls.h: Likewise.
12073         * intl/gettextP.h: Likewise.
12074         * intl/loadinfo.h: Likewise.
12075         * locale/global-locale.c: Likewise.
12076         * locale/localeinfo.h: Likewise.
12077         * mach/devstream.c: Likewise.
12078         * malloc/arena.c: Likewise.
12079         * malloc/set-freeres.c: Likewise.
12080         * misc/err.c: Likewise.
12081         * misc/getttyent.c: Likewise.
12082         * misc/mntent_r.c: Likewise.
12083         * posix/getopt.c: Likewise.
12084         * posix/wordexp.c: Likewise.
12085         * pwd/fgetpwent_r.c: Likewise.
12086         * resolv/Versions: Likewise.
12087         * resolv/res_hconf.c: Likewise.
12088         * shadow/fgetspent_r.c: Likewise.
12089         * shadow/putspent.c: Likewise.
12090         * stdio-common/printf_fphex.c: Likewise.
12091         * stdio-common/tmpfile.c: Likewise.
12092         * stdlib/abort.c: Likewise.
12093         * stdlib/fmtmsg.c: Likewise.
12094         * sunrpc/auth_unix.c: Likewise.
12095         * sunrpc/clnt_perr.c: Likewise.
12096         * sunrpc/clnt_tcp.c: Likewise.
12097         * sunrpc/clnt_udp.c: Likewise.
12098         * sunrpc/clnt_unix.c: Likewise.
12099         * sunrpc/openchild.c: Likewise.
12100         * sunrpc/svc_simple.c: Likewise.
12101         * sunrpc/svc_tcp.c: Likewise.
12102         * sunrpc/svc_udp.c: Likewise.
12103         * sunrpc/svc_unix.c: Likewise.
12104         * sunrpc/xdr.c: Likewise.
12105         * sunrpc/xdr_array.c: Likewise.
12106         * sunrpc/xdr_rec.c: Likewise.
12107         * sunrpc/xdr_ref.c: Likewise.
12108         * sunrpc/xdr_stdio.c: Likewise.
12109
12110 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12111
12112         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
12113
12114 2011-07-03  Andreas Jaeger  <aj@suse.de>
12115
12116         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
12117         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
12118         regenerate with gen-libm-tests.pl.
12119
12120 2010-05-12  Petr Baudis  <pasky@suse.cz>
12121
12122         [BZ #11589]
12123         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
12124         around j0() zero points by switching to j1().
12125         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
12126         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
12127         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
12128         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
12129
12130 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12131
12132         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
12133         instead of 0.
12134         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
12135         instead of 0.                              .
12136         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12137         Patch in part by Pavel Roskin <proski@gnu.org>.
12138
12139         [BZ #13138]
12140         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
12141         realloc.
12142         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
12143         Free memory block if necessary.
12144
12145         [BZ #12847]
12146         * libio/genops.c (INTDEF): For string streams the _lock pointer can
12147         be NULL.  Don't lock in this case.
12148
12149 2011-09-09  Roland McGrath  <roland@hack.frob.com>
12150
12151         * elf/elf.h (ELFOSABI_GNU): New macro.
12152         (ELFOSABI_LINUX): Define to that.
12153
12154 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
12155
12156         * string/strncat.c (strncat): Undef the symbol in case it has been
12157         defined in bits/string.h.
12158
12159 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
12160
12161         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
12162
12163         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
12164         link map.
12165
12166 2011-08-17  Andreas Jaeger  <aj@suse.de>
12167
12168         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
12169
12170 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
12171             Ian Lance Taylor  <iant@google.com>
12172
12173         * math/libm-test.inc (lround_test): New testcase.
12174         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
12175
12176 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
12177
12178         * Makefile: Remove support for automatic cvs check-ins.
12179         * Makerules: Likewise.
12180         * config.make.in: Likewise.
12181         * configure.in: Likewise.
12182         * intl/Makefile: Likewise.
12183         * locale/Makefile: Likewise.
12184         * po/Makefile: Likewise.
12185         * posix/Makefile: Likewise.
12186         * sysdeps/gnu/Makefile: Likewise.
12187         * sysdeps/mach/hurd/Makefile: Likewise.
12188         * sysdeps/sparc/sparc32/Makefile: Likewise.
12189
12190         [BZ #13118]
12191         * posix/Makefile (bug-regex32-ENV): Define.
12192         Patch by John Stanley <jpsinthemix@verizon.net>.
12193
12194         * misc/Makefile (headers): Add bits/select2.h.
12195         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
12196         * misc/bits/select2.h: New file.
12197         * include/bits/select2.h: New file.
12198         * debug/Makefile (routines): Add fdelt_chk.
12199         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
12200         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
12201         FD_ISSET.
12202         * debug/fdelt_chk.c: New file.
12203
12204         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
12205         * wcsmbs/test-wmemcmp.c: Likewise.
12206         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
12207         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
12208
12209 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12210
12211         * string/Makefile (strop-tests): Add memcmp.
12212         * string/test-wmemcmp.c: New file.
12213         * string/test-memcmp.c: Add wmemcmp support.
12214
12215 2011-09-08  Roland McGrath  <roland@hack.frob.com>
12216
12217         [BZ #13153]
12218         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
12219         2011-07-19 change.
12220
12221         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
12222         garbage value in a __mach_port_mod_refs call in the cases of the
12223         task-self and thread-self ports.
12224
12225 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12226
12227         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
12228
12229 2011-09-08  Andreas Schwab  <schwab@redhat.com>
12230
12231         * elf/dl-load.c (lose): Check for non-null L.
12232
12233 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12234
12235         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
12236
12237         * elf/dl-libc.c (dlerror_run): Pass back error code from
12238         dl_catch_error.
12239
12240         [BZ #13123]
12241         * elf/dl-load.c (lose): Free l_origin if it is valid.
12242
12243         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
12244         names.
12245         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
12246         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12247         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12248         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12249         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
12250         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
12251
12252 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12253
12254         * sysdeps/powerpc/fpu/e_hypot.c: New file.
12255         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
12256         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
12257         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
12258         * sysdeps/powerpc/fpu/k_cosf.c: New file.
12259         * sysdeps/powerpc/fpu/k_sinf.c: New file.
12260         * sysdeps/powerpc/fpu/s_cosf.c: New file.
12261         * sysdeps/powerpc/fpu/s_sinf.c: New file.
12262         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
12263         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
12264
12265 2011-08-15  Alan Modra  <amodra@gmail.com>
12266
12267         [BZ #13092]
12268         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
12269         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
12270         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
12271         ppc_mcount to static-only-routines.
12272         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
12273         __mcount_internal.
12274         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
12275         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
12276
12277 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
12278
12279         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
12280         for finite and infinity parameters.
12281
12282 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
12283
12284         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
12285         and add nop instructions for throughput optimization.
12286         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
12287
12288 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
12289
12290         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
12291         aligned copy for power7 with vector-scalar instructions.
12292         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
12293
12294 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
12295
12296         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
12297         AVX check.
12298
12299 2011-09-07  Andreas Schwab  <schwab@redhat.com>
12300
12301         [BZ #13144]
12302         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
12303         last change.
12304
12305 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
12306
12307         * sysdeps/unix/sysv/linux/x86_64/init-first.c
12308         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
12309         syscall wrapper around clock_gettime in __vdso_clock_gettime.
12310         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
12311         clock_gettime.
12312
12313 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12314
12315         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
12316         Forgot to demangle the pointer.
12317
12318         * sysdeps/i386/sysdep.h: Define atom_text_section.
12319         * sysdeps/x86_64/sysdep.h: Likewise.
12320         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
12321         section with atom_text_section.
12322         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
12323         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
12324         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
12325         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12326         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
12327
12328         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
12329         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
12330         already be defined.  Change to take two parameters and don't assign
12331         result to variable.  Adjust all users.
12332         Define INTERNAL_GETTIME if not already defined.
12333         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
12334         call.
12335         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
12336         HAVE_CLOCK_GETTIME_VSYSCALL.
12337         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
12338
12339         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
12340         gettimeofday vsyscall, just use time.
12341
12342 2011-09-06  Andreas Schwab  <schwab@redhat.com>
12343
12344         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
12345         <errno.h>.
12346
12347 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
12348
12349         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
12350         syscall on x86-64.
12351         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
12352         syscall.
12353         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
12354         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
12355         syscall if possible.
12356
12357 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12358
12359         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
12360         e_ident.  Don't pass to find_mapsXX.
12361         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
12362
12363 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12364
12365         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12366         strchr-sse2-no-bsf strrchr-sse2-no-bsf
12367         * sysdeps/x86_64/multiarch/strchr.S: Update.
12368         Check bit_slow_BSF bit.
12369         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12370         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
12371         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
12372
12373 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12374
12375         [BZ #13134]
12376         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
12377         before glibc 2.15.
12378         (tryshell): Define.
12379         (__spawni): Change last parameter to be flag.  Test
12380         SPAWN_XFLAGS_USE_PATH flag to use path or not.
12381         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
12382         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
12383         * posix/spawni.c: Likewise.
12384         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
12385         * posix/spawnp.c: Likewise.  Change normal version to use
12386         SPAWN_XFLAGS_USE_PATH.
12387         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
12388         SPAWN_XFLAGS_TRY_SHELL.
12389
12390         [BZ #13150]
12391         * posix/glob.h: Remove gcc 1.x support.
12392
12393         [BZ #13068]
12394         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
12395
12396 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12397
12398         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12399         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
12400         strrchr-sse2-bsf
12401         * sysdeps/i386/i686/multiarch/strchr.S: New file.
12402         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
12403         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
12404         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
12405         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
12406         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
12407
12408 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12409
12410         * sysdeps/x86_64/wcscmp.S: New file.
12411
12412         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
12413         wcscmp-c wcscmp-sse2
12414         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
12415         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
12416         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
12417         * wcsmbs/wcscmp.c: Allow renaming.
12418
12419 2011-09-05  David S. Miller  <davem@davemloft.net>
12420
12421         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
12422         stack slot, rather than the struct return pointer slot.
12423         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
12424         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
12425         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
12426         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
12427
12428 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
12429
12430         * po/ja.po: Update from translation team.
12431
12432         [BZ #13144]
12433         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
12434         kernel in 64-bit binaries.
12435
12436 2011-09-01  David S. Miller  <davem@davemloft.net>
12437
12438         * elf/elf.h (HWCAP_SPARC_*): Move to..
12439         * sysdeps/sparc/sysdep.h: this new file and add new values.
12440         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
12441         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
12442         _DL_HWCAP_COUNT to 24.
12443         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
12444         entries.
12445         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
12446         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
12447         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
12448         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
12449         instead of magic constants.
12450         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12451
12452 2011-08-31  David S. Miller  <davem@davemloft.net>
12453
12454         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
12455         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
12456         Reimplement to do errno handling inline.
12457         (SYSCALL_ERROR_HANDLER): New macro.
12458         (__SYSCALL_STRING): Do not do errno handling in asm.
12459         (__CLONE_SYSCALL_STRING): Delete.
12460         (__INTERNAL_SYSCALL_STRING): Delete.
12461         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
12462         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
12463         (PSEUDO): Reimplement to do errno handling inline.
12464         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
12465         (SYSCALL_ERROR_HANDLER): New macro.
12466         (__SYSCALL_STRING): Do not do errno handling in asm.
12467         (__CLONE_SYSCALL_STRING): Delete.
12468         (__INTERNAL_SYSCALL_STRING): Delete.
12469         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
12470         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
12471         i386.
12472         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
12473         (inline_syscall*): Add 'err' argument.
12474         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
12475         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
12476         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
12477         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
12478
12479         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
12480         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
12481
12482 2011-08-30  Andreas Schwab  <schwab@redhat.com>
12483
12484         * elf/rtld.c (dl_main): Relocate objects in dependency order.
12485
12486 2011-08-29  Jiri Olsa <jolsa@redhat.com>
12487
12488         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
12489         directive.
12490
12491 2011-08-24  David S. Miller  <davem@davemloft.net>
12492
12493         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
12494
12495 2011-08-24  Andreas Schwab  <schwab@redhat.com>
12496
12497         * elf/Makefile: Add rules to build and run unload8 test.
12498         * elf/unload8.c: New file.
12499         * elf/unload8mod1.c: New file.
12500         * elf/unload8mod1x.c: New file.
12501         * elf/unload8mod2.c: New file.
12502         * elf/unload8mod3.c: New file.
12503
12504         * elf/dl-close.c (_dl_close_worker): Reset private search list if
12505         it wasn't used.
12506
12507 2011-08-23  David S. Miller  <davem@davemloft.net>
12508
12509         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
12510         subtract stack bias.
12511         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
12512         %sp not %fp in calculations.
12513         (_JMPBUF_UNWINDS_ADJ): Likewise.
12514
12515         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
12516         (aio_suspend): Call it to force an exception region around the
12517         AIO_MISC_WAIT() invocation.
12518
12519 2011-08-23  Andreas Schwab  <schwab@redhat.com>
12520
12521         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
12522         backslash.
12523
12524 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
12525
12526         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
12527         protection macro.
12528         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
12529         and <dl-machine.h>.
12530         (Elf64_FuncDesc): Remove.
12531
12532 2011-08-22  David S. Miller  <davem@davemloft.net>
12533
12534         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
12535         sigaltstack check, add missing cfi directives.
12536         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
12537         missing cfi directives, and sigaltstack handling.
12538
12539 2011-08-16  Andreas Schwab  <schwab@redhat.com>
12540
12541         [BZ #11724]
12542         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
12543         object is seen twice.
12544         * elf/dl-fini.c (_dl_sort_fini): Likewise.
12545
12546         * elf/Makefile (distribute): Add tst-initorder2.c.
12547         (tests): Add tst-initorder2.
12548         (modules-names): Add tst-initorder2a tst-initorder2b
12549         tst-initorder2c tst-initorder2d.  Add rules to build them.
12550         ($(objpfx)tst-initorder2.out): New rule.
12551         * elf/tst-initorder2.c: New file.
12552         * elf/tst-initorder2.exp: New file.
12553
12554 2011-08-22  Andreas Schwab  <schwab@redhat.com>
12555
12556         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
12557
12558         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
12559         dependencies back to end of function.
12560
12561         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
12562         $(elfobjdir)/ld.so.
12563
12564 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
12565
12566         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
12567         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
12568         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
12569         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
12570         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
12571         of __vdso_gettimeofday.
12572         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
12573         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
12574         attribute_hidden.
12575         (_libc_vdso_platform_setup): Remove initialization of
12576         __vdso_gettimeofday and __vdso_time.
12577
12578 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12579
12580         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
12581         and fgetc_unlocked.
12582         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
12583         getc_unlocked.
12584
12585         * elf/dl-open.c (add_to_global): Report additions to the global scope
12586         for LD_DEBUG=scopes.
12587         (dl_open_worker): Also print scope of newly loaded dependencies.
12588         (_dl_show_scope): Indicate if there is no scope.
12589
12590         [BZ #13114]
12591         * stdio-common/Makefile (tests): Add bug24.
12592         * stdio-common/bug24.c: New file.
12593
12594 2011-08-19  Andreas Jaeger  <aj@suse.de>
12595
12596         [BZ #13114]
12597         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
12598         non-existant file when using close-on-exec mode.
12599
12600 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
12601
12602         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
12603         the very first instruction.
12604
12605         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
12606         the CFI state in the end.
12607         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
12608         inclusion of dl-trampoline.h.
12609         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
12610
12611 2011-08-19  Andreas Schwab  <schwab@redhat.com>
12612
12613         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
12614         expectations for long double.
12615
12616         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
12617         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
12618
12619 2011-08-14  David S. Miller  <davem@davemloft.net>
12620
12621         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
12622         artificual limit depends upon the system page size.
12623
12624 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12625
12626         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
12627         * resolv/Makefile: Define CFLAGS-libresolv.
12628
12629 2011-08-17  Andreas Schwab  <schwab@redhat.com>
12630
12631         * nss/makedb.c (compute_tables): Make variables used in nested
12632         function static.
12633
12634 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
12635
12636         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
12637         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
12638         if buffer was too small.
12639
12640         * elf/pldd.c (main): Attach to all threads in the process.
12641         Rewrite /proc handling to use *at functions.
12642
12643 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
12644
12645         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
12646         specifies first scope to show.
12647         (dl_open_worker): Update callers.  Move printing scope of new
12648         object to before the relocation.
12649         * elf/rtld.c (dl_main): Update _dl_show_scope call.
12650         * sysdeps/generic/ldsodefs.h: Update declaration.
12651
12652         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
12653         string for the scope number.
12654
12655 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
12656
12657         * nscd/servicescache.c (cache_addserv): Make sure written is always
12658         initialized.
12659
12660 2011-08-14  Roland McGrath  <roland@hack.frob.com>
12661
12662         * sysdeps/i386/i486/bits/atomic.h
12663         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
12664         statement expression, so as to suppress "set but not used" warning.
12665         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
12666
12667         * string/strncat.c (STRNCAT): Use prototype definition.
12668
12669         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
12670         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
12671         -Iprograms here.
12672         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
12673         (localedef-modules): Add localedef.
12674         (locale-modules): Add locale.
12675
12676         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
12677         * elf/rtld.c (dl_main): Invert order of assignment in last change,
12678         to avoid a warning.
12679
12680 2011-08-14  David S. Miller  <davem@davemloft.net>
12681
12682         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
12683         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
12684
12685 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
12686
12687         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
12688         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
12689         * elf/rtld.c (dl_main): Set l_name of vDSO.
12690         Call _dl_show_scope when DL_DEBUG_SCOPES.
12691         (process_dl_debug): Recognize scopes flag and also set it for all.
12692         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
12693         Declare _dl_show_scope.
12694
12695         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
12696         (do_dlopen): Pass caller_dlopen to dl_open.
12697         (__libc_dlopen_mode): Initialize caller_dlopen.
12698
12699         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
12700         of libc.  Make tolower call locale-independent.  Optimize a bit by
12701         using isdigit instead of isalnum.
12702         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
12703
12704 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
12705
12706         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
12707         was a dependency or dynamically loaded.
12708
12709 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
12710
12711         * intl/l10nflist.c: Allow architecture-specific pop function.
12712         * sysdeps/x86_64/l10nflist.c: New file.
12713
12714         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
12715         classification.
12716
12717 2011-08-10  Andreas Schwab  <schwab@redhat.com>
12718
12719         * include/dirent.h: Add libc_hidden_proto for scandirat and
12720         scandirat64.  Don't declare __scandirat64.
12721         * dirent/scandirat.c: Add libc_hidden_def.
12722         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
12723         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
12724
12725 2011-08-10  David S. Miller  <davem@davemloft.net>
12726
12727         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
12728         enum.
12729         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12730         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12731         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12732
12733 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
12734
12735         * Versions.def [libc]: Add GLIBC_2.15.
12736         * dirent/Makefile (routines): Add scandirat and scandirat64.
12737         * dirent/Versions [libc]: Export scandirat and scandirat64 for
12738         GLIBC_2.15.
12739         * dirent/dirent.h: Declare scandirat and scandirat64.
12740         * dirent/scandirat.c: New file.
12741         * dirent/scandirat64.c: New file.
12742         * sysdeps/wordsize-64/scandirat.c: New file.
12743         * sysdeps/wordsize-64/scandirat64.c: New file.
12744         * dirent/opendir.c: Define opendirat.
12745         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
12746         using scandirat.
12747         * dirent/scandir64.c: Adjust for scandir.c change.
12748         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
12749         __scandirat64, and __scandir_cancel_handler.
12750         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
12751         additional parameter and use openat instead of open (outside of ld.so).
12752         Add new __opendir as wrapper around __opendirat.
12753         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
12754         here without requiring old scandirat implementation.
12755
12756 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
12757
12758         * dirent/scandir.c (cancel_handler): Renamed to
12759         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
12760         defined.  Adjust users.
12761         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
12762         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
12763
12764 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
12765
12766         * string/test-string.h (IMPL): Use __STRING to expand name and then
12767         stringify it.
12768
12769         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
12770         of cleanups.
12771
12772 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12773
12774         * string/Makefile: Update.
12775         (strop-tests): Append strncat.
12776         * string/test-wcscmp.c: New file.
12777         New comprehensive test for wcscmp.
12778         * string/test-strcmp.c: Update.
12779         (WIDE): New define.
12780
12781 2011-07-22  Andreas Schwab  <schwab@redhat.com>
12782
12783         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
12784         line.
12785
12786 2011-07-26  Andreas Schwab  <schwab@redhat.com>
12787
12788         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
12789         encoding to ACE if AI_IDN.
12790
12791 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
12792
12793         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
12794         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
12795
12796 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12797
12798         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
12799         Fix overflow bug in strncat.
12800         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
12801
12802         * string/test-strncat.c: Update.
12803         Add new tests for checking overflow bugs.
12804
12805 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12806
12807         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12808         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
12809         * sysdeps/i386/i686/multiarch/strcat.S: New file.
12810         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
12811         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
12812         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
12813         * sysdeps/i386/i686/multiarch/strncat.S: New file.
12814         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
12815         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
12816
12817         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
12818         (USE_AS_STRCAT): Define.
12819         Add strcat and strncat support.
12820         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
12821
12822 2011-07-25  Andreas Schwab  <schwab@redhat.com>
12823
12824         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
12825         __n bigger than INT_MAX+1.
12826         (__strncmp_g): Likewise.
12827
12828 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
12829
12830         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
12831         * libio/stido.h: Likewise.
12832
12833         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
12834         (AF_NFC): Define.
12835         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
12836         (AF_NFC): Define.
12837
12838         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
12839         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
12840         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
12841         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
12842         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
12843
12844         [BZ #13021]
12845         * scripts/test-installation.pl: Don't expect libnss_test1 to be
12846         installed.
12847
12848         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
12849         typo.
12850         (_dl_x86_64_save_sse): Likewise.
12851
12852 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
12853
12854         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
12855         OSXSAVE.
12856         (_dl_x86_64_save_sse): Likewise.
12857
12858         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
12859
12860         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
12861
12862 2011-07-21  Andreas Schwab  <schwab@redhat.com>
12863
12864         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
12865         change.
12866         (_dl_x86_64_save_sse): Use correct AVX check.
12867
12868 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12869
12870         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
12871         bug in strncpy/strncat.
12872         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
12873
12874 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
12875
12876         * string/tester.c (test_strcat): Add tests for different alignments
12877         of source and destination.
12878         (test_strncat): Likewise.
12879
12880 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12881
12882         [BZ #12852]
12883         * posix/glob.c (glob): Check passed in values before using them in
12884         expressions to avoid some overflows.
12885         (glob_in_dir): Likewise.
12886
12887         [BZ #13007]
12888         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
12889         check for AVX enablement so that we don't crash with old kernels and
12890         new hardware.
12891         * elf/tst-audit4.c: Add same checks here.
12892         * elf/tst-audit6.c: Likewise.
12893
12894         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
12895
12896 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
12897
12898         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
12899
12900 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12901
12902         * po/cs.po: Update from translation team.
12903         * po/bg.po: Likewise.
12904
12905 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
12906
12907         * misc/sys/cdefs.h: Add support for const attribute.
12908         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
12909         to gnu_dev_{major,minor,makedev} functions.
12910
12911 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
12912
12913         * intl/dcigettext.c (get_output_charset): Add missing bracket.
12914
12915 2011-07-20  Andreas Schwab  <schwab@redhat.com>
12916
12917         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
12918         strlen results.
12919
12920 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12921
12922         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
12923         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
12924         register in order to avoid conflicts with the soft frame pointer
12925         being held in r11 when necessary.
12926         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
12927         (INTERNAL_VSYSCALL_NCS): Likewise.
12928
12929 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
12930
12931         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
12932         * elf/dl-fini.c (_dl_fini): Adjust caller.
12933         * elf/dl-close.c (_dl_close_worker): Likewise.
12934         * sysdeps/generic/ldsodefs.h: Adjust declaration.
12935
12936 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
12937
12938         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
12939         "aux_cache->nlibs < 0".
12940
12941         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
12942         in the reload-count case.
12943
12944 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12945
12946         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12947         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
12948         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
12949         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
12950         * sysdeps/x86_64/multiarch/strcat.S: New file.
12951         * sysdeps/x86_64/multiarch/strncat.S: New file.
12952         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
12953         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
12954         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
12955         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
12956         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
12957         (USE_AS_STRCAT): Define.
12958         Add strcat and strncat support.
12959         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12960         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
12961         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
12962         * string/strncat.c: Update.
12963         (USE_AS_STRNCAT): Define.
12964         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12965         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
12966         and i7.
12967         * sysdeps/x86_64/multiarch/init-arch.h
12968         (bit_Prefer_PMINUB_for_stringop): New.
12969         (index_Prefer_PMINUB_for_stringop): Likewise.
12970         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
12971         bit_Prefer_PMINUB_for_stringop.
12972
12973 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
12974
12975         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
12976         buffer64.
12977         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
12978         of casting of buffer.
12979         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
12980         buffer32 and buffer64.
12981         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
12982         writes instead of casting of buffer.
12983         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
12984         buffer32.
12985         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
12986         casting of buffer.
12987
12988 2011-07-19  Andreas Schwab  <schwab@redhat.com>
12989
12990         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
12991
12992 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
12993
12994         * nscd/nscd.c (termination_handler): Don't do anything for a database
12995         if it has not yet been initialized.
12996
12997 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
12998
12999         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13000
13001 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
13002
13003         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
13004
13005 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
13006
13007         * po/nl.po: Update from translation team.
13008         * po/sv.po: Likewise.
13009
13010 2011-07-16  Roland McGrath  <roland@hack.frob.com>
13011
13012         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
13013         now disallowed by GCC.
13014
13015         * configure.in (use-default-link): Default to yes if a test -shared
13016         link meets our qualifications.
13017         * configure: Regenerated.
13018
13019         * config.make.in (output-format): New variable.
13020         * configure.in: Check for ld --print-output-format support.
13021         * configure: Regenerated.
13022         * Makerules ($(common-objpfx)format.lds)
13023         [$(output-format) != unknown]: Just use $(output-format),
13024         instead of the linker-script munging.
13025
13026 2011-07-14  Roland McGrath  <roland@hack.frob.com>
13027
13028         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
13029         of $(common-objpfx)shlib.lds.
13030         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
13031
13032         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
13033         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
13034
13035         * configure.in (-z relro check): Adjust test code to add a large
13036         writable data section after it.
13037         * configure: Regenerated.
13038
13039 2011-07-11  Roland McGrath  <roland@hack.frob.com>
13040
13041         * configure.in (-z relro check): Fix test code to make the variable
13042         truly const.
13043         * configure: Regenerated.
13044
13045 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
13046
13047         * nscd/nscd.h (struct traced_file): Define.
13048         (struct database_dyn): Remove inotify_descr, reset_res, and filename
13049         elements.  Add traced_files.
13050         (inotify_fd): Declare.
13051         (register_traced_file): Declare.
13052         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
13053         (inotify_fd): Export.
13054         (resolv_conf_descr): Remove.
13055         (nscd_init): Move inotify descriptor creation to main.
13056         Don't register files for notification here.
13057         (register_traced_file): New function.
13058         (invalidate_cache): Don't use reset_res to determine whether to call
13059         res_init, go through the list of registered files.
13060         (main_loop_poll): The inotify descriptors are now stored in the
13061         structures for the traced files.
13062         (main_loop_epoll): Likewise
13063         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
13064         to __nss_disable_nscd.
13065         * nscd/cache.c (prune_cache): There is no single inotify descriptor
13066         for a database anymore.  Check the records for all the registered
13067         files instead.
13068         * nss/Makefile (libnss_files-routines): Add files-init.
13069         (libnss_db-routines): Add db-init.
13070         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
13071         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
13072         * nss/nss_db/db-init.c: New file.
13073         * nss/nss_files/files-init.c: New file.
13074         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
13075         __nss_lookup_function.
13076         (__nss_lookup_function): Call nss_load_library.
13077         (nss_load_all_libraries): New function.
13078         (__nss_disable_nscd): Take parameter with callback function for files
13079         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
13080         used for the cached services.
13081         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
13082         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
13083         options for features to all the files in nscd.
13084
13085         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
13086
13087 2011-07-10  Roland McGrath  <roland@hack.frob.com>
13088
13089         * csu/elf-init.c (__libc_csu_init): Comment typo.
13090
13091 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
13092
13093         * po/pl.po: Update from translation team.
13094         * po/ja.po: Likewise.
13095         * po/ru.po: Likewise.
13096         * po/ko.po: Likewise.
13097         * po/fr.po: Likewise.
13098
13099 2011-07-09  Roland McGrath  <roland@hack.frob.com>
13100
13101         * configure.in (.ctors/.dtors header and trailer check):
13102         Use an empirical test on a built program.
13103         * configure: Regenerated.
13104
13105         * configure.in (-z relro check): Use an empirical test on a built DSO.
13106         Detect, but do not require, on ia64.
13107         * configure: Regenerated.
13108
13109         * configure.in (READELF): Find it with AC_CHECK_TOOL.
13110         Update tests that use readelf to use $READELF instead.
13111         * configure: Regenerated.
13112
13113 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
13114
13115         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
13116         if the result is not used.
13117
13118 2011-07-05  Andreas Jaeger  <aj@suse.de>
13119
13120         [BZ#9696]
13121         * stdlib/tst-strtod.c: Add testcase.
13122
13123 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13124
13125         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
13126         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
13127         The latter has a higher limit.  Take additional parameter to pass to
13128         the new function.
13129         (__pathconf): Pass file to __statfs_link_max.
13130         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
13131         __statfs_link_max.
13132         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
13133         __statfs_link_max.
13134
13135         [BZ #12868]
13136         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
13137         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
13138         Handle Lustre.
13139         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
13140         (__statfs_filesize_max): Likewise.
13141         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
13142
13143 2011-07-05  Andreas Jaeger  <aj@suse.de>
13144
13145         * resolv/res_comp.c (dn_skipname): Remove unused variable.
13146
13147 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
13148
13149         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
13150         `status' variable.
13151         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
13152         Likewise.
13153
13154 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
13155
13156         * Makefile (strop-tests): Add strncat.
13157         * string/test-strncat.c: New file.
13158
13159 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
13160
13161         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
13162
13163 2011-06-21  Andreas Jaeger  <aj@suse.de>
13164
13165         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
13166         Copy rule from iconvdata/Makefile.
13167
13168 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13169
13170         [BZ #12922]
13171         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
13172         but no long options are defined, just return 'W'.
13173
13174 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
13175
13176         [BZ #9696]
13177         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
13178
13179 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
13180
13181         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
13182         netgroups to read.
13183         (innetgr): Likewise.
13184
13185 2011-07-05  Roland McGrath  <roland@hack.frob.com>
13186
13187         * config.make.in (install_root): Default to $(DESTDIR).
13188
13189 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
13190
13191         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
13192
13193 2011-07-02  Roland McGrath  <roland@hack.frob.com>
13194
13195         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
13196
13197         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
13198         containing directory rather than embedding absolute directory names.
13199
13200         * scripts/check-local-headers.sh: Rewritten using awk.
13201         Match by word, not by line.  Print error messages for matches.
13202         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
13203
13204         * Makerules [shlib-lds-flags empty]:
13205         ($(common-objpfx)libc_pic.opts): New target.
13206         ($(common-objpfx)libc_pic.os.clean): New target.
13207         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
13208
13209         * config.make.in (OBJCOPY): New variable.
13210         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
13211         * configure: Regenerated.
13212
13213         * config.make.in (use-default-link): New variable.
13214         * configure.in (use_default_link): Grok --with-default-link to set it.
13215         * configure: Regenerated.
13216         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
13217         (shlib-lds, shlib-lds-flags): Define to empty.
13218
13219         * Makerules (shlib-lds): New variable.
13220         (shlib-lds-flags): New variable.
13221         (build-shlib, build-moduile, build-module-asneeded): Use it.
13222         ($(common-objpfx)libc.so): Use $(shlib-lds).
13223         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
13224         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
13225
13226         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
13227         DT_FLAGS/DT_FLAGS_1 with zero flags.
13228
13229         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
13230         linker script munging.
13231
13232 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
13233
13234         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
13235         as 128-bit value.
13236         * crypt/sha512.c (sha512_process_block): Perform total addition using
13237         128-bit if possible.
13238         (__sha512_finish_ctx): Likewise.
13239         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
13240         as 64-bit value.
13241         * crypt/sha256.c (SWAP64): Define.
13242         (sha256_process_block): Perform total addition using 64-bit if
13243         possible.
13244         (__sha256_finish_ctx): Likewise.
13245
13246 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
13247
13248         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
13249         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13250         * nscd/hstcache.c (cache_addhst): Likewise.
13251         * nscd/grpcache.c (cache_addgr): Likewise.
13252         * nscd/aicache.c (addhstaiX): Likewise
13253         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
13254
13255 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
13256
13257         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
13258         * nscd/initgrcache.c (addinitgroupsX): Likewise.
13259         * nscd/hstcache.c (cache_addhst): Likewise.
13260         * nscd/grpcache.c (cache_addgr): Likewise.
13261         * nscd/aicache.c (addhstaiX): Likewise
13262
13263 2011-07-01  Andreas Schwab  <schwab@redhat.com>
13264
13265         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
13266         domain only when needed.
13267
13268 2011-06-30  Andreas Schwab  <schwab@redhat.com>
13269
13270         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
13271         is always restored.
13272
13273 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
13274
13275         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
13276         are re-adding the entry.
13277         * nscd/servicescache.c (cache_addserv): Likewise.
13278
13279 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
13280
13281         * sysdeps/generic/dl-irel.h: fix protection against multiple
13282         inclusions.
13283         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
13284
13285 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
13286
13287         [BZ #12935]
13288         * malloc/memusage.sh: Fix quoting in message.
13289         * debug/xtrace.sh: Likewise.
13290
13291         * configure.in: Remove support for --experimental-malloc option, make
13292         it the default.
13293         * config.make.in: Likewise.
13294         * malloc/Makefile: Likewise.
13295
13296 2011-06-27  Andreas Schwab  <schwab@redhat.com>
13297
13298         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
13299         two-byte characters.
13300
13301 2011-06-27  Roland McGrath  <roland@hack.frob.com>
13302
13303         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
13304         AC_CACHE_CHECK invocation.
13305         * configure: Regenerated.
13306
13307         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
13308
13309 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
13310
13311         [BZ #12350]
13312         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
13313         bit from old_res_options.
13314
13315         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
13316
13317         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
13318         value type for setfct.
13319
13320 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13321
13322         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13323         __gettimeofday instead of gettimeofday.
13324
13325 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
13326
13327         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
13328
13329 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13330
13331         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
13332
13333         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
13334         info.
13335
13336 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13337
13338         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13339         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13340         strcpy-sse2-unaligned strncpy-sse2-unaligned
13341         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
13342         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
13343         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
13344         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
13345         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
13346         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
13347         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
13348         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
13349         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
13350         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
13351         (STRCPY): Support SSE2 and SSSE3 versions.
13352
13353 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
13354
13355         [BZ #12874]
13356         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
13357         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
13358         kernels which artificially limit size of requests.
13359
13360 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13361
13362         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13363         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
13364         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
13365         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
13366         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
13367         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
13368         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
13369         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
13370         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
13371         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
13372         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
13373         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
13374         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
13375         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
13376         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
13377         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13378         Enable unaligned load optimization for Intel Core i3, i5 and i7
13379         processors.
13380         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
13381         Define.
13382         (index_Fast_Unaligned_Load): Define.
13383         (HAS_FAST_UNALIGNED_LOAD): Define.
13384
13385 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
13386
13387         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
13388
13389 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13390
13391         [BZ #12907]
13392         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
13393         until it is clear that the information is realy needed.
13394         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
13395
13396 2011-06-22  Andreas Schwab  <schwab@redhat.com>
13397
13398         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
13399
13400 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
13401
13402         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
13403         /sys/devices/system/cpu/online if it is usable.
13404
13405         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
13406         reading the information from the /proc filesystem to once a second.
13407
13408 2011-06-21  Andreas Jaeger  <aj@suse.de>
13409
13410         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
13411         NULL after inclusion of kernel headers.
13412
13413 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
13414
13415         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
13416         calls to internal_setent.
13417
13418         [BZ #12885]
13419         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
13420         addresses using gethostbyname4_r ignore IPv4 addresses.
13421
13422         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
13423         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
13424
13425         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
13426
13427 2011-06-20  David S. Miller  <davem@davemloft.net>
13428
13429         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
13430         inclusions.
13431         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
13432
13433         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
13434         (elf_irel): Use it.
13435         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
13436         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
13437         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
13438         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
13439         * sysdeps/x86_64/dl-irel.h: Likewise.
13440
13441         * elf/dl-runtime.c: Use elf_ifunc_invoke.
13442         * elf/dl-sym.c: Likewise.
13443
13444 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13445
13446         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
13447         need to dereference resplen2.
13448
13449 2011-06-14  Andreas Schwab  <schwab@redhat.com>
13450
13451         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
13452
13453 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
13454
13455         * Makeconfig: Define vardbdir and inst_vardbdir.
13456         * nss/Makefile: Add rules to install db-Makefile.
13457
13458         * nss/nss_db/db-XXX.c: Cleanup.
13459
13460         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
13461         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
13462         GLIBC_PRIVATE.
13463         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
13464         * nss/makedb.c: Implement -g option to specify that value strings
13465         are generated and should not be added to table iterated over for
13466         get*ent calls.
13467         * nss/nss_db/db-initgroups.c: New file.
13468
13469         * nss/getent.c: Add support for initgroups lookups through getgrouplist
13470         interface.
13471
13472         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
13473         (internal_getgrouplist): Adjust to name change.
13474         Update use_initgroups_entry if this is not the first call.
13475         * nss/databases.def: Add initgroups entry.
13476
13477         * nss/makedb.c (compute_tables): Check result of multiple hash table
13478         sizes to minimize maximum chain length.
13479
13480 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
13481
13482         * Versions.def: Add entry for libnss_db.
13483         * shlib-versions: Likewise.
13484         * nss/Makefile: Add rules to build libnss_db.
13485         * nss/Versions: Add libnss_db information.  Organize libnss_files
13486         entries better.
13487         * nss/db-Makefile: Add gshadow support.  Change rules for the new
13488         makedb progra.  Some minor improvements to generate smaller files.
13489         * nss/nss_db/nss_db.h: Move NSS database header data structures to
13490         here from...
13491         * nss/makedb.c: ...here.
13492         Improve database format to be smaller and require less memory at
13493         runtime.
13494         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
13495         db anymore.
13496         * nss/nss_db/db-netgrp.c: Likewise.
13497         * nss/nss_db/db-open.c: Likewise.
13498         * nss/nss_files/flies-XXX.x: Adjust comments.
13499         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
13500         * nss/nss_files/files-grp.c: Likewise.
13501         * nss/nss_files/files-hosts.c: Likewise.
13502         * nss/nss_files/files-network.c: Likewise.
13503         * nss/nss_files/files-proto.c: Likewise.
13504         * nss/nss_files/files-pwd.c: Likewise.
13505         * nss/nss_files/files-rpc.c: Likewise.
13506         * nss/nss_files/files-service.c: Likewise.
13507         * nss/nss_files/files-sgrp.c: Likewise.
13508         * nss/nss_files/files-spwd.c: Likewise.
13509         * nss/nss_db/db-alias.c: Removed.
13510         * nss/nss_db/dummy-db.h: Removed.
13511
13512 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
13513
13514         * nss/makedb.c: Rewritten to not use database library.
13515         * nss/Makefile: Update to build new makedb program.
13516
13517 2011-06-14  Andreas Jaeger  <aj@suse.de>
13518
13519         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
13520         memset declaration.
13521
13522 2011-06-10  Andreas Schwab  <schwab@redhat.com>
13523
13524         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
13525         tmpbuf.
13526
13527 2011-06-10  Roland McGrath  <roland@hack.frob.com>
13528
13529         * Makerules (shlib.lds): Fail if the linker script comes out empty.
13530         * elf/Makefile ($(objpfx)ld.so): Likewise.
13531
13532         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
13533         Don't list ld.so twice in dependencies.
13534
13535         * posix/bug-regex31.c: Include <stdlib.h>.
13536
13537         * nscd/hstcache.c (cache_addhst): Remove unused variable.
13538
13539         * nis/nss_compat/compat-spwd.c
13540         (getspent_next_nss_netgr): Remove unused variable.
13541         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
13542
13543         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
13544         nonmembers" output to use the right array.
13545
13546         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
13547
13548         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
13549
13550         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
13551         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
13552         * catgets/gencat.c (read_input_file): Likewise.
13553         * locale/programs/locarchive.c (enlarge_archive): Likewise.
13554
13555         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
13556         variable definition inside #if's controlling its use.
13557
13558         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
13559
13560         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
13561
13562         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
13563
13564         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
13565         unreachable code.
13566
13567         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
13568
13569         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
13570         * configure: Regenerated.
13571
13572         * Makerules: Revert last change.
13573         * elf/Makefile: Likewise.
13574
13575 2011-06-09  Roland McGrath  <roland@hack.frob.com>
13576
13577         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
13578         * elf/Makefile ($(objpfx)librtld.os): Likewise.
13579         (reloc-link): Likewise.
13580
13581 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
13582
13583         * elf/Makefile: Add rules to build pldd.
13584         * elf/pldd.c: New file.
13585         * elf/pldd-xx.c: New file.
13586
13587 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
13588
13589         * version.h: Update for 2.15 development version.
13590
13591 2011-06-07  David S. Miller  <davem@davemloft.net>
13592
13593         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
13594         ifuncs.
13595         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
13596         elf_machine_lazy_rel): Likewise.
13597         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
13598         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
13599         elf_machine_lazy_rel): Likewise.
13600         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
13601         dl_hwcap via passed in argument.
13602         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
13603         Likewise.
13604
13605 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13606
13607         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
13608
13609 2011-06-06  Roland McGrath  <roland@hack.frob.com>
13610
13611         [BZ #12849]
13612         * manual/fdl-1.1.texi: New file, verbatim from:
13613         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
13614         * manual/lgpl-2.1.texi: New file, verbatim from:
13615         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
13616         * manual/Makefile (licenses): New variable, list those new file names.
13617         (texis): Use it.
13618         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
13619
13620         * manual/fdl.texi: File removed.
13621         * manual/lesser.texi: File removed.
13622         * manual/libc.texinfo (Copying, Documentation License):
13623         Use new @include file names, put @appendix directive before @include.
13624
13625 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
13626
13627         [BZ #12841]
13628         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
13629         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
13630         (mq_open): Add __NTH.
13631
13632 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
13633
13634         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13635         Assume Intel Core i3/i5/i7 processor if AVX is available.
13636
13637 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13638
13639         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
13640         typo.
13641
13642 2011-05-31  Andreas Schwab  <schwab@redhat.com>
13643
13644         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
13645         memory.  Use alloca_account.  Fix memory leak when retrying.
13646
13647 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
13648
13649         * version.h (RELEASE): Bump for 2.14 release.
13650         * include/features.h (__GLIBC_MINOR__): Bump to 14.
13651
13652         * config.make.in (RANLIB): Remove entry.
13653
13654 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
13655
13656         * po/Makefile (po-sed-cmd): Add ksh to extensions.
13657         (libc.pot): Work around missing support for .ksh extension in xgettext.
13658
13659         [BZ #12684]
13660         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
13661         if both request failed.
13662         (send_dg): In case of server errors clear resplen or *resplen2.
13663
13664         [BZ #12454]
13665         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
13666         when there are multiple maps.
13667         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
13668         (_dl_fini): Remove test here.
13669
13670         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
13671
13672 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
13673
13674         [BZ #12350]
13675         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
13676         bit from old_res_options.
13677         (gaih_inet): Likewise.
13678
13679         [BZ #11099]
13680         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
13681         as signed.
13682
13683         * resolv/res_init.c (res_setoptions): Make the code more compact.
13684
13685         [BZ #11558]
13686         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
13687         set RES_USEVC.
13688
13689         [BZ #11634]
13690         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
13691
13692         * malloc/malloc.h: Mark malloc hook variables as deprecated.
13693
13694         [BZ #11781]
13695         * malloc/malloc.h: Declare malloc hook variables as volatile.
13696
13697         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
13698         in last patch.
13699
13700         [BZ #11799]
13701         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
13702         raise in the comment.
13703         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
13704         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
13705         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
13706
13707 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
13708
13709         [BZ #12811]
13710         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
13711         grow the buffers more if it already has to be sufficient.
13712         (build_wcs_upper_buffer): Likewise.
13713         * posix/regexec.c (check_matching): Likewise.
13714         (clean_state_log_if_needed): Likewise.
13715         (extend_buffers): Don't enlarge buffers beyond size of the input
13716         buffer.
13717         Patches mostly by Emil Wojak <emil@wojak.eu>.
13718         * posix/bug-regex32.c: New file.
13719         * posix/Makefile (tests): Add bug-regex32.
13720
13721         * locale/findlocale.c (_nl_find_locale): Return right away if
13722         _nl_explode_name failed.
13723         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
13724
13725         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
13726
13727         * debug/xtrace.sh: Unify messages.
13728         * malloc/memusage.sh: Likewise.
13729
13730         [BZ #12813]
13731         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
13732         time symbol from vDSO.  Substitute with vsyscall if not available.
13733         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
13734         __vdso_time.
13735
13736         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
13737         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
13738         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
13739         Add sendmmsg and internal_sendmmsg.
13740         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
13741         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
13742         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
13743
13744         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
13745         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
13746         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
13747
13748 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
13749
13750         [BZ #12813]
13751         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
13752         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
13753         available.
13754         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
13755         __vdso_getcpu.
13756
13757         [BZ #12814]
13758         * iconvdata/Makefile (tests): Add bug-iconv9.
13759         * iconvdata/bug-iconv9.c: New file.
13760
13761 2011-05-27  Andreas Schwab  <schwab@redhat.com>
13762
13763         [BZ #12814]
13764         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
13765
13766 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
13767
13768         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13769         (struct user_regs_struct): Change intcs field back to cs.
13770
13771 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
13772
13773         * po/ja.po: Update from translation team.
13774
13775 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
13776
13777         [BZ #12795]
13778         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
13779         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
13780
13781 2011-05-20  Andreas Schwab  <schwab@redhat.com>
13782
13783         * stdlib/longlong.h: Update from GCC.
13784
13785 2011-05-23  Andreas Schwab  <schwab@redhat.com>
13786
13787         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
13788         parameter name.
13789         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
13790         Add parameter name.
13791         (__sysconf): Pass it down.
13792
13793 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
13794
13795         [BZ #12671]
13796         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
13797         some situations.
13798         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
13799         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
13800         add in in __libc_use_alloca calls.  Adjust callers.
13801         (glob): Use malloc in some situations.
13802
13803         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
13804         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
13805         pltexit.
13806
13807 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
13808
13809         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
13810         and CLOCK_BOOTTIME_ALARM.
13811
13812         [BZ #12782]
13813         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
13814         is returned.
13815
13816         * string/_strerror.c (__strerror_r): Print negative errors as signed
13817         numbers.
13818
13819         [BZ #12777]
13820         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
13821         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
13822         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
13823
13824         * configure.in: Fix typo in redirection and correct removal of test
13825         files in two cases.
13826
13827         [BZ #12788]
13828         * locale/setlocale.c (new_composite_name): Fix test to check for
13829         identical name of all categories.
13830
13831         [BZ #12792]
13832         * libio/filedoalloc.c (local_isatty): New function.
13833         (_IO_file_doallocate): Use local_isatty.
13834         * stdio-common/perror.c (perror): In case a new stream is used
13835         forward the stream error.
13836         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
13837         error flag.
13838
13839 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
13840
13841         [BZ #11869]
13842         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
13843         alloca.
13844         * include/alloca.h (extend_alloca_account): Define.
13845
13846         [BZ #11857]
13847         * posix/regex.h: Fix comments with documentation of user-accessible
13848         fields after compilation and describe correct free'ing of pattern
13849         after re_compile_pattern.
13850         Patch by Reuben Thomas <rrt@sc3d.org>.
13851
13852 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
13853
13854         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
13855         and -mno-altivec to prevent the compiler from using Altivec and/or
13856         VSX instructions when the corresponding registers are not available.
13857
13858 2011-05-19  Andreas Schwab  <schwab@redhat.com>
13859
13860         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
13861
13862 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
13863
13864         * libio/freopen.c (freopen): Use __dup2, not dup2.
13865         * libio/freopen64.c (freopen64): Likewise.
13866
13867 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13868
13869         [BZ #12775]
13870         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
13871         * math/Makefile (tests): Add test-powl.
13872         (CFLAGS-test-powl.c): Define.
13873         * math/test-powl.c: New file.
13874
13875 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13876
13877         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
13878
13879 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
13880
13881         [BZ #11837]
13882         * iconvdata/gb18030.c: Update to GB18020-2005.
13883
13884 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
13885
13886         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
13887         RE_SYNTAX_POSIX_AWK): Update to match recent development.
13888         Patch by Aharon Robbins <arnold@skeeve.com>.
13889
13890         [BZ #11892]
13891         * stdlib/putenv.c (putenv): Don't always create copy of the variable
13892         on the stack.
13893
13894         [BZ #11895]
13895         * misc/pselect.c (__pselect): Handle timeout value errors hidden
13896         through underflows.
13897
13898         [BZ #12766]
13899         * misc/error.c (error_at_line): Ensure file_name and old_file_name
13900         point to strings before performing equality test for error_one_per_line
13901         mode.
13902
13903         [BZ #11697]
13904         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
13905
13906         [BZ #11820]
13907         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13908         (struct user_fpregs_struct): Avoid __uint*_t types.
13909
13910         [BZ #6420]
13911         * malloc/mtrace.c (tr_where): Add additional parameter to point to
13912         symbol info.  Use it instead of calling _dl_addr locally.
13913         (lock_and_info): New function.
13914         (tr_freehook): Call lock_and_info and pass symbol info as additional
13915         parameter to tr_where.
13916         (tr_mallochook): Likewise.
13917         (tr_reallochook): Likewise.
13918         (tr_memalignhook): Likewise.
13919
13920         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
13921         used and couldn't be at all thread-safe.
13922
13923 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
13924
13925         * libio/freopen.c (freopen): Don't close old file descriptor
13926         before the new one is opened.  Instead dup the new file descriptor
13927         to the old one after the new stream is created.
13928         * libio/freopen64.c (freopen64): Likewise.
13929         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
13930         * libio/fileops.c (_IO_new_file_close_it): Handle new
13931         _IO_FLAGS2_NOCLOSE flag.
13932         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
13933         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
13934         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
13935         _IO_FLAGS2_NOCLOSE flag.
13936         * include/unistd.h: Add hidden_proto for dup3.
13937         Define __have_dup3.
13938         * io/dup3.c: Define hidden symbol.
13939         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
13940
13941         [BZ #7101]
13942         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
13943         when an incomplete long option is used.
13944         * posix/tst-getopt_long1.c: New file.
13945         * posix/Makefile (tests): Add tst-getopt_long1.
13946
13947         [BZ #10138]
13948         * scripts/config.guess: Update from autoconf-2.68.
13949         * scripts/config.sub: Likewise.
13950
13951         [BZ #10157]
13952         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
13953         tests into ...
13954         (has_cpuclock): ...this.  New function.
13955         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
13956         macro here based on has_cpuclock code.
13957
13958         [BZ #10149]
13959         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13960         First byte (not low byte) is now always NUL.
13961         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
13962
13963         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13964         Use non-cancelable interfaces.
13965
13966         [BZ #9809]
13967         * locale/iso-639.def: Add entry for Sorani.
13968
13969         [BZ #11901]
13970         * include/stdlib.h: Move include protection to the right place.
13971         Define abort_msg_s.  Declare __abort_msg with it.
13972         * stdlib/abort.c (__abort_msg): Adjust type.
13973         * assert/assert.c (__assert_fail_base): New function.  Majority
13974         of code from __assert_fail.  Allocate memory for __abort_msg with
13975         mmap.
13976         (__assert_fail): Now call __assert_fail_base.
13977         * assert/assert-perr.c: Remove bulk of implementation.  Use
13978         __assert_fail_base.
13979         * include/assert.hL Declare __assert_fail_base.
13980         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
13981         mmap.
13982         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
13983
13984 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
13985
13986         [BZ #11952]
13987         [BZ #12453]
13988         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
13989         until all modules are registered in the DTV.
13990         * elf/Makefile: Add rules to build and run tst-tls19.
13991         * elf/tst-tls19.c: New file.
13992         * elf/tst-tls19mod1.c: New file.
13993         * elf/tst-tls19mod2.c: New file.
13994         * elf/tst-tls19mod3.c: New file.
13995         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
13996
13997         [BZ #12083]
13998         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
13999         correctly.
14000
14001         [BZ #12601]
14002         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
14003         two-byte sequence errors.
14004         * iconvdata/Makefile (tests): Add bug-iconv8.
14005         * iconvdata/bug-iconv8.c: New file.
14006
14007         [BZ #12626]
14008         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
14009         buf2 definition.
14010
14011         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
14012
14013         [BZ #12432]
14014         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
14015         (dummy_getcfa): New function.
14016         (init): Get _Unwind_GetCFA address, use dummy if not found.
14017         (backtrace_helper): In recursion check, also check whether CFA changes.
14018         (__backtrace): Completely initialize arg.
14019
14020         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
14021         storing incomplete byte sequence in state object.  Avoid testing for
14022         guaranteed too small input if we know there is enough data available.
14023
14024 2011-05-11  Andreas Schwab  <schwab@redhat.com>
14025
14026         * Makeconfig (+link-pie): Indent.
14027         * Rules (binaries-pie): Define if $(have-fpie) and
14028         $(build-shared).
14029         (binaries-shared): Also filter out $(binaries-pie).
14030         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
14031         * nscd/Makefile (others-pie): Add nscd.
14032         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
14033         ($(objpfx)nscd): Remove command override.
14034         * login/Makefile (others-pie): Add pt_chown.
14035         ($(objpfx)pt_chown): Remove command override.
14036         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
14037         remove command overrides.
14038
14039 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
14040
14041         * libio/tst_putwc.c: Fix error messages.
14042
14043         [BZ #12724]
14044         * libio/fileops.c (_IO_new_file_close_it): Always flush when
14045         currently writing and seek to current position when not.
14046         * libio/Makefile (tests): Add bug-fclose1.
14047         * libio/bug-fclose1.c: New file.
14048
14049 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
14050
14051         [BZ #12511]
14052         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
14053         don't set DF_1_NODELETE here.
14054         (do_lookup_x): When entering new entry test for copy relocation
14055         and if necessary set DF_1_NODELETE flag.
14056         * elf/tst-unique4.cc: New file.
14057         * elf/tst-unique4.h: New file.
14058         * elf/tst-unique4lib.cc: New file.
14059         * elf/Makefile: Add rules to build and run tst-unique4.
14060         Patch by Piotr Bury <pbury@goahead.com>.
14061
14062 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14063
14064         [BZ #12052]
14065         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
14066
14067         [BZ #12625]
14068         * misc/mntent_r.c (addmntent): Flush the stream after the output
14069
14070         [BZ #12393]
14071         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
14072         (is_trusted_path_normalize): Skip initial colon.  Append slash
14073         to empty buffer.  Duplicate is_trusted_path code but allow
14074         constructed patch to be prefix.
14075         (is_dst): Allow $ORIGIN followed by /.
14076         (_dl_dst_substitute): Correct clearing of check_for_trusted.
14077         Correct testing of result of is_trusted_path_normalize
14078         (decompose_rpath): Fix warning.
14079
14080 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
14081
14082         [BZ #11257]
14083         * grp/initgroups.c (internal_getgrouplist): When we found the service
14084         list through the initgroups entry in nsswitch.conf do not always
14085         continue on a successful lookup.  Don't always use the
14086         __nss_group_database value if it is set.
14087         * nss/nsswitch.conf (initgroups): Change action for successful db
14088         lookup to continue for compatibility.
14089
14090 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
14091
14092         [BZ #11532]
14093         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
14094         and CP774 modules.
14095         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
14096         and CP774 modules.
14097         * iconvdata/tst-tables.sh: Likewise.
14098         * iconvdata/cp770.c: New file.
14099         * iconvdata/cp771.c: New file.
14100         * iconvdata/cp772.c: New file.
14101         * iconvdata/cp773.c: New file.
14102         * iconvdata/cp774.c: New file.
14103         * iconvdata/testdata/CP770: New file.
14104         * iconvdata/testdata/CP770..UTF8: New file.
14105         * iconvdata/testdata/CP771: New file.
14106         * iconvdata/testdata/CP771..UTF8: New file.
14107         * iconvdata/testdata/CP772: New file.
14108         * iconvdata/testdata/CP772..UTF8: New file.
14109         * iconvdata/testdata/CP773: New file.
14110         * iconvdata/testdata/CP773..UTF8: New file.
14111         * iconvdata/testdata/CP774: New file.
14112         * iconvdata/testdata/CP774..UTF8: New file.
14113
14114         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
14115         END CHARMAP line.
14116         * iconvdata/gen-8bit-gap.sh: Likewise.
14117         * iconvdata/gen-8bit.sh: Likewise.
14118
14119         * locale/iso-639.def: Add ary entry.
14120
14121         [BZ #11258]
14122         * locale/C-translit.h.in: Add U20A1 transliteration.
14123
14124         [BZ #12178]
14125         * locale/iso-639.def: Add wae entry.
14126         Patch by Kevin Bortis <bortis@translate-wae.ch>.
14127
14128         [BZ #12545]
14129         * locale/programs/localedef.c (construct_output_path): Use ssize_t
14130         for n.
14131
14132         [BZ #12711]
14133         * locale/C-translit.h.in: Add entry for U20B9.
14134         Patch by pravin.d.s@gmail.com.
14135
14136 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
14137
14138         [BZ #12713]
14139         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
14140         ENAMETOOLONG use generic getcwd.
14141         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
14142         in rtld.  Use *stat64.
14143         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
14144         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
14145         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
14146         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
14147         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
14148         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
14149         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
14150         __fstatat64 macros.
14151         * include/dirent.h: Add libc_hidden_proto for rewinddir.
14152         * dirent/rewinddir.c: Add libc_hidden_def.
14153         * sysdeps/mach/hurd/rewinddir.c: Likewise.
14154         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
14155
14156         * include/dirent.h (__alloc_dir): Add flags parameter.
14157         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
14158         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
14159         __alloc_dir.
14160         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
14161         from fdopendir if O_CLOEXEC is already set.
14162
14163 2011-03-15  Alan Modra  <amodra@gmail.com>
14164
14165         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
14166         l_tls_firstbyte_offset non-zero.  Save padding offset in
14167         l_tls_firstbyte_offset for later use.
14168         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
14169         freeing static tls block.
14170
14171 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
14172
14173         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
14174         where #ifdef was intended.  The intent is to prevent ARG_MAX from
14175         being defined by the kernel headers.
14176
14177 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
14178
14179         [BZ #12734]
14180         * resolv/resolv.h: Define RES_NOTLDQUERY.
14181         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
14182         no-tld-query and set RES_NOTLDQUERY.
14183         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
14184         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
14185         modern BIND to search name as TLD unless forbidden.
14186
14187 2011-05-07  Petr Baudis  <pasky@suse.cz>
14188             Ulrich Drepper  <drepper@gmail.com>
14189
14190         [BZ #12393]
14191         * elf/dl-load.c (fillin_rpath): Move trusted path check...
14192         (is_trusted_path): ...to here.
14193         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
14194         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
14195         using is_trusted_path_normalize() in setuid scripts.
14196
14197 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
14198
14199         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
14200         __BEGIN/__END_DECLS.
14201
14202 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
14203
14204         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
14205         NSS_STATUS_NOTFOUND if no record was found.
14206
14207 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14208
14209         * sunrpc/Makefile (headers): Add rpc/netdb.h.
14210         (headers-not-in-tirpc): Remove rpc/netdb.h
14211         * resolv/netdb.h: Revert last change.
14212
14213 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
14214
14215         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
14216         circular dependency between libgcc.a and libc.a.
14217
14218 2011-05-05  Andreas Schwab  <schwab@redhat.com>
14219
14220         * resolv/netdb.h: Don't include <rpc/netdb.h>.
14221         * nis/Makefile: Don't install rpcsvc/*.
14222         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
14223         instead of <rpc/types.h>.
14224         (MAXHOSTNAMELEN): Define.
14225
14226 2011-05-03  Andreas Schwab  <schwab@redhat.com>
14227
14228         * elf/ldconfig.c (add_dir): Don't crash on empty path.
14229
14230 2011-04-28  Maciej Babinski  <mbabinski@google.com>
14231
14232         [BZ #12714]
14233         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
14234         gethostbyname4_r when IPv6 results are possible.
14235
14236 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
14237
14238         [BZ #12723]
14239         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
14240         _PC_PIPE_BUF handling.
14241
14242 2011-04-30  Bruno Haible  <bruno@clisp.org>
14243
14244         [BZ #12717]
14245         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
14246         * resolv/netdb.h (getnameinfo): Change type of flags parameter
14247         to 'int'.
14248         * inet/getnameinfo.c (getnameinfo): Likewise.
14249
14250 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
14251
14252         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
14253         to groups setting in database lookup.
14254         * nss/nsswitch.conf: Add initgroups entry.
14255
14256 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
14257
14258         [BZ #12685]
14259         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
14260         mode string.
14261         Patch by Eric Blake <eblake@redhat.com>.
14262
14263 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
14264
14265         * sunrpc/Makefile (need-export-routines): Add svc_run.
14266         (routines): Remove svc_run.
14267         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
14268         * sunrpc/clnt_perr.c (clnt_perrno): Export.
14269         * sunrpc/svc_run.c (svc_run): Likewise.
14270         * sunrpc/svc_udp.c (svcudp_create): Likewise.
14271
14272 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
14273
14274         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
14275         problem in reallocation in last patch.
14276
14277 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
14278
14279         * sunrpc/Makefile: Move inclusion of Rules.
14280
14281 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14282
14283         * nss/nss_files/files-initgroups.c: New file.
14284         * nss/Makefile (libnss_files-routines): Add files-initgroups.
14285         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
14286         _nss_files_initgroups_dyn.
14287
14288 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
14289
14290         * elf/elf.h (R_ARM_IRELATIVE): Define.
14291
14292 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
14293
14294         * po/ru.po: Update from translation team.
14295
14296 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14297
14298         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
14299         dependencies.
14300
14301 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
14302
14303         [BZ #12653]
14304         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
14305         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
14306         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
14307         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
14308         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
14309
14310 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
14311
14312         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
14313         differing bytes.
14314         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
14315         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
14316         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14317
14318 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
14319
14320         [BZ #12420]
14321         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
14322         storing it.
14323         * stdlib/bug-getcontext.c: New file.
14324         * stdlib/Makefile: Add rules to build and run bug-getcontext.
14325
14326 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14327
14328         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
14329         instructions into .machine "z9-109".
14330         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
14331         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
14332
14333 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14334
14335         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
14336         between environment variables and auxiliary vector.
14337
14338 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
14339
14340         * Makefile: Add rules to build linkobj/libc.so.
14341         * include/libc-symbols.h: Define libc_hidden_nolink.
14342         * include/rpc/auth.h: Mark functions which are to be hidden.
14343         * include/rpc/auth_des.h: Likewise.
14344         * include/rpc/auth_unix.h: Likewise.
14345         * include/rpc/clnt.h: Likewise.
14346         * include/rpc/des_crypt.h: Likewise.
14347         * include/rpc/key_prot.h: Likewise.
14348         * include/rpc/pmap_clnt.h: Likewise.
14349         * include/rpc/pmap_prot.h: Likewise.
14350         * include/rpc/pmap_rmt.h: Likewise.
14351         * include/rpc/rpc_msg.h: Likewise.
14352         * include/rpc/svc.h: Likewise.
14353         * include/rpc/svc_auth.h: Likewise.
14354         * include/rpc/xdr.h: Likewise.
14355         * nis/Makefile: Link all DSOs against linkobj/libc.so.
14356         * nss/Makefile: Likewise.
14357         * sunrpc/Makefile: Don't install headers.  Build library with normal
14358         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
14359         * sunrpc/auth_des.c: Hide exported symbols by default, export some
14360         for the compat linking library.  Remove use of INTDEF/INTUSE.
14361         * sunrpc/auth_none.c: Likewise.
14362         * sunrpc/auth_unix.c: Likewise.
14363         * sunrpc/authdes_prot.c: Likewise.
14364         * sunrpc/authuxprot.c: Likewise.
14365         * sunrpc/clnt_gen.c: Likewise.
14366         * sunrpc/clnt_perr.c: Likewise.
14367         * sunrpc/clnt_raw.c: Likewise.
14368         * sunrpc/clnt_simp.c: Likewise.
14369         * sunrpc/clnt_tcp.c: Likewise.
14370         * sunrpc/clnt_udp.c: Likewise.
14371         * sunrpc/clnt_unix.c: Likewise.
14372         * sunrpc/des_crypt.c: Likewise.
14373         * sunrpc/des_soft.c: Likewise.
14374         * sunrpc/get_myaddr.c: Likewise.
14375         * sunrpc/key_call.c: Likewise.
14376         * sunrpc/key_prot.c: Likewise.
14377         * sunrpc/netname.c: Likewise.
14378         * sunrpc/pm_getmaps.c: Likewise.
14379         * sunrpc/pm_getport.c: Likewise.
14380         * sunrpc/pmap_clnt.c: Likewise.
14381         * sunrpc/pmap_prot.c: Likewise.
14382         * sunrpc/pmap_prot2.c: Likewise.
14383         * sunrpc/pmap_rmt.c: Likewise.
14384         * sunrpc/publickey.c: Likewise.
14385         * sunrpc/rpc_cmsg.c: Likewise.
14386         * sunrpc/rpc_common.c: Likewise.
14387         * sunrpc/rpc_dtable.c: Likewise.
14388         * sunrpc/rpc_prot.c: Likewise.
14389         * sunrpc/rpc_thread.c: Likewise.
14390         * sunrpc/rtime.c: Likewise.
14391         * sunrpc/svc.c: Likewise.
14392         * sunrpc/svc_auth.c: Likewise.
14393         * sunrpc/svc_authux.c: Likewise.
14394         * sunrpc/svc_raw.c: Likewise.
14395         * sunrpc/svc_run.c: Likewise.
14396         * sunrpc/svc_simple.c: Likewise.
14397         * sunrpc/svc_tcp.c: Likewise.
14398         * sunrpc/svc_udp.c: Likewise.
14399         * sunrpc/svc_unix.c: Likewise.
14400         * sunrpc/svcauth_des.c: Likewise.
14401         * sunrpc/xcrypt.c: Likewise.
14402         * sunrpc/xdr.c: Likewise.
14403         * sunrpc/xdr_array.c: Likewise.
14404         * sunrpc/xdr_float.c: Likewise.
14405         * sunrpc/xdr_intXX_t.c: Likewise.
14406         * sunrpc/xdr_mem.c: Likewise.
14407         * sunrpc/xdr_rec.c: Likewise.
14408         * sunrpc/xdr_ref.c: Likewise.
14409         * sunrpc/xdr_sizeof.c: Likewise.
14410         * sunrpc/xdr_stdio.c: Likewise.
14411
14412 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
14413
14414         [BZ #12650]
14415         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
14416         * sysdeps/ia64/dl-tls.h: Likewise.
14417         * sysdeps/powerpc/dl-tls.h: Likewise.
14418         * sysdeps/s390/dl-tls.h: Likewise.
14419         * sysdeps/sh/dl-tls.h: Likewise.
14420         * sysdeps/sparc/dl-tls.h: Likewise.
14421         * sysdeps/x86_64/dl-tls.h: Likewise.
14422         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
14423
14424 2011-03-14  Andreas Schwab  <schwab@redhat.com>
14425
14426         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
14427         rpath element also skip the following colon.
14428         (expand_dynamic_string_token): Add is_path parameter and pass
14429         down to DL_DST_REQUIRED and _dl_dst_substitute.
14430         (decompose_rpath): Call expand_dynamic_string_token with
14431         non-zero is_path.  Ignore empty rpaths.
14432         (_dl_map_object_from_fd): Call expand_dynamic_string_token
14433         with zero is_path.
14434
14435 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
14436
14437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14438         Make cancelable.
14439
14440 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
14441
14442         [BZ #12655]
14443         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
14444         Patch by Filipe David Manana <fdmanana@apache.org>.
14445
14446 2011-04-07  Andreas Schwab  <schwab@redhat.com>
14447
14448         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
14449         Maintain aligned stack.
14450         (CHECK_RSP): Remove unused macro.
14451
14452 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
14453
14454         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
14455         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
14456
14457 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
14458
14459         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
14460
14461         * include/features.h: Mention __USE_XOPEN2K8 in comment.
14462
14463 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
14464
14465         [BZ #12518]
14466         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
14467         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
14468         * sysdeps/x86_64/memmove.c: New file.
14469         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
14470         (memcpy): Renamed to ...
14471         (__new_memcpy): This.
14472         (memcpy): Provide GLIBC_2_14 memcpy.
14473         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
14474         (memcpy): Provide GLIBC_2_2_5 memcpy.
14475
14476 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14477
14478         [BZ #12631]
14479         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
14480
14481 2011-03-30  Andreas Schwab  <schwab@redhat.com>
14482
14483         * misc/syncfs.c: New file.
14484         * misc/Makefile (routines): Add syncfs.
14485         * posix/unistd.h: Declare syncfs.
14486         * sysdeps/unix/syscalls.list: Add syncfs.
14487
14488 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14489
14490         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
14491         open_by_handle_at.
14492         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
14493         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14494         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14495         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14496         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14497         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
14498         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14499
14500 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14501
14502         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
14503         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14504         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
14505         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14506         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14507         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14508         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14509
14510         * io/Makefile: Compile fallocate.c, fallocate64.c, and
14511         sync_file_range.c with -fexceptions.
14512         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
14513         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
14514         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
14515         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
14516         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
14517         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
14518         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
14519         sync_file_range as cancellation point
14520         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
14521         now a wrapper around __call_sync_file_range with cancellation handling.
14522         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
14523         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
14524         function name to __call_sync_file_range.
14525         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
14526         Add call_sync_file_range.
14527
14528 2011-04-01  Andreas Schwab  <schwab@redhat.com>
14529
14530         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14531         bits/timex.h.
14532
14533 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
14534
14535         * iconv/iconv.h: Fix typo in comment.
14536         * io/fcntl.h: Likewise.
14537         * libio/stdio.h: Likewise.
14538         * posix/spawn.h: Likewise.
14539         * posix/unistd.h: Likewise.
14540         * stdlib/stdlib.h: Likewise.
14541         * time/time.h: Likewise.
14542         * wcsmbs/wchar.h: Likewise.
14543
14544         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
14545         open_by_handle): Add.
14546         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
14547         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
14548         Augment a few comments.
14549         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
14550         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14551         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
14552         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14553         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
14554         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
14555         open_by_handle.
14556
14557         * io/fcntl.h (AT_EMPTY_PATH): Define.
14558
14559 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
14560
14561         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
14562         * sysdeps/unix/sysv/linux/bits/time.h: New file.
14563         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
14564         to...
14565         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
14566         * Versions.def: Add GLIBC_2.14.
14567         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
14568         Export.
14569
14570 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
14571
14572         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
14573         round counter.
14574         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14575
14576 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
14577
14578         [BZ #12597]
14579         * string/test-strncmp.c (do_page_test): New function.
14580         (check2): Likewise.
14581         (test_main): Call check2.
14582         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
14583
14584 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
14585
14586         [BZ #12587]
14587         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
14588         Handle cache information in CPU leaf 4.
14589         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
14590
14591 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
14592
14593         [BZ #12583]
14594         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
14595         character representation.
14596         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
14597
14598 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
14599
14600         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
14601         END(__isnan) to END(__isnanf) to match function entry point/label
14602         EALIGN(__isnanf,...).
14603
14604 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
14605
14606         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
14607
14608 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
14609
14610         [BZ #12510]
14611         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
14612         copy from the symbol referenced in the relocation to initialize the
14613         used variable.
14614         Patch by Piotr Bury <pbury@goahead.com>.
14615         * elf/Makefile: Add rules to build and tst-unique3.
14616         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
14617         * elf/tst-unique3.cc: New file.
14618         * elf/tst-unique3.h: New file.
14619         * elf/tst-unique3lib.cc: New file.
14620         * elf/tst-unique3lib2.cc: New file.
14621
14622         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
14623
14624 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
14625
14626         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
14627         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
14628         to _start.
14629
14630 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
14631
14632         * elf/dl-load.c (_dl_map_object): If we are looking for the first
14633         to-be-loaded object along a path to loader is ld.so.
14634
14635 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14636             Ulrich Drepper  <drepper@gmail.com>
14637
14638         * sysdeps/x86_64/memset.S: After aligning destination, code
14639         branches to different locations depending on the value of
14640         misalignment, when multiarch is enabled. Fix this.
14641
14642 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
14643
14644         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
14645         Set _x86_64_preferred_memory_instruction for AMD processsors.
14646         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14647         Set bit_Prefer_SSE_for_memop for AMD processors.
14648
14649 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
14650
14651         * libio/fmemopen.c (fmemopen): Optimize a bit.
14652
14653 2011-03-03  Andreas Schwab  <schwab@redhat.com>
14654
14655         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
14656
14657 2011-03-03  Roland McGrath  <roland@redhat.com>
14658
14659         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
14660
14661 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
14662
14663         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
14664         __bzero_ultra1 instead of __memset_ultra1.
14665
14666 2011-02-23  Andreas Schwab  <schwab@redhat.com>
14667             Ulrich Drepper  <drepper@gmail.com>
14668
14669         [BZ #12509]
14670         * include/link.h (struct link_map): Add l_orig_initfini.
14671         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
14672         returning unsuccessfully.
14673         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
14674         close of a file loaded at startup, restore the original l_initfini
14675         list.
14676         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
14677         list, store the pointer.
14678         * elf/Makefile ($(objpfx)noload-mem): New rule.
14679         (noload-ENV): Define.
14680         (tests): Add $(objpfx)noload-mem.
14681         * elf/noload.c: Include <memcheck.h>.
14682         (main): Call mtrace.  Close all opened handles.
14683
14684 2011-02-17  Andreas Schwab  <schwab@redhat.com>
14685
14686         [BZ #12454]
14687         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
14688         dependencies are missing.
14689
14690 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14691
14692         Fix __if_freereq crash: Unlike the generic version which uses free,
14693         Hurd needs munmap.
14694         * sysdeps/mach/hurd/ifreq.h: New file.
14695
14696 2011-01-27  Petr Baudis  <pasky@suse.cz>
14697             Ulrich Drepper  <drepper@gmail.com>
14698
14699         [BZ 12445]#
14700         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
14701         to extend_alloca().
14702         * stdio-common/bug23.c: New file.
14703         * stdio-common/Makefile (tests): Add bug23.
14704
14705 2010-09-28  Andreas Schwab  <schwab@redhat.com>
14706             Ulrich Drepper  <drepper@gmail.com>
14707
14708         [BZ #12489]
14709         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
14710         before performing relro protection.  At old place add assertion
14711         to make sure nothing changed.
14712
14713 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
14714             Glauber de Oliveira Costa  <glommer@gmail.com>
14715
14716         * elf/elf.h: Add new ARM TLS relocs.
14717
14718 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
14719
14720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
14721         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
14722         cast from r3.
14723         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
14724         'tests' variable.
14725         * sysdeps/wordsize-64/tst-writev.c: New file.
14726
14727 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
14728
14729         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
14730         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
14731         insns in _dl_start to prevent a TOC reference before relocs are
14732         resolved.
14733
14734 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
14735
14736         [BZ #12469]
14737         * Makeconfig: Remove RANLIB definition.
14738         * Makerules: Don't use RANLIB.
14739         * aclocal.m4: Remove ranlib test.
14740         * configure.in: No need to check for ranlib.
14741         * elf/rtld-Rules: Don't use RANLIB.
14742
14743 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14744
14745         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
14746         protection macro.
14747         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
14748         inclusion protection macro.
14749
14750         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
14751         SIGRTMIN and SIGRTMAX and print information in that case only when
14752         SIGRTMIN is defined.
14753
14754 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
14755
14756         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
14757         arginfo fn returning -1.
14758
14759         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
14760         and thousands string is zero terminated.
14761
14762 2011-02-03  Andreas Schwab  <schwab@redhat.com>
14763
14764         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
14765         sysdeps/unix/sysv/linux/bits/socket.h.
14766
14767 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14768
14769         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
14770         (__CPU_COUNT): Remove old macros.
14771         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
14772         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
14773         (__CPU_ALLOC, __CPU_FREE): Add macros.
14774         (__sched_cpualloc, __sched_cpufree): Add declarations.
14775
14776 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
14777
14778         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
14779         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
14780         * nscd/aicache.c (addhstaiX): Return timeout of added value.
14781         (readdhstai): Return value of addhstaiX call.
14782         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
14783         (addgrbyX): Return value returned by cache_addgr.
14784         (readdgrbyname): Return value returned by addgrbyX.
14785         (readdgrbygid): Likewise.
14786         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
14787         (addpwbyX): Return value returned by cache_addpw.
14788         (readdpwbyname): Return value returned by addhstbyX.
14789         (readdpwbyuid): Likewise.
14790         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
14791         (addservbyX): Return value returned by cache_addserv.
14792         (readdservbyname): Return value returned by addservbyX:
14793         (readdservbyport): Likewise.
14794         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
14795         (addhstbyX): Return value returned by cache_addhst.
14796         (readdhstbyname): Return value returned by addhstbyX.
14797         (readdhstbyaddr): Likewise.
14798         (readdhstbynamev6): Likewise.
14799         (readdhstbyaddrv6): Likewise.
14800         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
14801         (readdinitgroups): Return value returned by addinitgroupsX.
14802         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
14803         (prune_cache): Keep track of timeout value of re-added entries.
14804         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
14805         * nscd/nscd.h: Adjust prototypes of readd* functions.
14806
14807 2011-02-04  Roland McGrath  <roland@redhat.com>
14808
14809         * nis/nis_server.c (nis_servstate): Use the right name for 0.
14810         (nis_stats): Likewise.
14811         * nis/nis_modify.c (nis_modify): Likewise.
14812         * nis/nis_remove.c (nis_remove): Likewise.
14813         * nis/nis_add.c (nis_add): Likewise.
14814
14815         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
14816
14817         * posix/fnmatch_loop.c: Add some consts.
14818
14819         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
14820
14821 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
14822
14823         [BZ #12460]
14824         * config.make.in (config-cflags-novzeroupper): Define.
14825         * configure.in: Substitute libc_cv_cc_novzeroupper.
14826         * elf/Makefile (AVX-CFLAGS): Define.
14827         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
14828         (CFLAGS-tst-auditmod4a.c): Likewise.
14829         (CFLAGS-tst-auditmod4b.c): Likewise.
14830         (CFLAGS-tst-auditmod6b.c): Likewise.
14831         (CFLAGS-tst-auditmod6c.c): Likewise.
14832         (CFLAGS-tst-auditmod7b.c): Likewise.
14833         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
14834
14835 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
14836
14837         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
14838         function to the callback.
14839         Patch partly by Jiri Olsa <jolsa@redhat.com>.
14840
14841 2011-02-02  Andreas Schwab  <schwab@redhat.com>
14842
14843         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
14844         of errno.
14845
14846 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
14847
14848         [BZ #11724]
14849         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
14850         of constructors.
14851         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
14852         of destructors.
14853         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
14854
14855         [BZ #11724]
14856         * elf/Makefile: Add rules to build and run new test.
14857         * elf/tst-initorder.c: New file.
14858         * elf/tst-initorder.exp: New file.
14859         * elf/tst-initordera1.c: New file.
14860         * elf/tst-initordera2.c: New file.
14861         * elf/tst-initordera3.c: New file.
14862         * elf/tst-initordera4.c: New file.
14863         * elf/tst-initorderb1.c: New file.
14864         * elf/tst-initorderb2.c: New file.
14865         * elf/tst-order-a1.c: New file.
14866         * elf/tst-order-a2.c: New file.
14867         * elf/tst-order-a3.c: New file.
14868         * elf/tst-order-a4.c: New file.
14869         * elf/tst-order-b1.c: New file.
14870         * elf/tst-order-b2.c: New file.
14871         * elf/tst-order-main.c: New file.
14872         New test case by George Gensure <werkt0@gmail.com>.
14873
14874 2010-10-01  Andreas Schwab  <schwab@redhat.com>
14875
14876         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14877         decoding ACE if AI_CANONIDN.
14878
14879 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
14880
14881         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
14882
14883 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
14884
14885         * version.h (RELEASE): Bump for 2.13 release.
14886         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
14887
14888         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
14889
14890         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
14891         MADV_NOHUGEPAGE.
14892         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
14893         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
14894         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
14895         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
14896         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
14897         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
14898
14899         * posix/getconf.c: Update copyright year.
14900         * catgets/gencat.c: Likewise.
14901         * csu/version.c: Likewise.
14902         * debug/catchsegv.sh: Likewise.
14903         * debug/xtrace.sh: Likewise.
14904         * elf/ldconfig.c: Likewise.
14905         * elf/ldd.bash.in: Likewise.
14906         * elf/sprof.c (print_version): Likewise.
14907         * iconv/iconv_prog.c: Likewise.
14908         * iconv/iconvconfig.c: Likewise.
14909         * locale/programs/locale.c: Likewise.
14910         * locale/programs/localedef.c: Likewise.
14911         * malloc/memusage.sh: Likewise.
14912         * malloc/mtrace.pl: Likewise.
14913         * nscd/nscd.c (print_version): Likewise.
14914         * nss/getent.c: Likewise.
14915
14916         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
14917         PF_CAIF, and PF_ALG.
14918         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14919
14920 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
14921
14922         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
14923         (modules-names): Use them.
14924         (ifunc-test-modules, ifunc-pie-tests): Define.
14925         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
14926         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
14927         (test-extras): Likewise.
14928         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
14929         $(compile-command.c).
14930         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
14931         (all-built-dso): Define.
14932         (check-textrel.out, check-execstack.out): Depend on it.
14933
14934         * configure.in: Don't override --enable-multi-arch.
14935
14936 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
14937
14938         [BZ #6812]
14939         * nscd/hstcache.c (tryagain): Define.
14940         (cache_addhst): Return tryagain not notfound for temporary errors.
14941         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
14942         failed.
14943
14944 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
14945
14946         [BZ #10563]
14947         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
14948         to make the syscall.
14949         * sysdeps/unix/sysv/linux/setgroups.c: New file.
14950
14951         [BZ #12378]
14952         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
14953         and fall back to matching as normal character if the string ends before
14954         the matching ']' is found.  This is what POSIX requires.
14955         * posix/testfnm.c: Adjust test result.
14956         * posix/globtest.sh: Adjust test result.  Add new test.
14957         * posix/tst-fnmatch.input: Likewise.
14958         * posix/tst-fnmatch2.c: Add new test.
14959
14960 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
14961
14962         * elf/Makefile (check-execstack): Revert last change.  Depend on
14963         check-execstack.h.
14964         (check-execstack.h): New target.
14965         (generated): Add check-execstack.h.
14966         * elf/check-execstack.c: Include "check-execstack.h".
14967         (main): Revert last change.
14968         (handle_file): Return zero if GNU_STACK is absent and
14969         DEFAULT_STACK_PERMS doesn't include PF_X.
14970
14971 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
14972
14973         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
14974         in child fails because the descriptor is already closed.
14975         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
14976         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
14977         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
14978
14979         [BZ #12397]
14980         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
14981         syscall.
14982
14983         [BZ #10484]
14984         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
14985         temporary buffer used to handle multi lookups locally.
14986         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
14987
14988 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
14989
14990         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
14991         loader is ld.so.
14992
14993 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
14994
14995         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
14996         alignment for SSE2.
14997
14998 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
14999
15000         [BZ #12394]
15001         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
15002         characters.  When rounding increased number of integer digits recompute
15003         number of groups.
15004         * stdio-common/tst-grouping.c: New file.
15005         * stdio-common/Makefile: Add rules to build and run tst-grouping.
15006
15007 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
15008
15009         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
15010         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
15011
15012         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
15013         void.
15014         * bits/select.h: Likewise.
15015
15016 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
15017
15018         * po/ja.po: Update from translation team.
15019
15020 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
15021
15022         [BZ #11155]
15023         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
15024         implementation just like for lxstat, fxstatat, et al.
15025
15026 2010-12-27  Jim Meyering  <meyering@redhat.com>
15027
15028         [BZ #12348]
15029         * posix/regexec.c (build_trtable): Return failure indication upon
15030         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
15031
15032 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
15033
15034         [BZ #12201]
15035         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
15036         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
15037         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
15038         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
15039
15040         [BZ #12207]
15041         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
15042
15043         [BZ #12204]
15044         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
15045         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
15046
15047 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
15048
15049         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
15050         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
15051         script has SORT_BY_INIT_PRIORITY.
15052         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
15053         NO_CTORS_DTORS_SECTIONS is defined.
15054         * elf/soinit.c: Likewise.
15055         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
15056         NO_CTORS_DTORS_SECTIONS is defined.
15057         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
15058         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
15059         * sysdeps/sh/init-first.c: Likewise.
15060         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
15061
15062 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
15063
15064         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
15065         always use the slow path.
15066
15067 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
15068
15069         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
15070         similar rule which adds the sysdep directories to the header search in
15071         order to pick up the correct platform stackinfo.h.
15072         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
15073         perform test if it is, otherwise return successfully without testing.
15074         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
15075         DEFAULT_STACK_PERMS define in stackinfo.h.
15076         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
15077         defined in stackinfo.h.
15078         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
15079         DEFAULT_STACK_PERMS defined in stackinfo.h.
15080         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
15081         * sysdeps/ia64/stackinfo.h: Likewise.
15082         * sysdeps/s390/stackinfo.h: Likewise.
15083         * sysdeps/sh/stackinfo.h: Likewise.
15084         * sysdeps/sparc/stackinfo.h: Likewise.
15085         * sysdeps/x86_64/stackinfo.h: Likewise.
15086         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
15087         PF_X for powerpc64.  Retain PF_X for powerpc32.
15088
15089 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
15090
15091         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
15092         accurately.
15093         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
15094         GETDENTS_64BIT_ALIGNED.
15095
15096 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
15097
15098         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
15099
15100 2010-12-10  Andreas Schwab  <schwab@redhat.com>
15101
15102         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
15103         _GNU_SOURCE.
15104
15105         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
15106         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
15107         Remove __restrict.
15108         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
15109         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
15110
15111 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
15112
15113         [BZ #11655]
15114         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
15115         are initialized.
15116
15117 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
15118
15119         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
15120
15121 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
15122
15123         * po/it.po: Update from translation team.
15124
15125 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
15126
15127         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
15128         unused codes.
15129
15130 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
15131
15132         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
15133
15134 2010-11-24  Andreas Schwab  <schwab@redhat.com>
15135
15136         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
15137         specially.
15138         (gaih_getanswer_slice): Likewise.
15139
15140 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
15141
15142         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
15143
15144 2010-05-31  Petr Baudis  <pasky@suse.cz>
15145
15146         [BZ #11149]
15147         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
15148         silently even in the chroot mode.
15149
15150 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
15151
15152         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
15153         last patch a bit.  Pretty printing
15154
15155 2010-05-31  Petr Baudis <pasky@suse.cz>
15156
15157         [BZ #10085]
15158         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
15159         initialization of skip_initgroups_dyn.
15160
15161 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
15162
15163         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
15164         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
15165
15166 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
15167
15168         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
15169
15170 2010-11-11  Andreas Schwab  <schwab@redhat.com>
15171
15172         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
15173         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
15174         (tst-fnmatch-ENV): Set MALLOC_TRACE.
15175         ($(objpfx)tst-fnmatch-mem): New rule.
15176         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
15177         * posix/tst-fnmatch.c (main): Call mtrace.
15178
15179 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
15180
15181         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15182         Support Intel processor model 6 and model 0x2c.
15183
15184 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
15185
15186         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
15187           signed comparison.
15188
15189 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
15190
15191         [BZ #12205]
15192         * string/test-strncasecmp.c (check_result): New function.
15193         (do_one_test): Use it.
15194         (check1): New function.
15195         (test_main): Use it.
15196         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
15197         Support strcasecmp and strncasecmp.
15198
15199 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
15200
15201         [BZ #12194]
15202         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
15203         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15204
15205 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
15206
15207         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
15208         IFUNC support.
15209         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15210         memset-x86-64.
15211         * sysdeps/x86_64/multiarch/bzero.S: New file.
15212         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
15213         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
15214         * sysdeps/x86_64/multiarch/memset.S: New file.
15215         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
15216         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15217         Set bit_Prefer_SSE_for_memop for Intel processors.
15218         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
15219         Define.
15220         (index_Prefer_SSE_for_memop): Define.
15221         (HAS_PREFER_SSE_FOR_MEMOP): Define.
15222
15223 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
15224
15225         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
15226         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
15227
15228 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
15229
15230         [BZ #12191]
15231         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15232         (__x86_64_raw_data_cache_size_half): Likewise.
15233         (__x86_64_raw_shared_cache_size): Likewise.
15234         (__x86_64_raw_shared_cache_size_half): Likewise.
15235
15236         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
15237         (__x86_64_raw_data_cache_size_half): Likewise.
15238         (__x86_64_raw_shared_cache_size): Likewise.
15239         (__x86_64_raw_shared_cache_size_half): Likewise.
15240         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
15241         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
15242         and __x86_64_raw_shared_cache_size_half.  Round
15243         __x86_64_data_cache_size_half, __x86_64_data_cache_size
15244         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
15245         to multiple of 256 bytes.
15246
15247 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
15248
15249         [BZ #12167]
15250         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
15251         of inacessible symlinks.  Verify result of symlink before returning it.
15252         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
15253         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
15254
15255 2010-10-28  Erich Ritz  <erichritz@gmail.com>
15256
15257         * math/math.h (isinf): Fix typo in comment.
15258
15259 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
15260
15261         * po/da.po: Update from translation team.
15262
15263 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
15264
15265         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
15266         is added to the list.
15267
15268 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15269             Ulrich Drepper  <drepper@gmail.com>
15270
15271         * elf/dl-object.c (_dl_new_object): Don't append the new object to
15272         the global list here.  Move code to...
15273         (_dl_add_to_namespace_list): ...here.  New function.
15274         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
15275         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
15276         * elf/dl-load.c (lose): Don't remove the element from the list.
15277         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
15278         (_dl_map_object): Likewise.
15279
15280 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
15281
15282         [BZ #12159]
15283         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
15284         into all bytes of SSE register.
15285         Patch by Richard Li <richardpku@gmail.com>.
15286
15287 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
15288
15289         [BZ #12140]
15290         * malloc/malloc.c (_int_free): Fill correct number of bytes when
15291         perturbing.
15292
15293 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
15294
15295         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
15296         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
15297         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
15298         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
15299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
15300         submachine.
15301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
15302
15303 2010-10-22  Andreas Schwab  <schwab@redhat.com>
15304
15305         * include/dlfcn.h (__RTLD_SECURE): Define.
15306         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
15307         mode & __RTLD_SECURE instead.
15308         (open_path): Rename preloaded parameter to secure.
15309         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
15310         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
15311         * elf/dl-deps.c (openaux): Likewise.
15312         * elf/rtld.c (struct map_args): Remove is_preloaded.
15313         (map_doit): Don't use it.
15314         (dl_main): Likewise.
15315         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
15316         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
15317
15318 2010-09-09  Andreas Schwab  <schwab@redhat.com>
15319
15320         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
15321         (sysd-rules-targets): Remove duplicates.
15322         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
15323         rtld-%.$o dependency.
15324
15325 2010-10-18  Andreas Schwab  <schwab@redhat.com>
15326
15327         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
15328         _dl_map_object do it.
15329
15330 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
15331
15332         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
15333         fast fma builtins, define the macros in the C99 standard.
15334         (FP_FAST_FMAF): Likewise.
15335         (FP_FAST_FMAL): Likewise.
15336         * sysdeps/x86_64/bits/mathdef.h: Likewise.
15337
15338         * bits/mathdef.h: Update copyright year.
15339         * sysdeps/powerpc/bits/mathdef.h: Likewise.
15340
15341 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
15342
15343         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
15344         builtins, define the macros in the C99 standard.
15345         (FP_FAST_FMAF): Likewise.
15346         (FP_FAST_FMAL): Likewise.
15347         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
15348         multiply/add.
15349         (FP_FAST_FMAF): Likewise.
15350
15351 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
15352
15353         [BZ #3268]
15354         * math/libm-test.inc (fma_test): Some new testcases.
15355         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
15356         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
15357         y and infinite z.  Do multiplication by C already in long double.
15358         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
15359         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
15360         y and infinite z.  Do bitwise or of inexact bit into u.d.
15361         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
15362         * sysdeps/i386/fpu/s_fmaf.S: Removed.
15363         * sysdeps/i386/fpu/s_fma.S: Removed.
15364         * sysdeps/i386/fpu/s_fmal.S: Removed.
15365
15366 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
15367
15368         [BZ #3268]
15369         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
15370         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
15371         computation is not scheduled after fetestexcept.  Fix value
15372         of minimum denormal long double.
15373
15374 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
15375
15376         [BZ #3268]
15377         * math/libm-test.inc (fma_test): Add some more tests.
15378         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
15379         correctly.
15380
15381 2010-10-15  Andreas Schwab  <schwab@redhat.com>
15382
15383         * scripts/data/localplt-s390-linux-gnu.data: New file.
15384         * scripts/data/localplt-s390x-linux-gnu.data: New file.
15385
15386 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
15387
15388         [BZ #3268]
15389         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
15390         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
15391         instead of dbl-64.
15392         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
15393         inlines.
15394         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
15395         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
15396         if one of x and y is very large and the other is subnormal.
15397         * sysdeps/s390/fpu/s_fmaf.c: New file.
15398         * sysdeps/s390/fpu/s_fma.c: New file.
15399         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
15400         * sysdeps/powerpc/fpu/s_fma.S: New file.
15401         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
15402         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
15403         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
15404
15405 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
15406
15407         [BZ #3268]
15408         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
15409         fma tests.
15410         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
15411         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
15412         * sysdeps/i386/i686/multiarch/s_fma.c: Include
15413         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
15414         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
15415         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
15416         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
15417
15418 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
15419
15420         [BZ #12078]
15421         * posix/regcomp.c (parse_branch): One more memory leak plugged.
15422         * posix/bug-regex31.input: Add test case.
15423
15424 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15425
15426         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
15427         * posix/bug-regex31.input: New file.
15428
15429         [BZ #12078]
15430         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
15431         (parse_sub_exp): Fix last change, use postorder.
15432
15433         * posix/bug-regex31.c: New file.
15434         * posix/Makefile: Add rules to build and run bug-regex31.
15435
15436         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
15437
15438         [BZ #12078]
15439         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
15440
15441         [BZ #12108]
15442         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
15443         to have entries in sys_siglist.
15444
15445         [BZ #12093]
15446         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
15447         be NULL.
15448
15449 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
15450
15451         [BZ #3268]
15452         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
15453         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
15454         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
15455         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
15456         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
15457         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
15458         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
15459         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
15460         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
15461         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
15462         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
15463         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
15464         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
15465         * math/ftestexcept.c (fetestexcept): Likewise.
15466         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
15467         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
15468         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
15469         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
15470         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
15471         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
15472         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
15473
15474 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
15475
15476         [BZ #12107]
15477         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
15478         newline.
15479
15480 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
15481
15482         * string/bug-strstr1.c: New file.
15483         * string/Makefile: Add rules to build and run bug-strstr1.
15484
15485 2010-10-05  Eric Blake  <eblake@redhat.com>
15486
15487         [BZ #12092]
15488         * string/str-two-way.h (two_way_long_needle): Always clear memory
15489         when skipping input due to the shift table.
15490
15491 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
15492
15493         [BZ #12005]
15494         * malloc/mcheck.c: Handle large requests.
15495
15496         [BZ #12077]
15497         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
15498         for strncmp and strncasecmp.
15499         * string/stratcliff.c: Add tests for strcmp and strncmp.
15500         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
15501
15502 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15503
15504         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
15505         __set_fpscr.
15506
15507 2010-09-30  Andreas Jaeger  <aj@suse.de>
15508
15509         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
15510         (CGROUP_SUPER_MAGIC): Define.
15511         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15512         Handle btrfs and cgroup file systems.
15513         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
15514         Likewise.
15515
15516 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
15517
15518         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
15519         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
15520
15521 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15522
15523         [BZ #12067]
15524         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
15525         trying to locate the ELF header.
15526
15527 2010-09-27  Andreas Schwab  <schwab@redhat.com>
15528
15529         [BZ #11611]
15530         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
15531         Mask out sign-bit copies when constructing f_fsid.
15532
15533 2010-09-24  Petr Baudis <pasky@suse.cz>
15534
15535         * debug/stack_chk_fail_local.c: Add missing licence exception.
15536         * debug/warning-nop.c: Likewise.
15537
15538 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
15539
15540         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
15541         implementing getdents64 using getdents syscall, set d_type if
15542         __ASSUME_GETDENTS32_D_TYPE.
15543
15544 2010-09-16  Andreas Schwab  <schwab@redhat.com>
15545
15546         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
15547         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
15548
15549 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
15550
15551         [BZ #12037]
15552         * posix/unistd.h: Undo change of feature selection for ftruncate from
15553         2010-01-11.
15554
15555 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
15556
15557         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
15558         detection.
15559
15560 2010-09-20  Andreas Schwab  <schwab@redhat.com>
15561
15562         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
15563         fanotify_mark.
15564         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
15565
15566 2010-09-14  Andreas Schwab  <schwab@redhat.com>
15567
15568         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
15569         variables after CHECK_SP call.
15570         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
15571
15572 2010-09-13  Andreas Schwab  <schwab@redhat.com>
15573             Ulrich Drepper  <drepper@redhat.com>
15574
15575         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
15576         re-relocationg ld.so.
15577         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
15578         _dl_init_paths call.
15579         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
15580         here anymore.
15581
15582 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
15583
15584         * resolv/res_init.c (__res_vinit): Count the default server we added.
15585
15586 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
15587             Ulrich Drepper  <drepper@redhat.com>
15588
15589         [BZ #11968]
15590         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
15591         (____longjmp_chk): Use %ebx for saving value across system call.
15592         Add unwind info.
15593
15594 2010-09-06  Andreas Schwab  <schwab@redhat.com>
15595
15596         * manual/Makefile: Don't mix pattern rules with normal rules.
15597
15598 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
15599
15600         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
15601         operation.
15602         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
15603         * libio/iofopncook.c (_IO_cookie_init): Likewise.
15604         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
15605         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
15606         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
15607         Likewise.
15608
15609 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
15610
15611         [BZ #11979]
15612         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
15613         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
15614
15615 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
15616
15617         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
15618         * sysdeps/x86_64/addmul_1.S: Likewise.
15619         * sysdeps/x86_64/lshift.S: Likewise.
15620         * sysdeps/x86_64/mul_1.S: Likewise.
15621         * sysdeps/x86_64/rshift.S: Likewise.
15622         * sysdeps/x86_64/sub_n.S: Likewise.
15623         * sysdeps/x86_64/submul_1.S: Likewise.
15624
15625 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15626
15627         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
15628         Define __sched_param instead of SCHED_* and sched_param when
15629         <bits/sched.h> is included with __need_schedparam defined.
15630         * bits/sched.h [__need_schedparam]
15631         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
15632         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
15633         (__defined_schedparam): Define to 1.
15634         (__sched_param): New structure, identical to sched_param.
15635         (__need_schedparam): Undefine.
15636
15637 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
15638
15639         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
15640         (epoll_create1): Declare.
15641
15642         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
15643
15644 2010-08-31  Andreas Schwab  <schwab@redhat.com>
15645
15646         [BZ #7066]
15647         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
15648         shifting retval into place.
15649
15650 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
15651
15652         * nis/rpcsvc/nis.h: Update copyright notice.
15653         * nis/rpcsvc/nis.x: Likewise.
15654         * nis/rpcsvc/nis_callback.h: Likewise.
15655         * nis/rpcsvc/nis_callback.x: Likewise.
15656         * nis/rpcsvc/nis_object.x: Likewise.
15657         * nis/rpcsvc/nis_tags.h: Likewise.
15658         * nis/rpcsvc/yp.h: Likewise.
15659         * nis/rpcsvc/yp.x: Likewise.
15660         * nis/rpcsvc/ypupd.h: Likewise.
15661         * nis/yp_xdr.c: Likewise.
15662         * nis/ypupdate_xdr.c: Likewise.
15663
15664         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
15665         mainly the body of pmap_getport.  Add parameters to specify timeouts.
15666         (pmap_getport): Use __libc_rpc_getport.
15667         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
15668         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
15669         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
15670
15671 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
15672
15673         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
15674         fanotify_mark.
15675
15676 2010-08-27  Roland McGrath  <roland@redhat.com>
15677
15678         * sysdeps/i386/i686/multiarch/Makefile
15679         (CFLAGS-varshift.c): New variable.
15680
15681 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
15682
15683         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
15684         * sysdeps/i386/i686/multiarch/varshift.c: New file.
15685
15686         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
15687
15688         * sysdeps/x86_64/strlen.S: Minimal code improvement.
15689
15690 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
15691
15692         * sysdeps/x86_64/strlen.S: Unroll the loop.
15693         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15694         strlen-sse2 strlen-sse2-bsf.
15695         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
15696         __strlen_no_bsf if bit_Slow_BSF is set.
15697         (__strlen_sse42): Removed.
15698         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
15699         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
15700
15701 2010-08-25  Roland McGrath  <roland@redhat.com>
15702
15703         * sysdeps/x86_64/multiarch/varshift.S: File removed.
15704         * sysdeps/x86_64/multiarch/varshift.c: New file.
15705         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
15706         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
15707         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
15708         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
15709
15710 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
15711
15712         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15713         strlen-sse2 strlen-sse2-bsf.
15714         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
15715         __strlen_sse2_bsf if bit_Slow_BSF is unset.
15716         (__strlen_sse2): Removed.
15717         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
15718         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
15719         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
15720         bit_Slow_BSF for Atom.
15721         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
15722         (index_Slow_BSF): Define.
15723         (HAS_SLOW_BSF): Define.
15724
15725 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
15726
15727         [BZ #10851]
15728         * resolv/res_init.c (__res_vinit): When no server address at all
15729         is given default to loopback.
15730
15731 2010-08-24  Roland McGrath  <roland@redhat.com>
15732
15733         * configure.in: Remove config-name.h generation.
15734         * configure: Regenerated.
15735         * config-name.in: File removed.
15736         * scripts/config-uname.sh: New file.
15737         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
15738         ($(objdir)config-name.h): New target.
15739
15740         * sunrpc/rpc_parse.h: Avoid nested comment.
15741
15742 2010-08-24  Richard Henderson  <rth@redhat.com>
15743             Ulrich Drepper  <drepper@redhat.com>
15744             H.J. Lu  <hongjiu.lu@intel.com>
15745
15746         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
15747         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
15748         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
15749         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
15750         _mm_alignr_epi8 with _mm_loadu_si128.
15751         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
15752         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
15753         (__m128i_shift_right): Removed.
15754         * sysdeps/i386/i686/multiarch/varshift.h: New file.
15755         * sysdeps/i386/i686/multiarch/varshift.S: New file.
15756         * sysdeps/x86_64/multiarch/varshift.h: New file.
15757         * sysdeps/x86_64/multiarch/varshift.S: New file.
15758
15759 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
15760
15761         * configure.in: Move assembler checks to before sysdep dir checking.
15762
15763 2010-08-20  Petr Baudis  <pasky@suse.cz>
15764
15765         * LICENSES: Sync the sunrpc license.
15766
15767 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
15768
15769         * sunrpc/auth_des.c: Update copyright notice once again.
15770         * sunrpc/auth_none.c: Likewise.
15771         * sunrpc/auth_unix.c: Likewise.
15772         * sunrpc/authdes_prot.c: Likewise.
15773         * sunrpc/authuxprot.c: Likewise.
15774         * sunrpc/bindrsvprt.c: Likewise.
15775         * sunrpc/clnt_gen.c: Likewise.
15776         * sunrpc/clnt_perr.c: Likewise.
15777         * sunrpc/clnt_raw.c: Likewise.
15778         * sunrpc/clnt_simp.c: Likewise.
15779         * sunrpc/clnt_tcp.c: Likewise.
15780         * sunrpc/clnt_udp.c: Likewise.
15781         * sunrpc/clnt_unix.c: Likewise.
15782         * sunrpc/des_crypt.c: Likewise.
15783         * sunrpc/des_soft.c: Likewise.
15784         * sunrpc/get_myaddr.c: Likewise.
15785         * sunrpc/getrpcport.c: Likewise.
15786         * sunrpc/key_call.c: Likewise.
15787         * sunrpc/key_prot.c: Likewise.
15788         * sunrpc/openchild.c: Likewise.
15789         * sunrpc/pm_getmaps.c: Likewise.
15790         * sunrpc/pm_getport.c: Likewise.
15791         * sunrpc/pmap_clnt.c: Likewise.
15792         * sunrpc/pmap_prot.c: Likewise.
15793         * sunrpc/pmap_prot2.c: Likewise.
15794         * sunrpc/pmap_rmt.c: Likewise.
15795         * sunrpc/rpc/auth.h: Likewise.
15796         * sunrpc/rpc/auth_unix.h: Likewise.
15797         * sunrpc/rpc/clnt.h: Likewise.
15798         * sunrpc/rpc/des_crypt.h: Likewise.
15799         * sunrpc/rpc/key_prot.h: Likewise.
15800         * sunrpc/rpc/netdb.h: Likewise.
15801         * sunrpc/rpc/pmap_clnt.h: Likewise.
15802         * sunrpc/rpc/pmap_prot.h: Likewise.
15803         * sunrpc/rpc/pmap_rmt.h: Likewise.
15804         * sunrpc/rpc/rpc.h: Likewise.
15805         * sunrpc/rpc/rpc_des.h: Likewise.
15806         * sunrpc/rpc/rpc_msg.h: Likewise.
15807         * sunrpc/rpc/svc.h: Likewise.
15808         * sunrpc/rpc/svc_auth.h: Likewise.
15809         * sunrpc/rpc/types.h: Likewise.
15810         * sunrpc/rpc/xdr.h: Likewise.
15811         * sunrpc/rpc_clntout.c: Likewise.
15812         * sunrpc/rpc_cmsg.c: Likewise.
15813         * sunrpc/rpc_common.c: Likewise.
15814         * sunrpc/rpc_cout.c: Likewise.
15815         * sunrpc/rpc_dtable.c: Likewise.
15816         * sunrpc/rpc_hout.c: Likewise.
15817         * sunrpc/rpc_main.c: Likewise.
15818         * sunrpc/rpc_parse.c: Likewise.
15819         * sunrpc/rpc_parse.h: Likewise.
15820         * sunrpc/rpc_prot.c: Likewise.
15821         * sunrpc/rpc_sample.c: Likewise.
15822         * sunrpc/rpc_scan.c: Likewise.
15823         * sunrpc/rpc_scan.h: Likewise.
15824         * sunrpc/rpc_svcout.c: Likewise.
15825         * sunrpc/rpc_tblout.c: Likewise.
15826         * sunrpc/rpc_util.c: Likewise.
15827         * sunrpc/rpc_util.h: Likewise.
15828         * sunrpc/rpcinfo.c: Likewise.
15829         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
15830         * sunrpc/rpcsvc/key_prot.x: Likewise.
15831         * sunrpc/rpcsvc/klm_prot.x: Likewise.
15832         * sunrpc/rpcsvc/mount.x: Likewise.
15833         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
15834         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
15835         * sunrpc/rpcsvc/rex.x: Likewise.
15836         * sunrpc/rpcsvc/rstat.x: Likewise.
15837         * sunrpc/rpcsvc/rusers.x: Likewise.
15838         * sunrpc/rpcsvc/sm_inter.x: Likewise.
15839         * sunrpc/rpcsvc/spray.x: Likewise.
15840         * sunrpc/rpcsvc/yppasswd.x: Likewise.
15841         * sunrpc/rtime.c: Likewise.
15842         * sunrpc/svc.c: Likewise.
15843         * sunrpc/svc_auth.c: Likewise.
15844         * sunrpc/svc_authux.c: Likewise.
15845         * sunrpc/svc_raw.c: Likewise.
15846         * sunrpc/svc_run.c: Likewise.
15847         * sunrpc/svc_simple.c: Likewise.
15848         * sunrpc/svc_tcp.c: Likewise.
15849         * sunrpc/svc_udp.c: Likewise.
15850         * sunrpc/svc_unix.c: Likewise.
15851         * sunrpc/svcauth_des.c: Likewise.
15852         * sunrpc/xcrypt.c: Likewise.
15853         * sunrpc/xdr.c: Likewise.
15854         * sunrpc/xdr_array.c: Likewise.
15855         * sunrpc/xdr_float.c: Likewise.
15856         * sunrpc/xdr_mem.c: Likewise.
15857         * sunrpc/xdr_rec.c: Likewise.
15858         * sunrpc/xdr_ref.c: Likewise.
15859         * sunrpc/xdr_sizeof.c: Likewise.
15860         * sunrpc/xdr_stdio.c: Likewise.
15861
15862         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
15863         handling.
15864
15865 2010-08-19  Andreas Schwab  <schwab@redhat.com>
15866
15867         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
15868
15869 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
15870
15871         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
15872         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
15873         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
15874         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
15875         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
15876         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
15877         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
15878         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
15879         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
15880         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
15881         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
15882         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
15883         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
15884         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
15885
15886 2010-07-26  Anton Blanchard  <anton@samba.org>
15887
15888         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
15889         * malloc/arena.c (heap_trim): Likewise.
15890
15891 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
15892
15893         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
15894         here.  Not...
15895         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
15896         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
15897
15898 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
15899
15900         * sysdeps/i386/elf/Makefile: New file.
15901
15902 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15903
15904         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
15905         from fanotify_init.
15906         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
15907         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15908
15909 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
15910
15911         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
15912         of strncasecmp_l.
15913         * sysdeps/multiarch/strcmp.S: Likewise.
15914
15915 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
15916
15917         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
15918         strncase_l-nonascii.
15919         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
15920         Add strncase_l-ssse3.
15921         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
15922         * sysdeps/x86_64/strcmp.S: Likewise.
15923         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
15924         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
15925         * sysdeps/x86_64/strncase.S: New file.
15926         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
15927         * sysdeps/x86_64/strncase_l.S: New file.
15928         * string/Makefile (strop-tests): Add strncasecmp.
15929         * string/test-strncasecmp.c: New file.
15930
15931         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
15932         warning.
15933
15934         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
15935         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
15936
15937 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15938
15939         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
15940
15941 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
15942
15943         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
15944         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
15945         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
15946
15947 2010-05-01  Alan Modra  <amodra@gmail.com>
15948
15949         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
15950         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
15951         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
15952         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
15953         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
15954         tidying.  Don't tail-call __sigjmp_save for static lib.
15955         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
15956         save location.
15957         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
15958         (CALL_MCOUNT): Add eh info, and nop after bl.
15959         (TAIL_CALL_SYSCALL_ERROR): New macro.
15960         (PSEUDO_RET): Use it.
15961         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
15962         Correct save location of integer regs and cr.
15963         (_dl_profile_resolve): Correct cr save location.  Delete nops
15964         after bl when SHARED.  Reduce cfi size a little by better
15965         placement of cfi directives.
15966         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
15967         make a stack frame.  Instead use parm save area as a temp.
15968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
15969         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
15970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
15971         Don't make a stack frame for parent, use parm save area.
15972         Increase child stack frame to 112 bytes.  Don't save unused reg,
15973         and adjust reg usage.  Set up cfi on error recovery and
15974         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
15975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
15976         (__makecontext): Add dummy nop after jump to exit.
15977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
15978         Use correct parm save area and cr save, reduce stack frame.
15979         Correct cfi for possible PSEUDO_RET frame setup.
15980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
15981         Branch to local label emitted by PSEUDO_RET rather than
15982         __syscall_error.
15983
15984 2010-08-12  Andreas Schwab  <schwab@redhat.com>
15985
15986         [BZ #11904]
15987         * locale/programs/locale.c (print_assignment): New function.
15988         (show_locale_vars): Use it.
15989
15990 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
15991
15992         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
15993         field.
15994         (struct statfs64): Likewise.
15995         (_STATFS_F_FLAGS): Define.
15996         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
15997         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15998         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
15999         (ST_VALID): Define locally.
16000         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
16001         __statvfs_getflags, use the provided value.
16002         * sysdeps/unix/sysv/linux/kernel-features.h: Define
16003         __ASSUME_STATFS_F_FLAGS.
16004
16005         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
16006
16007         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
16008         Add sys/fanotify.h.
16009         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
16010         fanotify_mask for GLIBC_2.13.
16011         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
16012         fanotify_init and fanotify_mark.
16013         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
16014         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
16015
16016         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
16017         Add prlimit.
16018         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
16019         prlimit64 for GLIBC_2.13.
16020         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
16021         prlimit64.
16022         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
16023         syscall.
16024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
16025         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
16026         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
16027         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
16028         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
16029         add prlimit alias.
16030         * sysdeps/unix/sysv/linux/prlimit.c: New file.
16031
16032         [BZ #11903]
16033         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
16034         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
16035
16036         * nss/Makefile: Add rules to build and run tst-nss-test1.
16037         * shlib-versions: Add entry for libnss_test1.
16038         * nss/nss_test1.c: New file.
16039         * nss/tst-nss-test1.c: New file.
16040
16041         * nss/nsswitch.c (__nss_database_custom): Define new variable.
16042         (__nss_configure_lookup): Set appropriate entry in
16043         __nss_configure_lookup to true.
16044         * nss/nsswitch.h: Define enum with indeces of databases in
16045         databases and __nss_database_custom arrays.  Declare
16046         __nss_database_custom.
16047         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
16048         to avoid using nscd when custom rules are installed.
16049         * nss/getXXbyYY_r.c: Likewise.
16050         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
16051
16052         * nss/nss_files/files-parse.c: Whitespace fixes.
16053
16054 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
16055
16056         [BZ #11883]
16057         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
16058         * posix/fnmatch_loop.c: Likewise.
16059
16060 2010-07-17  Andi Kleen  <ak@linux.intel.com>
16061
16062         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
16063         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
16064         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
16065         * Versions.def [GLIBC_2.13]: Add.
16066
16067 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
16068
16069         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16070         Also fail if tpwd after pwuid call is NULL.
16071
16072 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16073
16074         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
16075         when converting to ms.
16076
16077 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
16078
16079         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
16080         EOPNOTSUPP errors with ENOTTY.
16081         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
16082         EOPNOTSUPP errors with ENOTTY.
16083
16084 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
16085
16086         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
16087         Add strcasecmp_l-ssse3.
16088         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
16089         strcasecmp.
16090         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
16091         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
16092         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
16093
16094 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
16095
16096         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
16097
16098         * string/Makefile (strop-tests): Add strcasecmp.
16099         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
16100         strcasecmp_l-nonascii.
16101         (gen-as-const-headers): Add locale-defines.sym.
16102         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
16103         * sysdeps/x86_64/strcasecmp.S: New file.
16104         * sysdeps/x86_64/strcasecmp_l.S: New file.
16105         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
16106         * sysdeps/x86_64/locale-defines.sym: New file.
16107         * string/test-strcasecmp.c: New file.
16108
16109         * string/test-strcasestr.c: Test both ends of the range of characters.
16110         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
16111
16112 2010-07-29  Roland McGrath  <roland@redhat.com>
16113
16114         [BZ #11856]
16115         * manual/locale.texi (Yes-or-No Questions): Fix example code.
16116
16117 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
16118
16119         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
16120         for ld.so.
16121
16122 2010-07-27  Andreas Schwab  <schwab@redhat.com>
16123
16124         * manual/memory.texi (Malloc Tunable Parameters): Document
16125         M_PERTURB.
16126
16127 2010-07-26  Roland McGrath  <roland@redhat.com>
16128
16129         [BZ #11840]
16130         * configure.in (-fgnu89-inline check): Set and substitute
16131         gnu89_inline, not libc_cv_gnu89_inline.
16132         * configure: Regenerated.
16133         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
16134
16135 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
16136
16137         * string/test-strnlen.c: New file.
16138         * string/Makefile (strop-tests): Add strnlen.
16139         * string/tester.c (test_strnlen): Add a few more test cases.
16140         * string/tst-strlen.c: Better error reporting.
16141
16142         * sysdeps/x86_64/strnlen.S: New file.
16143
16144 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
16145
16146         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
16147         lower-latency instructions.
16148
16149 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
16150
16151         * string/test-strcasestr.c: New file.
16152         * string/test-strstr.c: New file.
16153         * string/Makefile (strop-tests): Add strstr and strcasestr.
16154         * string/str-two-way.h: Don't undefine MAX.
16155         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
16156
16157 2010-07-21  Andreas Schwab  <schwab@redhat.com>
16158
16159         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16160         strcasestr-nonascii.
16161         (CFLAGS-strcasestr-nonascii.c): Define.
16162         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
16163         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
16164         Remove unused attribute.
16165
16166 2010-07-20  Roland McGrath  <roland@redhat.com>
16167
16168         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
16169         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
16170         ld.so.cache was broken.  With it, there is no way to disable dsocaps
16171         like LD_HWCAP_MASK can disable hwcaps.
16172
16173 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16174
16175         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
16176
16177 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
16178
16179         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
16180         call in strcasestr.
16181         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
16182         __strcasestr_sse42_nonascii.
16183         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
16184         strcasestr-nonascii.c.
16185         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
16186
16187 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
16188
16189         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
16190         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
16191         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
16192         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
16193
16194 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
16195
16196         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
16197         fcntl.
16198
16199 2010-07-06  Andreas Schwab  <schwab@redhat.com>
16200
16201         [BZ #11577]
16202         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
16203         dl_signal_cerror.
16204
16205 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
16206
16207         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
16208         _PC_PIPE_BUF using F_GETPIPE_SZ.
16209
16210 2010-07-05  Roland McGrath  <roland@redhat.com>
16211
16212         * manual/arith.texi (Rounding Functions): Fix rint description
16213         implicit in round description.
16214
16215 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
16216
16217         * elf/Makefile: Fix linking for a few tests to make recent linker
16218         happy.
16219
16220 2010-06-30  Andreas Schwab  <schwab@redhat.com>
16221
16222         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
16223         $(common-objpfx)libc_nonshared.a.
16224
16225 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
16226
16227         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
16228         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
16229         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16230         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16231         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
16232         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
16233         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16234         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
16236         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
16237         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
16238         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
16239         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
16240         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
16241         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
16242         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
16243         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
16244         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
16245         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
16246         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
16247         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
16248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
16249         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
16250         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
16251         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
16252         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
16253         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
16254         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
16255         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
16256         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
16257         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
16258         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
16259         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
16260         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
16261         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
16262         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
16263         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
16264         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
16265         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
16266         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
16267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
16268         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
16269         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
16270         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
16271         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
16272         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
16273         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
16274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
16275
16276 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
16277
16278         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
16279         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
16280         * string/memmove.c (memmove): Renamed to ...
16281         (MEMMOVE): ...this.  Default to memmove.
16282         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
16283         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
16284         (END_CHK): Define.
16285         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16286         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
16287         mempcpy-ssse3-back memmove-ssse3-back.
16288         * sysdeps/x86_64/multiarch/bcopy.S: New file .
16289         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
16290         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
16291         * sysdeps/x86_64/multiarch/memcpy.S: New file.
16292         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
16293         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
16294         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
16295         * sysdeps/x86_64/multiarch/memmove.c: New file.
16296         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
16297         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
16298         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
16299         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
16300         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
16301         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
16302         Define.
16303         (index_Fast_Copy_Backward): Define.
16304         (HAS_ARCH_FEATURE): Define.
16305         (HAS_FAST_REP_STRING): Define.
16306         (HAS_FAST_COPY_BACKWARD): Define.
16307
16308 2010-06-21  Andreas Schwab  <schwab@redhat.com>
16309
16310         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
16311         Restore proper fallback handling.
16312
16313 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
16314
16315         [BZ #11701]
16316         * posix/group_member.c (__group_member): Correct checking loop.
16317
16318         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
16319         OOM in getpwuid_r correctly.  Return error number when the caller
16320         should return, otherwise -1.
16321         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
16322         call returning > 0 value.
16323         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
16324
16325 2010-06-07  Andreas Schwab  <schwab@redhat.com>
16326
16327         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
16328         libc_nonshared.a from targets in modules-names.
16329
16330 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
16331
16332         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
16333         requires it.
16334
16335 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
16336
16337         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
16338         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
16339         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
16340         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
16341
16342 2010-06-02  Andreas Schwab  <schwab@redhat.com>
16343
16344         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
16345
16346 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
16347
16348         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
16349         and F_GETPIPE_SZ.
16350         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
16351         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
16352         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
16353         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
16354         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
16355         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
16356
16357 2010-06-14  Roland McGrath  <roland@redhat.com>
16358
16359         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
16360
16361 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
16362
16363         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
16364         __REDIRECT followed by __THROW.
16365         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
16366         * posix/getopt.h (getopt): Likewise.
16367
16368 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
16369
16370         * hurd/lookup-at.c (__file_name_lookup_at): Accept
16371         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
16372         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
16373         in AT_FLAGS.
16374         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
16375         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
16376
16377 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
16378
16379         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
16380
16381 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
16382
16383         [BZ #11640]
16384         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16385         Properly check family and model.
16386
16387 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
16388
16389         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
16390
16391 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
16392
16393         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
16394
16395 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
16396
16397         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
16398         symbol reference.
16399
16400 2010-05-19  Andreas Schwab  <schwab@redhat.com>
16401
16402         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
16403         symbol reference.
16404
16405 2010-05-21  Andreas Schwab  <schwab@redhat.com>
16406
16407         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
16408         and internal_recvmmsg.
16409         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
16410         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
16411         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
16412         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
16413
16414         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
16415         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
16416         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
16417
16418 2010-05-20  Andreas Schwab  <schwab@redhat.com>
16419
16420         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
16421
16422 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
16423
16424         POWER7 optimizations.
16425         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
16426         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
16427
16428 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
16429
16430         * version.h: Update for 2.13 development version.
16431
16432 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
16433
16434         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
16435         exceptions.  Return 0.
16436
16437 2010-05-07  Roland McGrath  <roland@redhat.com>
16438
16439         * elf/ldconfig.c (main): Add a const.
16440
16441 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
16442
16443         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
16444         (args_options): Add no-idn option.
16445         (ahosts_keys_int): Add idn_flags to ai_flags.
16446         (parse_option): Handle 'i' option to clear idn_flags.
16447
16448         * malloc/malloc.c (_int_free): Possible race in the most recently
16449         added check.  Only act on the data if no current modification
16450         happened.
16451
16452 See ChangeLog.17 for earlier changes.